Class OriginalPOITransaction


  • public class OriginalPOITransaction
    extends Object
    Identification of a previous POI transaction. In the Payment Request message, it allows using the card of a previous CardAcquisition or Payment request.
    • Constructor Detail

      • OriginalPOITransaction

        public OriginalPOITransaction()
    • Method Detail

      • saleID

        public OriginalPOITransaction saleID​(String saleID)
        Identification of a Sale System for the NEXO SaletoPOI protocol.
        Parameters:
        saleID - Identification of a Sale System for the NEXO SaletoPOI protocol.
        Returns:
        the current OriginalPOITransaction instance, allowing for method chaining
      • getSaleID

        public String getSaleID()
        Identification of a Sale System for the NEXO SaletoPOI protocol.
        Returns:
        saleID Identification of a Sale System for the NEXO SaletoPOI protocol.
      • setSaleID

        public void setSaleID​(String saleID)
        Identification of a Sale System for the NEXO SaletoPOI protocol.
        Parameters:
        saleID - Identification of a Sale System for the NEXO SaletoPOI protocol.
      • POIID

        public OriginalPOITransaction POIID​(String POIID)
        Identification of a payment terminal for the NEXO SaletoPOI protocol. If original transaction is coming from another POI.
        Parameters:
        POIID - Identification of a payment terminal for the NEXO SaletoPOI protocol. If original transaction is coming from another POI.
        Returns:
        the current OriginalPOITransaction instance, allowing for method chaining
      • getPOIID

        public String getPOIID()
        Identification of a payment terminal for the NEXO SaletoPOI protocol. If original transaction is coming from another POI.
        Returns:
        POIID Identification of a payment terminal for the NEXO SaletoPOI protocol. If original transaction is coming from another POI.
      • setPOIID

        public void setPOIID​(String POIID)
        Identification of a payment terminal for the NEXO SaletoPOI protocol. If original transaction is coming from another POI.
        Parameters:
        POIID - Identification of a payment terminal for the NEXO SaletoPOI protocol. If original transaction is coming from another POI.
      • poITransactionID

        public OriginalPOITransaction poITransactionID​(TransactionIDType poITransactionID)
        poITransactionID
        Parameters:
        poITransactionID -
        Returns:
        the current OriginalPOITransaction instance, allowing for method chaining
      • getPoITransactionID

        public TransactionIDType getPoITransactionID()
        Get poITransactionID
        Returns:
        poITransactionID
      • setPoITransactionID

        public void setPoITransactionID​(TransactionIDType poITransactionID)
        poITransactionID
        Parameters:
        poITransactionID -
      • reuseCardDataFlag

        public OriginalPOITransaction reuseCardDataFlag​(Boolean reuseCardDataFlag)
        Indicates if the card data has to be retrieved from a previous transaction.
        Parameters:
        reuseCardDataFlag - Indicates if the card data has to be retrieved from a previous transaction.
        Returns:
        the current OriginalPOITransaction instance, allowing for method chaining
      • getReuseCardDataFlag

        public Boolean getReuseCardDataFlag()
        Indicates if the card data has to be retrieved from a previous transaction.
        Returns:
        reuseCardDataFlag Indicates if the card data has to be retrieved from a previous transaction.
      • setReuseCardDataFlag

        public void setReuseCardDataFlag​(Boolean reuseCardDataFlag)
        Indicates if the card data has to be retrieved from a previous transaction.
        Parameters:
        reuseCardDataFlag - Indicates if the card data has to be retrieved from a previous transaction.
      • approvalCode

        public OriginalPOITransaction approvalCode​(String approvalCode)
        Code assigned to a transaction approval by the Acquirer. If referral.
        Parameters:
        approvalCode - Code assigned to a transaction approval by the Acquirer. If referral.
        Returns:
        the current OriginalPOITransaction instance, allowing for method chaining
      • getApprovalCode

        public String getApprovalCode()
        Code assigned to a transaction approval by the Acquirer. If referral.
        Returns:
        approvalCode Code assigned to a transaction approval by the Acquirer. If referral.
      • setApprovalCode

        public void setApprovalCode​(String approvalCode)
        Code assigned to a transaction approval by the Acquirer. If referral.
        Parameters:
        approvalCode - Code assigned to a transaction approval by the Acquirer. If referral.
      • acquirerID

        public OriginalPOITransaction acquirerID​(Integer acquirerID)
        Identification of the Acquirer. Restrict to the Acquirer if present.
        Parameters:
        acquirerID - Identification of the Acquirer. Restrict to the Acquirer if present.
        Returns:
        the current OriginalPOITransaction instance, allowing for method chaining
      • getAcquirerID

        public Integer getAcquirerID()
        Identification of the Acquirer. Restrict to the Acquirer if present.
        Returns:
        acquirerID Identification of the Acquirer. Restrict to the Acquirer if present.
      • setAcquirerID

        public void setAcquirerID​(Integer acquirerID)
        Identification of the Acquirer. Restrict to the Acquirer if present.
        Parameters:
        acquirerID - Identification of the Acquirer. Restrict to the Acquirer if present.
      • amountValue

        public OriginalPOITransaction amountValue​(BigDecimal amountValue)
        Value of an amount.
        Parameters:
        amountValue - Value of an amount.
        Returns:
        the current OriginalPOITransaction instance, allowing for method chaining
      • getAmountValue

        public BigDecimal getAmountValue()
        Value of an amount. minimum: 0.0 maximum: 99999999.999999
        Returns:
        amountValue Value of an amount.
      • setAmountValue

        public void setAmountValue​(BigDecimal amountValue)
        Value of an amount.
        Parameters:
        amountValue - Value of an amount.
      • hostTransactionID

        public OriginalPOITransaction hostTransactionID​(TransactionIDType hostTransactionID)
        hostTransactionID
        Parameters:
        hostTransactionID -
        Returns:
        the current OriginalPOITransaction instance, allowing for method chaining
      • getHostTransactionID

        public TransactionIDType getHostTransactionID()
        Get hostTransactionID
        Returns:
        hostTransactionID
      • setHostTransactionID

        public void setHostTransactionID​(TransactionIDType hostTransactionID)
        hostTransactionID
        Parameters:
        hostTransactionID -
      • includeNullValues

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

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