Package com.adyen.model.checkout
Class InstallmentsNumber
- java.lang.Object
-
- com.adyen.model.checkout.InstallmentsNumber
-
public class InstallmentsNumber extends Object
InstallmentsNumber
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classInstallmentsNumber.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_MAX_NUMBER_OF_INSTALLMENTS
-
Constructor Summary
Constructors Constructor Description InstallmentsNumber()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)static InstallmentsNumberfromJson(String jsonString)Create an instance of InstallmentsNumber given an JSON stringIntegergetMaxNumberOfInstallments()Maximum number of installmentsinthashCode()InstallmentsNumbermaxNumberOfInstallments(Integer maxNumberOfInstallments)voidsetMaxNumberOfInstallments(Integer maxNumberOfInstallments)StringtoJson()Convert an instance of InstallmentsNumber to an JSON stringStringtoString()static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues found
-
-
-
Method Detail
-
maxNumberOfInstallments
public InstallmentsNumber maxNumberOfInstallments(Integer maxNumberOfInstallments)
-
getMaxNumberOfInstallments
public Integer getMaxNumberOfInstallments()
Maximum number of installments- Returns:
- maxNumberOfInstallments
-
setMaxNumberOfInstallments
public void setMaxNumberOfInstallments(Integer maxNumberOfInstallments)
-
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 InstallmentsNumber
-
fromJson
public static InstallmentsNumber fromJson(String jsonString) throws IOException
Create an instance of InstallmentsNumber given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of InstallmentsNumber
- Throws:
IOException- if the JSON string is invalid with respect to InstallmentsNumber
-
toJson
public String toJson()
Convert an instance of InstallmentsNumber to an JSON string- Returns:
- JSON string
-
-