public final class SubscriptionsController extends BaseController
GLOBAL_ERROR_CASES| Constructor and Description |
|---|
SubscriptionsController(io.apimatic.core.GlobalConfiguration globalConfig)
Initializes the controller.
|
getClientInstance, getGlobalConfiguration, getHttpCallbackpublic SubscriptionsController(io.apimatic.core.GlobalConfiguration globalConfig)
globalConfig - Configurations added in client.public ApiResponse<BillingPlan> createBillingPlan(CreateBillingPlanInput input) throws ApiException, IOException
input - CreateBillingPlanInput object containing request parametersApiException - Represents error response from the server.IOException - Signals that an I/O exception of some sort has occurred.public CompletableFuture<ApiResponse<BillingPlan>> createBillingPlanAsync(CreateBillingPlanInput input)
input - CreateBillingPlanInput object containing request parameterspublic ApiResponse<PlanCollection> listBillingPlans(ListBillingPlansInput input) throws ApiException, IOException
input - ListBillingPlansInput object containing request parametersApiException - Represents error response from the server.IOException - Signals that an I/O exception of some sort has occurred.public CompletableFuture<ApiResponse<PlanCollection>> listBillingPlansAsync(ListBillingPlansInput input)
input - ListBillingPlansInput object containing request parameterspublic ApiResponse<BillingPlan> getBillingPlan(String id) throws ApiException, IOException
id - Required parameter: The ID of the plan.ApiException - Represents error response from the server.IOException - Signals that an I/O exception of some sort has occurred.public CompletableFuture<ApiResponse<BillingPlan>> getBillingPlanAsync(String id)
id - Required parameter: The ID of the plan.public ApiResponse<Void> patchBillingPlan(PatchBillingPlanInput input) throws ApiException, IOException
input - PatchBillingPlanInput object containing request parametersApiException - Represents error response from the server.IOException - Signals that an I/O exception of some sort has occurred.public CompletableFuture<ApiResponse<Void>> patchBillingPlanAsync(PatchBillingPlanInput input)
input - PatchBillingPlanInput object containing request parameterspublic ApiResponse<Void> activateBillingPlan(String id) throws ApiException, IOException
id - Required parameter: The ID of the plan.ApiException - Represents error response from the server.IOException - Signals that an I/O exception of some sort has occurred.public CompletableFuture<ApiResponse<Void>> activateBillingPlanAsync(String id)
id - Required parameter: The ID of the plan.public ApiResponse<Void> deactivateBillingPlan(String id) throws ApiException, IOException
id - Required parameter: The ID of the plan.ApiException - Represents error response from the server.IOException - Signals that an I/O exception of some sort has occurred.public CompletableFuture<ApiResponse<Void>> deactivateBillingPlanAsync(String id)
id - Required parameter: The ID of the plan.public ApiResponse<Void> updateBillingPlanPricingSchemes(UpdateBillingPlanPricingSchemesInput input) throws ApiException, IOException
input - UpdateBillingPlanPricingSchemesInput object containing request parametersApiException - Represents error response from the server.IOException - Signals that an I/O exception of some sort has occurred.public CompletableFuture<ApiResponse<Void>> updateBillingPlanPricingSchemesAsync(UpdateBillingPlanPricingSchemesInput input)
input - UpdateBillingPlanPricingSchemesInput object containing request parameterspublic ApiResponse<Subscription> createSubscription(CreateSubscriptionInput input) throws ApiException, IOException
input - CreateSubscriptionInput object containing request parametersApiException - Represents error response from the server.IOException - Signals that an I/O exception of some sort has occurred.public CompletableFuture<ApiResponse<Subscription>> createSubscriptionAsync(CreateSubscriptionInput input)
input - CreateSubscriptionInput object containing request parameterspublic ApiResponse<SubscriptionCollection> listSubscriptions(ListSubscriptionsInput input) throws ApiException, IOException
input - ListSubscriptionsInput object containing request parametersApiException - Represents error response from the server.IOException - Signals that an I/O exception of some sort has occurred.public CompletableFuture<ApiResponse<SubscriptionCollection>> listSubscriptionsAsync(ListSubscriptionsInput input)
input - ListSubscriptionsInput object containing request parameterspublic ApiResponse<Subscription> getSubscription(GetSubscriptionInput input) throws ApiException, IOException
input - GetSubscriptionInput object containing request parametersApiException - Represents error response from the server.IOException - Signals that an I/O exception of some sort has occurred.public CompletableFuture<ApiResponse<Subscription>> getSubscriptionAsync(GetSubscriptionInput input)
input - GetSubscriptionInput object containing request parameterspublic ApiResponse<Void> patchSubscription(PatchSubscriptionInput input) throws ApiException, IOException
input - PatchSubscriptionInput object containing request parametersApiException - Represents error response from the server.IOException - Signals that an I/O exception of some sort has occurred.public CompletableFuture<ApiResponse<Void>> patchSubscriptionAsync(PatchSubscriptionInput input)
input - PatchSubscriptionInput object containing request parameterspublic ApiResponse<ModifySubscriptionResponse> reviseSubscription(ReviseSubscriptionInput input) throws ApiException, IOException
input - ReviseSubscriptionInput object containing request parametersApiException - Represents error response from the server.IOException - Signals that an I/O exception of some sort has occurred.public CompletableFuture<ApiResponse<ModifySubscriptionResponse>> reviseSubscriptionAsync(ReviseSubscriptionInput input)
input - ReviseSubscriptionInput object containing request parameterspublic ApiResponse<Void> suspendSubscription(SuspendSubscriptionInput input) throws ApiException, IOException
input - SuspendSubscriptionInput object containing request parametersApiException - Represents error response from the server.IOException - Signals that an I/O exception of some sort has occurred.public CompletableFuture<ApiResponse<Void>> suspendSubscriptionAsync(SuspendSubscriptionInput input)
input - SuspendSubscriptionInput object containing request parameterspublic ApiResponse<Void> cancelSubscription(CancelSubscriptionInput input) throws ApiException, IOException
input - CancelSubscriptionInput object containing request parametersApiException - Represents error response from the server.IOException - Signals that an I/O exception of some sort has occurred.public CompletableFuture<ApiResponse<Void>> cancelSubscriptionAsync(CancelSubscriptionInput input)
input - CancelSubscriptionInput object containing request parameterspublic ApiResponse<Void> activateSubscription(ActivateSubscriptionInput input) throws ApiException, IOException
input - ActivateSubscriptionInput object containing request parametersApiException - Represents error response from the server.IOException - Signals that an I/O exception of some sort has occurred.public CompletableFuture<ApiResponse<Void>> activateSubscriptionAsync(ActivateSubscriptionInput input)
input - ActivateSubscriptionInput object containing request parameterspublic ApiResponse<SubscriptionTransactionDetails> captureSubscription(CaptureSubscriptionInput input) throws ApiException, IOException
input - CaptureSubscriptionInput object containing request parametersApiException - Represents error response from the server.IOException - Signals that an I/O exception of some sort has occurred.public CompletableFuture<ApiResponse<SubscriptionTransactionDetails>> captureSubscriptionAsync(CaptureSubscriptionInput input)
input - CaptureSubscriptionInput object containing request parameterspublic ApiResponse<TransactionsList> listSubscriptionTransactions(ListSubscriptionTransactionsInput input) throws ApiException, IOException
input - ListSubscriptionTransactionsInput object containing request parametersApiException - Represents error response from the server.IOException - Signals that an I/O exception of some sort has occurred.public CompletableFuture<ApiResponse<TransactionsList>> listSubscriptionTransactionsAsync(ListSubscriptionTransactionsInput input)
input - ListSubscriptionTransactionsInput object containing request parametersCopyright © 2026. All rights reserved.