Package org.killbill.billing.catalog.api
Interface Plan
-
- All Superinterfaces:
CatalogEntity
- All Known Subinterfaces:
MigrationPlan
public interface Plan extends CatalogEntity
The interfacePlan
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.joda.time.DateTimedateOfFirstRecurringNonZeroCharge(org.joda.time.DateTime subscriptionStartDate, PhaseType intialPhaseType)PlanPhasefindPhase(String name)PlanPhase[]getAllPhases()StaticCataloggetCatalog()DategetEffectiveDateForExistingSubscriptions()PlanPhasegetFinalPhase()Iterator<PlanPhase>getInitialPhaseIterator()PlanPhase[]getInitialPhases()intgetPlansAllowedInBundle()PriceListgetPriceList()ProductgetProduct()BillingModegetRecurringBillingMode()BillingPeriodgetRecurringBillingPeriod()-
Methods inherited from interface org.killbill.billing.catalog.api.CatalogEntity
getName, getPrettyName
-
-
-
-
Method Detail
-
getCatalog
StaticCatalog getCatalog()
- Returns:
- the catalog this plan belongs to
-
getRecurringBillingMode
BillingMode getRecurringBillingMode()
- Returns:
- the recurring billing mode for this catalog
-
getInitialPhases
PlanPhase[] getInitialPhases()
- Returns:
- an array of
PlanPhase
-
getProduct
Product getProduct()
- Returns:
- the
Productassociated with thatPlan
-
getPriceList
PriceList getPriceList()
- Returns:
- the in which that
Planis defined
-
getInitialPhaseIterator
Iterator<PlanPhase> getInitialPhaseIterator()
- Returns:
- an iterator through the
PlanPhase
-
getFinalPhase
PlanPhase getFinalPhase()
- Returns:
- the final
PlanPhase
-
getRecurringBillingPeriod
BillingPeriod getRecurringBillingPeriod()
- Returns:
- the
BillingPeriod
-
getPlansAllowedInBundle
int getPlansAllowedInBundle()
- Returns:
- the number of instance of subscriptions in a bundle with that
Plan
-
getAllPhases
PlanPhase[] getAllPhases()
- Returns:
- an array of
PlanPhase
-
getEffectiveDateForExistingSubscriptions
Date getEffectiveDateForExistingSubscriptions()
- Returns:
- the date for which existing subscriptions become effective with that
Plan
-
findPhase
PlanPhase findPhase(String name) throws CatalogApiException
- Parameters:
name- the name of thePlanPhase- Returns:
- the
PlanPhase - Throws:
CatalogApiException- if there is not suchPlanPhase
-
dateOfFirstRecurringNonZeroCharge
org.joda.time.DateTime dateOfFirstRecurringNonZeroCharge(org.joda.time.DateTime subscriptionStartDate, PhaseType intialPhaseType)- Parameters:
subscriptionStartDate- the subscriptionStartDateintialPhaseType- the type of the initial phase- Returns:
- the date at which we see the first recurring non zero charge
-
-