Package com.adyen.model.transfers
Class TransferEvent
- java.lang.Object
-
- com.adyen.model.transfers.TransferEvent
-
public class TransferEvent extends Object
TransferEvent
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static 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 StringJSON_PROPERTY_AMOUNTstatic StringJSON_PROPERTY_AMOUNT_ADJUSTMENTSstatic StringJSON_PROPERTY_ARNstatic StringJSON_PROPERTY_BOOKING_DATEstatic StringJSON_PROPERTY_ESTIMATED_ARRIVAL_TIMEstatic StringJSON_PROPERTY_EVENTS_DATAstatic StringJSON_PROPERTY_EXTERNAL_REASONstatic StringJSON_PROPERTY_IDstatic StringJSON_PROPERTY_MODIFICATIONstatic StringJSON_PROPERTY_MUTATIONSstatic StringJSON_PROPERTY_ORIGINAL_AMOUNTstatic StringJSON_PROPERTY_REASONstatic StringJSON_PROPERTY_STATUSstatic StringJSON_PROPERTY_TRACKING_DATAstatic StringJSON_PROPERTY_TRANSACTION_IDstatic StringJSON_PROPERTY_TYPEstatic StringJSON_PROPERTY_UPDATE_DATEstatic StringJSON_PROPERTY_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)TransferEventaddEventsDataItem(TransferEventEventsDataInner eventsDataItem)TransferEventaddMutationsItem(BalanceMutation mutationsItem)TransferEventamount(Amount amount)amountTransferEventamountAdjustments(List<AmountAdjustment> amountAdjustments)The amount adjustments in this transfer.TransferEventarn(String arn)Scheme unique arn identifier useful for tracing captures, chargebacks, refunds, etc.TransferEventbookingDate(OffsetDateTime bookingDate)The date when the transfer request was sent.booleanequals(Object o)Return true if this TransferEvent object is equal to o.TransferEventestimatedArrivalTime(OffsetDateTime estimatedArrivalTime)The estimated time when the beneficiary should have access to the funds.TransferEventeventsData(List<TransferEventEventsDataInner> eventsData)A list of event data.TransferEventexternalReason(ExternalReason externalReason)externalReasonstatic TransferEventfromJson(String jsonString)Create an instance of TransferEvent given an JSON stringAmountgetAmount()amountList<AmountAdjustment>getAmountAdjustments()The amount adjustments in this transfer.StringgetArn()Scheme unique arn identifier useful for tracing captures, chargebacks, refunds, etc.OffsetDateTimegetBookingDate()The date when the transfer request was sent.OffsetDateTimegetEstimatedArrivalTime()The estimated time when the beneficiary should have access to the funds.List<TransferEventEventsDataInner>getEventsData()A list of event data.ExternalReasongetExternalReason()externalReasonStringgetId()The unique identifier of the transfer event.ModificationgetModification()modificationList<BalanceMutation>getMutations()The list of balance mutations per event.AmountgetOriginalAmount()originalAmountTransferEvent.ReasonEnumgetReason()The reason for the transfer status.TransferEvent.StatusEnumgetStatus()The status of the transfer event.TransferEventTrackingDatagetTrackingData()trackingDataStringgetTransactionId()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()The date when the funds are expected to be deducted from or credited to the balance account.inthashCode()TransferEventid(String id)The unique identifier of the transfer event.TransferEventmodification(Modification modification)modificationTransferEventmutations(List<BalanceMutation> mutations)The list of balance mutations per event.TransferEventoriginalAmount(Amount originalAmount)originalAmountTransferEventreason(TransferEvent.ReasonEnum reason)The reason for the transfer status.voidsetAmount(Amount amount)amountvoidsetAmountAdjustments(List<AmountAdjustment> amountAdjustments)The amount adjustments in this transfer.voidsetArn(String arn)Scheme unique arn identifier useful for tracing captures, chargebacks, refunds, etc.voidsetBookingDate(OffsetDateTime bookingDate)The date when the transfer request was sent.voidsetEstimatedArrivalTime(OffsetDateTime estimatedArrivalTime)The estimated time when the beneficiary should have access to the funds.voidsetEventsData(List<TransferEventEventsDataInner> eventsData)A list of event data.voidsetExternalReason(ExternalReason externalReason)externalReasonvoidsetId(String id)The unique identifier of the transfer event.voidsetModification(Modification modification)modificationvoidsetMutations(List<BalanceMutation> mutations)The list of balance mutations per event.voidsetOriginalAmount(Amount originalAmount)originalAmountvoidsetReason(TransferEvent.ReasonEnum reason)The reason for the transfer status.voidsetStatus(TransferEvent.StatusEnum status)The status of the transfer event.voidsetTrackingData(TransferEventTrackingData trackingData)trackingDatavoidsetTransactionId(String transactionId)The id of the transaction that is related to this accounting event.voidsetType(TransferEvent.TypeEnum type)The type of the transfer event.voidsetUpdateDate(OffsetDateTime updateDate)The date when the tracking status was updated.voidsetValueDate(OffsetDateTime valueDate)The date when the funds are expected to be deducted from or credited to the balance account.TransferEventstatus(TransferEvent.StatusEnum status)The status of the transfer event.StringtoJson()Convert an instance of TransferEvent to an JSON stringStringtoString()TransferEventtrackingData(TransferEventTrackingData trackingData)trackingDataTransferEventtransactionId(String transactionId)The id of the transaction that is related to this accounting event.TransferEventtype(TransferEvent.TypeEnum type)The type of the transfer event.TransferEventupdateDate(OffsetDateTime updateDate)The date when the tracking status was updated.TransferEventvalueDate(OffsetDateTime valueDate)The date when the funds are expected to be deducted from or credited to the balance account.
-
-
-
Field Detail
-
JSON_PROPERTY_AMOUNT
public static final String JSON_PROPERTY_AMOUNT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_AMOUNT_ADJUSTMENTS
public static final String JSON_PROPERTY_AMOUNT_ADJUSTMENTS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ARN
public static final String JSON_PROPERTY_ARN
- See Also:
- Constant Field Values
-
JSON_PROPERTY_BOOKING_DATE
public static final String JSON_PROPERTY_BOOKING_DATE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ESTIMATED_ARRIVAL_TIME
public static final String JSON_PROPERTY_ESTIMATED_ARRIVAL_TIME
- See Also:
- Constant Field Values
-
JSON_PROPERTY_EVENTS_DATA
public static final String JSON_PROPERTY_EVENTS_DATA
- See Also:
- Constant Field Values
-
JSON_PROPERTY_EXTERNAL_REASON
public static final String JSON_PROPERTY_EXTERNAL_REASON
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ID
public static final String JSON_PROPERTY_ID
- See Also:
- Constant Field Values
-
JSON_PROPERTY_MODIFICATION
public static final String JSON_PROPERTY_MODIFICATION
- See Also:
- Constant Field Values
-
JSON_PROPERTY_MUTATIONS
public static final String JSON_PROPERTY_MUTATIONS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ORIGINAL_AMOUNT
public static final String JSON_PROPERTY_ORIGINAL_AMOUNT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_REASON
public static final String JSON_PROPERTY_REASON
- See Also:
- Constant Field Values
-
JSON_PROPERTY_STATUS
public static final String JSON_PROPERTY_STATUS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TRACKING_DATA
public static final String JSON_PROPERTY_TRACKING_DATA
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TRANSACTION_ID
public static final String JSON_PROPERTY_TRANSACTION_ID
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TYPE
public static final String JSON_PROPERTY_TYPE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_UPDATE_DATE
public static final String JSON_PROPERTY_UPDATE_DATE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_VALUE_DATE
public static final String JSON_PROPERTY_VALUE_DATE
- See Also:
- Constant Field Values
-
-
Method Detail
-
amount
public TransferEvent amount(Amount amount)
amount- Parameters:
amount-- Returns:
- the current
TransferEventinstance, allowing for method chaining
-
getAmount
public Amount getAmount()
amount- Returns:
- amount
-
setAmount
public void setAmount(Amount amount)
amount- Parameters:
amount-
-
amountAdjustments
public TransferEvent amountAdjustments(List<AmountAdjustment> amountAdjustments)
The amount adjustments in this transfer.- Parameters:
amountAdjustments-- Returns:
- the current
TransferEventinstance, allowing for method chaining
-
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)
The amount adjustments in this transfer.- Parameters:
amountAdjustments-
-
arn
public TransferEvent arn(String arn)
Scheme unique arn identifier useful for tracing captures, chargebacks, refunds, etc.- Parameters:
arn-- Returns:
- the current
TransferEventinstance, allowing for method chaining
-
getArn
public String getArn()
Scheme unique arn identifier useful for tracing captures, chargebacks, refunds, etc.- Returns:
- arn
-
setArn
public void setArn(String arn)
Scheme unique arn identifier useful for tracing captures, chargebacks, refunds, etc.- Parameters:
arn-
-
bookingDate
public TransferEvent bookingDate(OffsetDateTime bookingDate)
The date when the transfer request was sent.- Parameters:
bookingDate-- Returns:
- the current
TransferEventinstance, allowing for method chaining
-
getBookingDate
public OffsetDateTime getBookingDate()
The date when the transfer request was sent.- Returns:
- bookingDate
-
setBookingDate
public void setBookingDate(OffsetDateTime bookingDate)
The date when the transfer request was sent.- Parameters:
bookingDate-
-
estimatedArrivalTime
public TransferEvent estimatedArrivalTime(OffsetDateTime estimatedArrivalTime)
The estimated time when the beneficiary should have access to the funds.- Parameters:
estimatedArrivalTime-- Returns:
- the current
TransferEventinstance, allowing for method chaining
-
getEstimatedArrivalTime
public OffsetDateTime getEstimatedArrivalTime()
The estimated time when the beneficiary should have access to the funds.- Returns:
- estimatedArrivalTime
-
setEstimatedArrivalTime
public void setEstimatedArrivalTime(OffsetDateTime estimatedArrivalTime)
The estimated time when the beneficiary should have access to the funds.- Parameters:
estimatedArrivalTime-
-
eventsData
public TransferEvent eventsData(List<TransferEventEventsDataInner> eventsData)
A list of event data.- Parameters:
eventsData-- Returns:
- the current
TransferEventinstance, allowing for method chaining
-
addEventsDataItem
public TransferEvent addEventsDataItem(TransferEventEventsDataInner eventsDataItem)
-
getEventsData
public List<TransferEventEventsDataInner> getEventsData()
A list of event data.- Returns:
- eventsData
-
setEventsData
public void setEventsData(List<TransferEventEventsDataInner> eventsData)
A list of event data.- Parameters:
eventsData-
-
externalReason
public TransferEvent externalReason(ExternalReason externalReason)
externalReason- Parameters:
externalReason-- Returns:
- the current
TransferEventinstance, allowing for method chaining
-
getExternalReason
public ExternalReason getExternalReason()
externalReason- Returns:
- externalReason
-
setExternalReason
public void setExternalReason(ExternalReason externalReason)
externalReason- Parameters:
externalReason-
-
id
public TransferEvent id(String id)
The unique identifier of the transfer event.- Parameters:
id-- Returns:
- the current
TransferEventinstance, allowing for method chaining
-
getId
public String getId()
The unique identifier of the transfer event.- Returns:
- id
-
setId
public void setId(String id)
The unique identifier of the transfer event.- Parameters:
id-
-
modification
public TransferEvent modification(Modification modification)
modification- Parameters:
modification-- Returns:
- the current
TransferEventinstance, allowing for method chaining
-
getModification
public Modification getModification()
modification- Returns:
- modification
-
setModification
public void setModification(Modification modification)
modification- Parameters:
modification-
-
mutations
public TransferEvent mutations(List<BalanceMutation> mutations)
The list of balance mutations per event.- Parameters:
mutations-- Returns:
- the current
TransferEventinstance, allowing for method chaining
-
addMutationsItem
public TransferEvent addMutationsItem(BalanceMutation mutationsItem)
-
getMutations
public List<BalanceMutation> getMutations()
The list of balance mutations per event.- Returns:
- mutations
-
setMutations
public void setMutations(List<BalanceMutation> mutations)
The list of balance mutations per event.- Parameters:
mutations-
-
originalAmount
public TransferEvent originalAmount(Amount originalAmount)
originalAmount- Parameters:
originalAmount-- Returns:
- the current
TransferEventinstance, allowing for method chaining
-
getOriginalAmount
public Amount getOriginalAmount()
originalAmount- Returns:
- originalAmount
-
setOriginalAmount
public void setOriginalAmount(Amount originalAmount)
originalAmount- Parameters:
originalAmount-
-
reason
public TransferEvent reason(TransferEvent.ReasonEnum reason)
The reason for the transfer status.- Parameters:
reason-- Returns:
- the current
TransferEventinstance, allowing for method chaining
-
getReason
public TransferEvent.ReasonEnum getReason()
The reason for the transfer status.- Returns:
- reason
-
setReason
public void setReason(TransferEvent.ReasonEnum reason)
The reason for the transfer status.- Parameters:
reason-
-
status
public TransferEvent status(TransferEvent.StatusEnum status)
The status of the transfer event.- Parameters:
status-- Returns:
- the current
TransferEventinstance, allowing for method chaining
-
getStatus
public TransferEvent.StatusEnum getStatus()
The status of the transfer event.- Returns:
- status
-
setStatus
public void setStatus(TransferEvent.StatusEnum status)
The status of the transfer event.- Parameters:
status-
-
trackingData
public TransferEvent trackingData(TransferEventTrackingData trackingData)
trackingData- Parameters:
trackingData-- Returns:
- the current
TransferEventinstance, allowing for method chaining
-
getTrackingData
public TransferEventTrackingData getTrackingData()
trackingData- Returns:
- trackingData
-
setTrackingData
public void setTrackingData(TransferEventTrackingData trackingData)
trackingData- Parameters:
trackingData-
-
transactionId
public TransferEvent transactionId(String transactionId)
The id of the transaction that is related to this accounting event. Only sent for events of type **accounting** where the balance changes.- Parameters:
transactionId-- Returns:
- the current
TransferEventinstance, allowing for method chaining
-
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)
The id of the transaction that is related to this accounting event. Only sent for events of type **accounting** where the balance changes.- Parameters:
transactionId-
-
type
public TransferEvent type(TransferEvent.TypeEnum type)
The type of the transfer event. Possible values: **accounting**, **tracking**.- Parameters:
type-- Returns:
- the current
TransferEventinstance, allowing for method chaining
-
getType
public TransferEvent.TypeEnum getType()
The type of the transfer event. Possible values: **accounting**, **tracking**.- Returns:
- type
-
setType
public void setType(TransferEvent.TypeEnum type)
The type of the transfer event. Possible values: **accounting**, **tracking**.- Parameters:
type-
-
updateDate
public TransferEvent updateDate(OffsetDateTime updateDate)
The date when the tracking status was updated.- Parameters:
updateDate-- Returns:
- the current
TransferEventinstance, allowing for method chaining
-
getUpdateDate
public OffsetDateTime getUpdateDate()
The date when the tracking status was updated.- Returns:
- updateDate
-
setUpdateDate
public void setUpdateDate(OffsetDateTime updateDate)
The date when the tracking status was updated.- Parameters:
updateDate-
-
valueDate
public TransferEvent valueDate(OffsetDateTime valueDate)
The date when the funds are expected to be deducted from or credited to the balance account. This date can be in either the past or future.- Parameters:
valueDate-- Returns:
- the current
TransferEventinstance, allowing for method chaining
-
getValueDate
public OffsetDateTime getValueDate()
The date when the funds are expected to be deducted from or credited to the balance account. This date can be in either the past or future.- Returns:
- valueDate
-
setValueDate
public void setValueDate(OffsetDateTime valueDate)
The date when the funds are expected to be deducted from or credited to the balance account. This date can be in either the past or future.- Parameters:
valueDate-
-
equals
public boolean equals(Object o)
Return true if this TransferEvent object is equal to o.
-
fromJson
public static TransferEvent fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of TransferEvent given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of TransferEvent
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to TransferEvent
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of TransferEvent to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-