public class SubscriptionsApi extends Object
| Constructor and Description |
|---|
SubscriptionsApi() |
SubscriptionsApi(ApiClient apiClient) |
| Modifier and Type | Method and Description |
|---|---|
InlineResponse2009 |
activateSubscription(String id,
Object activateSubscriptionRequest)
Activate a Subscription
Activate a `CANCELLED` Or `SUSPENDED` Subscription
|
okhttp3.Call |
activateSubscriptionAsync(String id,
Object activateSubscriptionRequest,
ApiCallback<InlineResponse2009> callback)
Activate a Subscription (asynchronously)
Activate a `CANCELLED` Or `SUSPENDED` Subscription
|
okhttp3.Call |
activateSubscriptionCall(String id,
Object activateSubscriptionRequest,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for activateSubscription
|
ApiResponse<InlineResponse2009> |
activateSubscriptionWithHttpInfo(String id,
Object activateSubscriptionRequest)
Activate a Subscription
Activate a `CANCELLED` Or `SUSPENDED` Subscription
|
InlineResponse202 |
cancelSubscription(String id,
Object cancelSubscriptionRequest)
Cancel a Subscription
Cancel a Subscription
|
okhttp3.Call |
cancelSubscriptionAsync(String id,
Object cancelSubscriptionRequest,
ApiCallback<InlineResponse202> callback)
Cancel a Subscription (asynchronously)
Cancel a Subscription
|
okhttp3.Call |
cancelSubscriptionCall(String id,
Object cancelSubscriptionRequest,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for cancelSubscription
|
ApiResponse<InlineResponse202> |
cancelSubscriptionWithHttpInfo(String id,
Object cancelSubscriptionRequest)
Cancel a Subscription
Cancel a Subscription
|
InlineResponse2011 |
createSubscription(CreateSubscriptionRequest createSubscriptionRequest)
Create a Subscription
Create a Recurring Billing Subscription
|
okhttp3.Call |
createSubscriptionAsync(CreateSubscriptionRequest createSubscriptionRequest,
ApiCallback<InlineResponse2011> 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<InlineResponse2011> |
createSubscriptionWithHttpInfo(CreateSubscriptionRequest createSubscriptionRequest)
Create a Subscription
Create a Recurring Billing Subscription
|
InlineResponse2006 |
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<InlineResponse2006> 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<InlineResponse2006> |
getAllSubscriptionsWithHttpInfo(Integer offset,
Integer limit,
String code,
String status)
Get a List of Subscriptions
Retrieve Subscriptions by Subscription Code & Subscription Status.
|
ApiClient |
getApiClient() |
InlineResponse2007 |
getSubscription(String id)
Get a Subscription
Get a Subscription by Subscription Id
|
okhttp3.Call |
getSubscriptionAsync(String id,
ApiCallback<InlineResponse2007> 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
|
InlineResponse20010 |
getSubscriptionCode()
Get a Subscription Code
Get a Unique Subscription Code
|
okhttp3.Call |
getSubscriptionCodeAsync(ApiCallback<InlineResponse20010> 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<InlineResponse20010> |
getSubscriptionCodeWithHttpInfo()
Get a Subscription Code
Get a Unique Subscription Code
|
ApiResponse<InlineResponse2007> |
getSubscriptionWithHttpInfo(String id)
Get a Subscription
Get a Subscription by Subscription Id
|
void |
setApiClient(ApiClient apiClient) |
InlineResponse2021 |
suspendSubscription(String id,
Object suspendSubscriptionRequest)
Suspend a Subscription
Suspend a Subscription
|
okhttp3.Call |
suspendSubscriptionAsync(String id,
Object suspendSubscriptionRequest,
ApiCallback<InlineResponse2021> callback)
Suspend a Subscription (asynchronously)
Suspend a Subscription
|
okhttp3.Call |
suspendSubscriptionCall(String id,
Object suspendSubscriptionRequest,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for suspendSubscription
|
ApiResponse<InlineResponse2021> |
suspendSubscriptionWithHttpInfo(String id,
Object suspendSubscriptionRequest)
Suspend a Subscription
Suspend a Subscription
|
InlineResponse2008 |
updateSubscription(String id,
UpdateSubscription updateSubscription)
Update a Subscription
Update a Subscription by Subscription Id
|
okhttp3.Call |
updateSubscriptionAsync(String id,
UpdateSubscription updateSubscription,
ApiCallback<InlineResponse2008> 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<InlineResponse2008> |
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, Object activateSubscriptionRequest, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
id - Subscription Id (required)activateSubscriptionRequest - (optional)progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectpublic InlineResponse2009 activateSubscription(String id, Object activateSubscriptionRequest) throws ApiException
id - Subscription Id (required)activateSubscriptionRequest - (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<InlineResponse2009> activateSubscriptionWithHttpInfo(String id, Object activateSubscriptionRequest) throws ApiException
id - Subscription Id (required)activateSubscriptionRequest - (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic okhttp3.Call activateSubscriptionAsync(String id, Object activateSubscriptionRequest, ApiCallback<InlineResponse2009> callback) throws ApiException
id - Subscription Id (required)activateSubscriptionRequest - (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 objectpublic okhttp3.Call cancelSubscriptionCall(String id, Object cancelSubscriptionRequest, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
id - Subscription Id (required)cancelSubscriptionRequest - (optional)progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectpublic InlineResponse202 cancelSubscription(String id, Object cancelSubscriptionRequest) throws ApiException
id - Subscription Id (required)cancelSubscriptionRequest - (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<InlineResponse202> cancelSubscriptionWithHttpInfo(String id, Object cancelSubscriptionRequest) throws ApiException
id - Subscription Id (required)cancelSubscriptionRequest - (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic okhttp3.Call cancelSubscriptionAsync(String id, Object cancelSubscriptionRequest, ApiCallback<InlineResponse202> callback) throws ApiException
id - Subscription Id (required)cancelSubscriptionRequest - (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 objectpublic okhttp3.Call createSubscriptionCall(CreateSubscriptionRequest createSubscriptionRequest, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
createSubscriptionRequest - (required)progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectpublic InlineResponse2011 createSubscription(CreateSubscriptionRequest createSubscriptionRequest) throws ApiException
createSubscriptionRequest - (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<InlineResponse2011> createSubscriptionWithHttpInfo(CreateSubscriptionRequest createSubscriptionRequest) throws ApiException
createSubscriptionRequest - (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic okhttp3.Call createSubscriptionAsync(CreateSubscriptionRequest createSubscriptionRequest, ApiCallback<InlineResponse2011> callback) throws ApiException
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 objectpublic okhttp3.Call getAllSubscriptionsCall(Integer offset, Integer limit, String code, String status, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
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 objectpublic InlineResponse2006 getAllSubscriptions(Integer offset, Integer limit, String code, String status) throws ApiException
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 bodypublic ApiResponse<InlineResponse2006> getAllSubscriptionsWithHttpInfo(Integer offset, Integer limit, String code, String status) throws ApiException
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 bodypublic okhttp3.Call getAllSubscriptionsAsync(Integer offset, Integer limit, String code, String status, ApiCallback<InlineResponse2006> callback) throws ApiException
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 objectpublic okhttp3.Call getSubscriptionCall(String id, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
id - Subscription Id (required)progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectpublic InlineResponse2007 getSubscription(String id) throws ApiException
id - Subscription Id (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<InlineResponse2007> getSubscriptionWithHttpInfo(String id) throws ApiException
id - Subscription Id (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic okhttp3.Call getSubscriptionAsync(String id, ApiCallback<InlineResponse2007> callback) throws ApiException
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 objectpublic okhttp3.Call getSubscriptionCodeCall(ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectpublic InlineResponse20010 getSubscriptionCode() throws ApiException
ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<InlineResponse20010> getSubscriptionCodeWithHttpInfo() throws ApiException
ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic okhttp3.Call getSubscriptionCodeAsync(ApiCallback<InlineResponse20010> callback) throws ApiException
callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body objectpublic okhttp3.Call suspendSubscriptionCall(String id, Object suspendSubscriptionRequest, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
id - Subscription Id (required)suspendSubscriptionRequest - (optional)progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectpublic InlineResponse2021 suspendSubscription(String id, Object suspendSubscriptionRequest) throws ApiException
id - Subscription Id (required)suspendSubscriptionRequest - (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<InlineResponse2021> suspendSubscriptionWithHttpInfo(String id, Object suspendSubscriptionRequest) throws ApiException
id - Subscription Id (required)suspendSubscriptionRequest - (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic okhttp3.Call suspendSubscriptionAsync(String id, Object suspendSubscriptionRequest, ApiCallback<InlineResponse2021> callback) throws ApiException
id - Subscription Id (required)suspendSubscriptionRequest - (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 objectpublic okhttp3.Call updateSubscriptionCall(String id, UpdateSubscription updateSubscription, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
id - Subscription Id (required)updateSubscription - Update Subscription (required)progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectpublic InlineResponse2008 updateSubscription(String id, UpdateSubscription updateSubscription) throws ApiException
id - Subscription Id (required)updateSubscription - Update Subscription (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<InlineResponse2008> updateSubscriptionWithHttpInfo(String id, UpdateSubscription updateSubscription) throws ApiException
id - Subscription Id (required)updateSubscription - Update Subscription (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic okhttp3.Call updateSubscriptionAsync(String id, UpdateSubscription updateSubscription, ApiCallback<InlineResponse2008> callback) throws ApiException
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 objectCopyright © 2023. All rights reserved.