public class DefaultSubscriptionInternalApi extends SubscriptionApiBase implements SubscriptionBaseInternalApi
apiService, catalogService, clock, dao| Constructor and Description |
|---|
DefaultSubscriptionInternalApi(SubscriptionDao dao,
DefaultSubscriptionBaseApiService apiService,
org.killbill.clock.Clock clock,
CatalogService catalogService,
AddonUtils addonUtils,
NonEntityDao nonEntityDao) |
createSubscriptionForApiUse, createSubscriptionForApiUse, createSubscriptionsForApiUse@Inject public DefaultSubscriptionInternalApi(SubscriptionDao dao, DefaultSubscriptionBaseApiService apiService, org.killbill.clock.Clock clock, CatalogService catalogService, AddonUtils addonUtils, NonEntityDao nonEntityDao)
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 Pagination<SubscriptionBaseBundle> getBundles(Long offset, Long limit, InternalTenantContext context)
getBundles in interface SubscriptionBaseInternalApipublic Pagination<SubscriptionBaseBundle> searchBundles(String searchKey, Long offset, Long limit, InternalTenantContext context)
searchBundles in interface SubscriptionBaseInternalApipublic Iterable<UUID> getNonAOSubscriptionIdsForKey(String bundleKey, InternalTenantContext context)
getNonAOSubscriptionIdsForKey in interface SubscriptionBaseInternalApipublic static SubscriptionBaseBundle getActiveBundleForKeyNotException(List<SubscriptionBaseBundle> existingBundles, SubscriptionDao dao, org.killbill.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<org.killbill.billing.entitlement.api.EntitlementAOStatusDryRun> getDryRunChangePlanStatus(UUID subscriptionId, @Nullable String baseProductName, org.joda.time.DateTime requestedDate, InternalTenantContext context) throws SubscriptionBaseApiException
getDryRunChangePlanStatus in interface SubscriptionBaseInternalApiSubscriptionBaseApiExceptionpublic void updateExternalKey(UUID bundleId, String newExternalKey, InternalCallContext context)
updateExternalKey in interface SubscriptionBaseInternalApiCopyright © 2010-2014. All Rights Reserved.