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.CustomTypeAdapterFactorystatic classCheckoutSessionInstallmentOption.PlansEnumGets or Sets plans
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_PLANSstatic StringSERIALIZED_NAME_PRESELECTED_VALUEstatic StringSERIALIZED_NAME_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)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)voidsetPreselectedValue(Integer preselectedValue)voidsetValues(List<Integer> values)StringtoJson()Convert an instance of CheckoutSessionInstallmentOption to an JSON stringStringtoString()static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues foundCheckoutSessionInstallmentOptionvalues(List<Integer> values)
-
-
-
Field Detail
-
SERIALIZED_NAME_PLANS
public static final String SERIALIZED_NAME_PLANS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_PRESELECTED_VALUE
public static final String SERIALIZED_NAME_PRESELECTED_VALUE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_VALUES
public static final String SERIALIZED_NAME_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)
-
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)
-
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
-
validateJsonObject
public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOExceptionValidates the JSON Object and throws an exception if issues found- Parameters:
jsonObj- JSON Object- Throws:
IOException- if the JSON Object is invalid with respect to CheckoutSessionInstallmentOption
-
fromJson
public static CheckoutSessionInstallmentOption fromJson(String jsonString) throws IOException
Create an instance of CheckoutSessionInstallmentOption given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CheckoutSessionInstallmentOption
- Throws:
IOException- if the JSON string is invalid with respect to CheckoutSessionInstallmentOption
-
toJson
public String toJson()
Convert an instance of CheckoutSessionInstallmentOption to an JSON string- Returns:
- JSON string
-
-