public class DefaultSubscriptionInternalApi extends SubscriptionApiBase implements SubscriptionBaseInternalApi
apiService, catalogService, clock, dao| Constructor and Description |
|---|
DefaultSubscriptionInternalApi(SubscriptionDao dao,
DefaultSubscriptionBaseApiService apiService,
com.ning.billing.clock.Clock clock,
CatalogService catalogService,
AddonUtils addonUtils) |
createSubscriptionForApiUse, createSubscriptionForApiUse, createSubscriptionsForApiUse@Inject public DefaultSubscriptionInternalApi(SubscriptionDao dao, DefaultSubscriptionBaseApiService apiService, com.ning.billing.clock.Clock clock, CatalogService catalogService, AddonUtils addonUtils)
public SubscriptionBase createSubscription(UUID bundleId, PlanPhaseSpecifier spec, org.joda.time.DateTime requestedDateWithMs, InternalCallContext context) throws SubscriptionBaseApiException
createSubscription in interface SubscriptionBaseInternalApiSubscriptionBaseApiExceptionpublic SubscriptionBaseBundle createBundleForAccount(UUID accountId, String bundleKey, InternalCallContext context) throws SubscriptionBaseApiException
createBundleForAccount in interface SubscriptionBaseInternalApiSubscriptionBaseApiExceptionpublic List<SubscriptionBaseBundle> getBundlesForAccountAndKey(UUID accountId, String bundleKey, InternalTenantContext context) throws SubscriptionBaseApiException
getBundlesForAccountAndKey in interface SubscriptionBaseInternalApiSubscriptionBaseApiExceptionpublic List<SubscriptionBaseBundle> getBundlesForAccount(UUID accountId, InternalTenantContext context)
getBundlesForAccount in interface SubscriptionBaseInternalApipublic List<SubscriptionBaseBundle> getBundlesForKey(String bundleKey, InternalTenantContext context)
getBundlesForKey in interface SubscriptionBaseInternalApipublic SubscriptionBaseBundle getActiveBundleForKey(String bundleKey, InternalTenantContext context) throws SubscriptionBaseApiException
getActiveBundleForKey in interface SubscriptionBaseInternalApiSubscriptionBaseApiExceptionpublic static SubscriptionBaseBundle getActiveBundleForKeyNotException(List<SubscriptionBaseBundle> existingBundles, SubscriptionDao dao, com.ning.billing.clock.Clock clock, InternalTenantContext context)
public List<SubscriptionBase> getSubscriptionsForBundle(UUID bundleId, InternalTenantContext context)
getSubscriptionsForBundle in interface SubscriptionBaseInternalApipublic Map<UUID,List<SubscriptionBase>> getSubscriptionsForAccount(InternalTenantContext context)
getSubscriptionsForAccount in interface SubscriptionBaseInternalApipublic SubscriptionBase getBaseSubscription(UUID bundleId, InternalTenantContext context) throws SubscriptionBaseApiException
getBaseSubscription in interface SubscriptionBaseInternalApiSubscriptionBaseApiExceptionpublic SubscriptionBase getSubscriptionFromId(UUID id, InternalTenantContext context) throws SubscriptionBaseApiException
getSubscriptionFromId in interface SubscriptionBaseInternalApiSubscriptionBaseApiExceptionpublic SubscriptionBaseBundle getBundleFromId(UUID id, InternalTenantContext context) throws SubscriptionBaseApiException
getBundleFromId in interface SubscriptionBaseInternalApiSubscriptionBaseApiExceptionpublic UUID getAccountIdFromSubscriptionId(UUID subscriptionId, InternalTenantContext context) throws SubscriptionBaseApiException
getAccountIdFromSubscriptionId in interface SubscriptionBaseInternalApiSubscriptionBaseApiExceptionpublic void setChargedThroughDate(UUID subscriptionId, org.joda.time.DateTime chargedThruDate, InternalCallContext context)
setChargedThroughDate in interface SubscriptionBaseInternalApipublic List<EffectiveSubscriptionInternalEvent> getAllTransitions(SubscriptionBase subscription, InternalTenantContext context)
getAllTransitions in interface SubscriptionBaseInternalApipublic List<EffectiveSubscriptionInternalEvent> getBillingTransitions(SubscriptionBase subscription, InternalTenantContext context)
getBillingTransitions in interface SubscriptionBaseInternalApipublic org.joda.time.DateTime getNextBillingDate(UUID accountId, InternalTenantContext context)
getNextBillingDate in interface SubscriptionBaseInternalApipublic List<com.ning.billing.entitlement.api.EntitlementAOStatusDryRun> getDryRunChangePlanStatus(UUID subscriptionId, @Nullable String baseProductName, org.joda.time.DateTime requestedDate, InternalTenantContext context) throws SubscriptionBaseApiException
getDryRunChangePlanStatus in interface SubscriptionBaseInternalApiSubscriptionBaseApiExceptionCopyright © 2010-2013. All Rights Reserved.