public class RefundApi extends Object
| Constructor and Description |
|---|
RefundApi() |
RefundApi(ApiClient apiClient) |
| Modifier and Type | Method and Description |
|---|---|
ApiClient |
getApiClient() |
PtsV2PaymentsRefundPost201Response |
refundCapture(RefundCaptureRequest refundCaptureRequest,
String id)
Refund a Capture
Refund a capture API is only used, if you have requested Capture independenlty using [/pts/v2/payments/{id}/captures](https://developer.cybersource.com/api-reference-assets/index.html#payments_capture) API call Include the capture ID in the POST request to refund the captured amount.
|
okhttp3.Call |
refundCaptureAsync(RefundCaptureRequest refundCaptureRequest,
String id,
ApiCallback<PtsV2PaymentsRefundPost201Response> callback)
Refund a Capture (asynchronously)
Refund a capture API is only used, if you have requested Capture independenlty using [/pts/v2/payments/{id}/captures](https://developer.cybersource.com/api-reference-assets/index.html#payments_capture) API call Include the capture ID in the POST request to refund the captured amount.
|
okhttp3.Call |
refundCaptureCall(RefundCaptureRequest refundCaptureRequest,
String id,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for refundCapture
|
ApiResponse<PtsV2PaymentsRefundPost201Response> |
refundCaptureWithHttpInfo(RefundCaptureRequest refundCaptureRequest,
String id)
Refund a Capture
Refund a capture API is only used, if you have requested Capture independenlty using [/pts/v2/payments/{id}/captures](https://developer.cybersource.com/api-reference-assets/index.html#payments_capture) API call Include the capture ID in the POST request to refund the captured amount.
|
PtsV2PaymentsRefundPost201Response |
refundPayment(RefundPaymentRequest refundPaymentRequest,
String id)
Refund a Payment
Refund a Payment API is only used, if you have requested Authorization and Capture together in [/pts/v2/payments](https://developer.cybersource.com/api-reference-assets/index.html#payments_payments) API call.
|
okhttp3.Call |
refundPaymentAsync(RefundPaymentRequest refundPaymentRequest,
String id,
ApiCallback<PtsV2PaymentsRefundPost201Response> callback)
Refund a Payment (asynchronously)
Refund a Payment API is only used, if you have requested Authorization and Capture together in [/pts/v2/payments](https://developer.cybersource.com/api-reference-assets/index.html#payments_payments) API call.
|
okhttp3.Call |
refundPaymentCall(RefundPaymentRequest refundPaymentRequest,
String id,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for refundPayment
|
ApiResponse<PtsV2PaymentsRefundPost201Response> |
refundPaymentWithHttpInfo(RefundPaymentRequest refundPaymentRequest,
String id)
Refund a Payment
Refund a Payment API is only used, if you have requested Authorization and Capture together in [/pts/v2/payments](https://developer.cybersource.com/api-reference-assets/index.html#payments_payments) API call.
|
void |
setApiClient(ApiClient apiClient) |
public RefundApi()
public RefundApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
public okhttp3.Call refundCaptureCall(RefundCaptureRequest refundCaptureRequest, String id, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
refundCaptureRequest - (required)id - The capture ID. This ID is returned from a previous capture request. (required)progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectpublic PtsV2PaymentsRefundPost201Response refundCapture(RefundCaptureRequest refundCaptureRequest, String id) throws ApiException
refundCaptureRequest - (required)id - The capture ID. This ID is returned from a previous capture request. (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<PtsV2PaymentsRefundPost201Response> refundCaptureWithHttpInfo(RefundCaptureRequest refundCaptureRequest, String id) throws ApiException
refundCaptureRequest - (required)id - The capture ID. This ID is returned from a previous capture request. (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic okhttp3.Call refundCaptureAsync(RefundCaptureRequest refundCaptureRequest, String id, ApiCallback<PtsV2PaymentsRefundPost201Response> callback) throws ApiException
refundCaptureRequest - (required)id - The capture ID. This ID is returned from a previous capture request. (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 refundPaymentCall(RefundPaymentRequest refundPaymentRequest, String id, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
refundPaymentRequest - (required)id - The payment ID. This ID is returned from a previous payment request. (required)progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectpublic PtsV2PaymentsRefundPost201Response refundPayment(RefundPaymentRequest refundPaymentRequest, String id) throws ApiException
refundPaymentRequest - (required)id - The payment ID. This ID is returned from a previous payment request. (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<PtsV2PaymentsRefundPost201Response> refundPaymentWithHttpInfo(RefundPaymentRequest refundPaymentRequest, String id) throws ApiException
refundPaymentRequest - (required)id - The payment ID. This ID is returned from a previous payment request. (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic okhttp3.Call refundPaymentAsync(RefundPaymentRequest refundPaymentRequest, String id, ApiCallback<PtsV2PaymentsRefundPost201Response> callback) throws ApiException
refundPaymentRequest - (required)id - The payment ID. This ID is returned from a previous payment request. (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 © 2020. All rights reserved.