public class DefaultPlanPhase extends org.killbill.xmlloader.ValidatingConfig<StandaloneCatalog> implements PlanPhase, Externalizable
| Constructor and Description |
|---|
DefaultPlanPhase() |
DefaultPlanPhase(Plan parentPlan,
DefaultPlanPhase in,
PlanPhasePriceOverride override) |
public DefaultPlanPhase()
public DefaultPlanPhase(Plan parentPlan, DefaultPlanPhase in, @Nullable PlanPhasePriceOverride override)
public static String planName(String phaseName) throws CatalogApiException
CatalogApiExceptionpublic StaticCatalog getCatalog()
getCatalog in interface PlanPhasepublic PhaseType getPhaseType()
getPhaseType in interface PlanPhasepublic boolean compliesWithLimits(String unit, double value)
compliesWithLimits in interface PlanPhasepublic Recurring getRecurring()
getRecurring in interface PlanPhasepublic String getName()
getName in interface CatalogEntitypublic String getPrettyName()
getPrettyName in interface CatalogEntitypublic Duration getDuration()
getDuration in interface PlanPhasepublic org.killbill.xmlloader.ValidationErrors validate(StandaloneCatalog catalog, org.killbill.xmlloader.ValidationErrors errors)
validate in class org.killbill.xmlloader.ValidatingConfig<StandaloneCatalog>public void initialize(StandaloneCatalog root)
initialize in class org.killbill.xmlloader.ValidatingConfig<StandaloneCatalog>public DefaultPlanPhase setPrettyName(String prettyName)
public DefaultPlanPhase setFixed(DefaultFixed fixed)
public DefaultPlanPhase setRecurring(DefaultRecurring recurring)
public DefaultPlanPhase setUsages(DefaultUsage[] usages)
public DefaultPlanPhase setPhaseType(PhaseType cohort)
public DefaultPlanPhase setDuration(DefaultDuration duration)
public DefaultPlanPhase setPlan(Plan plan)
public 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.