Class PayAtTable


  • public class PayAtTable
    extends Object
    PayAtTable
    • Constructor Detail

      • PayAtTable

        public PayAtTable()
    • Method Detail

      • authenticationMethod

        public PayAtTable authenticationMethod​(PayAtTable.AuthenticationMethodEnum authenticationMethod)
        Allowed authentication methods: Magswipe, Manual Entry.
        Parameters:
        authenticationMethod -
        Returns:
        the current PayAtTable instance, allowing for method chaining
      • getAuthenticationMethod

        public PayAtTable.AuthenticationMethodEnum getAuthenticationMethod()
        Allowed authentication methods: Magswipe, Manual Entry.
        Returns:
        authenticationMethod
      • setAuthenticationMethod

        public void setAuthenticationMethod​(PayAtTable.AuthenticationMethodEnum authenticationMethod)
        Allowed authentication methods: Magswipe, Manual Entry.
        Parameters:
        authenticationMethod -
      • enablePayAtTable

        public PayAtTable enablePayAtTable​(Boolean enablePayAtTable)
        Enable Pay at table.
        Parameters:
        enablePayAtTable -
        Returns:
        the current PayAtTable instance, allowing for method chaining
      • getEnablePayAtTable

        public Boolean getEnablePayAtTable()
        Enable Pay at table.
        Returns:
        enablePayAtTable
      • setEnablePayAtTable

        public void setEnablePayAtTable​(Boolean enablePayAtTable)
        Enable Pay at table.
        Parameters:
        enablePayAtTable -
      • paymentInstrument

        public PayAtTable paymentInstrument​(PayAtTable.PaymentInstrumentEnum paymentInstrument)
        Sets the allowed payment instrument for Pay at table transactions. Can be: **cash** or **card**. If not set, the terminal presents both options.
        Parameters:
        paymentInstrument -
        Returns:
        the current PayAtTable instance, allowing for method chaining
      • getPaymentInstrument

        public PayAtTable.PaymentInstrumentEnum getPaymentInstrument()
        Sets the allowed payment instrument for Pay at table transactions. Can be: **cash** or **card**. If not set, the terminal presents both options.
        Returns:
        paymentInstrument
      • setPaymentInstrument

        public void setPaymentInstrument​(PayAtTable.PaymentInstrumentEnum paymentInstrument)
        Sets the allowed payment instrument for Pay at table transactions. Can be: **cash** or **card**. If not set, the terminal presents both options.
        Parameters:
        paymentInstrument -
      • equals

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

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

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

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