Class CheckoutSessionInstallmentOption


  • public class CheckoutSessionInstallmentOption
    extends Object
    CheckoutSessionInstallmentOption
    • Constructor Detail

      • CheckoutSessionInstallmentOption

        public CheckoutSessionInstallmentOption()
    • Method Detail

      • setPlans

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

        public CheckoutSessionInstallmentOption preselectedValue​(Integer preselectedValue)
        Preselected number of installments offered for this payment method.
        Parameters:
        preselectedValue -
        Returns:
        the current CheckoutSessionInstallmentOption instance, allowing for method chaining
      • 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 -
      • values

        public CheckoutSessionInstallmentOption values​(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 -
        Returns:
        the current CheckoutSessionInstallmentOption instance, allowing for method chaining
      • 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 CheckoutSessionInstallmentOption object is equal to o.
        Overrides:
        equals in class Object
      • hashCode

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

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

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