Package com.adyen.model.transferwebhooks
Class TransferEvent
- java.lang.Object
-
- com.adyen.model.transferwebhooks.TransferEvent
-
public class TransferEvent extends Object
TransferEvent
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTransferEvent.CustomTypeAdapterFactorystatic classTransferEvent.ReasonEnumThe reason for the transfer status.static classTransferEvent.StatusEnumThe status of the transfer event.static classTransferEvent.TypeEnumThe type of the transfer event.
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_AMOUNTstatic StringSERIALIZED_NAME_AMOUNT_ADJUSTMENTSstatic StringSERIALIZED_NAME_BOOKING_DATEstatic StringSERIALIZED_NAME_ESTIMATED_ARRIVAL_TIMEstatic StringSERIALIZED_NAME_IDstatic StringSERIALIZED_NAME_MUTATIONSstatic StringSERIALIZED_NAME_ORIGINAL_AMOUNTstatic StringSERIALIZED_NAME_REASONstatic StringSERIALIZED_NAME_STATUSstatic StringSERIALIZED_NAME_TRANSACTION_IDstatic StringSERIALIZED_NAME_TYPEstatic StringSERIALIZED_NAME_UPDATE_DATEstatic StringSERIALIZED_NAME_VALUE_DATE
-
Constructor Summary
Constructors Constructor Description TransferEvent()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description TransferEventaddAmountAdjustmentsItem(AmountAdjustment amountAdjustmentsItem)TransferEventaddMutationsItem(BalanceMutation mutationsItem)TransferEventamount(Amount amount)TransferEventamountAdjustments(List<AmountAdjustment> amountAdjustments)TransferEventbookingDate(OffsetDateTime bookingDate)booleanequals(Object o)TransferEventestimatedArrivalTime(OffsetDateTime estimatedArrivalTime)static TransferEventfromJson(String jsonString)Create an instance of TransferEvent given an JSON stringAmountgetAmount()Get amountList<AmountAdjustment>getAmountAdjustments()The amount adjustments in this transfer.OffsetDateTimegetBookingDate()The date when the transfer request was sent.OffsetDateTimegetEstimatedArrivalTime()The estimated time the beneficiary should have access to the funds.StringgetId()The unique identifier of the transfer event.List<BalanceMutation>getMutations()The list of the balance mutation per event.AmountgetOriginalAmount()Get originalAmountTransferEvent.ReasonEnumgetReason()The reason for the transfer status.TransferEvent.StatusEnumgetStatus()The status of the transfer event.StringgetTransactionId()The id of the transaction that is related to this accounting event.TransferEvent.TypeEnumgetType()The type of the transfer event.OffsetDateTimegetUpdateDate()The date when the tracking status was updated.OffsetDateTimegetValueDate()A future date, when the funds are expected to be deducted from or credited to the balance account.inthashCode()TransferEventid(String id)TransferEventmutations(List<BalanceMutation> mutations)TransferEventoriginalAmount(Amount originalAmount)TransferEventreason(TransferEvent.ReasonEnum reason)voidsetAmount(Amount amount)voidsetAmountAdjustments(List<AmountAdjustment> amountAdjustments)voidsetBookingDate(OffsetDateTime bookingDate)voidsetEstimatedArrivalTime(OffsetDateTime estimatedArrivalTime)voidsetId(String id)voidsetMutations(List<BalanceMutation> mutations)voidsetOriginalAmount(Amount originalAmount)voidsetReason(TransferEvent.ReasonEnum reason)voidsetStatus(TransferEvent.StatusEnum status)voidsetTransactionId(String transactionId)voidsetType(TransferEvent.TypeEnum type)voidsetUpdateDate(OffsetDateTime updateDate)voidsetValueDate(OffsetDateTime valueDate)TransferEventstatus(TransferEvent.StatusEnum status)StringtoJson()Convert an instance of TransferEvent to an JSON stringStringtoString()TransferEventtransactionId(String transactionId)TransferEventtype(TransferEvent.TypeEnum type)TransferEventupdateDate(OffsetDateTime updateDate)static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues foundTransferEventvalueDate(OffsetDateTime valueDate)
-
-
-
Field Detail
-
SERIALIZED_NAME_AMOUNT
public static final String SERIALIZED_NAME_AMOUNT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_AMOUNT_ADJUSTMENTS
public static final String SERIALIZED_NAME_AMOUNT_ADJUSTMENTS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_BOOKING_DATE
public static final String SERIALIZED_NAME_BOOKING_DATE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ESTIMATED_ARRIVAL_TIME
public static final String SERIALIZED_NAME_ESTIMATED_ARRIVAL_TIME
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ID
public static final String SERIALIZED_NAME_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_MUTATIONS
public static final String SERIALIZED_NAME_MUTATIONS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ORIGINAL_AMOUNT
public static final String SERIALIZED_NAME_ORIGINAL_AMOUNT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_REASON
public static final String SERIALIZED_NAME_REASON
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_STATUS
public static final String SERIALIZED_NAME_STATUS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TRANSACTION_ID
public static final String SERIALIZED_NAME_TRANSACTION_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TYPE
public static final String SERIALIZED_NAME_TYPE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_UPDATE_DATE
public static final String SERIALIZED_NAME_UPDATE_DATE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_VALUE_DATE
public static final String SERIALIZED_NAME_VALUE_DATE
- See Also:
- Constant Field Values
-
-
Method Detail
-
amount
public TransferEvent amount(Amount amount)
-
getAmount
public Amount getAmount()
Get amount- Returns:
- amount
-
setAmount
public void setAmount(Amount amount)
-
amountAdjustments
public TransferEvent amountAdjustments(List<AmountAdjustment> amountAdjustments)
-
addAmountAdjustmentsItem
public TransferEvent addAmountAdjustmentsItem(AmountAdjustment amountAdjustmentsItem)
-
getAmountAdjustments
public List<AmountAdjustment> getAmountAdjustments()
The amount adjustments in this transfer.- Returns:
- amountAdjustments
-
setAmountAdjustments
public void setAmountAdjustments(List<AmountAdjustment> amountAdjustments)
-
bookingDate
public TransferEvent bookingDate(OffsetDateTime bookingDate)
-
getBookingDate
public OffsetDateTime getBookingDate()
The date when the transfer request was sent.- Returns:
- bookingDate
-
setBookingDate
public void setBookingDate(OffsetDateTime bookingDate)
-
estimatedArrivalTime
public TransferEvent estimatedArrivalTime(OffsetDateTime estimatedArrivalTime)
-
getEstimatedArrivalTime
public OffsetDateTime getEstimatedArrivalTime()
The estimated time the beneficiary should have access to the funds.- Returns:
- estimatedArrivalTime
-
setEstimatedArrivalTime
public void setEstimatedArrivalTime(OffsetDateTime estimatedArrivalTime)
-
id
public TransferEvent id(String id)
-
getId
public String getId()
The unique identifier of the transfer event.- Returns:
- id
-
setId
public void setId(String id)
-
mutations
public TransferEvent mutations(List<BalanceMutation> mutations)
-
addMutationsItem
public TransferEvent addMutationsItem(BalanceMutation mutationsItem)
-
getMutations
public List<BalanceMutation> getMutations()
The list of the balance mutation per event.- Returns:
- mutations
-
setMutations
public void setMutations(List<BalanceMutation> mutations)
-
originalAmount
public TransferEvent originalAmount(Amount originalAmount)
-
getOriginalAmount
public Amount getOriginalAmount()
Get originalAmount- Returns:
- originalAmount
-
setOriginalAmount
public void setOriginalAmount(Amount originalAmount)
-
reason
public TransferEvent reason(TransferEvent.ReasonEnum reason)
-
getReason
public TransferEvent.ReasonEnum getReason()
The reason for the transfer status.- Returns:
- reason
-
setReason
public void setReason(TransferEvent.ReasonEnum reason)
-
status
public TransferEvent status(TransferEvent.StatusEnum status)
-
getStatus
public TransferEvent.StatusEnum getStatus()
The status of the transfer event.- Returns:
- status
-
setStatus
public void setStatus(TransferEvent.StatusEnum status)
-
transactionId
public TransferEvent transactionId(String transactionId)
-
getTransactionId
public String getTransactionId()
The id of the transaction that is related to this accounting event. Only sent for events of type **accounting** where the balance changes.- Returns:
- transactionId
-
setTransactionId
public void setTransactionId(String transactionId)
-
type
public TransferEvent type(TransferEvent.TypeEnum type)
-
getType
public TransferEvent.TypeEnum getType()
The type of the transfer event. Possible values: **accounting**, **tracking**.- Returns:
- type
-
setType
public void setType(TransferEvent.TypeEnum type)
-
updateDate
public TransferEvent updateDate(OffsetDateTime updateDate)
-
getUpdateDate
public OffsetDateTime getUpdateDate()
The date when the tracking status was updated.- Returns:
- updateDate
-
setUpdateDate
public void setUpdateDate(OffsetDateTime updateDate)
-
valueDate
public TransferEvent valueDate(OffsetDateTime valueDate)
-
getValueDate
public OffsetDateTime getValueDate()
A future date, when the funds are expected to be deducted from or credited to the balance account.- Returns:
- valueDate
-
setValueDate
public void setValueDate(OffsetDateTime valueDate)
-
validateJsonObject
public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOExceptionValidates the JSON Object and throws an exception if issues found- Parameters:
jsonObj- JSON Object- Throws:
IOException- if the JSON Object is invalid with respect to TransferEvent
-
fromJson
public static TransferEvent fromJson(String jsonString) throws IOException
Create an instance of TransferEvent given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of TransferEvent
- Throws:
IOException- if the JSON string is invalid with respect to TransferEvent
-
toJson
public String toJson()
Convert an instance of TransferEvent to an JSON string- Returns:
- JSON string
-
-