Class Recurring


  • public class Recurring
    extends Object
    Recurring
    • Constructor Detail

      • Recurring

        public Recurring()
    • Method Detail

      • getContract

        public Recurring.ContractEnum getContract()
        The type of recurring contract to be used. Possible values: * `ONECLICK` – Payment details can be used to initiate a one-click payment, where the shopper enters the [card security code (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). * `RECURRING` – Payment details can be used without the card security code to initiate [card-not-present transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make a payout](https://docs.adyen.com/online-payments/online-payouts).
        Returns:
        contract
      • setContract

        public void setContract​(Recurring.ContractEnum contract)
        The type of recurring contract to be used. Possible values: * `ONECLICK` – Payment details can be used to initiate a one-click payment, where the shopper enters the [card security code (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). * `RECURRING` – Payment details can be used without the card security code to initiate [card-not-present transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make a payout](https://docs.adyen.com/online-payments/online-payouts).
        Parameters:
        contract -
      • recurringDetailName

        public Recurring recurringDetailName​(String recurringDetailName)
      • getRecurringDetailName

        public String getRecurringDetailName()
        A descriptive name for this detail.
        Returns:
        recurringDetailName
      • setRecurringDetailName

        public void setRecurringDetailName​(String recurringDetailName)
        A descriptive name for this detail.
        Parameters:
        recurringDetailName -
      • getRecurringExpiry

        public OffsetDateTime getRecurringExpiry()
        Date after which no further authorisations shall be performed. Only for 3D Secure 2.
        Returns:
        recurringExpiry
      • setRecurringExpiry

        public void setRecurringExpiry​(OffsetDateTime recurringExpiry)
        Date after which no further authorisations shall be performed. Only for 3D Secure 2.
        Parameters:
        recurringExpiry -
      • recurringFrequency

        public Recurring recurringFrequency​(String recurringFrequency)
      • getRecurringFrequency

        public String getRecurringFrequency()
        Minimum number of days between authorisations. Only for 3D Secure 2.
        Returns:
        recurringFrequency
      • setRecurringFrequency

        public void setRecurringFrequency​(String recurringFrequency)
        Minimum number of days between authorisations. Only for 3D Secure 2.
        Parameters:
        recurringFrequency -
      • setTokenService

        public void setTokenService​(Recurring.TokenServiceEnum tokenService)
        The name of the token service.
        Parameters:
        tokenService -
      • equals

        public boolean equals​(Object o)
        Return true if this Recurring object is equal to o.
        Overrides:
        equals in class Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • fromJson

        public static Recurring fromJson​(String jsonString)
                                  throws com.fasterxml.jackson.core.JsonProcessingException
        Create an instance of Recurring given an JSON string
        Parameters:
        jsonString - JSON string
        Returns:
        An instance of Recurring
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException - if the JSON string is invalid with respect to Recurring
      • toJson

        public String toJson()
                      throws com.fasterxml.jackson.core.JsonProcessingException
        Convert an instance of Recurring to an JSON string
        Returns:
        JSON string
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException