Package com.adyen.service.checkout
Class RecurringApi
- java.lang.Object
-
- com.adyen.Service
-
- com.adyen.service.checkout.RecurringApi
-
public class RecurringApi extends Service
-
-
Field Summary
Fields Modifier and Type Field Description static StringAPI_VERSIONprotected StringbaseURL
-
Constructor Summary
Constructors Constructor Description RecurringApi(Client client)Recurring constructor inpackage.RecurringApi(Client client, String baseURL)Recurring constructor inpackage.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddeleteTokenForStoredPaymentDetails(String storedPaymentMethodId, String shopperReference, String merchantAccount)Delete a token for stored payment detailsvoiddeleteTokenForStoredPaymentDetails(String storedPaymentMethodId, String shopperReference, String merchantAccount, RequestOptions requestOptions)Delete a token for stored payment detailsListStoredPaymentMethodsResponsegetTokensForStoredPaymentDetails()Get tokens for stored payment detailsListStoredPaymentMethodsResponsegetTokensForStoredPaymentDetails(String shopperReference, String merchantAccount, RequestOptions requestOptions)Get tokens for stored payment detailsStoredPaymentMethodResourcestoredPaymentMethods(StoredPaymentMethodRequest storedPaymentMethodRequest)Create a token to store payment detailsStoredPaymentMethodResourcestoredPaymentMethods(StoredPaymentMethodRequest storedPaymentMethodRequest, RequestOptions requestOptions)Create a token to store payment details-
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
-
RecurringApi
public RecurringApi(Client client)
Recurring constructor inpackage.- Parameters:
client-Client(required)
-
-
Method Detail
-
deleteTokenForStoredPaymentDetails
public void deleteTokenForStoredPaymentDetails(String storedPaymentMethodId, String shopperReference, String merchantAccount) throws ApiException, IOException
Delete a token for stored payment details- Parameters:
storedPaymentMethodId-StringThe unique identifier of the token. (required)shopperReference-StringYour reference to uniquely identify this shopper, for example user ID or account ID. Minimum length: 3 characters. > Your reference must not include personally identifiable information (PII), for example name or email address. (required)merchantAccount-StringYour merchant account. (required)- Throws:
ApiException- if fails to make API callIOException
-
deleteTokenForStoredPaymentDetails
public void deleteTokenForStoredPaymentDetails(String storedPaymentMethodId, String shopperReference, String merchantAccount, RequestOptions requestOptions) throws ApiException, IOException
Delete a token for stored payment details- Parameters:
storedPaymentMethodId-StringThe unique identifier of the token. (required)shopperReference-StringQuery: Your reference to uniquely identify this shopper, for example user ID or account ID. Minimum length: 3 characters. > Your reference must not include personally identifiable information (PII), for example name or email address. (required)merchantAccount-StringQuery: Your merchant account. (required)requestOptions-RequestOptionsObject to store additional data such as idempotency-keys (optional)- Throws:
ApiException- if fails to make API callIOException
-
getTokensForStoredPaymentDetails
public ListStoredPaymentMethodsResponse getTokensForStoredPaymentDetails() throws ApiException, IOException
Get tokens for stored payment details- Returns:
ListStoredPaymentMethodsResponse- Throws:
ApiException- if fails to make API callIOException
-
getTokensForStoredPaymentDetails
public ListStoredPaymentMethodsResponse getTokensForStoredPaymentDetails(String shopperReference, String merchantAccount, RequestOptions requestOptions) throws ApiException, IOException
Get tokens for stored payment details- Parameters:
shopperReference-StringQuery: Your reference to uniquely identify this shopper, for example user ID or account ID. Minimum length: 3 characters. > Your reference must not include personally identifiable information (PII), for example name or email address. (optional)merchantAccount-StringQuery: Your merchant account. (optional)requestOptions-RequestOptionsObject to store additional data such as idempotency-keys (optional)- Returns:
ListStoredPaymentMethodsResponse- Throws:
ApiException- if fails to make API callIOException
-
storedPaymentMethods
public StoredPaymentMethodResource storedPaymentMethods(StoredPaymentMethodRequest storedPaymentMethodRequest) throws ApiException, IOException
Create a token to store payment details- Parameters:
storedPaymentMethodRequest-StoredPaymentMethodRequest(required)- Returns:
StoredPaymentMethodResource- Throws:
ApiException- if fails to make API callIOException
-
storedPaymentMethods
public StoredPaymentMethodResource storedPaymentMethods(StoredPaymentMethodRequest storedPaymentMethodRequest, RequestOptions requestOptions) throws ApiException, IOException
Create a token to store payment details- Parameters:
storedPaymentMethodRequest-StoredPaymentMethodRequest(required)requestOptions-RequestOptionsObject to store additional data such as idempotency-keys (optional)- Returns:
StoredPaymentMethodResource- Throws:
ApiException- if fails to make API callIOException
-
-