Class AccountHolderNotificationRequest
- java.lang.Object
-
- com.adyen.model.configurationwebhooks.AccountHolderNotificationRequest
-
public class AccountHolderNotificationRequest extends Object
AccountHolderNotificationRequest
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAccountHolderNotificationRequest.TypeEnumType of webhook.
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_DATAstatic StringJSON_PROPERTY_ENVIRONMENTstatic StringJSON_PROPERTY_TYPE
-
Constructor Summary
Constructors Constructor Description AccountHolderNotificationRequest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AccountHolderNotificationRequestdata(AccountHolderNotificationData data)AccountHolderNotificationRequestenvironment(String environment)booleanequals(Object o)Return true if this AccountHolderNotificationRequest object is equal to o.static AccountHolderNotificationRequestfromJson(String jsonString)Create an instance of AccountHolderNotificationRequest given an JSON stringAccountHolderNotificationDatagetData()Get dataStringgetEnvironment()The environment from which the webhook originated.AccountHolderNotificationRequest.TypeEnumgetType()Type of webhook.inthashCode()voidsetData(AccountHolderNotificationData data)datavoidsetEnvironment(String environment)The environment from which the webhook originated.voidsetType(AccountHolderNotificationRequest.TypeEnum type)Type of webhook.StringtoJson()Convert an instance of AccountHolderNotificationRequest to an JSON stringStringtoString()AccountHolderNotificationRequesttype(AccountHolderNotificationRequest.TypeEnum type)
-
-
-
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_TYPE
public static final String JSON_PROPERTY_TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
data
public AccountHolderNotificationRequest data(AccountHolderNotificationData data)
-
getData
public AccountHolderNotificationData getData()
Get data- Returns:
- data
-
setData
public void setData(AccountHolderNotificationData data)
data- Parameters:
data-
-
environment
public AccountHolderNotificationRequest environment(String environment)
-
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-
-
type
public AccountHolderNotificationRequest type(AccountHolderNotificationRequest.TypeEnum type)
-
getType
public AccountHolderNotificationRequest.TypeEnum getType()
Type of webhook.- Returns:
- type
-
setType
public void setType(AccountHolderNotificationRequest.TypeEnum type)
Type of webhook.- Parameters:
type-
-
equals
public boolean equals(Object o)
Return true if this AccountHolderNotificationRequest object is equal to o.
-
fromJson
public static AccountHolderNotificationRequest fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of AccountHolderNotificationRequest given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of AccountHolderNotificationRequest
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to AccountHolderNotificationRequest
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of AccountHolderNotificationRequest to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-