public class PlansApi extends Object
| Constructor and Description |
|---|
PlansApi() |
PlansApi(ApiClient apiClient) |
| Modifier and Type | Method and Description |
|---|---|
InlineResponse2004 |
activatePlan(String id,
Object activatePlanRequest)
Activate a Plan
Activate a Plan
|
okhttp3.Call |
activatePlanAsync(String id,
Object activatePlanRequest,
ApiCallback<InlineResponse2004> callback)
Activate a Plan (asynchronously)
Activate a Plan
|
okhttp3.Call |
activatePlanCall(String id,
Object activatePlanRequest,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for activatePlan
|
ApiResponse<InlineResponse2004> |
activatePlanWithHttpInfo(String id,
Object activatePlanRequest)
Activate a Plan
Activate a Plan
|
InlineResponse201 |
createPlan(CreatePlanRequest createPlanRequest)
Create a Plan
The recurring billing service enables you to manage payment plans and subscriptions for recurring payment schedules.
|
okhttp3.Call |
createPlanAsync(CreatePlanRequest createPlanRequest,
ApiCallback<InlineResponse201> callback)
Create a Plan (asynchronously)
The recurring billing service enables you to manage payment plans and subscriptions for recurring payment schedules.
|
okhttp3.Call |
createPlanCall(CreatePlanRequest createPlanRequest,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for createPlan
|
ApiResponse<InlineResponse201> |
createPlanWithHttpInfo(CreatePlanRequest createPlanRequest)
Create a Plan
The recurring billing service enables you to manage payment plans and subscriptions for recurring payment schedules.
|
InlineResponse2004 |
deactivatePlan(String id,
Object deactivatePlanRequest)
Deactivate a Plan
Deactivate a Plan
|
okhttp3.Call |
deactivatePlanAsync(String id,
Object deactivatePlanRequest,
ApiCallback<InlineResponse2004> callback)
Deactivate a Plan (asynchronously)
Deactivate a Plan
|
okhttp3.Call |
deactivatePlanCall(String id,
Object deactivatePlanRequest,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for deactivatePlan
|
ApiResponse<InlineResponse2004> |
deactivatePlanWithHttpInfo(String id,
Object deactivatePlanRequest)
Deactivate a Plan
Deactivate a Plan
|
InlineResponse2002 |
deletePlan(String id)
Delete a Plan
Delete a Plan is only allowed: - plan status is in `DRAFT` - plan status is in `ACTIVE`, and `INACTIVE` only allowed when no subscriptions attached to a plan in the lifetime of a plan
|
okhttp3.Call |
deletePlanAsync(String id,
ApiCallback<InlineResponse2002> callback)
Delete a Plan (asynchronously)
Delete a Plan is only allowed: - plan status is in `DRAFT` - plan status is in `ACTIVE`, and `INACTIVE` only allowed when no subscriptions attached to a plan in the lifetime of a plan
|
okhttp3.Call |
deletePlanCall(String id,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for deletePlan
|
ApiResponse<InlineResponse2002> |
deletePlanWithHttpInfo(String id)
Delete a Plan
Delete a Plan is only allowed: - plan status is in `DRAFT` - plan status is in `ACTIVE`, and `INACTIVE` only allowed when no subscriptions attached to a plan in the lifetime of a plan
|
ApiClient |
getApiClient() |
InlineResponse2001 |
getPlan(String id)
Get a Plan
Retrieve a Plan details by Plan Id.
|
okhttp3.Call |
getPlanAsync(String id,
ApiCallback<InlineResponse2001> callback)
Get a Plan (asynchronously)
Retrieve a Plan details by Plan Id.
|
okhttp3.Call |
getPlanCall(String id,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for getPlan
|
InlineResponse2005 |
getPlanCode()
Get a Plan Code
Get a Unique Plan Code
|
okhttp3.Call |
getPlanCodeAsync(ApiCallback<InlineResponse2005> callback)
Get a Plan Code (asynchronously)
Get a Unique Plan Code
|
okhttp3.Call |
getPlanCodeCall(ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for getPlanCode
|
ApiResponse<InlineResponse2005> |
getPlanCodeWithHttpInfo()
Get a Plan Code
Get a Unique Plan Code
|
InlineResponse200 |
getPlans(Integer offset,
Integer limit,
String code,
String status,
String name)
Get a List of Plans
Retrieve Plans by Plan Code & Plan Status.
|
okhttp3.Call |
getPlansAsync(Integer offset,
Integer limit,
String code,
String status,
String name,
ApiCallback<InlineResponse200> callback)
Get a List of Plans (asynchronously)
Retrieve Plans by Plan Code & Plan Status.
|
okhttp3.Call |
getPlansCall(Integer offset,
Integer limit,
String code,
String status,
String name,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for getPlans
|
ApiResponse<InlineResponse200> |
getPlansWithHttpInfo(Integer offset,
Integer limit,
String code,
String status,
String name)
Get a List of Plans
Retrieve Plans by Plan Code & Plan Status.
|
ApiResponse<InlineResponse2001> |
getPlanWithHttpInfo(String id)
Get a Plan
Retrieve a Plan details by Plan Id.
|
void |
setApiClient(ApiClient apiClient) |
InlineResponse2003 |
updatePlan(String id,
UpdatePlanRequest updatePlanRequest)
Update a Plan
Update a Plan Plan in `DRAFT` status - All updates are allowed on Plan with `DRAFT` status Plan in `ACTIVE` status [Following fields are **Not Updatable**] - `planInformation.billingPeriod` - `planInformation.billingCycles` [Update is only allowed to **increase** billingCycles] - `orderInformation.amountDetails.currency`
|
okhttp3.Call |
updatePlanAsync(String id,
UpdatePlanRequest updatePlanRequest,
ApiCallback<InlineResponse2003> callback)
Update a Plan (asynchronously)
Update a Plan Plan in `DRAFT` status - All updates are allowed on Plan with `DRAFT` status Plan in `ACTIVE` status [Following fields are **Not Updatable**] - `planInformation.billingPeriod` - `planInformation.billingCycles` [Update is only allowed to **increase** billingCycles] - `orderInformation.amountDetails.currency`
|
okhttp3.Call |
updatePlanCall(String id,
UpdatePlanRequest updatePlanRequest,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for updatePlan
|
ApiResponse<InlineResponse2003> |
updatePlanWithHttpInfo(String id,
UpdatePlanRequest updatePlanRequest)
Update a Plan
Update a Plan Plan in `DRAFT` status - All updates are allowed on Plan with `DRAFT` status Plan in `ACTIVE` status [Following fields are **Not Updatable**] - `planInformation.billingPeriod` - `planInformation.billingCycles` [Update is only allowed to **increase** billingCycles] - `orderInformation.amountDetails.currency`
|
public PlansApi()
public PlansApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
public okhttp3.Call activatePlanCall(String id, Object activatePlanRequest, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
id - Plan Id (required)activatePlanRequest - (optional)progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectpublic InlineResponse2004 activatePlan(String id, Object activatePlanRequest) throws ApiException
id - Plan Id (required)activatePlanRequest - (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<InlineResponse2004> activatePlanWithHttpInfo(String id, Object activatePlanRequest) throws ApiException
id - Plan Id (required)activatePlanRequest - (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic okhttp3.Call activatePlanAsync(String id, Object activatePlanRequest, ApiCallback<InlineResponse2004> callback) throws ApiException
id - Plan Id (required)activatePlanRequest - (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 createPlanCall(CreatePlanRequest createPlanRequest, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
createPlanRequest - (required)progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectpublic InlineResponse201 createPlan(CreatePlanRequest createPlanRequest) throws ApiException
createPlanRequest - (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<InlineResponse201> createPlanWithHttpInfo(CreatePlanRequest createPlanRequest) throws ApiException
createPlanRequest - (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic okhttp3.Call createPlanAsync(CreatePlanRequest createPlanRequest, ApiCallback<InlineResponse201> callback) throws ApiException
createPlanRequest - (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 deactivatePlanCall(String id, Object deactivatePlanRequest, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
id - Plan Id (required)deactivatePlanRequest - (optional)progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectpublic InlineResponse2004 deactivatePlan(String id, Object deactivatePlanRequest) throws ApiException
id - Plan Id (required)deactivatePlanRequest - (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<InlineResponse2004> deactivatePlanWithHttpInfo(String id, Object deactivatePlanRequest) throws ApiException
id - Plan Id (required)deactivatePlanRequest - (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic okhttp3.Call deactivatePlanAsync(String id, Object deactivatePlanRequest, ApiCallback<InlineResponse2004> callback) throws ApiException
id - Plan Id (required)deactivatePlanRequest - (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 deletePlanCall(String id, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
id - Plan Id (required)progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectpublic InlineResponse2002 deletePlan(String id) throws ApiException
id - Plan Id (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<InlineResponse2002> deletePlanWithHttpInfo(String id) throws ApiException
id - Plan Id (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic okhttp3.Call deletePlanAsync(String id, ApiCallback<InlineResponse2002> callback) throws ApiException
id - Plan 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 getPlanCall(String id, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
id - Plan Id (required)progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectpublic InlineResponse2001 getPlan(String id) throws ApiException
id - Plan Id (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<InlineResponse2001> getPlanWithHttpInfo(String id) throws ApiException
id - Plan Id (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic okhttp3.Call getPlanAsync(String id, ApiCallback<InlineResponse2001> callback) throws ApiException
id - Plan 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 getPlanCodeCall(ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectpublic InlineResponse2005 getPlanCode() throws ApiException
ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<InlineResponse2005> getPlanCodeWithHttpInfo() throws ApiException
ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic okhttp3.Call getPlanCodeAsync(ApiCallback<InlineResponse2005> 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 getPlansCall(Integer offset, Integer limit, String code, String status, String name, 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 Plan Code (optional)status - Filter by Plan Status (optional)name - Filter by Plan Name. (First sub string or full string) **[Not Recommended]** (optional)progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectpublic InlineResponse200 getPlans(Integer offset, Integer limit, String code, String status, String name) throws ApiException
offset - Page offset number. (optional)limit - Number of items to be returned. Default - `20`, Max - `100` (optional)code - Filter by Plan Code (optional)status - Filter by Plan Status (optional)name - Filter by Plan Name. (First sub string or full string) **[Not Recommended]** (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<InlineResponse200> getPlansWithHttpInfo(Integer offset, Integer limit, String code, String status, String name) throws ApiException
offset - Page offset number. (optional)limit - Number of items to be returned. Default - `20`, Max - `100` (optional)code - Filter by Plan Code (optional)status - Filter by Plan Status (optional)name - Filter by Plan Name. (First sub string or full string) **[Not Recommended]** (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic okhttp3.Call getPlansAsync(Integer offset, Integer limit, String code, String status, String name, ApiCallback<InlineResponse200> callback) throws ApiException
offset - Page offset number. (optional)limit - Number of items to be returned. Default - `20`, Max - `100` (optional)code - Filter by Plan Code (optional)status - Filter by Plan Status (optional)name - Filter by Plan Name. (First sub string or full string) **[Not Recommended]** (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 updatePlanCall(String id, UpdatePlanRequest updatePlanRequest, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
id - Plan Id (required)updatePlanRequest - (required)progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectpublic InlineResponse2003 updatePlan(String id, UpdatePlanRequest updatePlanRequest) throws ApiException
id - Plan Id (required)updatePlanRequest - (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<InlineResponse2003> updatePlanWithHttpInfo(String id, UpdatePlanRequest updatePlanRequest) throws ApiException
id - Plan Id (required)updatePlanRequest - (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic okhttp3.Call updatePlanAsync(String id, UpdatePlanRequest updatePlanRequest, ApiCallback<InlineResponse2003> callback) throws ApiException
id - Plan Id (required)updatePlanRequest - (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.