public class StandaloneCatalog extends org.killbill.xmlloader.ValidatingConfig<StandaloneCatalog> implements StaticCatalog
| Modifier | Constructor and Description |
|---|---|
|
StandaloneCatalog() |
protected |
StandaloneCatalog(Date effectiveDate) |
public StandaloneCatalog()
protected StandaloneCatalog(Date effectiveDate)
public String getCatalogName()
getCatalogName in interface StaticCatalogpublic Date getEffectiveDate()
getEffectiveDate in interface StaticCatalogpublic BillingMode getRecurringBillingMode()
getRecurringBillingMode in interface StaticCatalogpublic Collection<Product> getCurrentProducts()
getCurrentProducts in interface StaticCatalogpublic CatalogEntityCollection<Product> getCatalogEntityCollectionProduct()
public DefaultUnit[] getCurrentUnits()
getCurrentUnits in interface StaticCatalogpublic Currency[] getCurrentSupportedCurrencies()
getCurrentSupportedCurrencies in interface StaticCatalogpublic Collection<Plan> getCurrentPlans()
getCurrentPlans in interface StaticCatalogpublic CatalogEntityCollection<Plan> getCatalogEntityCollectionPlan()
public boolean isTemplateCatalog()
public URI getCatalogURI()
public DefaultPlanRules getPlanRules()
public DefaultPriceList findCurrentPriceList(String priceListName) throws CatalogApiException
CatalogApiExceptionpublic DefaultPriceListSet getPriceLists()
public Plan createOrFindCurrentPlan(PlanSpecifier spec, PlanPhasePriceOverridesWithCallContext unused) throws CatalogApiException
createOrFindCurrentPlan in interface StaticCatalogCatalogApiExceptionpublic DefaultPlan findCurrentPlan(String name) throws CatalogApiException
findCurrentPlan in interface StaticCatalogCatalogApiExceptionpublic Product findCurrentProduct(String name) throws CatalogApiException
findCurrentProduct in interface StaticCatalogCatalogApiExceptionpublic PlanPhase findCurrentPhase(String name) throws CatalogApiException
findCurrentPhase in interface StaticCatalogCatalogApiExceptionpublic PriceList findCurrentPricelist(String name) throws CatalogApiException
findCurrentPricelist in interface StaticCatalogCatalogApiExceptionpublic BillingActionPolicy planChangePolicy(PlanPhaseSpecifier from, PlanSpecifier to) throws CatalogApiException
planChangePolicy in interface StaticCatalogCatalogApiExceptionpublic PlanAlignmentChange planChangeAlignment(PlanPhaseSpecifier from, PlanSpecifier to) throws CatalogApiException
planChangeAlignment in interface StaticCatalogCatalogApiExceptionpublic BillingActionPolicy planCancelPolicy(PlanPhaseSpecifier planPhase) throws CatalogApiException
planCancelPolicy in interface StaticCatalogCatalogApiExceptionpublic PlanAlignmentCreate planCreateAlignment(PlanSpecifier specifier) throws CatalogApiException
planCreateAlignment in interface StaticCatalogCatalogApiExceptionpublic BillingAlignment billingAlignment(PlanPhaseSpecifier planPhase) throws CatalogApiException
billingAlignment in interface StaticCatalogCatalogApiExceptionpublic PlanChangeResult planChange(PlanPhaseSpecifier from, PlanSpecifier to) throws CatalogApiException
planChange in interface StaticCatalogCatalogApiExceptionpublic org.killbill.xmlloader.ValidationErrors validate(StandaloneCatalog catalog, org.killbill.xmlloader.ValidationErrors errors)
validate in class org.killbill.xmlloader.ValidatingConfig<StandaloneCatalog>public void initialize(StandaloneCatalog catalog, URI sourceURI)
initialize in class org.killbill.xmlloader.ValidatingConfig<StandaloneCatalog>public boolean compliesWithLimits(String phaseName, String unit, double value) throws CatalogApiException
compliesWithLimits in interface StaticCatalogCatalogApiExceptionpublic StandaloneCatalog setProducts(Iterable<Product> products)
public StandaloneCatalog setSupportedCurrencies(Currency[] supportedCurrencies)
public StandaloneCatalog setPlans(Iterable<Plan> plans)
public StandaloneCatalog setCatalogName(String catalogName)
public StandaloneCatalog setEffectiveDate(Date effectiveDate)
public StandaloneCatalog setRecurringBillingMode(BillingMode recurringBillingMode)
public StandaloneCatalog setPlanRules(DefaultPlanRules planRules)
public StandaloneCatalog setPriceLists(DefaultPriceListSet priceLists)
public StandaloneCatalog setUnits(DefaultUnit[] units)
public boolean canCreatePlan(PlanSpecifier specifier) throws CatalogApiException
canCreatePlan in interface StaticCatalogCatalogApiExceptionpublic List<Listing> getAvailableAddOnListings(String baseProductName, @Nullable String priceListName)
getAvailableAddOnListings in interface StaticCatalogpublic List<Listing> getAvailableBasePlanListings()
getAvailableBasePlanListings in interface StaticCatalogCopyright © 2010-2016. All Rights Reserved.