public class CaptureApi extends Object
| Constructor and Description |
|---|
CaptureApi() |
CaptureApi(ApiClient apiClient) |
| Modifier and Type | Method and Description |
|---|---|
InlineResponse2012 |
capturePayment(CapturePaymentRequest capturePaymentRequest,
String id)
Capture a Payment
Include the payment ID in the POST request to capture the payment amount.
|
com.squareup.okhttp.Call |
capturePaymentAsync(CapturePaymentRequest capturePaymentRequest,
String id,
ApiCallback<InlineResponse2012> callback)
Capture a Payment (asynchronously)
Include the payment ID in the POST request to capture the payment amount.
|
com.squareup.okhttp.Call |
capturePaymentCall(CapturePaymentRequest capturePaymentRequest,
String id,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for capturePayment
|
ApiResponse<InlineResponse2012> |
capturePaymentWithHttpInfo(CapturePaymentRequest capturePaymentRequest,
String id)
Capture a Payment
Include the payment ID in the POST request to capture the payment amount.
|
ApiClient |
getApiClient() |
InlineResponse2004 |
getCapture(String id)
Retrieve a Capture
Include the capture ID in the GET request to retrieve the capture details.
|
com.squareup.okhttp.Call |
getCaptureAsync(String id,
ApiCallback<InlineResponse2004> callback)
Retrieve a Capture (asynchronously)
Include the capture ID in the GET request to retrieve the capture details.
|
com.squareup.okhttp.Call |
getCaptureCall(String id,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for getCapture
|
ApiResponse<InlineResponse2004> |
getCaptureWithHttpInfo(String id)
Retrieve a Capture
Include the capture ID in the GET request to retrieve the capture details.
|
void |
setApiClient(ApiClient apiClient) |
public CaptureApi()
public CaptureApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
public com.squareup.okhttp.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 InlineResponse2012 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<InlineResponse2012> 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 com.squareup.okhttp.Call capturePaymentAsync(CapturePaymentRequest capturePaymentRequest, String id, ApiCallback<InlineResponse2012> 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 objectpublic com.squareup.okhttp.Call getCaptureCall(String id, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
id - The capture ID returned from a previous capture request. (required)progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectpublic InlineResponse2004 getCapture(String id) throws ApiException
id - The capture ID 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<InlineResponse2004> getCaptureWithHttpInfo(String id) throws ApiException
id - The capture ID returned from a previous capture request. (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call getCaptureAsync(String id, ApiCallback<InlineResponse2004> callback) throws ApiException
id - The capture ID 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 objectCopyright © 2018. All rights reserved.