Package com.adyen.model.checkout
Class CheckoutSessionInstallmentOption
- java.lang.Object
-
- com.adyen.model.checkout.CheckoutSessionInstallmentOption
-
public class CheckoutSessionInstallmentOption extends Object
CheckoutSessionInstallmentOption
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCheckoutSessionInstallmentOption.PlansEnumGets or Sets plans
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_PLANSstatic StringJSON_PROPERTY_PRESELECTED_VALUEstatic StringJSON_PROPERTY_VALUES
-
Constructor Summary
Constructors Constructor Description CheckoutSessionInstallmentOption()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CheckoutSessionInstallmentOptionaddPlansItem(CheckoutSessionInstallmentOption.PlansEnum plansItem)CheckoutSessionInstallmentOptionaddValuesItem(Integer valuesItem)booleanequals(Object o)Return true if this CheckoutSessionInstallmentOption object is equal to o.static CheckoutSessionInstallmentOptionfromJson(String jsonString)Create an instance of CheckoutSessionInstallmentOption given an JSON stringList<CheckoutSessionInstallmentOption.PlansEnum>getPlans()Defines the type of installment plan.IntegergetPreselectedValue()Preselected number of installments offered for this payment method.List<Integer>getValues()An array of the number of installments that the shopper can choose from.inthashCode()CheckoutSessionInstallmentOptionplans(List<CheckoutSessionInstallmentOption.PlansEnum> plans)CheckoutSessionInstallmentOptionpreselectedValue(Integer preselectedValue)voidsetPlans(List<CheckoutSessionInstallmentOption.PlansEnum> plans)Defines the type of installment plan.voidsetPreselectedValue(Integer preselectedValue)Preselected number of installments offered for this payment method.voidsetValues(List<Integer> values)An array of the number of installments that the shopper can choose from.StringtoJson()Convert an instance of CheckoutSessionInstallmentOption to an JSON stringStringtoString()CheckoutSessionInstallmentOptionvalues(List<Integer> values)
-
-
-
Field Detail
-
JSON_PROPERTY_PLANS
public static final String JSON_PROPERTY_PLANS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PRESELECTED_VALUE
public static final String JSON_PROPERTY_PRESELECTED_VALUE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_VALUES
public static final String JSON_PROPERTY_VALUES
- See Also:
- Constant Field Values
-
-
Method Detail
-
plans
public CheckoutSessionInstallmentOption plans(List<CheckoutSessionInstallmentOption.PlansEnum> plans)
-
addPlansItem
public CheckoutSessionInstallmentOption addPlansItem(CheckoutSessionInstallmentOption.PlansEnum plansItem)
-
getPlans
public List<CheckoutSessionInstallmentOption.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<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)
-
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)
-
addValuesItem
public CheckoutSessionInstallmentOption addValuesItem(Integer valuesItem)
-
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.
-
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
-
-