Class Expiry


  • public class Expiry
    extends Object
    Expiry
    • Constructor Detail

      • Expiry

        public Expiry()
    • 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.
        Overrides:
        equals in class Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • 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