Class Expiry
- java.lang.Object
-
- com.adyen.model.configurationwebhooks.Expiry
-
public class Expiry extends Object
Expiry
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classExpiry.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_MONTHstatic StringSERIALIZED_NAME_YEAR
-
Constructor Summary
Constructors Constructor Description Expiry()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)static ExpiryfromJson(String jsonString)Create an instance of Expiry given an JSON stringStringgetMonth()The month in which the card will expire.StringgetYear()The year in which the card will expire.inthashCode()Expirymonth(String month)voidsetMonth(String month)voidsetYear(String year)StringtoJson()Convert an instance of Expiry to an JSON stringStringtoString()static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues foundExpiryyear(String year)
-
-
-
Field Detail
-
SERIALIZED_NAME_MONTH
public static final String SERIALIZED_NAME_MONTH
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_YEAR
public static final String SERIALIZED_NAME_YEAR
- See Also:
- Constant Field Values
-
-
Method Detail
-
getMonth
public String getMonth()
The month in which the card will expire.- Returns:
- month
-
setMonth
public void setMonth(String month)
-
getYear
public String getYear()
The year in which the card will expire.- Returns:
- year
-
setYear
public void setYear(String year)
-
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 Expiry
-
fromJson
public static Expiry fromJson(String jsonString) throws IOException
Create an instance of Expiry given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of Expiry
- Throws:
IOException- if the JSON string is invalid with respect to Expiry
-
toJson
public String toJson()
Convert an instance of Expiry to an JSON string- Returns:
- JSON string
-
-