Class NetworkTokenNotificationRequest
- java.lang.Object
-
- com.adyen.model.configurationwebhooks.NetworkTokenNotificationRequest
-
public class NetworkTokenNotificationRequest extends Object
NetworkTokenNotificationRequest
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classNetworkTokenNotificationRequest.TypeEnumThe type of webhook.
-
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 NetworkTokenNotificationRequest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description NetworkTokenNotificationRequestdata(NetworkTokenNotificationDataV2 data)dataNetworkTokenNotificationRequestenvironment(String environment)The environment from which the webhook originated.booleanequals(Object o)Return true if this NetworkTokenNotificationRequest object is equal to o.static NetworkTokenNotificationRequestfromJson(String jsonString)Create an instance of NetworkTokenNotificationRequest given an JSON stringNetworkTokenNotificationDataV2getData()Get dataStringgetEnvironment()The environment from which the webhook originated.OffsetDateTimegetTimestamp()When the event was queued.NetworkTokenNotificationRequest.TypeEnumgetType()The type of webhook.inthashCode()voidsetData(NetworkTokenNotificationDataV2 data)datavoidsetEnvironment(String environment)The environment from which the webhook originated.voidsetTimestamp(OffsetDateTime timestamp)When the event was queued.voidsetType(NetworkTokenNotificationRequest.TypeEnum type)The type of webhook.NetworkTokenNotificationRequesttimestamp(OffsetDateTime timestamp)When the event was queued.StringtoJson()Convert an instance of NetworkTokenNotificationRequest to an JSON stringStringtoString()NetworkTokenNotificationRequesttype(NetworkTokenNotificationRequest.TypeEnum type)The type of webhook.
-
-
-
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 NetworkTokenNotificationRequest data(NetworkTokenNotificationDataV2 data)
data- Parameters:
data-- Returns:
- the current
NetworkTokenNotificationRequestinstance, allowing for method chaining
-
getData
public NetworkTokenNotificationDataV2 getData()
Get data- Returns:
- data
-
setData
public void setData(NetworkTokenNotificationDataV2 data)
data- Parameters:
data-
-
environment
public NetworkTokenNotificationRequest environment(String environment)
The environment from which the webhook originated. Possible values: **test**, **live**.- Parameters:
environment- The environment from which the webhook originated. Possible values: **test**, **live**.- Returns:
- the current
NetworkTokenNotificationRequestinstance, allowing for method chaining
-
getEnvironment
public String getEnvironment()
The environment from which the webhook originated. Possible values: **test**, **live**.- Returns:
- environment The environment from which the webhook originated. Possible values: **test**, **live**.
-
setEnvironment
public void setEnvironment(String environment)
The environment from which the webhook originated. Possible values: **test**, **live**.- Parameters:
environment- The environment from which the webhook originated. Possible values: **test**, **live**.
-
timestamp
public NetworkTokenNotificationRequest timestamp(OffsetDateTime timestamp)
When the event was queued.- Parameters:
timestamp- When the event was queued.- Returns:
- the current
NetworkTokenNotificationRequestinstance, allowing for method chaining
-
getTimestamp
public OffsetDateTime getTimestamp()
When the event was queued.- Returns:
- timestamp When the event was queued.
-
setTimestamp
public void setTimestamp(OffsetDateTime timestamp)
When the event was queued.- Parameters:
timestamp- When the event was queued.
-
type
public NetworkTokenNotificationRequest type(NetworkTokenNotificationRequest.TypeEnum type)
The type of webhook.- Parameters:
type- The type of webhook.- Returns:
- the current
NetworkTokenNotificationRequestinstance, allowing for method chaining
-
getType
public NetworkTokenNotificationRequest.TypeEnum getType()
The type of webhook.- Returns:
- type The type of webhook.
-
setType
public void setType(NetworkTokenNotificationRequest.TypeEnum type)
The type of webhook.- Parameters:
type- The type of webhook.
-
equals
public boolean equals(Object o)
Return true if this NetworkTokenNotificationRequest object is equal to o.
-
fromJson
public static NetworkTokenNotificationRequest fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of NetworkTokenNotificationRequest given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of NetworkTokenNotificationRequest
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to NetworkTokenNotificationRequest
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of NetworkTokenNotificationRequest to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-