Package com.adyen.model.balancewebhooks
Class BalanceAccountBalanceNotificationRequest
- java.lang.Object
-
- com.adyen.model.balancewebhooks.BalanceAccountBalanceNotificationRequest
-
public class BalanceAccountBalanceNotificationRequest extends Object
BalanceAccountBalanceNotificationRequest
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBalanceAccountBalanceNotificationRequest.TypeEnumType 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 BalanceAccountBalanceNotificationRequest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description BalanceAccountBalanceNotificationRequestdata(BalanceNotificationData data)dataBalanceAccountBalanceNotificationRequestenvironment(String environment)The environment from which the webhook originated.booleanequals(Object o)Return true if this BalanceAccountBalanceNotificationRequest object is equal to o.static BalanceAccountBalanceNotificationRequestfromJson(String jsonString)Create an instance of BalanceAccountBalanceNotificationRequest given an JSON stringBalanceNotificationDatagetData()Get dataStringgetEnvironment()The environment from which the webhook originated.OffsetDateTimegetTimestamp()When the event was queued.BalanceAccountBalanceNotificationRequest.TypeEnumgetType()Type of webhook.inthashCode()voidsetData(BalanceNotificationData data)datavoidsetEnvironment(String environment)The environment from which the webhook originated.voidsetTimestamp(OffsetDateTime timestamp)When the event was queued.voidsetType(BalanceAccountBalanceNotificationRequest.TypeEnum type)Type of webhook.BalanceAccountBalanceNotificationRequesttimestamp(OffsetDateTime timestamp)When the event was queued.StringtoJson()Convert an instance of BalanceAccountBalanceNotificationRequest to an JSON stringStringtoString()BalanceAccountBalanceNotificationRequesttype(BalanceAccountBalanceNotificationRequest.TypeEnum type)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 BalanceAccountBalanceNotificationRequest data(BalanceNotificationData data)
data- Parameters:
data-- Returns:
- the current
BalanceAccountBalanceNotificationRequestinstance, allowing for method chaining
-
getData
public BalanceNotificationData getData()
Get data- Returns:
- data
-
setData
public void setData(BalanceNotificationData data)
data- Parameters:
data-
-
environment
public BalanceAccountBalanceNotificationRequest 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
BalanceAccountBalanceNotificationRequestinstance, 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 BalanceAccountBalanceNotificationRequest timestamp(OffsetDateTime timestamp)
When the event was queued.- Parameters:
timestamp- When the event was queued.- Returns:
- the current
BalanceAccountBalanceNotificationRequestinstance, 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 BalanceAccountBalanceNotificationRequest type(BalanceAccountBalanceNotificationRequest.TypeEnum type)
Type of webhook.- Parameters:
type- Type of webhook.- Returns:
- the current
BalanceAccountBalanceNotificationRequestinstance, allowing for method chaining
-
getType
public BalanceAccountBalanceNotificationRequest.TypeEnum getType()
Type of webhook.- Returns:
- type Type of webhook.
-
setType
public void setType(BalanceAccountBalanceNotificationRequest.TypeEnum type)
Type of webhook.- Parameters:
type- Type of webhook.
-
equals
public boolean equals(Object o)
Return true if this BalanceAccountBalanceNotificationRequest object is equal to o.
-
fromJson
public static BalanceAccountBalanceNotificationRequest fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of BalanceAccountBalanceNotificationRequest given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of BalanceAccountBalanceNotificationRequest
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to BalanceAccountBalanceNotificationRequest
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of BalanceAccountBalanceNotificationRequest to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-