Class AccountCloseNotification
- java.lang.Object
-
- com.adyen.model.marketpaywebhooks.AccountCloseNotification
-
public class AccountCloseNotification extends Object
AccountCloseNotification
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_CONTENTstatic StringJSON_PROPERTY_ERRORstatic StringJSON_PROPERTY_EVENT_DATEstatic StringJSON_PROPERTY_EVENT_TYPEstatic StringJSON_PROPERTY_EXECUTING_USER_KEYstatic StringJSON_PROPERTY_LIVEstatic StringJSON_PROPERTY_PSP_REFERENCE
-
Constructor Summary
Constructors Constructor Description AccountCloseNotification()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AccountCloseNotificationcontent(CloseAccountResponse content)booleanequals(Object o)Return true if this AccountCloseNotification object is equal to o.AccountCloseNotificationerror(NotificationErrorContainer error)AccountCloseNotificationeventDate(OffsetDateTime eventDate)AccountCloseNotificationeventType(String eventType)AccountCloseNotificationexecutingUserKey(String executingUserKey)static AccountCloseNotificationfromJson(String jsonString)Create an instance of AccountCloseNotification given an JSON stringCloseAccountResponsegetContent()Get contentNotificationErrorContainergetError()Get errorOffsetDateTimegetEventDate()The date and time when an event has been completed.StringgetEventType()The event type of the notification.StringgetExecutingUserKey()The user or process that has triggered the notification.BooleangetLive()Indicates whether the notification originated from the live environment or the test environment.StringgetPspReference()The PSP reference of the request from which the notification originates.inthashCode()AccountCloseNotificationlive(Boolean live)AccountCloseNotificationpspReference(String pspReference)voidsetContent(CloseAccountResponse content)voidsetError(NotificationErrorContainer error)voidsetEventDate(OffsetDateTime eventDate)voidsetEventType(String eventType)voidsetExecutingUserKey(String executingUserKey)voidsetLive(Boolean live)voidsetPspReference(String pspReference)StringtoJson()Convert an instance of AccountCloseNotification to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_CONTENT
public static final String JSON_PROPERTY_CONTENT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ERROR
public static final String JSON_PROPERTY_ERROR
- See Also:
- Constant Field Values
-
JSON_PROPERTY_EVENT_DATE
public static final String JSON_PROPERTY_EVENT_DATE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_EVENT_TYPE
public static final String JSON_PROPERTY_EVENT_TYPE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_EXECUTING_USER_KEY
public static final String JSON_PROPERTY_EXECUTING_USER_KEY
- See Also:
- Constant Field Values
-
JSON_PROPERTY_LIVE
public static final String JSON_PROPERTY_LIVE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PSP_REFERENCE
public static final String JSON_PROPERTY_PSP_REFERENCE
- See Also:
- Constant Field Values
-
-
Method Detail
-
content
public AccountCloseNotification content(CloseAccountResponse content)
-
getContent
public CloseAccountResponse getContent()
Get content- Returns:
- content
-
setContent
public void setContent(CloseAccountResponse content)
-
error
public AccountCloseNotification error(NotificationErrorContainer error)
-
getError
public NotificationErrorContainer getError()
Get error- Returns:
- error
-
setError
public void setError(NotificationErrorContainer error)
-
eventDate
public AccountCloseNotification eventDate(OffsetDateTime eventDate)
-
getEventDate
public OffsetDateTime getEventDate()
The date and time when an event has been completed.- Returns:
- eventDate
-
setEventDate
public void setEventDate(OffsetDateTime eventDate)
-
eventType
public AccountCloseNotification eventType(String eventType)
-
getEventType
public String getEventType()
The event type of the notification.- Returns:
- eventType
-
setEventType
public void setEventType(String eventType)
-
executingUserKey
public AccountCloseNotification executingUserKey(String executingUserKey)
-
getExecutingUserKey
public String getExecutingUserKey()
The user or process that has triggered the notification.- Returns:
- executingUserKey
-
setExecutingUserKey
public void setExecutingUserKey(String executingUserKey)
-
live
public AccountCloseNotification live(Boolean live)
-
getLive
public Boolean getLive()
Indicates whether the notification originated from the live environment or the test environment. If true, the notification originated from the live environment. If false, the notification originated from the test environment.- Returns:
- live
-
setLive
public void setLive(Boolean live)
-
pspReference
public AccountCloseNotification pspReference(String pspReference)
-
getPspReference
public String getPspReference()
The PSP reference of the request from which the notification originates.- Returns:
- pspReference
-
setPspReference
public void setPspReference(String pspReference)
-
equals
public boolean equals(Object o)
Return true if this AccountCloseNotification object is equal to o.
-
fromJson
public static AccountCloseNotification fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of AccountCloseNotification given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of AccountCloseNotification
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to AccountCloseNotification
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of AccountCloseNotification to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-