public class PlansApi extends Object
| Constructor and Description |
|---|
PlansApi() |
PlansApi(ApiClient apiClient) |
| Modifier and Type | Method and Description |
|---|---|
ActivateDeactivatePlanResponse |
activatePlan(String id)
Activate a Plan
Activate a Plan
|
okhttp3.Call |
activatePlanAsync(String id,
ApiCallback<ActivateDeactivatePlanResponse> callback)
Activate a Plan (asynchronously)
Activate a Plan
|
okhttp3.Call |
activatePlanCall(String id,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for activatePlan
|
ApiResponse<ActivateDeactivatePlanResponse> |
activatePlanWithHttpInfo(String id)
Activate a Plan
Activate a Plan
|
CreatePlanResponse |
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<CreatePlanResponse> 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<CreatePlanResponse> |
createPlanWithHttpInfo(CreatePlanRequest createPlanRequest)
Create a Plan
The recurring billing service enables you to manage payment plans and subscriptions for recurring payment schedules.
|
ActivateDeactivatePlanResponse |
deactivatePlan(String id)
Deactivate a Plan
Deactivate a Plan
|
okhttp3.Call |
deactivatePlanAsync(String id,
ApiCallback<ActivateDeactivatePlanResponse> callback)
Deactivate a Plan (asynchronously)
Deactivate a Plan
|
okhttp3.Call |
deactivatePlanCall(String id,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for deactivatePlan
|
ApiResponse<ActivateDeactivatePlanResponse> |
deactivatePlanWithHttpInfo(String id)
Deactivate a Plan
Deactivate a Plan
|
DeletePlanResponse |
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<DeletePlanResponse> 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<DeletePlanResponse> |
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() |
GetPlanResponse |
getPlan(String id)
Get a Plan
Retrieve a Plan details by Plan Id.
|
okhttp3.Call |
getPlanAsync(String id,
ApiCallback<GetPlanResponse> 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
|
GetPlanCodeResponse |
getPlanCode()
Get a Plan Code
Get a Unique Plan Code
|
okhttp3.Call |
getPlanCodeAsync(ApiCallback<GetPlanCodeResponse> 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<GetPlanCodeResponse> |
getPlanCodeWithHttpInfo()
Get a Plan Code
Get a Unique Plan Code
|
GetAllPlansResponse |
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<GetAllPlansResponse> 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<GetAllPlansResponse> |
getPlansWithHttpInfo(Integer offset,
Integer limit,
String code,
String status,
String name)
Get a List of Plans
Retrieve Plans by Plan Code & Plan Status.
|
ApiResponse<GetPlanResponse> |
getPlanWithHttpInfo(String id)
Get a Plan
Retrieve a Plan details by Plan Id.
|
void |
setApiClient(ApiClient apiClient) |
UpdatePlanResponse |
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<UpdatePlanResponse> 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<UpdatePlanResponse> |
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, 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 ActivateDeactivatePlanResponse activatePlan(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<ActivateDeactivatePlanResponse> activatePlanWithHttpInfo(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 activatePlanAsync(String id, ApiCallback<ActivateDeactivatePlanResponse> 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 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 CreatePlanResponse 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<CreatePlanResponse> 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<CreatePlanResponse> 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, 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 ActivateDeactivatePlanResponse deactivatePlan(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<ActivateDeactivatePlanResponse> deactivatePlanWithHttpInfo(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 deactivatePlanAsync(String id, ApiCallback<ActivateDeactivatePlanResponse> 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 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 DeletePlanResponse 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<DeletePlanResponse> 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<DeletePlanResponse> 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 GetPlanResponse 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<GetPlanResponse> 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<GetPlanResponse> 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 GetPlanCodeResponse getPlanCode() throws ApiException
ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<GetPlanCodeResponse> getPlanCodeWithHttpInfo() throws ApiException
ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic okhttp3.Call getPlanCodeAsync(ApiCallback<GetPlanCodeResponse> 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 GetAllPlansResponse 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<GetAllPlansResponse> 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<GetAllPlansResponse> 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 UpdatePlanResponse 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<UpdatePlanResponse> 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<UpdatePlanResponse> 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 © 2025. All rights reserved.