Class DirectDebitMandatesApi
- java.lang.Object
-
- com.adyen.Service
-
- com.adyen.service.balanceplatform.DirectDebitMandatesApi
-
public class DirectDebitMandatesApi extends Service
-
-
Field Summary
Fields Modifier and Type Field Description static StringAPI_VERSIONprotected StringbaseURL
-
Constructor Summary
Constructors Constructor Description DirectDebitMandatesApi(Client client)Direct debit mandates constructor inpackage.DirectDebitMandatesApi(Client client, String baseURL)Direct debit mandates constructor inpackage.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcancelMandate(String mandateId)Cancel a mandatevoidcancelMandate(String mandateId, RequestOptions requestOptions)Cancel a mandateListMandatesResponsegetListOfMandates()Get a list of mandatesListMandatesResponsegetListOfMandates(String balanceAccountId, String paymentInstrumentId, String cursor, RequestOptions requestOptions)Get a list of mandatesMandategetMandateById(String mandateId)Get a specific mandateMandategetMandateById(String mandateId, RequestOptions requestOptions)Get a specific mandatevoidupdateMandate(String mandateId, MandateUpdate mandateUpdate)Amend a mandatevoidupdateMandate(String mandateId, MandateUpdate mandateUpdate, RequestOptions requestOptions)Amend a mandate-
Methods inherited from class com.adyen.Service
createBaseURL, getClient, isApiKeyRequired, setApiKeyRequired, setClient
-
-
-
-
Field Detail
-
API_VERSION
public static final String API_VERSION
- See Also:
- Constant Field Values
-
baseURL
protected String baseURL
-
-
Constructor Detail
-
DirectDebitMandatesApi
public DirectDebitMandatesApi(Client client)
Direct debit mandates constructor inpackage.- Parameters:
client-Client(required)
-
DirectDebitMandatesApi
public DirectDebitMandatesApi(Client client, String baseURL)
Direct debit mandates constructor inpackage. Please use this constructor only if you would like to pass along your own url for routing or testing purposes. The latest API version is defined in this class as a constant.
-
-
Method Detail
-
cancelMandate
public void cancelMandate(String mandateId) throws ApiException, IOException
Cancel a mandate- Parameters:
mandateId-StringThe unique identifier of the mandate. (required)- Throws:
ApiException- if fails to make API callIOException
-
cancelMandate
public void cancelMandate(String mandateId, RequestOptions requestOptions) throws ApiException, IOException
Cancel a mandate- Parameters:
mandateId-StringThe unique identifier of the mandate. (required)requestOptions-RequestOptionsObject to store additional HTTP headers such as idempotency-keys (optional)- Throws:
ApiException- if fails to make API callIOException
-
getListOfMandates
public ListMandatesResponse getListOfMandates() throws ApiException, IOException
Get a list of mandates- Returns:
ListMandatesResponse- Throws:
ApiException- if fails to make API callIOException
-
getListOfMandates
public ListMandatesResponse getListOfMandates(String balanceAccountId, String paymentInstrumentId, String cursor, RequestOptions requestOptions) throws ApiException, IOException
Get a list of mandates- Parameters:
balanceAccountId-StringQuery: The unique identifier of the balance account linked to the payment instrument. (optional)paymentInstrumentId-StringQuery: The unique identifier of the payment instrument linked to the mandate. (optional)cursor-StringQuery: The pagination cursor returned in a previous GET `/mandates` request. (optional)requestOptions-RequestOptionsObject to store additional HTTP headers such as idempotency-keys (optional)- Returns:
ListMandatesResponse- Throws:
ApiException- if fails to make API callIOException
-
getMandateById
public Mandate getMandateById(String mandateId) throws ApiException, IOException
Get a specific mandate- Parameters:
mandateId-StringThe unique identifier of the mandate. (required)- Returns:
Mandate- Throws:
ApiException- if fails to make API callIOException
-
getMandateById
public Mandate getMandateById(String mandateId, RequestOptions requestOptions) throws ApiException, IOException
Get a specific mandate- Parameters:
mandateId-StringThe unique identifier of the mandate. (required)requestOptions-RequestOptionsObject to store additional HTTP headers such as idempotency-keys (optional)- Returns:
Mandate- Throws:
ApiException- if fails to make API callIOException
-
updateMandate
public void updateMandate(String mandateId, MandateUpdate mandateUpdate) throws ApiException, IOException
Amend a mandate- Parameters:
mandateId-StringThe unique identifier of the mandate. (required)mandateUpdate-MandateUpdate(required)- Throws:
ApiException- if fails to make API callIOException
-
updateMandate
public void updateMandate(String mandateId, MandateUpdate mandateUpdate, RequestOptions requestOptions) throws ApiException, IOException
Amend a mandate- Parameters:
mandateId-StringThe unique identifier of the mandate. (required)mandateUpdate-MandateUpdate(required)requestOptions-RequestOptionsObject to store additional HTTP headers such as idempotency-keys (optional)- Throws:
ApiException- if fails to make API callIOException
-
-