public class StandaloneCatalog extends org.killbill.xmlloader.ValidatingConfig<StandaloneCatalog> implements StaticCatalog, Externalizable
| Modifier | Constructor and Description |
|---|---|
|
StandaloneCatalog() |
protected |
StandaloneCatalog(Date effectiveDate) |
public StandaloneCatalog()
protected StandaloneCatalog(Date effectiveDate)
public String getCatalogName()
getCatalogName in interface StaticCatalogpublic StandaloneCatalog setCatalogName(String catalogName)
public Date getEffectiveDate()
getEffectiveDate in interface StaticCatalogpublic StandaloneCatalog setEffectiveDate(Date effectiveDate)
public Collection<Product> getProducts()
getProducts in interface StaticCatalogpublic StandaloneCatalog setProducts(Iterable<Product> products)
public CatalogEntityCollection<Product> getCatalogEntityCollectionProduct()
public Unit[] getUnits()
getUnits in interface StaticCatalogpublic StandaloneCatalog setUnits(DefaultUnit[] units)
public Currency[] getSupportedCurrencies()
getSupportedCurrencies in interface StaticCatalogpublic StandaloneCatalog setSupportedCurrencies(Currency[] supportedCurrencies)
public Collection<Plan> getPlans()
getPlans in interface StaticCatalogpublic StandaloneCatalog setPlans(Iterable<Plan> plans)
public CatalogEntityCollection<Plan> getPlansMap()
public boolean isTemplateCatalog()
public org.killbill.billing.catalog.api.rules.PlanRules getPlanRules()
getPlanRules in interface StaticCatalogpublic StandaloneCatalog setPlanRules(DefaultPlanRules planRules)
public DefaultPriceListSet getPriceLists()
getPriceLists in interface StaticCatalogpublic StandaloneCatalog setPriceLists(DefaultPriceListSet priceLists)
public Plan createOrFindPlan(PlanSpecifier spec, PlanPhasePriceOverridesWithCallContext unused) throws CatalogApiException
createOrFindPlan in interface StaticCatalogCatalogApiExceptionpublic DefaultPlan findPlan(String name) throws CatalogApiException
findPlan in interface StaticCatalogCatalogApiExceptionpublic Product findProduct(String name) throws CatalogApiException
findProduct in interface StaticCatalogCatalogApiExceptionpublic PlanPhase findPhase(String name) throws CatalogApiException
findPhase in interface StaticCatalogCatalogApiExceptionpublic PriceList findPriceList(String name) throws CatalogApiException
findPriceList 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)
initialize in class org.killbill.xmlloader.ValidatingConfig<StandaloneCatalog>public BillingMode getRecurringBillingMode()
public StandaloneCatalog setRecurringBillingMode(BillingMode recurringBillingMode)
public List<Listing> getAvailableAddOnListings(String baseProductName, @Nullable String priceListName)
getAvailableAddOnListings in interface StaticCatalogpublic List<Listing> getAvailableBasePlanListings()
getAvailableBasePlanListings in interface StaticCatalogpublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundExceptionCopyright © 2010–2021. All rights reserved.