Class CardholderReceipt


  • public class CardholderReceipt
    extends Object
    CardholderReceipt
    • Field Detail

      • JSON_PROPERTY_HEADER_FOR_AUTHORIZED_RECEIPT

        public static final String JSON_PROPERTY_HEADER_FOR_AUTHORIZED_RECEIPT
        See Also:
        Constant Field Values
    • 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)
        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`
        Parameters:
        headerForAuthorizedReceipt -
      • equals

        public boolean equals​(Object o)
        Return true if this CardholderReceipt object is equal to o.
        Overrides:
        equals in class Object
      • hashCode

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

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

        public String toJson()
                      throws com.fasterxml.jackson.core.JsonProcessingException
        Convert an instance of CardholderReceipt to an JSON string
        Returns:
        JSON string
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException