public class RefundsApi extends Object
| Constructor and Description |
|---|
RefundsApi(Configuration configuration) |
| Modifier and Type | Method and Description |
|---|---|
ApiClient |
getApiClient() |
List<RefundCollection> |
getCaptureRefunds(String captureId,
Integer offset,
Integer limit)
Lists refunds for a capture.
|
GetRefund |
getRefund(String id)
Retrieve a refund.
|
RefundCollection |
getRefunds(Integer offset,
Integer limit)
List refunds.
|
RefundCollection |
getSaleRefunds(String saleId,
Integer offset,
Integer limit)
List refunds for a sale.
|
Refund |
refundCapture(String id,
RefundRequest request)
Refund a captured payment.
|
Refund |
refundSale(String id,
RefundRequest request)
Refund a sale payment.
|
void |
setApiClient(ApiClient apiClient) |
public RefundsApi(Configuration configuration)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
public List<RefundCollection> getCaptureRefunds(String captureId, Integer offset, Integer limit) throws ApiException
captureId - The ID of the capture to refund.offset - offsetlimit - limitApiExceptionpublic Refund refundCapture(String id, RefundRequest request) throws ApiException
id - ID of the capture to refund.request - Capture request data.ApiExceptionpublic RefundCollection getRefunds(Integer offset, Integer limit) throws ApiException
offset - offsetlimit - limitApiExceptionpublic GetRefund getRefund(String id) throws ApiException
id - The ID of the refund.ApiExceptionpublic RefundCollection getSaleRefunds(String saleId, Integer offset, Integer limit) throws ApiException
saleId - The ID of the sale to refund.offset - offsetlimit - limitApiExceptionpublic Refund refundSale(String id, RefundRequest request) throws ApiException
id - ID of the sale to refund.request - Sale request data.ApiExceptionCopyright © 2016. All Rights Reserved.