Package com.adyen.model.capital
Class RepaymentTerm
- java.lang.Object
-
- com.adyen.model.capital.RepaymentTerm
-
public class RepaymentTerm extends Object
RepaymentTerm
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRepaymentTerm.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_ESTIMATED_DAYSstatic StringSERIALIZED_NAME_MAXIMUM_DAYS
-
Constructor Summary
Constructors Constructor Description RepaymentTerm()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)RepaymentTermestimatedDays(Integer estimatedDays)static RepaymentTermfromJson(String jsonString)Create an instance of RepaymentTerm given an JSON stringIntegergetEstimatedDays()The estimated term for repaying the grant, in days.IntegergetMaximumDays()The maximum term for repaying the grant, in days.inthashCode()RepaymentTermmaximumDays(Integer maximumDays)voidsetEstimatedDays(Integer estimatedDays)voidsetMaximumDays(Integer maximumDays)StringtoJson()Convert an instance of RepaymentTerm to an JSON stringStringtoString()static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_ESTIMATED_DAYS
public static final String SERIALIZED_NAME_ESTIMATED_DAYS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_MAXIMUM_DAYS
public static final String SERIALIZED_NAME_MAXIMUM_DAYS
- See Also:
- Constant Field Values
-
-
Method Detail
-
estimatedDays
public RepaymentTerm estimatedDays(Integer estimatedDays)
-
getEstimatedDays
public Integer getEstimatedDays()
The estimated term for repaying the grant, in days.- Returns:
- estimatedDays
-
setEstimatedDays
public void setEstimatedDays(Integer estimatedDays)
-
maximumDays
public RepaymentTerm maximumDays(Integer maximumDays)
-
getMaximumDays
public Integer getMaximumDays()
The maximum term for repaying the grant, in days. Only applies when `contractType` is **loan**.- Returns:
- maximumDays
-
setMaximumDays
public void setMaximumDays(Integer maximumDays)
-
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 RepaymentTerm
-
fromJson
public static RepaymentTerm fromJson(String jsonString) throws IOException
Create an instance of RepaymentTerm given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of RepaymentTerm
- Throws:
IOException- if the JSON string is invalid with respect to RepaymentTerm
-
toJson
public String toJson()
Convert an instance of RepaymentTerm to an JSON string- Returns:
- JSON string
-
-