Class Signature


  • public class Signature
    extends Object
    Signature
    • Constructor Detail

      • Signature

        public Signature()
    • Method Detail

      • askSignatureOnScreen

        public Signature askSignatureOnScreen​(Boolean askSignatureOnScreen)
        If `skipSignature` is false, indicates whether the shopper should provide a signature on the display (**true**) or on the merchant receipt (**false**).
        Parameters:
        askSignatureOnScreen -
        Returns:
        the current Signature instance, allowing for method chaining
      • getAskSignatureOnScreen

        public Boolean getAskSignatureOnScreen()
        If `skipSignature` is false, indicates whether the shopper should provide a signature on the display (**true**) or on the merchant receipt (**false**).
        Returns:
        askSignatureOnScreen
      • setAskSignatureOnScreen

        public void setAskSignatureOnScreen​(Boolean askSignatureOnScreen)
        If `skipSignature` is false, indicates whether the shopper should provide a signature on the display (**true**) or on the merchant receipt (**false**).
        Parameters:
        askSignatureOnScreen -
      • deviceName

        public Signature deviceName​(String deviceName)
        Name that identifies the terminal.
        Parameters:
        deviceName -
        Returns:
        the current Signature instance, allowing for method chaining
      • getDeviceName

        public String getDeviceName()
        Name that identifies the terminal.
        Returns:
        deviceName
      • setDeviceName

        public void setDeviceName​(String deviceName)
        Name that identifies the terminal.
        Parameters:
        deviceName -
      • deviceSlogan

        public Signature deviceSlogan​(String deviceSlogan)
        Slogan shown on the start screen of the device.
        Parameters:
        deviceSlogan -
        Returns:
        the current Signature instance, allowing for method chaining
      • getDeviceSlogan

        public String getDeviceSlogan()
        Slogan shown on the start screen of the device.
        Returns:
        deviceSlogan
      • setDeviceSlogan

        public void setDeviceSlogan​(String deviceSlogan)
        Slogan shown on the start screen of the device.
        Parameters:
        deviceSlogan -
      • skipSignature

        public Signature skipSignature​(Boolean skipSignature)
        Skip asking for a signature. This is possible because all global card schemes (American Express, Diners, Discover, JCB, MasterCard, VISA, and UnionPay) regard a signature as optional.
        Parameters:
        skipSignature -
        Returns:
        the current Signature instance, allowing for method chaining
      • getSkipSignature

        public Boolean getSkipSignature()
        Skip asking for a signature. This is possible because all global card schemes (American Express, Diners, Discover, JCB, MasterCard, VISA, and UnionPay) regard a signature as optional.
        Returns:
        skipSignature
      • setSkipSignature

        public void setSkipSignature​(Boolean skipSignature)
        Skip asking for a signature. This is possible because all global card schemes (American Express, Diners, Discover, JCB, MasterCard, VISA, and UnionPay) regard a signature as optional.
        Parameters:
        skipSignature -
      • equals

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

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

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

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