Class MerchantCreatedNotificationRequest
- java.lang.Object
-
- com.adyen.model.managementwebhooks.MerchantCreatedNotificationRequest
-
public class MerchantCreatedNotificationRequest extends Object
MerchantCreatedNotificationRequest
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMerchantCreatedNotificationRequest.TypeEnumType of notification.
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_CREATED_ATstatic StringJSON_PROPERTY_DATAstatic StringJSON_PROPERTY_ENVIRONMENTstatic StringJSON_PROPERTY_TYPE
-
Constructor Summary
Constructors Constructor Description MerchantCreatedNotificationRequest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MerchantCreatedNotificationRequestcreatedAt(OffsetDateTime createdAt)MerchantCreatedNotificationRequestdata(AccountCreateNotificationData data)MerchantCreatedNotificationRequestenvironment(String environment)booleanequals(Object o)Return true if this MerchantCreatedNotificationRequest object is equal to o.static MerchantCreatedNotificationRequestfromJson(String jsonString)Create an instance of MerchantCreatedNotificationRequest given an JSON stringOffsetDateTimegetCreatedAt()Timestamp for when the webhook was created.AccountCreateNotificationDatagetData()Get dataStringgetEnvironment()The environment from which the webhook originated.MerchantCreatedNotificationRequest.TypeEnumgetType()Type of notification.inthashCode()voidsetCreatedAt(OffsetDateTime createdAt)Timestamp for when the webhook was created.voidsetData(AccountCreateNotificationData data)datavoidsetEnvironment(String environment)The environment from which the webhook originated.voidsetType(MerchantCreatedNotificationRequest.TypeEnum type)Type of notification.StringtoJson()Convert an instance of MerchantCreatedNotificationRequest to an JSON stringStringtoString()MerchantCreatedNotificationRequesttype(MerchantCreatedNotificationRequest.TypeEnum type)
-
-
-
Field Detail
-
JSON_PROPERTY_CREATED_AT
public static final String JSON_PROPERTY_CREATED_AT
- See Also:
- Constant Field Values
-
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
-
createdAt
public MerchantCreatedNotificationRequest createdAt(OffsetDateTime createdAt)
-
getCreatedAt
public OffsetDateTime getCreatedAt()
Timestamp for when the webhook was created.- Returns:
- createdAt
-
setCreatedAt
public void setCreatedAt(OffsetDateTime createdAt)
Timestamp for when the webhook was created.- Parameters:
createdAt-
-
data
public MerchantCreatedNotificationRequest data(AccountCreateNotificationData data)
-
getData
public AccountCreateNotificationData getData()
Get data- Returns:
- data
-
setData
public void setData(AccountCreateNotificationData data)
data- Parameters:
data-
-
environment
public MerchantCreatedNotificationRequest 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 MerchantCreatedNotificationRequest type(MerchantCreatedNotificationRequest.TypeEnum type)
-
getType
public MerchantCreatedNotificationRequest.TypeEnum getType()
Type of notification.- Returns:
- type
-
setType
public void setType(MerchantCreatedNotificationRequest.TypeEnum type)
Type of notification.- Parameters:
type-
-
equals
public boolean equals(Object o)
Return true if this MerchantCreatedNotificationRequest object is equal to o.
-
fromJson
public static MerchantCreatedNotificationRequest fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of MerchantCreatedNotificationRequest given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of MerchantCreatedNotificationRequest
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to MerchantCreatedNotificationRequest
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of MerchantCreatedNotificationRequest to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-