Class PaymentData


  • public class PaymentData
    extends Object
    PaymentData
    • Constructor Detail

      • PaymentData

        public PaymentData()
    • Method Detail

      • paymentType

        public PaymentData paymentType​(PaymentType paymentType)
        paymentType
        Parameters:
        paymentType -
        Returns:
        the current PaymentData instance, allowing for method chaining
      • getPaymentType

        public PaymentType getPaymentType()
        Get paymentType
        Returns:
        paymentType
      • setPaymentType

        public void setPaymentType​(PaymentType paymentType)
        paymentType
        Parameters:
        paymentType -
      • splitPaymentFlag

        public PaymentData splitPaymentFlag​(Boolean splitPaymentFlag)
        Indicates if the payment of the Sale transaction is split. Allows the POI to decline payment means that cannot accept split payment.
        Parameters:
        splitPaymentFlag - Indicates if the payment of the Sale transaction is split. Allows the POI to decline payment means that cannot accept split payment.
        Returns:
        the current PaymentData instance, allowing for method chaining
      • getSplitPaymentFlag

        public Boolean getSplitPaymentFlag()
        Indicates if the payment of the Sale transaction is split. Allows the POI to decline payment means that cannot accept split payment.
        Returns:
        splitPaymentFlag Indicates if the payment of the Sale transaction is split. Allows the POI to decline payment means that cannot accept split payment.
      • setSplitPaymentFlag

        public void setSplitPaymentFlag​(Boolean splitPaymentFlag)
        Indicates if the payment of the Sale transaction is split. Allows the POI to decline payment means that cannot accept split payment.
        Parameters:
        splitPaymentFlag - Indicates if the payment of the Sale transaction is split. Allows the POI to decline payment means that cannot accept split payment.
      • requestedValidityDate

        public PaymentData requestedValidityDate​(LocalDate requestedValidityDate)
        Requested validity date for the reservation. Allows a specific period for the reservation according to the need of the Merchant for the first reservation and the reservation updates as well.
        Parameters:
        requestedValidityDate - Requested validity date for the reservation. Allows a specific period for the reservation according to the need of the Merchant for the first reservation and the reservation updates as well.
        Returns:
        the current PaymentData instance, allowing for method chaining
      • getRequestedValidityDate

        public LocalDate getRequestedValidityDate()
        Requested validity date for the reservation. Allows a specific period for the reservation according to the need of the Merchant for the first reservation and the reservation updates as well.
        Returns:
        requestedValidityDate Requested validity date for the reservation. Allows a specific period for the reservation according to the need of the Merchant for the first reservation and the reservation updates as well.
      • setRequestedValidityDate

        public void setRequestedValidityDate​(LocalDate requestedValidityDate)
        Requested validity date for the reservation. Allows a specific period for the reservation according to the need of the Merchant for the first reservation and the reservation updates as well.
        Parameters:
        requestedValidityDate - Requested validity date for the reservation. Allows a specific period for the reservation according to the need of the Merchant for the first reservation and the reservation updates as well.
      • cardAcquisitionReference

        public PaymentData cardAcquisitionReference​(TransactionIDType cardAcquisitionReference)
        cardAcquisitionReference
        Parameters:
        cardAcquisitionReference -
        Returns:
        the current PaymentData instance, allowing for method chaining
      • getCardAcquisitionReference

        public TransactionIDType getCardAcquisitionReference()
        Get cardAcquisitionReference
        Returns:
        cardAcquisitionReference
      • setCardAcquisitionReference

        public void setCardAcquisitionReference​(TransactionIDType cardAcquisitionReference)
        cardAcquisitionReference
        Parameters:
        cardAcquisitionReference -
      • instalment

        public PaymentData instalment​(Instalment instalment)
        instalment
        Parameters:
        instalment -
        Returns:
        the current PaymentData instance, allowing for method chaining
      • getInstalment

        public Instalment getInstalment()
        Get instalment
        Returns:
        instalment
      • setInstalment

        public void setInstalment​(Instalment instalment)
        instalment
        Parameters:
        instalment -
      • paymentInstrumentData

        public PaymentData paymentInstrumentData​(PaymentInstrumentData paymentInstrumentData)
        paymentInstrumentData
        Parameters:
        paymentInstrumentData -
        Returns:
        the current PaymentData instance, allowing for method chaining
      • getPaymentInstrumentData

        public PaymentInstrumentData getPaymentInstrumentData()
        Get paymentInstrumentData
        Returns:
        paymentInstrumentData
      • setPaymentInstrumentData

        public void setPaymentInstrumentData​(PaymentInstrumentData paymentInstrumentData)
        paymentInstrumentData
        Parameters:
        paymentInstrumentData -
      • includeNullValues

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

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