Package com.chargebee.v4.services
Class SubscriptionService
java.lang.Object
com.chargebee.v4.services.BaseService<SubscriptionService>
com.chargebee.v4.services.SubscriptionService
-
Field Summary
Fields inherited from class com.chargebee.v4.services.BaseService
client, options -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddChargeAtTermEnd(String subscriptionId, SubscriptionAddChargeAtTermEndParams params) cancel(String subscriptionId, SubscriptionCancelParams params) cancelForItems(String subscriptionId) cancelForItems(String subscriptionId, SubscriptionCancelForItemsParams params) changeTermEnd(String subscriptionId, SubscriptionChangeTermEndParams params) chargeAddonAtTermEnd(String subscriptionId, SubscriptionChargeAddonAtTermEndParams params) chargeFutureRenewals(String subscriptionId) chargeFutureRenewals(String subscriptionId, SubscriptionChargeFutureRenewalsParams params) contractTermsForSubscription(String subscriptionId) contractTermsForSubscription(String subscriptionId, ContractTermsForSubscriptionParams params) create(SubscriptionCreateParams params) createForCustomer(String customerId, SubscriptionCreateForCustomerParams params) createWithItems(String customerId) createWithItems(String customerId, SubscriptionCreateWithItemsParams params) editAdvanceInvoiceSchedule(String subscriptionId) editAdvanceInvoiceSchedule(String subscriptionId, SubscriptionEditAdvanceInvoiceScheduleParams params) importContractTerm(String subscriptionId) importContractTerm(String subscriptionId, SubscriptionImportContractTermParams params) importForCustomer(String customerId, SubscriptionImportForCustomerParams params) importForItems(String customerId, SubscriptionImportForItemsParams params) importUnbilledCharges(String subscriptionId) importUnbilledCharges(String subscriptionId, SubscriptionImportUnbilledChargesParams params) list()list(SubscriptionListParams params) listDiscounts(String subscriptionId) listDiscounts(String subscriptionId, SubscriptionListDiscountsParams params) move(String subscriptionId, SubscriptionMoveParams params) overrideBillingProfile(String subscriptionId) overrideBillingProfile(String subscriptionId, SubscriptionOverrideBillingProfileParams params) pause(String subscriptionId, SubscriptionPauseParams params) reactivate(String subscriptionId) reactivate(String subscriptionId, SubscriptionReactivateParams params) regenerateInvoice(String subscriptionId) regenerateInvoice(String subscriptionId, SubscriptionRegenerateInvoiceParams params) removeAdvanceInvoiceSchedule(String subscriptionId) removeAdvanceInvoiceSchedule(String subscriptionId, SubscriptionRemoveAdvanceInvoiceScheduleParams params) removeCoupons(String subscriptionId) removeCoupons(String subscriptionId, SubscriptionRemoveCouponsParams params) removeScheduledCancellation(String subscriptionId) removeScheduledCancellation(String subscriptionId, SubscriptionRemoveScheduledCancellationParams params) removeScheduledChanges(String subscriptionId) removeScheduledPause(String subscriptionId) removeScheduledResumption(String subscriptionId) resume(String subscriptionId, SubscriptionResumeParams params) retrieveAdvanceInvoiceSchedule(String subscriptionId) retrieveWithScheduledChanges(String subscriptionId) subscriptionsForCustomer(String customerId) subscriptionsForCustomer(String customerId, SubscriptionsForCustomerParams params) update(String subscriptionId, SubscriptionUpdateParams params) updateForItems(String subscriptionId) updateForItems(String subscriptionId, SubscriptionUpdateForItemsParams params) withOptions(RequestOptions options) Apply per-request options for this service instance.Methods inherited from class com.chargebee.v4.services.BaseService
buildPathWithParams, clientForBuilders, clientWithOptions, get, getAsync, getMergedHeaders, getWithSubDomain, header, headers, options, parseResponse, post, postAsync, postJson, postJsonAsync, postJsonWithSubDomain, postWithSubDomain
-
Constructor Details
-
SubscriptionService
-
-
Method Details
-
withOptions
Apply per-request options for this service instance. Users can chain .withOptions or .options to set headers and other options.- Overrides:
withOptionsin classBaseService<SubscriptionService>
-
removeAdvanceInvoiceSchedule
public SubscriptionRemoveAdvanceInvoiceScheduleResponse removeAdvanceInvoiceSchedule(String subscriptionId, SubscriptionRemoveAdvanceInvoiceScheduleParams params) throws ChargebeeException - Throws:
ChargebeeException
-
removeAdvanceInvoiceSchedule
public SubscriptionRemoveAdvanceInvoiceScheduleResponse removeAdvanceInvoiceSchedule(String subscriptionId) throws ChargebeeException - Throws:
ChargebeeException
-
updateForItems
public SubscriptionUpdateForItemsResponse updateForItems(String subscriptionId, SubscriptionUpdateForItemsParams params) throws ChargebeeException - Throws:
ChargebeeException
-
updateForItems
public SubscriptionUpdateForItemsResponse updateForItems(String subscriptionId) throws ChargebeeException - Throws:
ChargebeeException
-
removeCoupons
public SubscriptionRemoveCouponsResponse removeCoupons(String subscriptionId, SubscriptionRemoveCouponsParams params) throws ChargebeeException - Throws:
ChargebeeException
-
removeCoupons
public SubscriptionRemoveCouponsResponse removeCoupons(String subscriptionId) throws ChargebeeException - Throws:
ChargebeeException
-
resume
public SubscriptionResumeResponse resume(String subscriptionId, SubscriptionResumeParams params) throws ChargebeeException - Throws:
ChargebeeException
-
resume
- Throws:
ChargebeeException
-
cancelForItems
public SubscriptionCancelForItemsResponse cancelForItems(String subscriptionId, SubscriptionCancelForItemsParams params) throws ChargebeeException - Throws:
ChargebeeException
-
cancelForItems
public SubscriptionCancelForItemsResponse cancelForItems(String subscriptionId) throws ChargebeeException - Throws:
ChargebeeException
-
regenerateInvoice
public SubscriptionRegenerateInvoiceResponse regenerateInvoice(String subscriptionId, SubscriptionRegenerateInvoiceParams params) throws ChargebeeException - Throws:
ChargebeeException
-
regenerateInvoice
public SubscriptionRegenerateInvoiceResponse regenerateInvoice(String subscriptionId) throws ChargebeeException - Throws:
ChargebeeException
-
list
- Throws:
ChargebeeException
-
list
- Throws:
ChargebeeException
-
create
- Throws:
ChargebeeException
-
move
public SubscriptionMoveResponse move(String subscriptionId, SubscriptionMoveParams params) throws ChargebeeException - Throws:
ChargebeeException
-
subscriptionsForCustomer
public SubscriptionsForCustomerResponse subscriptionsForCustomer(String customerId, SubscriptionsForCustomerParams params) throws ChargebeeException - Throws:
ChargebeeException
-
subscriptionsForCustomer
public SubscriptionsForCustomerResponse subscriptionsForCustomer(String customerId) throws ChargebeeException - Throws:
ChargebeeException
-
createForCustomer
public SubscriptionCreateForCustomerResponse createForCustomer(String customerId, SubscriptionCreateForCustomerParams params) throws ChargebeeException - Throws:
ChargebeeException
-
importForItems
public SubscriptionImportForItemsResponse importForItems(String customerId, SubscriptionImportForItemsParams params) throws ChargebeeException - Throws:
ChargebeeException
-
retrieveAdvanceInvoiceSchedule
public SubscriptionRetrieveAdvanceInvoiceScheduleResponse retrieveAdvanceInvoiceSchedule(String subscriptionId) throws ChargebeeException - Throws:
ChargebeeException
-
removeScheduledCancellation
public SubscriptionRemoveScheduledCancellationResponse removeScheduledCancellation(String subscriptionId, SubscriptionRemoveScheduledCancellationParams params) throws ChargebeeException - Throws:
ChargebeeException
-
removeScheduledCancellation
public SubscriptionRemoveScheduledCancellationResponse removeScheduledCancellation(String subscriptionId) throws ChargebeeException - Throws:
ChargebeeException
-
retrieveWithScheduledChanges
public SubscriptionRetrieveWithScheduledChangesResponse retrieveWithScheduledChanges(String subscriptionId) throws ChargebeeException - Throws:
ChargebeeException
-
reactivate
public SubscriptionReactivateResponse reactivate(String subscriptionId, SubscriptionReactivateParams params) throws ChargebeeException - Throws:
ChargebeeException
-
reactivate
- Throws:
ChargebeeException
-
chargeFutureRenewals
public SubscriptionChargeFutureRenewalsResponse chargeFutureRenewals(String subscriptionId, SubscriptionChargeFutureRenewalsParams params) throws ChargebeeException - Throws:
ChargebeeException
-
chargeFutureRenewals
public SubscriptionChargeFutureRenewalsResponse chargeFutureRenewals(String subscriptionId) throws ChargebeeException - Throws:
ChargebeeException
-
addChargeAtTermEnd
public SubscriptionAddChargeAtTermEndResponse addChargeAtTermEnd(String subscriptionId, SubscriptionAddChargeAtTermEndParams params) throws ChargebeeException - Throws:
ChargebeeException
-
removeScheduledChanges
public SubscriptionRemoveScheduledChangesResponse removeScheduledChanges(String subscriptionId) throws ChargebeeException - Throws:
ChargebeeException
-
changeTermEnd
public SubscriptionChangeTermEndResponse changeTermEnd(String subscriptionId, SubscriptionChangeTermEndParams params) throws ChargebeeException - Throws:
ChargebeeException
-
delete
- Throws:
ChargebeeException
-
createWithItems
public SubscriptionCreateWithItemsResponse createWithItems(String customerId, SubscriptionCreateWithItemsParams params) throws ChargebeeException - Throws:
ChargebeeException
-
createWithItems
public SubscriptionCreateWithItemsResponse createWithItems(String customerId) throws ChargebeeException - Throws:
ChargebeeException
-
importUnbilledCharges
public SubscriptionImportUnbilledChargesResponse importUnbilledCharges(String subscriptionId, SubscriptionImportUnbilledChargesParams params) throws ChargebeeException - Throws:
ChargebeeException
-
importUnbilledCharges
public SubscriptionImportUnbilledChargesResponse importUnbilledCharges(String subscriptionId) throws ChargebeeException - Throws:
ChargebeeException
-
removeScheduledResumption
public SubscriptionRemoveScheduledResumptionResponse removeScheduledResumption(String subscriptionId) throws ChargebeeException - Throws:
ChargebeeException
-
retrieve
- Throws:
ChargebeeException
-
update
public SubscriptionUpdateResponse update(String subscriptionId, SubscriptionUpdateParams params) throws ChargebeeException - Throws:
ChargebeeException
-
update
- Throws:
ChargebeeException
-
importContractTerm
public SubscriptionImportContractTermResponse importContractTerm(String subscriptionId, SubscriptionImportContractTermParams params) throws ChargebeeException - Throws:
ChargebeeException
-
importContractTerm
public SubscriptionImportContractTermResponse importContractTerm(String subscriptionId) throws ChargebeeException - Throws:
ChargebeeException
-
overrideBillingProfile
public SubscriptionOverrideBillingProfileResponse overrideBillingProfile(String subscriptionId, SubscriptionOverrideBillingProfileParams params) throws ChargebeeException - Throws:
ChargebeeException
-
overrideBillingProfile
public SubscriptionOverrideBillingProfileResponse overrideBillingProfile(String subscriptionId) throws ChargebeeException - Throws:
ChargebeeException
-
removeScheduledPause
public SubscriptionRemoveScheduledPauseResponse removeScheduledPause(String subscriptionId) throws ChargebeeException - Throws:
ChargebeeException
-
editAdvanceInvoiceSchedule
public SubscriptionEditAdvanceInvoiceScheduleResponse editAdvanceInvoiceSchedule(String subscriptionId, SubscriptionEditAdvanceInvoiceScheduleParams params) throws ChargebeeException - Throws:
ChargebeeException
-
editAdvanceInvoiceSchedule
public SubscriptionEditAdvanceInvoiceScheduleResponse editAdvanceInvoiceSchedule(String subscriptionId) throws ChargebeeException - Throws:
ChargebeeException
-
listDiscounts
public SubscriptionListDiscountsResponse listDiscounts(String subscriptionId, SubscriptionListDiscountsParams params) throws ChargebeeException - Throws:
ChargebeeException
-
listDiscounts
public SubscriptionListDiscountsResponse listDiscounts(String subscriptionId) throws ChargebeeException - Throws:
ChargebeeException
-
contractTermsForSubscription
public ContractTermsForSubscriptionResponse contractTermsForSubscription(String subscriptionId, ContractTermsForSubscriptionParams params) throws ChargebeeException - Throws:
ChargebeeException
-
contractTermsForSubscription
public ContractTermsForSubscriptionResponse contractTermsForSubscription(String subscriptionId) throws ChargebeeException - Throws:
ChargebeeException
-
pause
public SubscriptionPauseResponse pause(String subscriptionId, SubscriptionPauseParams params) throws ChargebeeException - Throws:
ChargebeeException
-
pause
- Throws:
ChargebeeException
-
importForCustomer
public SubscriptionImportForCustomerResponse importForCustomer(String customerId, SubscriptionImportForCustomerParams params) throws ChargebeeException - Throws:
ChargebeeException
-
importSubscription
public ImportSubscriptionResponse importSubscription(ImportSubscriptionParams params) throws ChargebeeException - Throws:
ChargebeeException
-
cancel
public SubscriptionCancelResponse cancel(String subscriptionId, SubscriptionCancelParams params) throws ChargebeeException - Throws:
ChargebeeException
-
cancel
- Throws:
ChargebeeException
-
chargeAddonAtTermEnd
public SubscriptionChargeAddonAtTermEndResponse chargeAddonAtTermEnd(String subscriptionId, SubscriptionChargeAddonAtTermEndParams params) throws ChargebeeException - Throws:
ChargebeeException
-