public class CaptureApi extends Object
| Constructor and Description |
|---|
CaptureApi() |
CaptureApi(ApiClient apiClient) |
| Modifier and Type | Method and Description |
|---|---|
PtsV2PaymentsCapturesPost201Response |
capturePayment(CapturePaymentRequest capturePaymentRequest,
String id)
Capture a Payment
Include the payment ID in the POST request to capture the payment amount.
|
okhttp3.Call |
capturePaymentAsync(CapturePaymentRequest capturePaymentRequest,
String id,
ApiCallback<PtsV2PaymentsCapturesPost201Response> callback)
Capture a Payment (asynchronously)
Include the payment ID in the POST request to capture the payment amount.
|
okhttp3.Call |
capturePaymentCall(CapturePaymentRequest capturePaymentRequest,
String id,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for capturePayment
|
ApiResponse<PtsV2PaymentsCapturesPost201Response> |
capturePaymentWithHttpInfo(CapturePaymentRequest capturePaymentRequest,
String id)
Capture a Payment
Include the payment ID in the POST request to capture the payment amount.
|
ApiClient |
getApiClient() |
void |
setApiClient(ApiClient apiClient) |
public CaptureApi()
public CaptureApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
public okhttp3.Call capturePaymentCall(CapturePaymentRequest capturePaymentRequest, String id, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
capturePaymentRequest - (required)id - The payment ID returned from a previous payment request. This ID links the capture to the payment. (required)progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectpublic PtsV2PaymentsCapturesPost201Response capturePayment(CapturePaymentRequest capturePaymentRequest, String id) throws ApiException
capturePaymentRequest - (required)id - The payment ID returned from a previous payment request. This ID links the capture to the payment. (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<PtsV2PaymentsCapturesPost201Response> capturePaymentWithHttpInfo(CapturePaymentRequest capturePaymentRequest, String id) throws ApiException
capturePaymentRequest - (required)id - The payment ID returned from a previous payment request. This ID links the capture to the payment. (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic okhttp3.Call capturePaymentAsync(CapturePaymentRequest capturePaymentRequest, String id, ApiCallback<PtsV2PaymentsCapturesPost201Response> callback) throws ApiException
capturePaymentRequest - (required)id - The payment ID returned from a previous payment request. This ID links the capture to the payment. (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.