Package org.killbill.billing.catalog.api
Interface StaticCatalog
-
- All Known Subinterfaces:
MutableStaticCatalog
public interface StaticCatalogThe interfaceStaticCataloggives the view of thatCatalogat a given time. This represents a specific version of theCatalog
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description PlancreateOrFindPlan(PlanSpecifier spec, PlanPhasePriceOverridesWithCallContext overrides)PlanPhasefindPhase(String name)PlanfindPlan(String name)PriceListfindPriceList(String name)ProductfindProduct(String name)List<Listing>getAvailableAddOnListings(String baseProductName, String priceListName)List<Listing>getAvailableBasePlanListings()StringgetCatalogName()DategetEffectiveDate()PlanRulesgetPlanRules()Collection<Plan>getPlans()PriceListSetgetPriceLists()Collection<Product>getProducts()Currency[]getSupportedCurrencies()Unit[]getUnits()
-
-
-
Method Detail
-
getCatalogName
String getCatalogName()
- Returns:
- the
Catalogname
-
getEffectiveDate
Date getEffectiveDate()
- Returns:
- the date at which this version of
Catalogbecomes effective
-
getSupportedCurrencies
Currency[] getSupportedCurrencies()
- Returns:
- an array of supported
Currency
-
getProducts
Collection<Product> getProducts()
- Returns:
- an array of supported
Product
-
getUnits
Unit[] getUnits()
- Returns:
- an array of supported
Unit
-
getPlans
Collection<Plan> getPlans()
- Returns:
- an array of supported
Plan
-
getPlanRules
PlanRules getPlanRules()
- Returns:
- All the catalog rules
-
createOrFindPlan
Plan createOrFindPlan(PlanSpecifier spec, PlanPhasePriceOverridesWithCallContext overrides) throws CatalogApiException
- Parameters:
spec- the specification for thePlanto be usedoverrides- the price override for each phase and for a specific currency- Returns:
- the
Plan - Throws:
CatalogApiException- if not suchPlancan be found
-
findPlan
Plan findPlan(String name) throws CatalogApiException
- Parameters:
name- the name of the- Returns:
- the
Plan - Throws:
CatalogApiException- if not suchPlancan be found
-
findProduct
Product findProduct(String name) throws CatalogApiException
- Parameters:
name- the name of theProduct- Returns:
- the
Product - Throws:
CatalogApiException- if no suchProductexists
-
findPhase
PlanPhase findPhase(String name) throws CatalogApiException
- Parameters:
name- the name of thePlanPhase- Returns:
- the
PlanPhase - Throws:
CatalogApiException- if no suchPlanPhaseexists
-
getPriceLists
PriceListSet getPriceLists() throws CatalogApiException
- Returns:
- the set of
PriceList - Throws:
CatalogApiException
-
findPriceList
PriceList findPriceList(String name) throws CatalogApiException
- Parameters:
name- the name of thePriceList- Returns:
- the
PriceList - Throws:
CatalogApiException
-
getAvailableBasePlanListings
List<Listing> getAvailableBasePlanListings()
- Returns:
- All existing BASE
Plan
-
-