public class DefaultPlan extends org.killbill.xmlloader.ValidatingConfig<StandaloneCatalog> implements Plan, Externalizable
| Constructor and Description |
|---|
DefaultPlan() |
DefaultPlan(String planName,
DefaultPlan in,
PlanPhasePriceOverride[] overrides) |
public DefaultPlan()
public DefaultPlan(String planName, DefaultPlan in, PlanPhasePriceOverride[] overrides)
public Date getEffectiveDateForExistingSubscriptions()
getEffectiveDateForExistingSubscriptions in interface Planpublic void setEffectiveDateForExistingSubscriptions(Date effectiveDateForExistingSubscriptions)
public StaticCatalog getCatalog()
getCatalog in interface Planpublic BillingMode getRecurringBillingMode()
getRecurringBillingMode in interface Planpublic DefaultPlan setRecurringBillingMode(BillingMode billingMode)
public DefaultPlanPhase[] getInitialPhases()
getInitialPhases in interface Planpublic DefaultPlan setInitialPhases(DefaultPlanPhase[] phases)
public Product getProduct()
getProduct in interface Planpublic DefaultPlan setProduct(Product product)
public DefaultPlan setPriceListName(String priceListName)
public String getName()
getName in interface CatalogEntitypublic DefaultPlan setName(String name)
public String getPrettyName()
getPrettyName in interface CatalogEntitypublic DefaultPlan setPrettyName(String prettyName)
public DefaultPlanPhase getFinalPhase()
getFinalPhase in interface Planpublic DefaultPlan setFinalPhase(DefaultPlanPhase finalPhase)
public PlanPhase[] getAllPhases()
getAllPhases in interface Planpublic PlanPhase findPhase(String name) throws CatalogApiException
findPhase in interface PlanCatalogApiExceptionpublic PriceList getPriceList()
getPriceList in interface Planpublic BillingPeriod getRecurringBillingPeriod()
getRecurringBillingPeriod in interface Planpublic int getPlansAllowedInBundle()
getPlansAllowedInBundle in interface Planpublic String getPriceListName()
public DefaultPlan setPlansAllowedInBundle(Integer plansAllowedInBundle)
public Iterator<PlanPhase> getInitialPhaseIterator()
getInitialPhaseIterator in interface Planpublic void initialize(StandaloneCatalog catalog)
initialize in class org.killbill.xmlloader.ValidatingConfig<StandaloneCatalog>public org.killbill.xmlloader.ValidationErrors validate(StandaloneCatalog catalog, org.killbill.xmlloader.ValidationErrors errors)
validate in class org.killbill.xmlloader.ValidatingConfig<StandaloneCatalog>public org.joda.time.DateTime dateOfFirstRecurringNonZeroCharge(org.joda.time.DateTime subscriptionStartDate,
PhaseType initialPhaseType)
dateOfFirstRecurringNonZeroCharge in interface Planpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundExceptionpublic void writeExternal(ObjectOutput oo) throws IOException
writeExternal in interface ExternalizableIOExceptionCopyright © 2010–2021. All rights reserved.