public class DefaultPlan extends org.killbill.xmlloader.ValidatingConfig<StandaloneCatalog> implements Plan
| 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 DefaultPlanPhase[] getInitialPhases()
getInitialPhases in interface Planpublic Product getProduct()
getProduct in interface Planpublic String getPriceListName()
getPriceListName in interface Planpublic String getName()
getName in interface CatalogEntitypublic DefaultPlanPhase getFinalPhase()
getFinalPhase in interface Planpublic PlanPhase[] getAllPhases()
getAllPhases in interface Planpublic PlanPhase findPhase(String name) throws CatalogApiException
findPhase in interface PlanCatalogApiExceptionpublic BillingPeriod getRecurringBillingPeriod()
getRecurringBillingPeriod in interface Planpublic int getPlansAllowedInBundle()
getPlansAllowedInBundle in interface Planpublic Iterator<PlanPhase> getInitialPhaseIterator()
getInitialPhaseIterator in interface Planpublic void initialize(StandaloneCatalog catalog, URI sourceURI)
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 void setEffectiveDateForExistingSubscriptions(Date effectiveDateForExistingSubscriptions)
public DefaultPlan setName(String name)
public DefaultPlan setFinalPhase(DefaultPlanPhase finalPhase)
public DefaultPlan setProduct(Product product)
public DefaultPlan setPriceListName(String priceListName)
public DefaultPlan setInitialPhases(DefaultPlanPhase[] phases)
public DefaultPlan setPlansAllowedInBundle(Integer plansAllowedInBundle)
public org.joda.time.DateTime dateOfFirstRecurringNonZeroCharge(org.joda.time.DateTime subscriptionStartDate,
PhaseType initialPhaseType)
dateOfFirstRecurringNonZeroCharge in interface PlanCopyright © 2010-2016. All Rights Reserved.