public class DefaultSubscriptionBaseApiService extends Object implements SubscriptionBaseApiService
| Constructor and Description |
|---|
DefaultSubscriptionBaseApiService(com.ning.billing.clock.Clock clock,
SubscriptionDao dao,
CatalogService catalogService,
PlanAligner planAligner,
AddonUtils addonUtils,
InternalCallContextFactory internalCallContextFactory) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
cancel(DefaultSubscriptionBase subscription,
CallContext context) |
int |
cancelAddOnsIfRequired(DefaultSubscriptionBase baseSubscription,
org.joda.time.DateTime effectiveDate,
InternalCallContext context) |
boolean |
cancelWithPolicy(DefaultSubscriptionBase subscription,
BillingActionPolicy policy,
CallContext context) |
boolean |
cancelWithRequestedDate(DefaultSubscriptionBase subscription,
org.joda.time.DateTime requestedDateWithMs,
CallContext context) |
boolean |
changePlan(DefaultSubscriptionBase subscription,
String productName,
BillingPeriod term,
String priceList,
CallContext context) |
boolean |
changePlanWithPolicy(DefaultSubscriptionBase subscription,
String productName,
BillingPeriod term,
String priceList,
BillingActionPolicy policy,
CallContext context) |
boolean |
changePlanWithRequestedDate(DefaultSubscriptionBase subscription,
String productName,
BillingPeriod term,
String priceList,
org.joda.time.DateTime requestedDateWithMs,
CallContext context) |
DefaultSubscriptionBase |
createPlan(SubscriptionBuilder builder,
Plan plan,
PhaseType initialPhase,
String realPriceList,
org.joda.time.DateTime requestedDate,
org.joda.time.DateTime effectiveDate,
org.joda.time.DateTime processedDate,
CallContext context) |
boolean |
recreatePlan(DefaultSubscriptionBase subscription,
PlanPhaseSpecifier spec,
org.joda.time.DateTime requestedDateWithMs,
CallContext context)
Deprecated.
|
boolean |
uncancel(DefaultSubscriptionBase subscription,
CallContext context) |
@Inject
public DefaultSubscriptionBaseApiService(com.ning.billing.clock.Clock clock,
SubscriptionDao dao,
CatalogService catalogService,
PlanAligner planAligner,
AddonUtils addonUtils,
InternalCallContextFactory internalCallContextFactory)
public DefaultSubscriptionBase createPlan(SubscriptionBuilder builder, Plan plan, PhaseType initialPhase, String realPriceList, org.joda.time.DateTime requestedDate, org.joda.time.DateTime effectiveDate, org.joda.time.DateTime processedDate, CallContext context) throws SubscriptionBaseApiException
createPlan in interface SubscriptionBaseApiServiceSubscriptionBaseApiException@Deprecated public boolean recreatePlan(DefaultSubscriptionBase subscription, PlanPhaseSpecifier spec, org.joda.time.DateTime requestedDateWithMs, CallContext context) throws SubscriptionBaseApiException
recreatePlan in interface SubscriptionBaseApiServiceSubscriptionBaseApiExceptionpublic boolean cancel(DefaultSubscriptionBase subscription, CallContext context) throws SubscriptionBaseApiException
cancel in interface SubscriptionBaseApiServiceSubscriptionBaseApiExceptionpublic boolean cancelWithRequestedDate(DefaultSubscriptionBase subscription, org.joda.time.DateTime requestedDateWithMs, CallContext context) throws SubscriptionBaseApiException
cancelWithRequestedDate in interface SubscriptionBaseApiServiceSubscriptionBaseApiExceptionpublic boolean cancelWithPolicy(DefaultSubscriptionBase subscription, BillingActionPolicy policy, CallContext context) throws SubscriptionBaseApiException
cancelWithPolicy in interface SubscriptionBaseApiServiceSubscriptionBaseApiExceptionpublic boolean uncancel(DefaultSubscriptionBase subscription, CallContext context) throws SubscriptionBaseApiException
uncancel in interface SubscriptionBaseApiServiceSubscriptionBaseApiExceptionpublic boolean changePlan(DefaultSubscriptionBase subscription, String productName, BillingPeriod term, String priceList, CallContext context) throws SubscriptionBaseApiException
changePlan in interface SubscriptionBaseApiServiceSubscriptionBaseApiExceptionpublic boolean changePlanWithRequestedDate(DefaultSubscriptionBase subscription, String productName, BillingPeriod term, String priceList, org.joda.time.DateTime requestedDateWithMs, CallContext context) throws SubscriptionBaseApiException
changePlanWithRequestedDate in interface SubscriptionBaseApiServiceSubscriptionBaseApiExceptionpublic boolean changePlanWithPolicy(DefaultSubscriptionBase subscription, String productName, BillingPeriod term, String priceList, BillingActionPolicy policy, CallContext context) throws SubscriptionBaseApiException
changePlanWithPolicy in interface SubscriptionBaseApiServiceSubscriptionBaseApiExceptionpublic int cancelAddOnsIfRequired(DefaultSubscriptionBase baseSubscription, org.joda.time.DateTime effectiveDate, InternalCallContext context)
cancelAddOnsIfRequired in interface SubscriptionBaseApiServiceCopyright © 2010-2013. All Rights Reserved.