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) addChargeAtTermEndAsync(String subscriptionId, SubscriptionAddChargeAtTermEndParams params) Async variant of addChargeAtTermEnd for subscription with params.cancel(String subscriptionId, SubscriptionCancelParams params) cancelAsync(String subscriptionId) Async variant of cancel for subscription without params.cancelAsync(String subscriptionId, SubscriptionCancelParams params) Async variant of cancel for subscription with params.cancelForItems(String subscriptionId) cancelForItems(String subscriptionId, SubscriptionCancelForItemsParams params) cancelForItemsAsync(String subscriptionId) Async variant of cancelForItems for subscription without params.cancelForItemsAsync(String subscriptionId, SubscriptionCancelForItemsParams params) Async variant of cancelForItems for subscription with params.changeTermEnd(String subscriptionId, SubscriptionChangeTermEndParams params) changeTermEndAsync(String subscriptionId, SubscriptionChangeTermEndParams params) Async variant of changeTermEnd for subscription with params.chargeAddonAtTermEnd(String subscriptionId, SubscriptionChargeAddonAtTermEndParams params) chargeAddonAtTermEndAsync(String subscriptionId, SubscriptionChargeAddonAtTermEndParams params) Async variant of chargeAddonAtTermEnd for subscription with params.chargeFutureRenewals(String subscriptionId) chargeFutureRenewals(String subscriptionId, SubscriptionChargeFutureRenewalsParams params) chargeFutureRenewalsAsync(String subscriptionId) Async variant of chargeFutureRenewals for subscription without params.chargeFutureRenewalsAsync(String subscriptionId, SubscriptionChargeFutureRenewalsParams params) Async variant of chargeFutureRenewals for subscription with params.contractTermsForSubscription(String subscriptionId) contractTermsForSubscription(String subscriptionId, ContractTermsForSubscriptionParams params) contractTermsForSubscriptionAsync(String subscriptionId) Async variant of contractTermsForSubscription for subscription without params.contractTermsForSubscriptionAsync(String subscriptionId, ContractTermsForSubscriptionParams params) Async variant of contractTermsForSubscription for subscription with params.create(SubscriptionCreateParams params) createAsync(SubscriptionCreateParams params) Async variant of create for subscription with params.createForCustomer(String customerId, SubscriptionCreateForCustomerParams params) createForCustomerAsync(String customerId, SubscriptionCreateForCustomerParams params) Async variant of createForCustomer for subscription with params.createWithItems(String customerId) createWithItems(String customerId, SubscriptionCreateWithItemsParams params) createWithItemsAsync(String customerId) Async variant of createWithItems for subscription without params.createWithItemsAsync(String customerId, SubscriptionCreateWithItemsParams params) Async variant of createWithItems for subscription with params.deleteAsync(String subscriptionId) Async variant of delete for subscription without params.editAdvanceInvoiceSchedule(String subscriptionId) editAdvanceInvoiceSchedule(String subscriptionId, SubscriptionEditAdvanceInvoiceScheduleParams params) editAdvanceInvoiceScheduleAsync(String subscriptionId) Async variant of editAdvanceInvoiceSchedule for subscription without params.editAdvanceInvoiceScheduleAsync(String subscriptionId, SubscriptionEditAdvanceInvoiceScheduleParams params) Async variant of editAdvanceInvoiceSchedule for subscription with params.importContractTerm(String subscriptionId) importContractTerm(String subscriptionId, SubscriptionImportContractTermParams params) importContractTermAsync(String subscriptionId) Async variant of importContractTerm for subscription without params.importContractTermAsync(String subscriptionId, SubscriptionImportContractTermParams params) Async variant of importContractTerm for subscription with params.importForCustomer(String customerId, SubscriptionImportForCustomerParams params) importForCustomerAsync(String customerId, SubscriptionImportForCustomerParams params) Async variant of importForCustomer for subscription with params.importForItems(String customerId, SubscriptionImportForItemsParams params) importForItemsAsync(String customerId, SubscriptionImportForItemsParams params) Async variant of importForItems for subscription with params.Async variant of importSubscription for subscription with params.importUnbilledCharges(String subscriptionId) importUnbilledCharges(String subscriptionId, SubscriptionImportUnbilledChargesParams params) importUnbilledChargesAsync(String subscriptionId) Async variant of importUnbilledCharges for subscription without params.importUnbilledChargesAsync(String subscriptionId, SubscriptionImportUnbilledChargesParams params) Async variant of importUnbilledCharges for subscription with params.list()list(SubscriptionListParams params) Async variant of list for subscription without params.listAsync(SubscriptionListParams params) Async variant of list for subscription with params.listDiscounts(String subscriptionId) listDiscounts(String subscriptionId, SubscriptionListDiscountsParams params) listDiscountsAsync(String subscriptionId) Async variant of listDiscounts for subscription without params.listDiscountsAsync(String subscriptionId, SubscriptionListDiscountsParams params) Async variant of listDiscounts for subscription with params.move(String subscriptionId, SubscriptionMoveParams params) moveAsync(String subscriptionId, SubscriptionMoveParams params) Async variant of move for subscription with params.overrideBillingProfile(String subscriptionId) overrideBillingProfile(String subscriptionId, SubscriptionOverrideBillingProfileParams params) overrideBillingProfileAsync(String subscriptionId) Async variant of overrideBillingProfile for subscription without params.overrideBillingProfileAsync(String subscriptionId, SubscriptionOverrideBillingProfileParams params) Async variant of overrideBillingProfile for subscription with params.pause(String subscriptionId, SubscriptionPauseParams params) pauseAsync(String subscriptionId) Async variant of pause for subscription without params.pauseAsync(String subscriptionId, SubscriptionPauseParams params) Async variant of pause for subscription with params.reactivate(String subscriptionId) reactivate(String subscriptionId, SubscriptionReactivateParams params) reactivateAsync(String subscriptionId) Async variant of reactivate for subscription without params.reactivateAsync(String subscriptionId, SubscriptionReactivateParams params) Async variant of reactivate for subscription with params.regenerateInvoice(String subscriptionId) regenerateInvoice(String subscriptionId, SubscriptionRegenerateInvoiceParams params) regenerateInvoiceAsync(String subscriptionId) Async variant of regenerateInvoice for subscription without params.regenerateInvoiceAsync(String subscriptionId, SubscriptionRegenerateInvoiceParams params) Async variant of regenerateInvoice for subscription with params.removeAdvanceInvoiceSchedule(String subscriptionId) removeAdvanceInvoiceSchedule(String subscriptionId, SubscriptionRemoveAdvanceInvoiceScheduleParams params) removeAdvanceInvoiceScheduleAsync(String subscriptionId) Async variant of removeAdvanceInvoiceSchedule for subscription without params.removeAdvanceInvoiceScheduleAsync(String subscriptionId, SubscriptionRemoveAdvanceInvoiceScheduleParams params) Async variant of removeAdvanceInvoiceSchedule for subscription with params.removeCoupons(String subscriptionId) removeCoupons(String subscriptionId, SubscriptionRemoveCouponsParams params) removeCouponsAsync(String subscriptionId) Async variant of removeCoupons for subscription without params.removeCouponsAsync(String subscriptionId, SubscriptionRemoveCouponsParams params) Async variant of removeCoupons for subscription with params.removeScheduledCancellation(String subscriptionId) removeScheduledCancellation(String subscriptionId, SubscriptionRemoveScheduledCancellationParams params) removeScheduledCancellationAsync(String subscriptionId) Async variant of removeScheduledCancellation for subscription without params.removeScheduledCancellationAsync(String subscriptionId, SubscriptionRemoveScheduledCancellationParams params) Async variant of removeScheduledCancellation for subscription with params.removeScheduledChanges(String subscriptionId) removeScheduledChangesAsync(String subscriptionId) Async variant of removeScheduledChanges for subscription without params.removeScheduledPause(String subscriptionId) removeScheduledPauseAsync(String subscriptionId) Async variant of removeScheduledPause for subscription without params.removeScheduledResumption(String subscriptionId) removeScheduledResumptionAsync(String subscriptionId) Async variant of removeScheduledResumption for subscription without params.resume(String subscriptionId, SubscriptionResumeParams params) resumeAsync(String subscriptionId) Async variant of resume for subscription without params.resumeAsync(String subscriptionId, SubscriptionResumeParams params) Async variant of resume for subscription with params.retrieveAdvanceInvoiceSchedule(String subscriptionId) retrieveAdvanceInvoiceScheduleAsync(String subscriptionId) Async variant of retrieveAdvanceInvoiceSchedule for subscription without params.retrieveAsync(String subscriptionId) Async variant of retrieve for subscription without params.retrieveWithScheduledChanges(String subscriptionId) retrieveWithScheduledChangesAsync(String subscriptionId) Async variant of retrieveWithScheduledChanges for subscription without params.subscriptionsForCustomer(String customerId) subscriptionsForCustomer(String customerId, SubscriptionsForCustomerParams params) subscriptionsForCustomerAsync(String customerId) Async variant of subscriptionsForCustomer for subscription without params.subscriptionsForCustomerAsync(String customerId, SubscriptionsForCustomerParams params) Async variant of subscriptionsForCustomer for subscription with params.update(String subscriptionId, SubscriptionUpdateParams params) updateAsync(String subscriptionId) Async variant of update for subscription without params.updateAsync(String subscriptionId, SubscriptionUpdateParams params) Async variant of update for subscription with params.updateForItems(String subscriptionId) updateForItems(String subscriptionId, SubscriptionUpdateForItemsParams params) updateForItemsAsync(String subscriptionId) Async variant of updateForItems for subscription without params.updateForItemsAsync(String subscriptionId, SubscriptionUpdateForItemsParams params) Async variant of updateForItems for subscription with 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, getWithSubDomainAsync, header, headers, options, parseResponse, post, postAsync, postJson, postJsonAsync, postJsonWithSubDomain, postJsonWithSubDomainAsync, postWithSubDomain, postWithSubDomainAsync
-
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
-
removeAdvanceInvoiceScheduleAsync
public CompletableFuture<SubscriptionRemoveAdvanceInvoiceScheduleResponse> removeAdvanceInvoiceScheduleAsync(String subscriptionId, SubscriptionRemoveAdvanceInvoiceScheduleParams params) Async variant of removeAdvanceInvoiceSchedule for subscription with params. -
removeAdvanceInvoiceSchedule
public SubscriptionRemoveAdvanceInvoiceScheduleResponse removeAdvanceInvoiceSchedule(String subscriptionId) throws ChargebeeException - Throws:
ChargebeeException
-
removeAdvanceInvoiceScheduleAsync
public CompletableFuture<SubscriptionRemoveAdvanceInvoiceScheduleResponse> removeAdvanceInvoiceScheduleAsync(String subscriptionId) Async variant of removeAdvanceInvoiceSchedule for subscription without params. -
updateForItems
public SubscriptionUpdateForItemsResponse updateForItems(String subscriptionId, SubscriptionUpdateForItemsParams params) throws ChargebeeException - Throws:
ChargebeeException
-
updateForItemsAsync
public CompletableFuture<SubscriptionUpdateForItemsResponse> updateForItemsAsync(String subscriptionId, SubscriptionUpdateForItemsParams params) Async variant of updateForItems for subscription with params. -
updateForItems
public SubscriptionUpdateForItemsResponse updateForItems(String subscriptionId) throws ChargebeeException - Throws:
ChargebeeException
-
updateForItemsAsync
public CompletableFuture<SubscriptionUpdateForItemsResponse> updateForItemsAsync(String subscriptionId) Async variant of updateForItems for subscription without params. -
removeCoupons
public SubscriptionRemoveCouponsResponse removeCoupons(String subscriptionId, SubscriptionRemoveCouponsParams params) throws ChargebeeException - Throws:
ChargebeeException
-
removeCouponsAsync
public CompletableFuture<SubscriptionRemoveCouponsResponse> removeCouponsAsync(String subscriptionId, SubscriptionRemoveCouponsParams params) Async variant of removeCoupons for subscription with params. -
removeCoupons
public SubscriptionRemoveCouponsResponse removeCoupons(String subscriptionId) throws ChargebeeException - Throws:
ChargebeeException
-
removeCouponsAsync
public CompletableFuture<SubscriptionRemoveCouponsResponse> removeCouponsAsync(String subscriptionId) Async variant of removeCoupons for subscription without params. -
resume
public SubscriptionResumeResponse resume(String subscriptionId, SubscriptionResumeParams params) throws ChargebeeException - Throws:
ChargebeeException
-
resumeAsync
public CompletableFuture<SubscriptionResumeResponse> resumeAsync(String subscriptionId, SubscriptionResumeParams params) Async variant of resume for subscription with params. -
resume
- Throws:
ChargebeeException
-
resumeAsync
Async variant of resume for subscription without params. -
cancelForItems
public SubscriptionCancelForItemsResponse cancelForItems(String subscriptionId, SubscriptionCancelForItemsParams params) throws ChargebeeException - Throws:
ChargebeeException
-
cancelForItemsAsync
public CompletableFuture<SubscriptionCancelForItemsResponse> cancelForItemsAsync(String subscriptionId, SubscriptionCancelForItemsParams params) Async variant of cancelForItems for subscription with params. -
cancelForItems
public SubscriptionCancelForItemsResponse cancelForItems(String subscriptionId) throws ChargebeeException - Throws:
ChargebeeException
-
cancelForItemsAsync
public CompletableFuture<SubscriptionCancelForItemsResponse> cancelForItemsAsync(String subscriptionId) Async variant of cancelForItems for subscription without params. -
regenerateInvoice
public SubscriptionRegenerateInvoiceResponse regenerateInvoice(String subscriptionId, SubscriptionRegenerateInvoiceParams params) throws ChargebeeException - Throws:
ChargebeeException
-
regenerateInvoiceAsync
public CompletableFuture<SubscriptionRegenerateInvoiceResponse> regenerateInvoiceAsync(String subscriptionId, SubscriptionRegenerateInvoiceParams params) Async variant of regenerateInvoice for subscription with params. -
regenerateInvoice
public SubscriptionRegenerateInvoiceResponse regenerateInvoice(String subscriptionId) throws ChargebeeException - Throws:
ChargebeeException
-
regenerateInvoiceAsync
public CompletableFuture<SubscriptionRegenerateInvoiceResponse> regenerateInvoiceAsync(String subscriptionId) Async variant of regenerateInvoice for subscription without params. -
list
- Throws:
ChargebeeException
-
listAsync
Async variant of list for subscription with params. -
list
- Throws:
ChargebeeException
-
listAsync
Async variant of list for subscription without params. -
create
- Throws:
ChargebeeException
-
createAsync
Async variant of create for subscription with params. -
move
public SubscriptionMoveResponse move(String subscriptionId, SubscriptionMoveParams params) throws ChargebeeException - Throws:
ChargebeeException
-
moveAsync
public CompletableFuture<SubscriptionMoveResponse> moveAsync(String subscriptionId, SubscriptionMoveParams params) Async variant of move for subscription with params. -
subscriptionsForCustomer
public SubscriptionsForCustomerResponse subscriptionsForCustomer(String customerId, SubscriptionsForCustomerParams params) throws ChargebeeException - Throws:
ChargebeeException
-
subscriptionsForCustomer
public SubscriptionsForCustomerResponse subscriptionsForCustomer(String customerId) throws ChargebeeException - Throws:
ChargebeeException
-
subscriptionsForCustomerAsync
public CompletableFuture<SubscriptionsForCustomerResponse> subscriptionsForCustomerAsync(String customerId, SubscriptionsForCustomerParams params) Async variant of subscriptionsForCustomer for subscription with params. -
subscriptionsForCustomerAsync
public CompletableFuture<SubscriptionsForCustomerResponse> subscriptionsForCustomerAsync(String customerId) Async variant of subscriptionsForCustomer for subscription without params. -
createForCustomer
public SubscriptionCreateForCustomerResponse createForCustomer(String customerId, SubscriptionCreateForCustomerParams params) throws ChargebeeException - Throws:
ChargebeeException
-
createForCustomerAsync
public CompletableFuture<SubscriptionCreateForCustomerResponse> createForCustomerAsync(String customerId, SubscriptionCreateForCustomerParams params) Async variant of createForCustomer for subscription with params. -
importForItems
public SubscriptionImportForItemsResponse importForItems(String customerId, SubscriptionImportForItemsParams params) throws ChargebeeException - Throws:
ChargebeeException
-
importForItemsAsync
public CompletableFuture<SubscriptionImportForItemsResponse> importForItemsAsync(String customerId, SubscriptionImportForItemsParams params) Async variant of importForItems for subscription with params. -
retrieveAdvanceInvoiceSchedule
public SubscriptionRetrieveAdvanceInvoiceScheduleResponse retrieveAdvanceInvoiceSchedule(String subscriptionId) throws ChargebeeException - Throws:
ChargebeeException
-
retrieveAdvanceInvoiceScheduleAsync
public CompletableFuture<SubscriptionRetrieveAdvanceInvoiceScheduleResponse> retrieveAdvanceInvoiceScheduleAsync(String subscriptionId) Async variant of retrieveAdvanceInvoiceSchedule for subscription without params. -
removeScheduledCancellation
public SubscriptionRemoveScheduledCancellationResponse removeScheduledCancellation(String subscriptionId, SubscriptionRemoveScheduledCancellationParams params) throws ChargebeeException - Throws:
ChargebeeException
-
removeScheduledCancellationAsync
public CompletableFuture<SubscriptionRemoveScheduledCancellationResponse> removeScheduledCancellationAsync(String subscriptionId, SubscriptionRemoveScheduledCancellationParams params) Async variant of removeScheduledCancellation for subscription with params. -
removeScheduledCancellation
public SubscriptionRemoveScheduledCancellationResponse removeScheduledCancellation(String subscriptionId) throws ChargebeeException - Throws:
ChargebeeException
-
removeScheduledCancellationAsync
public CompletableFuture<SubscriptionRemoveScheduledCancellationResponse> removeScheduledCancellationAsync(String subscriptionId) Async variant of removeScheduledCancellation for subscription without params. -
retrieveWithScheduledChanges
public SubscriptionRetrieveWithScheduledChangesResponse retrieveWithScheduledChanges(String subscriptionId) throws ChargebeeException - Throws:
ChargebeeException
-
retrieveWithScheduledChangesAsync
public CompletableFuture<SubscriptionRetrieveWithScheduledChangesResponse> retrieveWithScheduledChangesAsync(String subscriptionId) Async variant of retrieveWithScheduledChanges for subscription without params. -
reactivate
public SubscriptionReactivateResponse reactivate(String subscriptionId, SubscriptionReactivateParams params) throws ChargebeeException - Throws:
ChargebeeException
-
reactivateAsync
public CompletableFuture<SubscriptionReactivateResponse> reactivateAsync(String subscriptionId, SubscriptionReactivateParams params) Async variant of reactivate for subscription with params. -
reactivate
- Throws:
ChargebeeException
-
reactivateAsync
Async variant of reactivate for subscription without params. -
chargeFutureRenewals
public SubscriptionChargeFutureRenewalsResponse chargeFutureRenewals(String subscriptionId, SubscriptionChargeFutureRenewalsParams params) throws ChargebeeException - Throws:
ChargebeeException
-
chargeFutureRenewalsAsync
public CompletableFuture<SubscriptionChargeFutureRenewalsResponse> chargeFutureRenewalsAsync(String subscriptionId, SubscriptionChargeFutureRenewalsParams params) Async variant of chargeFutureRenewals for subscription with params. -
chargeFutureRenewals
public SubscriptionChargeFutureRenewalsResponse chargeFutureRenewals(String subscriptionId) throws ChargebeeException - Throws:
ChargebeeException
-
chargeFutureRenewalsAsync
public CompletableFuture<SubscriptionChargeFutureRenewalsResponse> chargeFutureRenewalsAsync(String subscriptionId) Async variant of chargeFutureRenewals for subscription without params. -
addChargeAtTermEnd
public SubscriptionAddChargeAtTermEndResponse addChargeAtTermEnd(String subscriptionId, SubscriptionAddChargeAtTermEndParams params) throws ChargebeeException - Throws:
ChargebeeException
-
addChargeAtTermEndAsync
public CompletableFuture<SubscriptionAddChargeAtTermEndResponse> addChargeAtTermEndAsync(String subscriptionId, SubscriptionAddChargeAtTermEndParams params) Async variant of addChargeAtTermEnd for subscription with params. -
removeScheduledChanges
public SubscriptionRemoveScheduledChangesResponse removeScheduledChanges(String subscriptionId) throws ChargebeeException - Throws:
ChargebeeException
-
removeScheduledChangesAsync
public CompletableFuture<SubscriptionRemoveScheduledChangesResponse> removeScheduledChangesAsync(String subscriptionId) Async variant of removeScheduledChanges for subscription without params. -
changeTermEnd
public SubscriptionChangeTermEndResponse changeTermEnd(String subscriptionId, SubscriptionChangeTermEndParams params) throws ChargebeeException - Throws:
ChargebeeException
-
changeTermEndAsync
public CompletableFuture<SubscriptionChangeTermEndResponse> changeTermEndAsync(String subscriptionId, SubscriptionChangeTermEndParams params) Async variant of changeTermEnd for subscription with params. -
delete
- Throws:
ChargebeeException
-
deleteAsync
Async variant of delete for subscription without params. -
createWithItems
public SubscriptionCreateWithItemsResponse createWithItems(String customerId, SubscriptionCreateWithItemsParams params) throws ChargebeeException - Throws:
ChargebeeException
-
createWithItemsAsync
public CompletableFuture<SubscriptionCreateWithItemsResponse> createWithItemsAsync(String customerId, SubscriptionCreateWithItemsParams params) Async variant of createWithItems for subscription with params. -
createWithItems
public SubscriptionCreateWithItemsResponse createWithItems(String customerId) throws ChargebeeException - Throws:
ChargebeeException
-
createWithItemsAsync
public CompletableFuture<SubscriptionCreateWithItemsResponse> createWithItemsAsync(String customerId) Async variant of createWithItems for subscription without params. -
importUnbilledCharges
public SubscriptionImportUnbilledChargesResponse importUnbilledCharges(String subscriptionId, SubscriptionImportUnbilledChargesParams params) throws ChargebeeException - Throws:
ChargebeeException
-
importUnbilledChargesAsync
public CompletableFuture<SubscriptionImportUnbilledChargesResponse> importUnbilledChargesAsync(String subscriptionId, SubscriptionImportUnbilledChargesParams params) Async variant of importUnbilledCharges for subscription with params. -
importUnbilledCharges
public SubscriptionImportUnbilledChargesResponse importUnbilledCharges(String subscriptionId) throws ChargebeeException - Throws:
ChargebeeException
-
importUnbilledChargesAsync
public CompletableFuture<SubscriptionImportUnbilledChargesResponse> importUnbilledChargesAsync(String subscriptionId) Async variant of importUnbilledCharges for subscription without params. -
removeScheduledResumption
public SubscriptionRemoveScheduledResumptionResponse removeScheduledResumption(String subscriptionId) throws ChargebeeException - Throws:
ChargebeeException
-
removeScheduledResumptionAsync
public CompletableFuture<SubscriptionRemoveScheduledResumptionResponse> removeScheduledResumptionAsync(String subscriptionId) Async variant of removeScheduledResumption for subscription without params. -
retrieve
- Throws:
ChargebeeException
-
retrieveAsync
Async variant of retrieve for subscription without params. -
update
public SubscriptionUpdateResponse update(String subscriptionId, SubscriptionUpdateParams params) throws ChargebeeException - Throws:
ChargebeeException
-
updateAsync
public CompletableFuture<SubscriptionUpdateResponse> updateAsync(String subscriptionId, SubscriptionUpdateParams params) Async variant of update for subscription with params. -
update
- Throws:
ChargebeeException
-
updateAsync
Async variant of update for subscription without params. -
importContractTerm
public SubscriptionImportContractTermResponse importContractTerm(String subscriptionId, SubscriptionImportContractTermParams params) throws ChargebeeException - Throws:
ChargebeeException
-
importContractTermAsync
public CompletableFuture<SubscriptionImportContractTermResponse> importContractTermAsync(String subscriptionId, SubscriptionImportContractTermParams params) Async variant of importContractTerm for subscription with params. -
importContractTerm
public SubscriptionImportContractTermResponse importContractTerm(String subscriptionId) throws ChargebeeException - Throws:
ChargebeeException
-
importContractTermAsync
public CompletableFuture<SubscriptionImportContractTermResponse> importContractTermAsync(String subscriptionId) Async variant of importContractTerm for subscription without params. -
overrideBillingProfile
public SubscriptionOverrideBillingProfileResponse overrideBillingProfile(String subscriptionId, SubscriptionOverrideBillingProfileParams params) throws ChargebeeException - Throws:
ChargebeeException
-
overrideBillingProfileAsync
public CompletableFuture<SubscriptionOverrideBillingProfileResponse> overrideBillingProfileAsync(String subscriptionId, SubscriptionOverrideBillingProfileParams params) Async variant of overrideBillingProfile for subscription with params. -
overrideBillingProfile
public SubscriptionOverrideBillingProfileResponse overrideBillingProfile(String subscriptionId) throws ChargebeeException - Throws:
ChargebeeException
-
overrideBillingProfileAsync
public CompletableFuture<SubscriptionOverrideBillingProfileResponse> overrideBillingProfileAsync(String subscriptionId) Async variant of overrideBillingProfile for subscription without params. -
removeScheduledPause
public SubscriptionRemoveScheduledPauseResponse removeScheduledPause(String subscriptionId) throws ChargebeeException - Throws:
ChargebeeException
-
removeScheduledPauseAsync
public CompletableFuture<SubscriptionRemoveScheduledPauseResponse> removeScheduledPauseAsync(String subscriptionId) Async variant of removeScheduledPause for subscription without params. -
editAdvanceInvoiceSchedule
public SubscriptionEditAdvanceInvoiceScheduleResponse editAdvanceInvoiceSchedule(String subscriptionId, SubscriptionEditAdvanceInvoiceScheduleParams params) throws ChargebeeException - Throws:
ChargebeeException
-
editAdvanceInvoiceScheduleAsync
public CompletableFuture<SubscriptionEditAdvanceInvoiceScheduleResponse> editAdvanceInvoiceScheduleAsync(String subscriptionId, SubscriptionEditAdvanceInvoiceScheduleParams params) Async variant of editAdvanceInvoiceSchedule for subscription with params. -
editAdvanceInvoiceSchedule
public SubscriptionEditAdvanceInvoiceScheduleResponse editAdvanceInvoiceSchedule(String subscriptionId) throws ChargebeeException - Throws:
ChargebeeException
-
editAdvanceInvoiceScheduleAsync
public CompletableFuture<SubscriptionEditAdvanceInvoiceScheduleResponse> editAdvanceInvoiceScheduleAsync(String subscriptionId) Async variant of editAdvanceInvoiceSchedule for subscription without params. -
listDiscounts
public SubscriptionListDiscountsResponse listDiscounts(String subscriptionId, SubscriptionListDiscountsParams params) throws ChargebeeException - Throws:
ChargebeeException
-
listDiscounts
public SubscriptionListDiscountsResponse listDiscounts(String subscriptionId) throws ChargebeeException - Throws:
ChargebeeException
-
listDiscountsAsync
public CompletableFuture<SubscriptionListDiscountsResponse> listDiscountsAsync(String subscriptionId, SubscriptionListDiscountsParams params) Async variant of listDiscounts for subscription with params. -
listDiscountsAsync
public CompletableFuture<SubscriptionListDiscountsResponse> listDiscountsAsync(String subscriptionId) Async variant of listDiscounts for subscription without params. -
contractTermsForSubscription
public ContractTermsForSubscriptionResponse contractTermsForSubscription(String subscriptionId, ContractTermsForSubscriptionParams params) throws ChargebeeException - Throws:
ChargebeeException
-
contractTermsForSubscription
public ContractTermsForSubscriptionResponse contractTermsForSubscription(String subscriptionId) throws ChargebeeException - Throws:
ChargebeeException
-
contractTermsForSubscriptionAsync
public CompletableFuture<ContractTermsForSubscriptionResponse> contractTermsForSubscriptionAsync(String subscriptionId, ContractTermsForSubscriptionParams params) Async variant of contractTermsForSubscription for subscription with params. -
contractTermsForSubscriptionAsync
public CompletableFuture<ContractTermsForSubscriptionResponse> contractTermsForSubscriptionAsync(String subscriptionId) Async variant of contractTermsForSubscription for subscription without params. -
pause
public SubscriptionPauseResponse pause(String subscriptionId, SubscriptionPauseParams params) throws ChargebeeException - Throws:
ChargebeeException
-
pauseAsync
public CompletableFuture<SubscriptionPauseResponse> pauseAsync(String subscriptionId, SubscriptionPauseParams params) Async variant of pause for subscription with params. -
pause
- Throws:
ChargebeeException
-
pauseAsync
Async variant of pause for subscription without params. -
importForCustomer
public SubscriptionImportForCustomerResponse importForCustomer(String customerId, SubscriptionImportForCustomerParams params) throws ChargebeeException - Throws:
ChargebeeException
-
importForCustomerAsync
public CompletableFuture<SubscriptionImportForCustomerResponse> importForCustomerAsync(String customerId, SubscriptionImportForCustomerParams params) Async variant of importForCustomer for subscription with params. -
importSubscription
public ImportSubscriptionResponse importSubscription(ImportSubscriptionParams params) throws ChargebeeException - Throws:
ChargebeeException
-
importSubscriptionAsync
public CompletableFuture<ImportSubscriptionResponse> importSubscriptionAsync(ImportSubscriptionParams params) Async variant of importSubscription for subscription with params. -
cancel
public SubscriptionCancelResponse cancel(String subscriptionId, SubscriptionCancelParams params) throws ChargebeeException - Throws:
ChargebeeException
-
cancelAsync
public CompletableFuture<SubscriptionCancelResponse> cancelAsync(String subscriptionId, SubscriptionCancelParams params) Async variant of cancel for subscription with params. -
cancel
- Throws:
ChargebeeException
-
cancelAsync
Async variant of cancel for subscription without params. -
chargeAddonAtTermEnd
public SubscriptionChargeAddonAtTermEndResponse chargeAddonAtTermEnd(String subscriptionId, SubscriptionChargeAddonAtTermEndParams params) throws ChargebeeException - Throws:
ChargebeeException
-
chargeAddonAtTermEndAsync
public CompletableFuture<SubscriptionChargeAddonAtTermEndResponse> chargeAddonAtTermEndAsync(String subscriptionId, SubscriptionChargeAddonAtTermEndParams params) Async variant of chargeAddonAtTermEnd for subscription with params.
-