Class Expiry
- java.lang.Object
-
- com.adyen.model.configurationwebhooks.Expiry
-
public class Expiry extends Object
Expiry
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_MONTHstatic StringJSON_PROPERTY_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)Return true if this Expiry object is equal to 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)The month in which the card will expire.voidsetYear(String year)The year in which the card will expire.StringtoJson()Convert an instance of Expiry to an JSON stringStringtoString()Expiryyear(String year)
-
-
-
Field Detail
-
JSON_PROPERTY_MONTH
public static final String JSON_PROPERTY_MONTH
- See Also:
- Constant Field Values
-
JSON_PROPERTY_YEAR
public static final String JSON_PROPERTY_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)
The month in which the card will expire.- Parameters:
month-
-
getYear
public String getYear()
The year in which the card will expire.- Returns:
- year
-
setYear
public void setYear(String year)
The year in which the card will expire.- Parameters:
year-
-
equals
public boolean equals(Object o)
Return true if this Expiry object is equal to o.
-
fromJson
public static Expiry fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of Expiry given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of Expiry
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to Expiry
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of Expiry to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-