Class SaleData


  • public class SaleData
    extends Object
    Data associated with the Sale System, with a particular value during the processing of the payment by the POI, including the cards acquisition.
    • Constructor Detail

      • SaleData

        public SaleData()
    • Method Detail

      • operatorID

        public SaleData operatorID​(String operatorID)
        Identification of the Cashier or Operator.
        Parameters:
        operatorID - Identification of the Cashier or Operator.
        Returns:
        the current SaleData instance, allowing for method chaining
      • getOperatorID

        public String getOperatorID()
        Identification of the Cashier or Operator.
        Returns:
        operatorID Identification of the Cashier or Operator.
      • setOperatorID

        public void setOperatorID​(String operatorID)
        Identification of the Cashier or Operator.
        Parameters:
        operatorID - Identification of the Cashier or Operator.
      • operatorLanguage

        public SaleData operatorLanguage​(String operatorLanguage)
        Language of the Cashier or Operator. If different from the Login.
        Parameters:
        operatorLanguage - Language of the Cashier or Operator. If different from the Login.
        Returns:
        the current SaleData instance, allowing for method chaining
      • getOperatorLanguage

        public String getOperatorLanguage()
        Language of the Cashier or Operator. If different from the Login.
        Returns:
        operatorLanguage Language of the Cashier or Operator. If different from the Login.
      • setOperatorLanguage

        public void setOperatorLanguage​(String operatorLanguage)
        Language of the Cashier or Operator. If different from the Login.
        Parameters:
        operatorLanguage - Language of the Cashier or Operator. If different from the Login.
      • shiftNumber

        public SaleData shiftNumber​(String shiftNumber)
        Shift number. If different from the Login, see Login SaleData.
        Parameters:
        shiftNumber - Shift number. If different from the Login, see Login SaleData.
        Returns:
        the current SaleData instance, allowing for method chaining
      • getShiftNumber

        public String getShiftNumber()
        Shift number. If different from the Login, see Login SaleData.
        Returns:
        shiftNumber Shift number. If different from the Login, see Login SaleData.
      • setShiftNumber

        public void setShiftNumber​(String shiftNumber)
        Shift number. If different from the Login, see Login SaleData.
        Parameters:
        shiftNumber - Shift number. If different from the Login, see Login SaleData.
      • saleTransactionID

        public SaleData saleTransactionID​(TransactionIDType saleTransactionID)
        saleTransactionID
        Parameters:
        saleTransactionID -
        Returns:
        the current SaleData instance, allowing for method chaining
      • getSaleTransactionID

        public TransactionIDType getSaleTransactionID()
        Get saleTransactionID
        Returns:
        saleTransactionID
      • setSaleTransactionID

        public void setSaleTransactionID​(TransactionIDType saleTransactionID)
        saleTransactionID
        Parameters:
        saleTransactionID -
      • saleReferenceID

        public SaleData saleReferenceID​(String saleReferenceID)
        Identification of a Sale global transaction for a sequence of related POI transactions. If payment reservation.
        Parameters:
        saleReferenceID - Identification of a Sale global transaction for a sequence of related POI transactions. If payment reservation.
        Returns:
        the current SaleData instance, allowing for method chaining
      • getSaleReferenceID

        public String getSaleReferenceID()
        Identification of a Sale global transaction for a sequence of related POI transactions. If payment reservation.
        Returns:
        saleReferenceID Identification of a Sale global transaction for a sequence of related POI transactions. If payment reservation.
      • setSaleReferenceID

        public void setSaleReferenceID​(String saleReferenceID)
        Identification of a Sale global transaction for a sequence of related POI transactions. If payment reservation.
        Parameters:
        saleReferenceID - Identification of a Sale global transaction for a sequence of related POI transactions. If payment reservation.
      • saleTerminalData

        public SaleData saleTerminalData​(SaleTerminalData saleTerminalData)
        saleTerminalData
        Parameters:
        saleTerminalData -
        Returns:
        the current SaleData instance, allowing for method chaining
      • getSaleTerminalData

        public SaleTerminalData getSaleTerminalData()
        Get saleTerminalData
        Returns:
        saleTerminalData
      • setSaleTerminalData

        public void setSaleTerminalData​(SaleTerminalData saleTerminalData)
        saleTerminalData
        Parameters:
        saleTerminalData -
      • tokenRequestedType

        public SaleData tokenRequestedType​(TokenRequestedType tokenRequestedType)
        tokenRequestedType
        Parameters:
        tokenRequestedType -
        Returns:
        the current SaleData instance, allowing for method chaining
      • getTokenRequestedType

        public TokenRequestedType getTokenRequestedType()
        Get tokenRequestedType
        Returns:
        tokenRequestedType
      • setTokenRequestedType

        public void setTokenRequestedType​(TokenRequestedType tokenRequestedType)
        tokenRequestedType
        Parameters:
        tokenRequestedType -
      • customerOrderID

        public SaleData customerOrderID​(String customerOrderID)
        Additional and optional identification of a customer order.
        Parameters:
        customerOrderID - Additional and optional identification of a customer order.
        Returns:
        the current SaleData instance, allowing for method chaining
      • getCustomerOrderID

        public String getCustomerOrderID()
        Additional and optional identification of a customer order.
        Returns:
        customerOrderID Additional and optional identification of a customer order.
      • setCustomerOrderID

        public void setCustomerOrderID​(String customerOrderID)
        Additional and optional identification of a customer order.
        Parameters:
        customerOrderID - Additional and optional identification of a customer order.
      • customerOrderReq

        public SaleData customerOrderReq​(List<SaleData.CustomerOrderReqEnum> customerOrderReq)
        List of customer order open, closed or both to be sent in the response messages. Possible values: * **Both** * **Closed** * **Open**
        Parameters:
        customerOrderReq - List of customer order open, closed or both to be sent in the response messages. Possible values: * **Both** * **Closed** * **Open**
        Returns:
        the current SaleData instance, allowing for method chaining
      • getCustomerOrderReq

        public List<SaleData.CustomerOrderReqEnum> getCustomerOrderReq()
        List of customer order open, closed or both to be sent in the response messages. Possible values: * **Both** * **Closed** * **Open**
        Returns:
        customerOrderReq List of customer order open, closed or both to be sent in the response messages. Possible values: * **Both** * **Closed** * **Open**
      • setCustomerOrderReq

        public void setCustomerOrderReq​(List<SaleData.CustomerOrderReqEnum> customerOrderReq)
        List of customer order open, closed or both to be sent in the response messages. Possible values: * **Both** * **Closed** * **Open**
        Parameters:
        customerOrderReq - List of customer order open, closed or both to be sent in the response messages. Possible values: * **Both** * **Closed** * **Open**
      • saleToPOIData

        public SaleData saleToPOIData​(String saleToPOIData)
        Sale information intended for the POI. Stored with the transaction.
        Parameters:
        saleToPOIData - Sale information intended for the POI. Stored with the transaction.
        Returns:
        the current SaleData instance, allowing for method chaining
      • getSaleToPOIData

        public String getSaleToPOIData()
        Sale information intended for the POI. Stored with the transaction.
        Returns:
        saleToPOIData Sale information intended for the POI. Stored with the transaction.
      • setSaleToPOIData

        public void setSaleToPOIData​(String saleToPOIData)
        Sale information intended for the POI. Stored with the transaction.
        Parameters:
        saleToPOIData - Sale information intended for the POI. Stored with the transaction.
      • saleToAcquirerData

        public SaleData saleToAcquirerData​(String saleToAcquirerData)
        Sale information intended for the Acquirer. Send to the Acquirer if present.
        Parameters:
        saleToAcquirerData - Sale information intended for the Acquirer. Send to the Acquirer if present.
        Returns:
        the current SaleData instance, allowing for method chaining
      • getSaleToAcquirerData

        public String getSaleToAcquirerData()
        Sale information intended for the Acquirer. Send to the Acquirer if present.
        Returns:
        saleToAcquirerData Sale information intended for the Acquirer. Send to the Acquirer if present.
      • setSaleToAcquirerData

        public void setSaleToAcquirerData​(String saleToAcquirerData)
        Sale information intended for the Acquirer. Send to the Acquirer if present.
        Parameters:
        saleToAcquirerData - Sale information intended for the Acquirer. Send to the Acquirer if present.
      • saleToIssuerData

        public SaleData saleToIssuerData​(SaleToIssuerData saleToIssuerData)
        saleToIssuerData
        Parameters:
        saleToIssuerData -
        Returns:
        the current SaleData instance, allowing for method chaining
      • getSaleToIssuerData

        public SaleToIssuerData getSaleToIssuerData()
        Get saleToIssuerData
        Returns:
        saleToIssuerData
      • setSaleToIssuerData

        public void setSaleToIssuerData​(SaleToIssuerData saleToIssuerData)
        saleToIssuerData
        Parameters:
        saleToIssuerData -
      • includeNullValues

        public SaleData 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 SaleData 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 SaleData fromJson​(String jsonString)
                                 throws com.fasterxml.jackson.core.JsonProcessingException
        Create an instance of SaleData given an JSON string
        Parameters:
        jsonString - JSON string
        Returns:
        An instance of SaleData
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException - if the JSON string is invalid with respect to SaleData
      • toJson

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