Package com.adyen.model.transfers
Class Transaction
- java.lang.Object
-
- com.adyen.model.transfers.Transaction
-
public class Transaction extends Object
Transaction
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTransaction.StatusEnumThe status of the transaction.
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_ACCOUNT_HOLDERstatic StringJSON_PROPERTY_AMOUNTstatic StringJSON_PROPERTY_BALANCE_ACCOUNTstatic StringJSON_PROPERTY_BALANCE_PLATFORMstatic StringJSON_PROPERTY_BOOKING_DATEstatic StringJSON_PROPERTY_CREATION_DATEstatic StringJSON_PROPERTY_DESCRIPTIONstatic StringJSON_PROPERTY_IDstatic StringJSON_PROPERTY_PAYMENT_INSTRUMENTstatic StringJSON_PROPERTY_REFERENCE_FOR_BENEFICIARYstatic StringJSON_PROPERTY_STATUSstatic StringJSON_PROPERTY_TRANSFERstatic StringJSON_PROPERTY_VALUE_DATE
-
Constructor Summary
Constructors Constructor Description Transaction()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description TransactionaccountHolder(ResourceReference accountHolder)Transactionamount(Amount amount)TransactionbalanceAccount(ResourceReference balanceAccount)TransactionbalancePlatform(String balancePlatform)TransactionbookingDate(OffsetDateTime bookingDate)TransactioncreationDate(OffsetDateTime creationDate)Transactiondescription(String description)booleanequals(Object o)Return true if this Transaction object is equal to o.static TransactionfromJson(String jsonString)Create an instance of Transaction given an JSON stringResourceReferencegetAccountHolder()Get accountHolderAmountgetAmount()Get amountResourceReferencegetBalanceAccount()Get balanceAccountStringgetBalancePlatform()The unique identifier of the balance platform.OffsetDateTimegetBookingDate()The date the transaction was booked into the balance account.OffsetDateTimegetCreationDate()The date and time when the event was triggered, in ISO 8601 extended format.StringgetDescription()The `description` from the `/transfers` request.StringgetId()The unique identifier of the transaction.PaymentInstrumentgetPaymentInstrument()Get paymentInstrumentStringgetReferenceForBeneficiary()The reference sent to or received from the counterparty.Transaction.StatusEnumgetStatus()The status of the transaction.TransferViewgetTransfer()Get transferOffsetDateTimegetValueDate()The date the transfer amount becomes available in the balance account.inthashCode()Transactionid(String id)TransactionpaymentInstrument(PaymentInstrument paymentInstrument)TransactionreferenceForBeneficiary(String referenceForBeneficiary)voidsetAccountHolder(ResourceReference accountHolder)accountHoldervoidsetAmount(Amount amount)amountvoidsetBalanceAccount(ResourceReference balanceAccount)balanceAccountvoidsetBalancePlatform(String balancePlatform)The unique identifier of the balance platform.voidsetBookingDate(OffsetDateTime bookingDate)The date the transaction was booked into the balance account.voidsetCreationDate(OffsetDateTime creationDate)The date and time when the event was triggered, in ISO 8601 extended format.voidsetDescription(String description)The `description` from the `/transfers` request.voidsetId(String id)The unique identifier of the transaction.voidsetPaymentInstrument(PaymentInstrument paymentInstrument)paymentInstrumentvoidsetReferenceForBeneficiary(String referenceForBeneficiary)The reference sent to or received from the counterparty.voidsetStatus(Transaction.StatusEnum status)The status of the transaction.voidsetTransfer(TransferView transfer)transfervoidsetValueDate(OffsetDateTime valueDate)The date the transfer amount becomes available in the balance account.Transactionstatus(Transaction.StatusEnum status)StringtoJson()Convert an instance of Transaction to an JSON stringStringtoString()Transactiontransfer(TransferView transfer)TransactionvalueDate(OffsetDateTime valueDate)
-
-
-
Field Detail
-
JSON_PROPERTY_ACCOUNT_HOLDER
public static final String JSON_PROPERTY_ACCOUNT_HOLDER
- See Also:
- Constant Field Values
-
JSON_PROPERTY_AMOUNT
public static final String JSON_PROPERTY_AMOUNT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_BALANCE_ACCOUNT
public static final String JSON_PROPERTY_BALANCE_ACCOUNT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_BALANCE_PLATFORM
public static final String JSON_PROPERTY_BALANCE_PLATFORM
- See Also:
- Constant Field Values
-
JSON_PROPERTY_BOOKING_DATE
public static final String JSON_PROPERTY_BOOKING_DATE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_CREATION_DATE
public static final String JSON_PROPERTY_CREATION_DATE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_DESCRIPTION
public static final String JSON_PROPERTY_DESCRIPTION
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ID
public static final String JSON_PROPERTY_ID
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PAYMENT_INSTRUMENT
public static final String JSON_PROPERTY_PAYMENT_INSTRUMENT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_REFERENCE_FOR_BENEFICIARY
public static final String JSON_PROPERTY_REFERENCE_FOR_BENEFICIARY
- See Also:
- Constant Field Values
-
JSON_PROPERTY_STATUS
public static final String JSON_PROPERTY_STATUS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TRANSFER
public static final String JSON_PROPERTY_TRANSFER
- See Also:
- Constant Field Values
-
JSON_PROPERTY_VALUE_DATE
public static final String JSON_PROPERTY_VALUE_DATE
- See Also:
- Constant Field Values
-
-
Method Detail
-
accountHolder
public Transaction accountHolder(ResourceReference accountHolder)
-
getAccountHolder
public ResourceReference getAccountHolder()
Get accountHolder- Returns:
- accountHolder
-
setAccountHolder
public void setAccountHolder(ResourceReference accountHolder)
accountHolder- Parameters:
accountHolder-
-
amount
public Transaction amount(Amount amount)
-
getAmount
public Amount getAmount()
Get amount- Returns:
- amount
-
setAmount
public void setAmount(Amount amount)
amount- Parameters:
amount-
-
balanceAccount
public Transaction balanceAccount(ResourceReference balanceAccount)
-
getBalanceAccount
public ResourceReference getBalanceAccount()
Get balanceAccount- Returns:
- balanceAccount
-
setBalanceAccount
public void setBalanceAccount(ResourceReference balanceAccount)
balanceAccount- Parameters:
balanceAccount-
-
balancePlatform
public Transaction balancePlatform(String balancePlatform)
-
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)
-
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)
-
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)
-
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)
-
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)
-
getPaymentInstrument
public PaymentInstrument getPaymentInstrument()
Get paymentInstrument- Returns:
- paymentInstrument
-
setPaymentInstrument
public void setPaymentInstrument(PaymentInstrument paymentInstrument)
paymentInstrument- Parameters:
paymentInstrument-
-
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)
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)
-
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)
-
getTransfer
public TransferView getTransfer()
Get transfer- Returns:
- transfer
-
setTransfer
public void setTransfer(TransferView transfer)
transfer- Parameters:
transfer-
-
valueDate
public Transaction valueDate(OffsetDateTime valueDate)
-
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.
-
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
-
-