Class InstallmentOption


  • public class InstallmentOption
    extends Object
    InstallmentOption
    • Constructor Detail

      • InstallmentOption

        public InstallmentOption()
    • Method Detail

      • getMaxValue

        public Integer getMaxValue()
        The maximum number of installments offered for this payment method.
        Returns:
        maxValue
      • setMaxValue

        public void setMaxValue​(Integer maxValue)
        The maximum number of installments offered for this payment method.
        Parameters:
        maxValue -
      • getPlans

        public List<InstallmentOption.PlansEnum> getPlans()
        Defines the type of installment plan. If not set, defaults to **regular**. Possible values: * **regular** * **revolving**
        Returns:
        plans
      • setPlans

        public void setPlans​(List<InstallmentOption.PlansEnum> plans)
        Defines the type of installment plan. If not set, defaults to **regular**. Possible values: * **regular** * **revolving**
        Parameters:
        plans -
      • getPreselectedValue

        public Integer getPreselectedValue()
        Preselected number of installments offered for this payment method.
        Returns:
        preselectedValue
      • setPreselectedValue

        public void setPreselectedValue​(Integer preselectedValue)
        Preselected number of installments offered for this payment method.
        Parameters:
        preselectedValue -
      • getValues

        public List<Integer> getValues()
        An array of the number of installments that the shopper can choose from. For example, **[2,3,5]**. This cannot be specified simultaneously with `maxValue`.
        Returns:
        values
      • setValues

        public void setValues​(List<Integer> values)
        An array of the number of installments that the shopper can choose from. For example, **[2,3,5]**. This cannot be specified simultaneously with `maxValue`.
        Parameters:
        values -
      • equals

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

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

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

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