Class Transaction


  • public class Transaction
    extends Object
    Transaction
    • Constructor Detail

      • Transaction

        public Transaction()
    • Method Detail

      • getAccountHolderId

        public String getAccountHolderId()
        Unique identifier of the account holder.
        Returns:
        accountHolderId
      • setAccountHolderId

        public void setAccountHolderId​(String accountHolderId)
      • getAmount

        public Amount getAmount()
        Get amount
        Returns:
        amount
      • setAmount

        public void setAmount​(Amount amount)
      • balanceAccountId

        public Transaction balanceAccountId​(String balanceAccountId)
      • getBalanceAccountId

        public String getBalanceAccountId()
        Unique identifier of the balance account.
        Returns:
        balanceAccountId
      • setBalanceAccountId

        public void setBalanceAccountId​(String balanceAccountId)
      • getBalancePlatform

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

        public void setBalancePlatform​(String balancePlatform)
      • getBookingDate

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

        public void setBookingDate​(OffsetDateTime bookingDate)
      • getCategory

        public Transaction.CategoryEnum getCategory()
        The category of the transaction indicating the type of activity. Possible values: * **platformPayment**: The transaction is a payment or payment modification made with an Adyen merchant account. * **internal**: The transaction resulted from an internal adjustment such as a deposit correction or invoice deduction. * **bank**: The transaction is a bank-related activity, such as sending a payout or receiving funds. * **issuedCard**: The transaction is a card-related activity, such as using an Adyen-issued card to pay online.
        Returns:
        category
      • getCounterparty

        public CounterpartyV3 getCounterparty()
        Get counterparty
        Returns:
        counterparty
      • setCounterparty

        public void setCounterparty​(CounterpartyV3 counterparty)
      • getCreatedAt

        public OffsetDateTime getCreatedAt()
        The date the transaction was created.
        Returns:
        createdAt
      • setCreatedAt

        public void setCreatedAt​(OffsetDateTime createdAt)
      • 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)
      • getDescription

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

        public void setDescription​(String description)
      • getEventId

        public String getEventId()
        The PSP reference in the journal.
        Returns:
        eventId
      • setEventId

        public void setEventId​(String eventId)
      • getId

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

        public void setId​(String id)
      • instructedAmount

        public Transaction instructedAmount​(Amount instructedAmount)
      • getInstructedAmount

        public Amount getInstructedAmount()
        Get instructedAmount
        Returns:
        instructedAmount
      • setInstructedAmount

        public void setInstructedAmount​(Amount instructedAmount)
      • paymentInstrumentId

        public Transaction paymentInstrumentId​(String paymentInstrumentId)
      • getPaymentInstrumentId

        public String getPaymentInstrumentId()
        Unique identifier of the payment instrument that was used for the transaction.
        Returns:
        paymentInstrumentId
      • setPaymentInstrumentId

        public void setPaymentInstrumentId​(String paymentInstrumentId)
      • getReference

        public String getReference()
        The [`reference`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__reqParam_reference) from the `/transfers` request. If you haven't provided any, Adyen generates a unique reference.
        Returns:
        reference
      • setReference

        public void setReference​(String reference)
      • referenceForBeneficiary

        public Transaction referenceForBeneficiary​(String referenceForBeneficiary)
      • 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)
      • 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
      • getTransferId

        public String getTransferId()
        Unique identifier of the related transfer.
        Returns:
        transferId
      • setTransferId

        public void setTransferId​(String transferId)
      • getType

        public Transaction.TypeEnum getType()
        The type of the transaction. Possible values: **payment**, **capture**, **captureReversal**, **refund** **refundReversal**, **chargeback**, **chargebackReversal**, **secondChargeback**, **atmWithdrawal**, **atmWithdrawalReversal**, **internalTransfer**, **manualCorrection**, **invoiceDeduction**, **depositCorrection**, **bankTransfer**, **miscCost**, **paymentCost**, **fee**
        Returns:
        type
      • getValueDate

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

        public void setValueDate​(OffsetDateTime 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