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
-
-
-
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)
-
data
public MerchantCreatedNotificationRequest data(AccountCreateNotificationData data)
-
getData
public AccountCreateNotificationData getData()
Get data- Returns:
- data
-
setData
public void setData(AccountCreateNotificationData 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)
-
type
public MerchantCreatedNotificationRequest type(MerchantCreatedNotificationRequest.TypeEnum type)
-
getType
public MerchantCreatedNotificationRequest.TypeEnum getType()
Type of notification.- Returns:
- type
-
setType
public void setType(MerchantCreatedNotificationRequest.TypeEnum 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
-
-