public class ChargesApiImpl extends AbstractBaseApi implements ChargesApi
ChargesApi interface.| Constructor and Description |
|---|
ChargesApiImpl() |
| 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.
|
protected java.lang.String |
getApiName() |
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.
|
executeList, executeSearch, getApiBase, getApiUrl, getDeletionResult, httpTransportForDelete, httpTransportForGet, httpTransportForPost, httpTransportForPutpublic final ChargeResponse create(Charge charge) throws java.io.IOException
ChargesApicreate in interface ChargesApicharge - The charge specified.java.io.IOException - If IO errors occur while calling PinPayments REST API.public final ChargeResponse capture(java.lang.String chargeToken) throws java.io.IOException
ChargesApicapture in interface ChargesApichargeToken - The charge token specified.java.io.IOException - If IO errors occur while calling PinPayments REST API.public final ChargeListResponse list(int page) throws java.io.IOException
ChargesApilist in interface ChargesApipage - The page number specified.java.io.IOException - If IO errors occur while calling PinPayments REST API.public final ChargeListResponse search(SearchCriteria searchCriteria) throws java.io.IOException
ChargesApisearch in interface ChargesApisearchCriteria - The search criteria specified.java.io.IOException - If IO errors occur while calling PinPayments REST API.public final ChargeResponse fetch(java.lang.String chargeToken) throws java.io.IOException
ChargesApifetch in interface ChargesApichargeToken - The charge token specified.java.io.IOException - If IO errors occur while calling PinPayments REST API.protected final java.lang.String getApiName()
getApiName in class AbstractBaseApi