Class TransactionNotificationRequestV4
- java.lang.Object
-
- com.adyen.model.transactionwebhooks.TransactionNotificationRequestV4
-
public class TransactionNotificationRequestV4 extends Object
TransactionNotificationRequestV4
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTransactionNotificationRequestV4.TypeEnumType of the 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 TransactionNotificationRequestV4()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description TransactionNotificationRequestV4data(Transaction data)dataTransactionNotificationRequestV4environment(String environment)The environment from which the webhook originated.booleanequals(Object o)Return true if this TransactionNotificationRequestV4 object is equal to o.static TransactionNotificationRequestV4fromJson(String jsonString)Create an instance of TransactionNotificationRequestV4 given an JSON stringTransactiongetData()dataStringgetEnvironment()The environment from which the webhook originated.OffsetDateTimegetTimestamp()When the event was queued.TransactionNotificationRequestV4.TypeEnumgetType()Type of the webhook.inthashCode()voidsetData(Transaction data)datavoidsetEnvironment(String environment)The environment from which the webhook originated.voidsetTimestamp(OffsetDateTime timestamp)When the event was queued.voidsetType(TransactionNotificationRequestV4.TypeEnum type)Type of the webhook.TransactionNotificationRequestV4timestamp(OffsetDateTime timestamp)When the event was queued.StringtoJson()Convert an instance of TransactionNotificationRequestV4 to an JSON stringStringtoString()TransactionNotificationRequestV4type(TransactionNotificationRequestV4.TypeEnum type)Type of the 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 TransactionNotificationRequestV4 data(Transaction data)
data- Parameters:
data-- Returns:
- the current
TransactionNotificationRequestV4instance, allowing for method chaining
-
getData
public Transaction getData()
data- Returns:
- data
-
setData
public void setData(Transaction data)
data- Parameters:
data-
-
environment
public TransactionNotificationRequestV4 environment(String environment)
The environment from which the webhook originated. Possible values: **test**, **live**.- Parameters:
environment-- Returns:
- the current
TransactionNotificationRequestV4instance, 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 TransactionNotificationRequestV4 timestamp(OffsetDateTime timestamp)
When the event was queued.- Parameters:
timestamp-- Returns:
- the current
TransactionNotificationRequestV4instance, 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 TransactionNotificationRequestV4 type(TransactionNotificationRequestV4.TypeEnum type)
Type of the webhook.- Parameters:
type-- Returns:
- the current
TransactionNotificationRequestV4instance, allowing for method chaining
-
getType
public TransactionNotificationRequestV4.TypeEnum getType()
Type of the webhook.- Returns:
- type
-
setType
public void setType(TransactionNotificationRequestV4.TypeEnum type)
Type of the webhook.- Parameters:
type-
-
equals
public boolean equals(Object o)
Return true if this TransactionNotificationRequestV4 object is equal to o.
-
fromJson
public static TransactionNotificationRequestV4 fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of TransactionNotificationRequestV4 given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of TransactionNotificationRequestV4
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to TransactionNotificationRequestV4
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of TransactionNotificationRequestV4 to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-