public class SubscriptionApiBase
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected SubscriptionBaseApiService |
apiService |
protected org.killbill.clock.Clock |
clock |
protected SubscriptionDao |
dao |
| Constructor and Description |
|---|
SubscriptionApiBase(SubscriptionDao dao,
SubscriptionBaseApiService apiService,
org.killbill.clock.Clock clock) |
| Modifier and Type | Method and Description |
|---|---|
protected SubscriptionBaseBundle |
createBundleForAccount(java.util.UUID accountId,
java.lang.String bundleKey,
boolean renameCancelledBundleIfExist,
Catalog catalog,
CacheController<java.util.UUID,java.util.UUID> accountIdCacheController,
InternalCallContext context) |
protected DefaultSubscriptionBase |
createSubscriptionForApiUse(SubscriptionBase internalSubscription) |
protected DefaultSubscriptionBase |
createSubscriptionForApiUse(SubscriptionBuilder builder,
java.util.List<SubscriptionBaseEvent> events,
Catalog catalog,
InternalTenantContext context) |
protected java.util.List<DefaultSubscriptionBase> |
createSubscriptionsForApiUse(java.util.Collection<DefaultSubscriptionBase> internalSubscriptions) |
protected SubscriptionBaseBundle |
getActiveBundleForKey(java.lang.String bundleKey,
Catalog catalog,
InternalTenantContext context) |
protected SubscriptionBase |
getBaseSubscription(java.util.UUID bundleId,
Catalog catalog,
InternalTenantContext context) |
protected org.joda.time.DateTime |
getBundleStartDateWithSanity(java.util.UUID bundleId,
SubscriptionBase baseSubscription,
Plan plan,
org.joda.time.DateTime effectiveDate,
AddonUtils addonUtils,
InternalTenantContext context) |
protected java.util.List<DefaultSubscriptionBase> |
getSubscriptionsForBundle(java.util.UUID bundleId,
DryRunArguments dryRunArguments,
Catalog catalog,
AddonUtils addonUtils,
TenantContext tenantContext,
InternalTenantContext context) |
protected final SubscriptionDao dao
protected final SubscriptionBaseApiService apiService
protected final org.killbill.clock.Clock clock
public SubscriptionApiBase(SubscriptionDao dao, SubscriptionBaseApiService apiService, org.killbill.clock.Clock clock)
protected SubscriptionBaseBundle getActiveBundleForKey(java.lang.String bundleKey, Catalog catalog, InternalTenantContext context) throws CatalogApiException
CatalogApiExceptionprotected SubscriptionBase getBaseSubscription(java.util.UUID bundleId, Catalog catalog, InternalTenantContext context) throws SubscriptionBaseApiException, CatalogApiException
protected java.util.List<DefaultSubscriptionBase> getSubscriptionsForBundle(java.util.UUID bundleId, @Nullable DryRunArguments dryRunArguments, Catalog catalog, AddonUtils addonUtils, TenantContext tenantContext, InternalTenantContext context) throws SubscriptionBaseApiException, CatalogApiException
protected org.joda.time.DateTime getBundleStartDateWithSanity(java.util.UUID bundleId,
@Nullable
SubscriptionBase baseSubscription,
Plan plan,
org.joda.time.DateTime effectiveDate,
AddonUtils addonUtils,
InternalTenantContext context)
throws SubscriptionBaseApiException,
CatalogApiException
protected SubscriptionBaseBundle createBundleForAccount(java.util.UUID accountId, java.lang.String bundleKey, boolean renameCancelledBundleIfExist, Catalog catalog, CacheController<java.util.UUID,java.util.UUID> accountIdCacheController, InternalCallContext context) throws SubscriptionBaseApiException
SubscriptionBaseApiExceptionprotected java.util.List<DefaultSubscriptionBase> createSubscriptionsForApiUse(java.util.Collection<DefaultSubscriptionBase> internalSubscriptions)
protected DefaultSubscriptionBase createSubscriptionForApiUse(SubscriptionBase internalSubscription)
protected DefaultSubscriptionBase createSubscriptionForApiUse(SubscriptionBuilder builder, java.util.List<SubscriptionBaseEvent> events, Catalog catalog, InternalTenantContext context) throws CatalogApiException
CatalogApiExceptionCopyright © 2010-2018. All Rights Reserved.