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