public interface RecipientsApi
| 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.
|
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.
|
RecipientResponse create(Recipient recipient) throws java.io.IOException
recipient - The recipient specified.java.io.IOException - If IO errors occur while calling PinPayments REST API.RecipientListResponse list(int page) throws java.io.IOException
page - The page number specified.java.io.IOException - If IO errors occur while calling PinPayments REST API.RecipientResponse fetch(java.lang.String recipientToken) throws java.io.IOException
recipientToken - The recipient token specified.java.io.IOException - If IO errors occur while calling PinPayments REST API.RecipientResponse update(java.lang.String recipientToken, Recipient recipient) throws java.io.IOException
recipientToken - The recipient token specified.recipient - The recipient which contains new information specified.java.io.IOException - If IO errors occur while calling PinPayments REST API.TransferListResponse listTransfers(java.lang.String recipientToken, int page) throws java.io.IOException
recipientToken - The recipient token specified.page - The page number specified.java.io.IOException - If IO errors occur while calling PinPayments REST API.