public class RefundApi extends Object
| Constructor and Description |
|---|
RefundApi() |
RefundApi(ApiClient apiClient) |
| Modifier and Type | Method and Description |
|---|---|
ApiClient |
getApiClient() |
InlineResponse2005 |
getRefund(String id)
Retrieve a Refund
Include the refund ID in the GET request to to retrieve the refund details.
|
com.squareup.okhttp.Call |
getRefundAsync(String id,
ApiCallback<InlineResponse2005> callback)
Retrieve a Refund (asynchronously)
Include the refund ID in the GET request to to retrieve the refund details.
|
com.squareup.okhttp.Call |
getRefundCall(String id,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for getRefund
|
ApiResponse<InlineResponse2005> |
getRefundWithHttpInfo(String id)
Retrieve a Refund
Include the refund ID in the GET request to to retrieve the refund details.
|
InlineResponse2013 |
refundCapture(RefundCaptureRequest refundCaptureRequest,
String id)
Refund a Capture
Include the capture ID in the POST request to refund the captured amount.
|
com.squareup.okhttp.Call |
refundCaptureAsync(RefundCaptureRequest refundCaptureRequest,
String id,
ApiCallback<InlineResponse2013> callback)
Refund a Capture (asynchronously)
Include the capture ID in the POST request to refund the captured amount.
|
com.squareup.okhttp.Call |
refundCaptureCall(RefundCaptureRequest refundCaptureRequest,
String id,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for refundCapture
|
ApiResponse<InlineResponse2013> |
refundCaptureWithHttpInfo(RefundCaptureRequest refundCaptureRequest,
String id)
Refund a Capture
Include the capture ID in the POST request to refund the captured amount.
|
InlineResponse2013 |
refundPayment(RefundPaymentRequest refundPaymentRequest,
String id)
Refund a Payment
Include the payment ID in the POST request to refund the payment amount.
|
com.squareup.okhttp.Call |
refundPaymentAsync(RefundPaymentRequest refundPaymentRequest,
String id,
ApiCallback<InlineResponse2013> callback)
Refund a Payment (asynchronously)
Include the payment ID in the POST request to refund the payment amount.
|
com.squareup.okhttp.Call |
refundPaymentCall(RefundPaymentRequest refundPaymentRequest,
String id,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for refundPayment
|
ApiResponse<InlineResponse2013> |
refundPaymentWithHttpInfo(RefundPaymentRequest refundPaymentRequest,
String id)
Refund a Payment
Include the payment ID in the POST request to refund the payment amount.
|
void |
setApiClient(ApiClient apiClient) |
public RefundApi()
public RefundApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
public com.squareup.okhttp.Call getRefundCall(String id, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
id - The refund ID. This ID is returned from a previous refund request. (required)progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectpublic InlineResponse2005 getRefund(String id) throws ApiException
id - The refund ID. This ID is returned from a previous refund request. (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<InlineResponse2005> getRefundWithHttpInfo(String id) throws ApiException
id - The refund ID. This ID is returned from a previous refund request. (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call getRefundAsync(String id, ApiCallback<InlineResponse2005> callback) throws ApiException
id - The refund ID. This ID is returned from a previous refund 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 com.squareup.okhttp.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 InlineResponse2013 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<InlineResponse2013> 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 com.squareup.okhttp.Call refundCaptureAsync(RefundCaptureRequest refundCaptureRequest, String id, ApiCallback<InlineResponse2013> 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 com.squareup.okhttp.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 InlineResponse2013 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<InlineResponse2013> 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 com.squareup.okhttp.Call refundPaymentAsync(RefundPaymentRequest refundPaymentRequest, String id, ApiCallback<InlineResponse2013> 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 © 2018. All rights reserved.