public interface ChargesApi
| Modifier and Type | Method and Description |
|---|---|
ChargeResponse |
capture(java.lang.String chargeToken)
Captures a previously authorised charge and returns its details.
|
ChargeResponse |
create(Charge charge)
Creates a new charge and returns its details.
|
ChargeResponse |
fetch(java.lang.String chargeToken)
Returns the details of a charge.
|
ChargeListResponse |
list(int page)
Returns a paginated list of all charges.
|
ChargeListResponse |
search(SearchCriteria searchCriteria)
Returns a paginated list of charges matching the search criteria.
|
ChargeResponse create(Charge charge) throws java.io.IOException
charge - The charge specified.java.io.IOException - If IO errors occur while calling PinPayments REST API.ChargeResponse capture(java.lang.String chargeToken) throws java.io.IOException
chargeToken - The charge token specified.java.io.IOException - If IO errors occur while calling PinPayments REST API.ChargeListResponse list(int page) throws java.io.IOException
page - The page number specified.java.io.IOException - If IO errors occur while calling PinPayments REST API.ChargeListResponse search(SearchCriteria searchCriteria) throws java.io.IOException
searchCriteria - The search criteria specified.java.io.IOException - If IO errors occur while calling PinPayments REST API.ChargeResponse fetch(java.lang.String chargeToken) throws java.io.IOException
chargeToken - The charge token specified.java.io.IOException - If IO errors occur while calling PinPayments REST API.