public interface RefundsApi
| Modifier and Type | Method and Description |
|---|---|
RefundResponse |
create(java.lang.String chargeToken,
Refund refund)
Creates a new refund, and returns its details.
|
RefundResponse |
fetch(java.lang.String refundToken)
Returns details for a specific refund.
|
RefundListResponse |
list(int page)
Returns a paginated list of all refunds.
|
RefundListResponse |
listForCharge(java.lang.String chargeToken,
int page)
Returns a list of all refunds for this charge.
|
RefundListResponse list(int page) throws java.io.IOException
page - The page number specified.java.io.IOException - If IO errors occur while calling PinPayments REST API.RefundResponse fetch(java.lang.String refundToken) throws java.io.IOException
refundToken - The refund token specified.java.io.IOException - If IO errors occur while calling PinPayments REST API.RefundResponse create(java.lang.String chargeToken, Refund refund) throws java.io.IOException
chargeToken - The charge token specified.refund - The refund to be created.java.io.IOException - If IO errors occur while calling PinPayments REST API.RefundListResponse listForCharge(java.lang.String chargeToken, int page) throws java.io.IOException
chargeToken - The charge token specified.page - The page number specified.java.io.IOException - If IO errors occur while calling PinPayments REST API.