Package com.adyen.model.marketpayaccount
Class AccountEvent
- java.lang.Object
-
- com.adyen.model.marketpayaccount.AccountEvent
-
public class AccountEvent extends Object
AccountEvent
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAccountEvent.EventEnumThe event.
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_EVENTstatic StringJSON_PROPERTY_EXECUTION_DATEstatic StringJSON_PROPERTY_REASON
-
Constructor Summary
Constructors Constructor Description AccountEvent()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)Return true if this AccountEvent object is equal to o.AccountEventevent(AccountEvent.EventEnum event)AccountEventexecutionDate(OffsetDateTime executionDate)static AccountEventfromJson(String jsonString)Create an instance of AccountEvent given an JSON stringAccountEvent.EventEnumgetEvent()The event.OffsetDateTimegetExecutionDate()The date on which the event will take place.StringgetReason()The reason why this event has been created.inthashCode()AccountEventreason(String reason)voidsetEvent(AccountEvent.EventEnum event)voidsetExecutionDate(OffsetDateTime executionDate)voidsetReason(String reason)StringtoJson()Convert an instance of AccountEvent to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_EVENT
public static final String JSON_PROPERTY_EVENT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_EXECUTION_DATE
public static final String JSON_PROPERTY_EXECUTION_DATE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_REASON
public static final String JSON_PROPERTY_REASON
- See Also:
- Constant Field Values
-
-
Method Detail
-
event
public AccountEvent event(AccountEvent.EventEnum event)
-
getEvent
public AccountEvent.EventEnum getEvent()
The event. >Permitted values: `InactivateAccount`, `RefundNotPaidOutTransfers`. For more information, refer to [Verification checks](https://docs.adyen.com/marketplaces-and-platforms/classic/verification-process).- Returns:
- event
-
setEvent
public void setEvent(AccountEvent.EventEnum event)
-
executionDate
public AccountEvent executionDate(OffsetDateTime executionDate)
-
getExecutionDate
public OffsetDateTime getExecutionDate()
The date on which the event will take place.- Returns:
- executionDate
-
setExecutionDate
public void setExecutionDate(OffsetDateTime executionDate)
-
reason
public AccountEvent reason(String reason)
-
getReason
public String getReason()
The reason why this event has been created.- Returns:
- reason
-
setReason
public void setReason(String reason)
-
equals
public boolean equals(Object o)
Return true if this AccountEvent object is equal to o.
-
fromJson
public static AccountEvent fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of AccountEvent given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of AccountEvent
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to AccountEvent
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of AccountEvent to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-