public class SubscriptionsApi extends Object
| Constructor and Description |
|---|
SubscriptionsApi() |
SubscriptionsApi(ApiClient apiClient) |
| Modifier and Type | Method and Description |
|---|---|
ActivateSubscriptionResponse |
activateSubscription(String id,
Boolean processMissedPayments)
Reactivating a Suspended Subscription
# Reactivating a Suspended Subscription You can reactivate a suspended subscription for the next billing cycle.
|
okhttp3.Call |
activateSubscriptionAsync(String id,
Boolean processMissedPayments,
ApiCallback<ActivateSubscriptionResponse> callback)
Reactivating a Suspended Subscription (asynchronously)
# Reactivating a Suspended Subscription You can reactivate a suspended subscription for the next billing cycle.
|
okhttp3.Call |
activateSubscriptionCall(String id,
Boolean processMissedPayments,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for activateSubscription
|
ApiResponse<ActivateSubscriptionResponse> |
activateSubscriptionWithHttpInfo(String id,
Boolean processMissedPayments)
Reactivating a Suspended Subscription
# Reactivating a Suspended Subscription You can reactivate a suspended subscription for the next billing cycle.
|
CancelSubscriptionResponse |
cancelSubscription(String id)
Cancel a Subscription
Cancel a Subscription
|
okhttp3.Call |
cancelSubscriptionAsync(String id,
ApiCallback<CancelSubscriptionResponse> callback)
Cancel a Subscription (asynchronously)
Cancel a Subscription
|
okhttp3.Call |
cancelSubscriptionCall(String id,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for cancelSubscription
|
ApiResponse<CancelSubscriptionResponse> |
cancelSubscriptionWithHttpInfo(String id)
Cancel a Subscription
Cancel a Subscription
|
CreateSubscriptionResponse |
createSubscription(CreateSubscriptionRequest createSubscriptionRequest)
Create a Subscription
Create a Recurring Billing Subscription
|
okhttp3.Call |
createSubscriptionAsync(CreateSubscriptionRequest createSubscriptionRequest,
ApiCallback<CreateSubscriptionResponse> callback)
Create a Subscription (asynchronously)
Create a Recurring Billing Subscription
|
okhttp3.Call |
createSubscriptionCall(CreateSubscriptionRequest createSubscriptionRequest,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for createSubscription
|
ApiResponse<CreateSubscriptionResponse> |
createSubscriptionWithHttpInfo(CreateSubscriptionRequest createSubscriptionRequest)
Create a Subscription
Create a Recurring Billing Subscription
|
GetAllSubscriptionsResponse |
getAllSubscriptions(Integer offset,
Integer limit,
String code,
String status)
Get a List of Subscriptions
Retrieve Subscriptions by Subscription Code & Subscription Status.
|
okhttp3.Call |
getAllSubscriptionsAsync(Integer offset,
Integer limit,
String code,
String status,
ApiCallback<GetAllSubscriptionsResponse> callback)
Get a List of Subscriptions (asynchronously)
Retrieve Subscriptions by Subscription Code & Subscription Status.
|
okhttp3.Call |
getAllSubscriptionsCall(Integer offset,
Integer limit,
String code,
String status,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for getAllSubscriptions
|
ApiResponse<GetAllSubscriptionsResponse> |
getAllSubscriptionsWithHttpInfo(Integer offset,
Integer limit,
String code,
String status)
Get a List of Subscriptions
Retrieve Subscriptions by Subscription Code & Subscription Status.
|
ApiClient |
getApiClient() |
GetSubscriptionResponse |
getSubscription(String id)
Get a Subscription
Get a Subscription by Subscription Id
|
okhttp3.Call |
getSubscriptionAsync(String id,
ApiCallback<GetSubscriptionResponse> callback)
Get a Subscription (asynchronously)
Get a Subscription by Subscription Id
|
okhttp3.Call |
getSubscriptionCall(String id,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for getSubscription
|
GetSubscriptionCodeResponse |
getSubscriptionCode()
Get a Subscription Code
Get a Unique Subscription Code
|
okhttp3.Call |
getSubscriptionCodeAsync(ApiCallback<GetSubscriptionCodeResponse> callback)
Get a Subscription Code (asynchronously)
Get a Unique Subscription Code
|
okhttp3.Call |
getSubscriptionCodeCall(ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for getSubscriptionCode
|
ApiResponse<GetSubscriptionCodeResponse> |
getSubscriptionCodeWithHttpInfo()
Get a Subscription Code
Get a Unique Subscription Code
|
ApiResponse<GetSubscriptionResponse> |
getSubscriptionWithHttpInfo(String id)
Get a Subscription
Get a Subscription by Subscription Id
|
void |
setApiClient(ApiClient apiClient) |
SuspendSubscriptionResponse |
suspendSubscription(String id)
Suspend a Subscription
Suspend a Subscription
|
okhttp3.Call |
suspendSubscriptionAsync(String id,
ApiCallback<SuspendSubscriptionResponse> callback)
Suspend a Subscription (asynchronously)
Suspend a Subscription
|
okhttp3.Call |
suspendSubscriptionCall(String id,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for suspendSubscription
|
ApiResponse<SuspendSubscriptionResponse> |
suspendSubscriptionWithHttpInfo(String id)
Suspend a Subscription
Suspend a Subscription
|
UpdateSubscriptionResponse |
updateSubscription(String id,
UpdateSubscription updateSubscription)
Update a Subscription
Update a Subscription by Subscription Id
|
okhttp3.Call |
updateSubscriptionAsync(String id,
UpdateSubscription updateSubscription,
ApiCallback<UpdateSubscriptionResponse> callback)
Update a Subscription (asynchronously)
Update a Subscription by Subscription Id
|
okhttp3.Call |
updateSubscriptionCall(String id,
UpdateSubscription updateSubscription,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for updateSubscription
|
ApiResponse<UpdateSubscriptionResponse> |
updateSubscriptionWithHttpInfo(String id,
UpdateSubscription updateSubscription)
Update a Subscription
Update a Subscription by Subscription Id
|
public SubscriptionsApi()
public SubscriptionsApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
public okhttp3.Call activateSubscriptionCall(String id, Boolean processMissedPayments, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException, com.cybersource.authsdk.core.ConfigException
id - Subscription Id (required)processMissedPayments - Indicates if missed payments should be processed from the period when the subscription was suspended. By default, this is set to true. When any option other than \"Ask each time before reactivating\" is selected in the reactivation settings, the value that you enter will be ignored. (optional, default to true)progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectcom.cybersource.authsdk.core.ConfigException - If creation of merchant configuration fails in ApiClientpublic ActivateSubscriptionResponse activateSubscription(String id, Boolean processMissedPayments) throws ApiException, com.cybersource.authsdk.core.ConfigException
id - Subscription Id (required)processMissedPayments - Indicates if missed payments should be processed from the period when the subscription was suspended. By default, this is set to true. When any option other than \"Ask each time before reactivating\" is selected in the reactivation settings, the value that you enter will be ignored. (optional, default to true)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodycom.cybersource.authsdk.core.ConfigException - If creation of merchant configuration fails in ApiClientpublic ApiResponse<ActivateSubscriptionResponse> activateSubscriptionWithHttpInfo(String id, Boolean processMissedPayments) throws ApiException, com.cybersource.authsdk.core.ConfigException
id - Subscription Id (required)processMissedPayments - Indicates if missed payments should be processed from the period when the subscription was suspended. By default, this is set to true. When any option other than \"Ask each time before reactivating\" is selected in the reactivation settings, the value that you enter will be ignored. (optional, default to true)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodycom.cybersource.authsdk.core.ConfigException - If creation of merchant configuration fails in ApiClientpublic okhttp3.Call activateSubscriptionAsync(String id, Boolean processMissedPayments, ApiCallback<ActivateSubscriptionResponse> callback) throws ApiException, com.cybersource.authsdk.core.ConfigException
id - Subscription Id (required)processMissedPayments - Indicates if missed payments should be processed from the period when the subscription was suspended. By default, this is set to true. When any option other than \"Ask each time before reactivating\" is selected in the reactivation settings, the value that you enter will be ignored. (optional, default to true)callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body objectcom.cybersource.authsdk.core.ConfigException - If creation of merchant configuration fails in ApiClientpublic okhttp3.Call cancelSubscriptionCall(String id, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException, com.cybersource.authsdk.core.ConfigException
id - Subscription Id (required)progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectcom.cybersource.authsdk.core.ConfigException - If creation of merchant configuration fails in ApiClientpublic CancelSubscriptionResponse cancelSubscription(String id) throws ApiException, com.cybersource.authsdk.core.ConfigException
id - Subscription Id (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodycom.cybersource.authsdk.core.ConfigException - If creation of merchant configuration fails in ApiClientpublic ApiResponse<CancelSubscriptionResponse> cancelSubscriptionWithHttpInfo(String id) throws ApiException, com.cybersource.authsdk.core.ConfigException
id - Subscription Id (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodycom.cybersource.authsdk.core.ConfigException - If creation of merchant configuration fails in ApiClientpublic okhttp3.Call cancelSubscriptionAsync(String id, ApiCallback<CancelSubscriptionResponse> callback) throws ApiException, com.cybersource.authsdk.core.ConfigException
id - Subscription Id (required)callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body objectcom.cybersource.authsdk.core.ConfigException - If creation of merchant configuration fails in ApiClientpublic okhttp3.Call createSubscriptionCall(CreateSubscriptionRequest createSubscriptionRequest, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException, com.cybersource.authsdk.core.ConfigException
createSubscriptionRequest - (required)progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectcom.cybersource.authsdk.core.ConfigException - If creation of merchant configuration fails in ApiClientpublic CreateSubscriptionResponse createSubscription(CreateSubscriptionRequest createSubscriptionRequest) throws ApiException, com.cybersource.authsdk.core.ConfigException
createSubscriptionRequest - (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodycom.cybersource.authsdk.core.ConfigException - If creation of merchant configuration fails in ApiClientpublic ApiResponse<CreateSubscriptionResponse> createSubscriptionWithHttpInfo(CreateSubscriptionRequest createSubscriptionRequest) throws ApiException, com.cybersource.authsdk.core.ConfigException
createSubscriptionRequest - (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodycom.cybersource.authsdk.core.ConfigException - If creation of merchant configuration fails in ApiClientpublic okhttp3.Call createSubscriptionAsync(CreateSubscriptionRequest createSubscriptionRequest, ApiCallback<CreateSubscriptionResponse> callback) throws ApiException, com.cybersource.authsdk.core.ConfigException
createSubscriptionRequest - (required)callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body objectcom.cybersource.authsdk.core.ConfigException - If creation of merchant configuration fails in ApiClientpublic okhttp3.Call getAllSubscriptionsCall(Integer offset, Integer limit, String code, String status, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException, com.cybersource.authsdk.core.ConfigException
offset - Page offset number. (optional)limit - Number of items to be returned. Default - `20`, Max - `100` (optional)code - Filter by Subscription Code (optional)status - Filter by Subscription Status (optional)progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectcom.cybersource.authsdk.core.ConfigException - If creation of merchant configuration fails in ApiClientpublic GetAllSubscriptionsResponse getAllSubscriptions(Integer offset, Integer limit, String code, String status) throws ApiException, com.cybersource.authsdk.core.ConfigException
offset - Page offset number. (optional)limit - Number of items to be returned. Default - `20`, Max - `100` (optional)code - Filter by Subscription Code (optional)status - Filter by Subscription Status (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodycom.cybersource.authsdk.core.ConfigException - If creation of merchant configuration fails in ApiClientpublic ApiResponse<GetAllSubscriptionsResponse> getAllSubscriptionsWithHttpInfo(Integer offset, Integer limit, String code, String status) throws ApiException, com.cybersource.authsdk.core.ConfigException
offset - Page offset number. (optional)limit - Number of items to be returned. Default - `20`, Max - `100` (optional)code - Filter by Subscription Code (optional)status - Filter by Subscription Status (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodycom.cybersource.authsdk.core.ConfigException - If creation of merchant configuration fails in ApiClientpublic okhttp3.Call getAllSubscriptionsAsync(Integer offset, Integer limit, String code, String status, ApiCallback<GetAllSubscriptionsResponse> callback) throws ApiException, com.cybersource.authsdk.core.ConfigException
offset - Page offset number. (optional)limit - Number of items to be returned. Default - `20`, Max - `100` (optional)code - Filter by Subscription Code (optional)status - Filter by Subscription Status (optional)callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body objectcom.cybersource.authsdk.core.ConfigException - If creation of merchant configuration fails in ApiClientpublic okhttp3.Call getSubscriptionCall(String id, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException, com.cybersource.authsdk.core.ConfigException
id - Subscription Id (required)progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectcom.cybersource.authsdk.core.ConfigException - If creation of merchant configuration fails in ApiClientpublic GetSubscriptionResponse getSubscription(String id) throws ApiException, com.cybersource.authsdk.core.ConfigException
id - Subscription Id (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodycom.cybersource.authsdk.core.ConfigException - If creation of merchant configuration fails in ApiClientpublic ApiResponse<GetSubscriptionResponse> getSubscriptionWithHttpInfo(String id) throws ApiException, com.cybersource.authsdk.core.ConfigException
id - Subscription Id (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodycom.cybersource.authsdk.core.ConfigException - If creation of merchant configuration fails in ApiClientpublic okhttp3.Call getSubscriptionAsync(String id, ApiCallback<GetSubscriptionResponse> callback) throws ApiException, com.cybersource.authsdk.core.ConfigException
id - Subscription Id (required)callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body objectcom.cybersource.authsdk.core.ConfigException - If creation of merchant configuration fails in ApiClientpublic okhttp3.Call getSubscriptionCodeCall(ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException, com.cybersource.authsdk.core.ConfigException
progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectcom.cybersource.authsdk.core.ConfigException - If creation of merchant configuration fails in ApiClientpublic GetSubscriptionCodeResponse getSubscriptionCode() throws ApiException, com.cybersource.authsdk.core.ConfigException
ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodycom.cybersource.authsdk.core.ConfigException - If creation of merchant configuration fails in ApiClientpublic ApiResponse<GetSubscriptionCodeResponse> getSubscriptionCodeWithHttpInfo() throws ApiException, com.cybersource.authsdk.core.ConfigException
ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodycom.cybersource.authsdk.core.ConfigException - If creation of merchant configuration fails in ApiClientpublic okhttp3.Call getSubscriptionCodeAsync(ApiCallback<GetSubscriptionCodeResponse> callback) throws ApiException, com.cybersource.authsdk.core.ConfigException
callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body objectcom.cybersource.authsdk.core.ConfigException - If creation of merchant configuration fails in ApiClientpublic okhttp3.Call suspendSubscriptionCall(String id, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException, com.cybersource.authsdk.core.ConfigException
id - Subscription Id (required)progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectcom.cybersource.authsdk.core.ConfigException - If creation of merchant configuration fails in ApiClientpublic SuspendSubscriptionResponse suspendSubscription(String id) throws ApiException, com.cybersource.authsdk.core.ConfigException
id - Subscription Id (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodycom.cybersource.authsdk.core.ConfigException - If creation of merchant configuration fails in ApiClientpublic ApiResponse<SuspendSubscriptionResponse> suspendSubscriptionWithHttpInfo(String id) throws ApiException, com.cybersource.authsdk.core.ConfigException
id - Subscription Id (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodycom.cybersource.authsdk.core.ConfigException - If creation of merchant configuration fails in ApiClientpublic okhttp3.Call suspendSubscriptionAsync(String id, ApiCallback<SuspendSubscriptionResponse> callback) throws ApiException, com.cybersource.authsdk.core.ConfigException
id - Subscription Id (required)callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body objectcom.cybersource.authsdk.core.ConfigException - If creation of merchant configuration fails in ApiClientpublic okhttp3.Call updateSubscriptionCall(String id, UpdateSubscription updateSubscription, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException, com.cybersource.authsdk.core.ConfigException
id - Subscription Id (required)updateSubscription - Update Subscription (required)progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectcom.cybersource.authsdk.core.ConfigException - If creation of merchant configuration fails in ApiClientpublic UpdateSubscriptionResponse updateSubscription(String id, UpdateSubscription updateSubscription) throws ApiException, com.cybersource.authsdk.core.ConfigException
id - Subscription Id (required)updateSubscription - Update Subscription (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodycom.cybersource.authsdk.core.ConfigException - If creation of merchant configuration fails in ApiClientpublic ApiResponse<UpdateSubscriptionResponse> updateSubscriptionWithHttpInfo(String id, UpdateSubscription updateSubscription) throws ApiException, com.cybersource.authsdk.core.ConfigException
id - Subscription Id (required)updateSubscription - Update Subscription (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodycom.cybersource.authsdk.core.ConfigException - If creation of merchant configuration fails in ApiClientpublic okhttp3.Call updateSubscriptionAsync(String id, UpdateSubscription updateSubscription, ApiCallback<UpdateSubscriptionResponse> callback) throws ApiException, com.cybersource.authsdk.core.ConfigException
id - Subscription Id (required)updateSubscription - Update Subscription (required)callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body objectcom.cybersource.authsdk.core.ConfigException - If creation of merchant configuration fails in ApiClientCopyright © 2026. All rights reserved.