Package org.killbill.billing.catalog.api
Interface Product
-
- All Superinterfaces:
CatalogEntity
public interface Product extends CatalogEntity
The interfaceProduct
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancompliesWithLimits(String unit, BigDecimal value)Collection<Product>getAvailable()StaticCataloggetCatalog()StringgetCatalogName()ProductCategorygetCategory()Collection<Product>getIncluded()Limit[]getLimits()-
Methods inherited from interface org.killbill.billing.catalog.api.CatalogEntity
getName, getPrettyName
-
-
-
-
Method Detail
-
getCatalog
StaticCatalog getCatalog()
-
getAvailable
Collection<Product> getAvailable()
- Returns:
- an array of other
Productthat can be purchased with that one
-
getIncluded
Collection<Product> getIncluded()
- Returns:
- an array of other
Productthat are already included within this one
-
getCategory
ProductCategory getCategory()
- Returns:
- the
ProductCategoryassociated with thatProduct
-
getCatalogName
String getCatalogName()
- Returns:
- the name of the catalog where this
Producthas been defined
-
getLimits
Limit[] getLimits()
- Returns:
- the limits associated with this product
-
compliesWithLimits
boolean compliesWithLimits(String unit, BigDecimal value)
- Returns:
- whether the given unit-value pair meets the limits of the product
-
-