Class RecurringApi


  • public class RecurringApi
    extends Service
    • Constructor Detail

      • RecurringApi

        public RecurringApi​(Client client)
        Recurring constructor in package.
        Parameters:
        client - Client (required)
      • RecurringApi

        public RecurringApi​(Client client,
                            String baseURL)
        Recurring constructor in package. 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.
        Parameters:
        client - Client (required)
        baseURL - String (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 - String The unique identifier of the token. (required)
        shopperReference - String 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 - String Your merchant account. (required)
        Throws:
        ApiException - if fails to make API call
        IOException
      • deleteTokenForStoredPaymentDetails

        public void deleteTokenForStoredPaymentDetails​(String storedPaymentMethodId,
                                                       String shopperReference,
                                                       String merchantAccount,
                                                       RequestOptions requestOptions)
                                                throws ApiException,
                                                       IOException
        Delete a token for stored payment details
        Parameters:
        storedPaymentMethodId - String The unique identifier of the token. (required)
        shopperReference - String Query: 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 - String Query: Your merchant account. (required)
        requestOptions - RequestOptions Object to store additional data such as idempotency-keys (optional)
        Throws:
        ApiException - if fails to make API call
        IOException
      • getTokensForStoredPaymentDetails

        public ListStoredPaymentMethodsResponse getTokensForStoredPaymentDetails​(String shopperReference,
                                                                                 String merchantAccount,
                                                                                 RequestOptions requestOptions)
                                                                          throws ApiException,
                                                                                 IOException
        Get tokens for stored payment details
        Parameters:
        shopperReference - String Query: 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 - String Query: Your merchant account. (optional)
        requestOptions - RequestOptions Object to store additional data such as idempotency-keys (optional)
        Returns:
        ListStoredPaymentMethodsResponse
        Throws:
        ApiException - if fails to make API call
        IOException