Class Transaction
- java.lang.Object
-
- com.adyen.model.transactionwebhooks.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)accountHolderTransactionamount(Amount amount)amountTransactionbalanceAccount(ResourceReference balanceAccount)balanceAccountTransactionbalancePlatform(String balancePlatform)The unique identifier of the balance platform.TransactionbookingDate(OffsetDateTime bookingDate)The date the transaction was booked into the balance account.TransactioncreationDate(OffsetDateTime creationDate)The date and time when the event was triggered, in ISO 8601 extended format.Transactiondescription(String description)The `description` from the `/transfers` request.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()accountHolderAmountgetAmount()amountResourceReferencegetBalanceAccount()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()paymentInstrumentStringgetReferenceForBeneficiary()The reference sent to or received from the counterpartyTransaction.StatusEnumgetStatus()The status of the transaction.TransferViewgetTransfer()transferOffsetDateTimegetValueDate()The date the transfer amount becomes available in the balance account.inthashCode()Transactionid(String id)The unique identifier of the transaction.TransactionpaymentInstrument(PaymentInstrument paymentInstrument)paymentInstrumentTransactionreferenceForBeneficiary(String referenceForBeneficiary)The reference sent to or received from the counterpartyvoidsetAccountHolder(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 counterpartyvoidsetStatus(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)The status of the transaction.StringtoJson()Convert an instance of Transaction to an JSON stringStringtoString()Transactiontransfer(TransferView transfer)transferTransactionvalueDate(OffsetDateTime valueDate)The date the transfer amount becomes available in the balance account.
-
-
-
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)
accountHolder- Parameters:
accountHolder-- Returns:
- the current
Transactioninstance, 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
Transactioninstance, 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
Transactioninstance, 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
Transactioninstance, 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
Transactioninstance, 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
Transactioninstance, 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
Transactioninstance, 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
Transactioninstance, 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
Transactioninstance, 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
Transactioninstance, 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
Transactioninstance, 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
Transactioninstance, 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
Transactioninstance, 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.
-
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
-
-