public class PlansApi extends Object
| Modifier and Type | Method | 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, com.cybersource.authsdk.core.ConfigException
id - Plan 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 ActivateDeactivatePlanResponse activatePlan(String id) throws ApiException, com.cybersource.authsdk.core.ConfigException
id - Plan 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<ActivateDeactivatePlanResponse> activatePlanWithHttpInfo(String id) throws ApiException, com.cybersource.authsdk.core.ConfigException
id - Plan 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 activatePlanAsync(String id, ApiCallback<ActivateDeactivatePlanResponse> callback) throws ApiException, com.cybersource.authsdk.core.ConfigException
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 objectcom.cybersource.authsdk.core.ConfigException - If creation of merchant configuration fails in ApiClientpublic okhttp3.Call createPlanCall(CreatePlanRequest createPlanRequest, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException, com.cybersource.authsdk.core.ConfigException
createPlanRequest - (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 CreatePlanResponse createPlan(CreatePlanRequest createPlanRequest) throws ApiException, com.cybersource.authsdk.core.ConfigException
createPlanRequest - (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<CreatePlanResponse> createPlanWithHttpInfo(CreatePlanRequest createPlanRequest) throws ApiException, com.cybersource.authsdk.core.ConfigException
createPlanRequest - (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 createPlanAsync(CreatePlanRequest createPlanRequest, ApiCallback<CreatePlanResponse> callback) throws ApiException, com.cybersource.authsdk.core.ConfigException
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 objectcom.cybersource.authsdk.core.ConfigException - If creation of merchant configuration fails in ApiClientpublic okhttp3.Call deactivatePlanCall(String id, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException, com.cybersource.authsdk.core.ConfigException
id - Plan 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 ActivateDeactivatePlanResponse deactivatePlan(String id) throws ApiException, com.cybersource.authsdk.core.ConfigException
id - Plan 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<ActivateDeactivatePlanResponse> deactivatePlanWithHttpInfo(String id) throws ApiException, com.cybersource.authsdk.core.ConfigException
id - Plan 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 deactivatePlanAsync(String id, ApiCallback<ActivateDeactivatePlanResponse> callback) throws ApiException, com.cybersource.authsdk.core.ConfigException
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 objectcom.cybersource.authsdk.core.ConfigException - If creation of merchant configuration fails in ApiClientpublic okhttp3.Call deletePlanCall(String id, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException, com.cybersource.authsdk.core.ConfigException
id - Plan 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 DeletePlanResponse deletePlan(String id) throws ApiException, com.cybersource.authsdk.core.ConfigException
id - Plan 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<DeletePlanResponse> deletePlanWithHttpInfo(String id) throws ApiException, com.cybersource.authsdk.core.ConfigException
id - Plan 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 deletePlanAsync(String id, ApiCallback<DeletePlanResponse> callback) throws ApiException, com.cybersource.authsdk.core.ConfigException
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 objectcom.cybersource.authsdk.core.ConfigException - If creation of merchant configuration fails in ApiClientpublic okhttp3.Call getPlanCall(String id, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException, com.cybersource.authsdk.core.ConfigException
id - Plan 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 GetPlanResponse getPlan(String id) throws ApiException, com.cybersource.authsdk.core.ConfigException
id - Plan 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<GetPlanResponse> getPlanWithHttpInfo(String id) throws ApiException, com.cybersource.authsdk.core.ConfigException
id - Plan 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 getPlanAsync(String id, ApiCallback<GetPlanResponse> callback) throws ApiException, com.cybersource.authsdk.core.ConfigException
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 objectcom.cybersource.authsdk.core.ConfigException - If creation of merchant configuration fails in ApiClientpublic okhttp3.Call getPlanCodeCall(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 GetPlanCodeResponse getPlanCode() 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<GetPlanCodeResponse> getPlanCodeWithHttpInfo() 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 getPlanCodeAsync(ApiCallback<GetPlanCodeResponse> 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 getPlansCall(Integer offset, Integer limit, String code, String status, String name, 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 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 objectcom.cybersource.authsdk.core.ConfigException - If creation of merchant configuration fails in ApiClientpublic GetAllPlansResponse getPlans(Integer offset, Integer limit, String code, String status, String name) 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 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 bodycom.cybersource.authsdk.core.ConfigException - If creation of merchant configuration fails in ApiClientpublic ApiResponse<GetAllPlansResponse> getPlansWithHttpInfo(Integer offset, Integer limit, String code, String status, String name) 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 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 bodycom.cybersource.authsdk.core.ConfigException - If creation of merchant configuration fails in ApiClientpublic okhttp3.Call getPlansAsync(Integer offset, Integer limit, String code, String status, String name, ApiCallback<GetAllPlansResponse> 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 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 objectcom.cybersource.authsdk.core.ConfigException - If creation of merchant configuration fails in ApiClientpublic okhttp3.Call updatePlanCall(String id, UpdatePlanRequest updatePlanRequest, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException, com.cybersource.authsdk.core.ConfigException
id - Plan Id (required)updatePlanRequest - (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 UpdatePlanResponse updatePlan(String id, UpdatePlanRequest updatePlanRequest) throws ApiException, com.cybersource.authsdk.core.ConfigException
id - Plan Id (required)updatePlanRequest - (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<UpdatePlanResponse> updatePlanWithHttpInfo(String id, UpdatePlanRequest updatePlanRequest) throws ApiException, com.cybersource.authsdk.core.ConfigException
id - Plan Id (required)updatePlanRequest - (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 updatePlanAsync(String id, UpdatePlanRequest updatePlanRequest, ApiCallback<UpdatePlanResponse> callback) throws ApiException, com.cybersource.authsdk.core.ConfigException
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 objectcom.cybersource.authsdk.core.ConfigException - If creation of merchant configuration fails in ApiClientCopyright © 2026. All rights reserved.