com.ning.billing.subscription.api.user
Class DefaultSubscriptionBaseApiService
java.lang.Object
com.ning.billing.subscription.api.user.DefaultSubscriptionBaseApiService
- All Implemented Interfaces:
- SubscriptionBaseApiService
- Direct Known Subclasses:
- RepairSubscriptionApiService
public class DefaultSubscriptionBaseApiService
- extends Object
- implements SubscriptionBaseApiService
|
Method Summary |
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)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultSubscriptionBaseApiService
@Inject
public DefaultSubscriptionBaseApiService(com.ning.billing.clock.Clock clock,
SubscriptionDao dao,
CatalogService catalogService,
PlanAligner planAligner,
AddonUtils addonUtils,
InternalCallContextFactory internalCallContextFactory)
createPlan
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
- Specified by:
createPlan in interface SubscriptionBaseApiService
- Throws:
SubscriptionBaseApiException
recreatePlan
@Deprecated
public boolean recreatePlan(DefaultSubscriptionBase subscription,
PlanPhaseSpecifier spec,
org.joda.time.DateTime requestedDateWithMs,
CallContext context)
throws SubscriptionBaseApiException
- Deprecated.
- Specified by:
recreatePlan in interface SubscriptionBaseApiService
- Throws:
SubscriptionBaseApiException
cancel
public boolean cancel(DefaultSubscriptionBase subscription,
CallContext context)
throws SubscriptionBaseApiException
- Specified by:
cancel in interface SubscriptionBaseApiService
- Throws:
SubscriptionBaseApiException
cancelWithRequestedDate
public boolean cancelWithRequestedDate(DefaultSubscriptionBase subscription,
org.joda.time.DateTime requestedDateWithMs,
CallContext context)
throws SubscriptionBaseApiException
- Specified by:
cancelWithRequestedDate in interface SubscriptionBaseApiService
- Throws:
SubscriptionBaseApiException
cancelWithPolicy
public boolean cancelWithPolicy(DefaultSubscriptionBase subscription,
BillingActionPolicy policy,
CallContext context)
throws SubscriptionBaseApiException
- Specified by:
cancelWithPolicy in interface SubscriptionBaseApiService
- Throws:
SubscriptionBaseApiException
uncancel
public boolean uncancel(DefaultSubscriptionBase subscription,
CallContext context)
throws SubscriptionBaseApiException
- Specified by:
uncancel in interface SubscriptionBaseApiService
- Throws:
SubscriptionBaseApiException
changePlan
public boolean changePlan(DefaultSubscriptionBase subscription,
String productName,
BillingPeriod term,
String priceList,
CallContext context)
throws SubscriptionBaseApiException
- Specified by:
changePlan in interface SubscriptionBaseApiService
- Throws:
SubscriptionBaseApiException
changePlanWithRequestedDate
public boolean changePlanWithRequestedDate(DefaultSubscriptionBase subscription,
String productName,
BillingPeriod term,
String priceList,
org.joda.time.DateTime requestedDateWithMs,
CallContext context)
throws SubscriptionBaseApiException
- Specified by:
changePlanWithRequestedDate in interface SubscriptionBaseApiService
- Throws:
SubscriptionBaseApiException
changePlanWithPolicy
public boolean changePlanWithPolicy(DefaultSubscriptionBase subscription,
String productName,
BillingPeriod term,
String priceList,
BillingActionPolicy policy,
CallContext context)
throws SubscriptionBaseApiException
- Specified by:
changePlanWithPolicy in interface SubscriptionBaseApiService
- Throws:
SubscriptionBaseApiException
cancelAddOnsIfRequired
public int cancelAddOnsIfRequired(DefaultSubscriptionBase baseSubscription,
org.joda.time.DateTime effectiveDate,
InternalCallContext context)
- Specified by:
cancelAddOnsIfRequired in interface SubscriptionBaseApiService
Copyright © 2010-2013. All Rights Reserved.