public class RefundsApiImpl extends AbstractBaseApi implements RefundsApi
RefundsApi interface.| Constructor and Description |
|---|
RefundsApiImpl() |
| 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.
|
protected java.lang.String |
getApiName() |
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.
|
executeList, executeSearch, getApiBase, getApiUrl, getDeletionResult, httpTransportForDelete, httpTransportForGet, httpTransportForPost, httpTransportForPutpublic final RefundListResponse list(int page) throws java.io.IOException
RefundsApilist in interface RefundsApipage - The page number specified.java.io.IOException - If IO errors occur while calling PinPayments REST API.public final RefundResponse fetch(java.lang.String refundToken) throws java.io.IOException
RefundsApifetch in interface RefundsApirefundToken - The refund token specified.java.io.IOException - If IO errors occur while calling PinPayments REST API.public final RefundResponse create(java.lang.String chargeToken, Refund refund) throws java.io.IOException
RefundsApicreate in interface RefundsApichargeToken - The charge token specified.refund - The refund to be created.java.io.IOException - If IO errors occur while calling PinPayments REST API.public final RefundListResponse listForCharge(java.lang.String chargeToken, int page) throws java.io.IOException
RefundsApilistForCharge in interface RefundsApichargeToken - The charge token specified.page - The page number specified.java.io.IOException - If IO errors occur while calling PinPayments REST API.protected final java.lang.String getApiName()
getApiName in class AbstractBaseApi