Package com.adyen.model.acswebhooks
Class AuthenticationNotificationRequest
- java.lang.Object
-
- com.adyen.model.acswebhooks.AuthenticationNotificationRequest
-
public class AuthenticationNotificationRequest extends Object
AuthenticationNotificationRequest
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAuthenticationNotificationRequest.TypeEnumType of notification.
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_DATAstatic StringJSON_PROPERTY_ENVIRONMENTstatic StringJSON_PROPERTY_TIMESTAMPstatic StringJSON_PROPERTY_TYPE
-
Constructor Summary
Constructors Constructor Description AuthenticationNotificationRequest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AuthenticationNotificationRequestdata(AuthenticationNotificationData data)dataAuthenticationNotificationRequestenvironment(String environment)The environment from which the webhook originated.booleanequals(Object o)Return true if this AuthenticationNotificationRequest object is equal to o.static AuthenticationNotificationRequestfromJson(String jsonString)Create an instance of AuthenticationNotificationRequest given an JSON stringAuthenticationNotificationDatagetData()dataStringgetEnvironment()The environment from which the webhook originated.OffsetDateTimegetTimestamp()When the event was queued.AuthenticationNotificationRequest.TypeEnumgetType()Type of notification.inthashCode()voidsetData(AuthenticationNotificationData data)datavoidsetEnvironment(String environment)The environment from which the webhook originated.voidsetTimestamp(OffsetDateTime timestamp)When the event was queued.voidsetType(AuthenticationNotificationRequest.TypeEnum type)Type of notification.AuthenticationNotificationRequesttimestamp(OffsetDateTime timestamp)When the event was queued.StringtoJson()Convert an instance of AuthenticationNotificationRequest to an JSON stringStringtoString()AuthenticationNotificationRequesttype(AuthenticationNotificationRequest.TypeEnum type)Type of notification.
-
-
-
Field Detail
-
JSON_PROPERTY_DATA
public static final String JSON_PROPERTY_DATA
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ENVIRONMENT
public static final String JSON_PROPERTY_ENVIRONMENT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TIMESTAMP
public static final String JSON_PROPERTY_TIMESTAMP
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TYPE
public static final String JSON_PROPERTY_TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
data
public AuthenticationNotificationRequest data(AuthenticationNotificationData data)
data- Parameters:
data-- Returns:
- the current
AuthenticationNotificationRequestinstance, allowing for method chaining
-
getData
public AuthenticationNotificationData getData()
data- Returns:
- data
-
setData
public void setData(AuthenticationNotificationData data)
data- Parameters:
data-
-
environment
public AuthenticationNotificationRequest environment(String environment)
The environment from which the webhook originated. Possible values: **test**, **live**.- Parameters:
environment-- Returns:
- the current
AuthenticationNotificationRequestinstance, allowing for method chaining
-
getEnvironment
public String getEnvironment()
The environment from which the webhook originated. Possible values: **test**, **live**.- Returns:
- environment
-
setEnvironment
public void setEnvironment(String environment)
The environment from which the webhook originated. Possible values: **test**, **live**.- Parameters:
environment-
-
timestamp
public AuthenticationNotificationRequest timestamp(OffsetDateTime timestamp)
When the event was queued.- Parameters:
timestamp-- Returns:
- the current
AuthenticationNotificationRequestinstance, allowing for method chaining
-
getTimestamp
public OffsetDateTime getTimestamp()
When the event was queued.- Returns:
- timestamp
-
setTimestamp
public void setTimestamp(OffsetDateTime timestamp)
When the event was queued.- Parameters:
timestamp-
-
type
public AuthenticationNotificationRequest type(AuthenticationNotificationRequest.TypeEnum type)
Type of notification.- Parameters:
type-- Returns:
- the current
AuthenticationNotificationRequestinstance, allowing for method chaining
-
getType
public AuthenticationNotificationRequest.TypeEnum getType()
Type of notification.- Returns:
- type
-
setType
public void setType(AuthenticationNotificationRequest.TypeEnum type)
Type of notification.- Parameters:
type-
-
equals
public boolean equals(Object o)
Return true if this AuthenticationNotificationRequest object is equal to o.
-
fromJson
public static AuthenticationNotificationRequest fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of AuthenticationNotificationRequest given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of AuthenticationNotificationRequest
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to AuthenticationNotificationRequest
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of AuthenticationNotificationRequest to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-