Class Installments


  • public class Installments
    extends Object
    Installments
    • Constructor Detail

      • Installments

        public Installments()
    • Method Detail

      • getPlan

        public Installments.PlanEnum getPlan()
        The installment plan, used for [card installments in Japan](https://docs.adyen.com/payment-methods/cards/credit-card-installments#make-a-payment-japan). By default, this is set to **regular**. Possible values: * **regular** * **revolving**
        Returns:
        plan
      • getValue

        public Integer getValue()
        Defines the number of installments. Its value needs to be greater than zero. Usually, the maximum allowed number of installments is capped. For example, it may not be possible to split a payment in more than 24 installments. The acquirer sets this upper limit, so its value may vary.
        Returns:
        value
      • setValue

        public void setValue​(Integer value)
      • equals

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

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

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

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