Class CardholderReceipt


  • public class CardholderReceipt
    extends Object
    CardholderReceipt
    • Field Detail

      • SERIALIZED_NAME_HEADER_FOR_AUTHORIZED_RECEIPT

        public static final String SERIALIZED_NAME_HEADER_FOR_AUTHORIZED_RECEIPT
        See Also:
        Constant Field Values
      • openapiRequiredFields

        public static HashSet<String> openapiRequiredFields
    • Constructor Detail

      • CardholderReceipt

        public CardholderReceipt()
    • Method Detail

      • headerForAuthorizedReceipt

        public CardholderReceipt headerForAuthorizedReceipt​(String headerForAuthorizedReceipt)
      • getHeaderForAuthorizedReceipt

        public String getHeaderForAuthorizedReceipt()
        A custom header to show on the shopper receipt for an authorised transaction. Allows one or two comma-separated header lines, and blank lines. For example, `header,header,filler`
        Returns:
        headerForAuthorizedReceipt
      • setHeaderForAuthorizedReceipt

        public void setHeaderForAuthorizedReceipt​(String headerForAuthorizedReceipt)
      • hashCode

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

        public static void validateJsonObject​(com.google.gson.JsonObject jsonObj)
                                       throws IOException
        Validates 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 CardholderReceipt
      • fromJson

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

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