Class Transaction


  • public class Transaction
    extends Object
    Transaction
    • Constructor Detail

      • Transaction

        public Transaction()
    • Method Detail

      • accountHolder

        public Transaction accountHolder​(ResourceReference accountHolder)
        accountHolder
        Parameters:
        accountHolder -
        Returns:
        the current Transaction instance, allowing for method chaining
      • getAccountHolder

        public ResourceReference getAccountHolder()
        accountHolder
        Returns:
        accountHolder
      • setAccountHolder

        public void setAccountHolder​(ResourceReference accountHolder)
        accountHolder
        Parameters:
        accountHolder -
      • amount

        public Transaction amount​(Amount amount)
        amount
        Parameters:
        amount -
        Returns:
        the current Transaction instance, allowing for method chaining
      • getAmount

        public Amount getAmount()
        amount
        Returns:
        amount
      • setAmount

        public void setAmount​(Amount amount)
        amount
        Parameters:
        amount -
      • balanceAccount

        public Transaction balanceAccount​(ResourceReference balanceAccount)
        balanceAccount
        Parameters:
        balanceAccount -
        Returns:
        the current Transaction instance, allowing for method chaining
      • getBalanceAccount

        public ResourceReference getBalanceAccount()
        balanceAccount
        Returns:
        balanceAccount
      • setBalanceAccount

        public void setBalanceAccount​(ResourceReference balanceAccount)
        balanceAccount
        Parameters:
        balanceAccount -
      • balancePlatform

        public Transaction balancePlatform​(String balancePlatform)
        The unique identifier of the balance platform.
        Parameters:
        balancePlatform -
        Returns:
        the current Transaction instance, allowing for method chaining
      • getBalancePlatform

        public String getBalancePlatform()
        The unique identifier of the balance platform.
        Returns:
        balancePlatform
      • setBalancePlatform

        public void setBalancePlatform​(String balancePlatform)
        The unique identifier of the balance platform.
        Parameters:
        balancePlatform -
      • bookingDate

        public Transaction bookingDate​(OffsetDateTime bookingDate)
        The date the transaction was booked into the balance account.
        Parameters:
        bookingDate -
        Returns:
        the current Transaction instance, allowing for method chaining
      • getBookingDate

        public OffsetDateTime getBookingDate()
        The date the transaction was booked into the balance account.
        Returns:
        bookingDate
      • setBookingDate

        public void setBookingDate​(OffsetDateTime bookingDate)
        The date the transaction was booked into the balance account.
        Parameters:
        bookingDate -
      • creationDate

        public Transaction creationDate​(OffsetDateTime creationDate)
        The date and time when the event was triggered, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**.
        Parameters:
        creationDate -
        Returns:
        the current Transaction instance, allowing for method chaining
      • getCreationDate

        public OffsetDateTime getCreationDate()
        The date and time when the event was triggered, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**.
        Returns:
        creationDate
      • setCreationDate

        public void setCreationDate​(OffsetDateTime creationDate)
        The date and time when the event was triggered, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**.
        Parameters:
        creationDate -
      • description

        public Transaction description​(String description)
        The `description` from the `/transfers` request.
        Parameters:
        description -
        Returns:
        the current Transaction instance, allowing for method chaining
      • getDescription

        public String getDescription()
        The `description` from the `/transfers` request.
        Returns:
        description
      • setDescription

        public void setDescription​(String description)
        The `description` from the `/transfers` request.
        Parameters:
        description -
      • id

        public Transaction id​(String id)
        The unique identifier of the transaction.
        Parameters:
        id -
        Returns:
        the current Transaction instance, allowing for method chaining
      • getId

        public String getId()
        The unique identifier of the transaction.
        Returns:
        id
      • setId

        public void setId​(String id)
        The unique identifier of the transaction.
        Parameters:
        id -
      • paymentInstrument

        public Transaction paymentInstrument​(PaymentInstrument paymentInstrument)
        paymentInstrument
        Parameters:
        paymentInstrument -
        Returns:
        the current Transaction instance, allowing for method chaining
      • getPaymentInstrument

        public PaymentInstrument getPaymentInstrument()
        paymentInstrument
        Returns:
        paymentInstrument
      • setPaymentInstrument

        public void setPaymentInstrument​(PaymentInstrument paymentInstrument)
        paymentInstrument
        Parameters:
        paymentInstrument -
      • referenceForBeneficiary

        public Transaction referenceForBeneficiary​(String referenceForBeneficiary)
        The reference sent to or received from the counterparty. * For outgoing funds, this is the [`referenceForBeneficiary`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__resParam_referenceForBeneficiary) from the [`/transfers`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__reqParam_referenceForBeneficiary) request. * For incoming funds, this is the reference from the sender.
        Parameters:
        referenceForBeneficiary -
        Returns:
        the current Transaction instance, allowing for method chaining
      • getReferenceForBeneficiary

        public String getReferenceForBeneficiary()
        The reference sent to or received from the counterparty. * For outgoing funds, this is the [`referenceForBeneficiary`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__resParam_referenceForBeneficiary) from the [`/transfers`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__reqParam_referenceForBeneficiary) request. * For incoming funds, this is the reference from the sender.
        Returns:
        referenceForBeneficiary
      • setReferenceForBeneficiary

        public void setReferenceForBeneficiary​(String referenceForBeneficiary)
        The reference sent to or received from the counterparty. * For outgoing funds, this is the [`referenceForBeneficiary`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__resParam_referenceForBeneficiary) from the [`/transfers`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__reqParam_referenceForBeneficiary) request. * For incoming funds, this is the reference from the sender.
        Parameters:
        referenceForBeneficiary -
      • status

        public Transaction status​(Transaction.StatusEnum status)
        The status of the transaction. Possible values: * **pending**: The transaction is still pending. * **booked**: The transaction has been booked to the balance account.
        Parameters:
        status -
        Returns:
        the current Transaction instance, allowing for method chaining
      • getStatus

        public Transaction.StatusEnum getStatus()
        The status of the transaction. Possible values: * **pending**: The transaction is still pending. * **booked**: The transaction has been booked to the balance account.
        Returns:
        status
      • setStatus

        public void setStatus​(Transaction.StatusEnum status)
        The status of the transaction. Possible values: * **pending**: The transaction is still pending. * **booked**: The transaction has been booked to the balance account.
        Parameters:
        status -
      • transfer

        public Transaction transfer​(TransferView transfer)
        transfer
        Parameters:
        transfer -
        Returns:
        the current Transaction instance, allowing for method chaining
      • getTransfer

        public TransferView getTransfer()
        transfer
        Returns:
        transfer
      • setTransfer

        public void setTransfer​(TransferView transfer)
        transfer
        Parameters:
        transfer -
      • valueDate

        public Transaction valueDate​(OffsetDateTime valueDate)
        The date the transfer amount becomes available in the balance account.
        Parameters:
        valueDate -
        Returns:
        the current Transaction instance, allowing for method chaining
      • getValueDate

        public OffsetDateTime getValueDate()
        The date the transfer amount becomes available in the balance account.
        Returns:
        valueDate
      • setValueDate

        public void setValueDate​(OffsetDateTime valueDate)
        The date the transfer amount becomes available in the balance account.
        Parameters:
        valueDate -
      • equals

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

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

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

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