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)
        The structure of the header to show on the shopper receipt. You can define the order of one or two header lines and blank lines. For example, **header1,header2,filler**. The text of the header lines is defined in the Customer Area under **In-person payments** > **Terminal settings** > **Receipts** in the **Receipt lines** block.
        Parameters:
        headerForAuthorizedReceipt - The structure of the header to show on the shopper receipt. You can define the order of one or two header lines and blank lines. For example, **header1,header2,filler**. The text of the header lines is defined in the Customer Area under **In-person payments** > **Terminal settings** > **Receipts** in the **Receipt lines** block.
        Returns:
        the current CardholderReceipt instance, allowing for method chaining
      • getHeaderForAuthorizedReceipt

        public String getHeaderForAuthorizedReceipt()
        The structure of the header to show on the shopper receipt. You can define the order of one or two header lines and blank lines. For example, **header1,header2,filler**. The text of the header lines is defined in the Customer Area under **In-person payments** > **Terminal settings** > **Receipts** in the **Receipt lines** block.
        Returns:
        headerForAuthorizedReceipt The structure of the header to show on the shopper receipt. You can define the order of one or two header lines and blank lines. For example, **header1,header2,filler**. The text of the header lines is defined in the Customer Area under **In-person payments** > **Terminal settings** > **Receipts** in the **Receipt lines** block.
      • setHeaderForAuthorizedReceipt

        public void setHeaderForAuthorizedReceipt​(String headerForAuthorizedReceipt)
        The structure of the header to show on the shopper receipt. You can define the order of one or two header lines and blank lines. For example, **header1,header2,filler**. The text of the header lines is defined in the Customer Area under **In-person payments** > **Terminal settings** > **Receipts** in the **Receipt lines** block.
        Parameters:
        headerForAuthorizedReceipt - The structure of the header to show on the shopper receipt. You can define the order of one or two header lines and blank lines. For example, **header1,header2,filler**. The text of the header lines is defined in the Customer Area under **In-person payments** > **Terminal settings** > **Receipts** in the **Receipt lines** block.
      • includeNullValues

        public CardholderReceipt includeNullValues​(boolean includeNullValues)
        Configures whether null values are explicitly serialized in the JSON payload. Default is false.
      • isIncludeNullValues

        public boolean isIncludeNullValues()
        Returns whether null values are explicitly serialized in the JSON payload.
      • setIncludeNullValues

        public void setIncludeNullValues​(boolean includeNullValues)
        Sets whether null values should be explicitly serialized in the JSON payload. Default is false.
      • 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
      • getExplicitNulls

        public Map<String,​Object> getExplicitNulls()
        Returns a map of properties to be merged into the JSON payload as explicit null values.
      • 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