public class RecipientsApiImpl extends AbstractBaseApi implements RecipientsApi
RecipientsApi interface.| Constructor and Description |
|---|
RecipientsApiImpl() |
| Modifier and Type | Method and Description |
|---|---|
RecipientResponse |
create(Recipient recipient)
Creates a new recipient and returns its details.
|
RecipientResponse |
fetch(java.lang.String recipientToken)
Returns the details of a recipient.
|
protected java.lang.String |
getApiName() |
RecipientListResponse |
list(int page)
Returns a paginated list of all recipients.
|
TransferListResponse |
listTransfers(java.lang.String recipientToken,
int page)
Returns a paginated list of a recipient's transfers.
|
RecipientResponse |
update(java.lang.String recipientToken,
Recipient recipient)
Updates the given details of a recipient and returns its details.
|
executeList, executeSearch, getApiBase, getApiUrl, getDeletionResult, httpTransportForDelete, httpTransportForGet, httpTransportForPost, httpTransportForPutpublic final RecipientResponse create(Recipient recipient) throws java.io.IOException
RecipientsApicreate in interface RecipientsApirecipient - The recipient specified.java.io.IOException - If IO errors occur while calling PinPayments REST API.public final RecipientListResponse list(int page) throws java.io.IOException
RecipientsApilist in interface RecipientsApipage - The page number specified.java.io.IOException - If IO errors occur while calling PinPayments REST API.public final RecipientResponse fetch(java.lang.String recipientToken) throws java.io.IOException
RecipientsApifetch in interface RecipientsApirecipientToken - The recipient token specified.java.io.IOException - If IO errors occur while calling PinPayments REST API.public final RecipientResponse update(java.lang.String recipientToken, Recipient recipient) throws java.io.IOException
RecipientsApiupdate in interface RecipientsApirecipientToken - The recipient token specified.recipient - The recipient which contains new information specified.java.io.IOException - If IO errors occur while calling PinPayments REST API.public final TransferListResponse listTransfers(java.lang.String recipientToken, int page) throws java.io.IOException
RecipientsApilistTransfers in interface RecipientsApirecipientToken - The recipient 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