Class PaymentInstrumentRevealInfo


  • public class PaymentInstrumentRevealInfo
    extends Object
    PaymentInstrumentRevealInfo
    • Constructor Detail

      • PaymentInstrumentRevealInfo

        public PaymentInstrumentRevealInfo()
    • Method Detail

      • getCvc

        public String getCvc()
        The CVC2 value of the card.
        Returns:
        cvc
      • setCvc

        public void setCvc​(String cvc)
      • getExpiration

        public Expiry getExpiration()
        Get expiration
        Returns:
        expiration
      • setExpiration

        public void setExpiration​(Expiry expiration)
      • getPan

        public String getPan()
        The primary account number (PAN) of the card.
        Returns:
        pan
      • setPan

        public void setPan​(String pan)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • validateJsonObject

        public static void validateJsonObject​(com.google.gson.JsonObject jsonObj)
                                       throws IOException
        Throws:
        IOException
      • validateJsonObject

        public static void validateJsonObject​(com.google.gson.JsonObject jsonObj,
                                              boolean strictValidation)
                                       throws IOException
        Validates the JSON Object and throws an exception if issues found
        Parameters:
        jsonObj - JSON Object
        strictValidation - reject (new) fields missing from the specifications
        Throws:
        IOException - if the JSON Object is invalid with respect to PaymentInstrumentRevealInfo
      • fromJson

        public static PaymentInstrumentRevealInfo fromJson​(String jsonString)
                                                    throws IOException
        Create an instance of PaymentInstrumentRevealInfo given an JSON string
        Parameters:
        jsonString - JSON string
        Returns:
        An instance of PaymentInstrumentRevealInfo
        Throws:
        IOException - if the JSON string is invalid with respect to PaymentInstrumentRevealInfo
      • toJson

        public String toJson()
        Convert an instance of PaymentInstrumentRevealInfo to an JSON string
        Returns:
        JSON string