public class MandateHandler extends AbstractHandler
| Constructor and Description |
|---|
MandateHandler(String baseUrl) |
| Modifier and Type | Method and Description |
|---|---|
MandateResponse |
createMandate(String customerId,
MandateRequest body)
Create a mandate for a specific customer.
|
MandateResponse |
createMandate(String customerId,
MandateRequest body,
QueryParams params)
Create a mandate for a specific customer.
|
MandateResponse |
getMandate(String customerId,
String mandateId)
Retrieve a mandate by its ID and its customer’s ID.
|
MandateResponse |
getMandate(String customerId,
String mandateId,
QueryParams params)
Retrieve a mandate by its ID and its customer’s ID.
|
Pagination<MandateListResponse> |
listMandates(String customerId)
Retrieve all mandates for the given customerId, ordered from newest to oldest.
|
Pagination<MandateListResponse> |
listMandates(String customerId,
QueryParams params)
Retrieve all mandates for the given customerId, ordered from newest to oldest.
|
void |
revokeMandate(String customerId,
String mandateId)
Revoke a customer’s mandate.
|
void |
revokeMandate(String customerId,
String mandateId,
QueryParams params)
Revoke a customer’s mandate.
|
delete, delete, delete, get, get, patch, patch, post, post, postWithoutBody, validateResponsepublic MandateHandler(String baseUrl)
public MandateResponse createMandate(String customerId, MandateRequest body) throws MollieException
It is only possible to create mandates for IBANs with this endpoint. To create mandates for credit cards, have your customers perform a ‘first payment’ with their credit card.
customerId - a customer idbody - MandateRequest objectMollieException - when something went wrongpublic MandateResponse createMandate(String customerId, MandateRequest body, QueryParams params) throws MollieException
It is only possible to create mandates for IBANs with this endpoint. To create mandates for credit cards, have your customers perform a ‘first payment’ with their credit card.
customerId - a customer idbody - MandateRequest objectparams - A map of query parametersMollieException - when something went wrongpublic MandateResponse getMandate(String customerId, String mandateId) throws MollieException
customerId - a customer idmandateId - a mandate idMollieException - when something went wrongpublic MandateResponse getMandate(String customerId, String mandateId, QueryParams params) throws MollieException
customerId - a customer idmandateId - a mandate idparams - A map of query parametersMollieException - when something went wrongpublic void revokeMandate(String customerId, String mandateId) throws MollieException
customerId - a customer idmandateId - a mandate idMollieException - when something went wrongpublic void revokeMandate(String customerId, String mandateId, QueryParams params) throws MollieException
customerId - a customer idmandateId - a mandate idparams - A map of query parametersMollieException - when something went wrongpublic Pagination<MandateListResponse> listMandates(String customerId) throws MollieException
The results are paginated.
customerId - a customer idMollieException - when something went wrongpublic Pagination<MandateListResponse> listMandates(String customerId, QueryParams params) throws MollieException
The results are paginated.
customerId - a customer idparams - A map of query parametersMollieException - when something went wrongCopyright © 2020. All rights reserved.