Class MerchantUpdatedNotificationRequest
- java.lang.Object
-
- com.adyen.model.managementwebhooks.MerchantUpdatedNotificationRequest
-
public class MerchantUpdatedNotificationRequest extends Object
MerchantUpdatedNotificationRequest
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMerchantUpdatedNotificationRequest.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 MerchantUpdatedNotificationRequest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MerchantUpdatedNotificationRequestcreatedAt(OffsetDateTime createdAt)MerchantUpdatedNotificationRequestdata(AccountUpdateNotificationData data)MerchantUpdatedNotificationRequestenvironment(String environment)booleanequals(Object o)Return true if this MerchantUpdatedNotificationRequest object is equal to o.static MerchantUpdatedNotificationRequestfromJson(String jsonString)Create an instance of MerchantUpdatedNotificationRequest given an JSON stringOffsetDateTimegetCreatedAt()Timestamp for when the webhook was created.AccountUpdateNotificationDatagetData()Get dataStringgetEnvironment()The environment from which the webhook originated.MerchantUpdatedNotificationRequest.TypeEnumgetType()Type of notification.inthashCode()voidsetCreatedAt(OffsetDateTime createdAt)Timestamp for when the webhook was created.voidsetData(AccountUpdateNotificationData data)datavoidsetEnvironment(String environment)The environment from which the webhook originated.voidsetType(MerchantUpdatedNotificationRequest.TypeEnum type)Type of notification.StringtoJson()Convert an instance of MerchantUpdatedNotificationRequest to an JSON stringStringtoString()MerchantUpdatedNotificationRequesttype(MerchantUpdatedNotificationRequest.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 MerchantUpdatedNotificationRequest 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 MerchantUpdatedNotificationRequest data(AccountUpdateNotificationData data)
-
getData
public AccountUpdateNotificationData getData()
Get data- Returns:
- data
-
setData
public void setData(AccountUpdateNotificationData data)
data- Parameters:
data-
-
environment
public MerchantUpdatedNotificationRequest 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 MerchantUpdatedNotificationRequest type(MerchantUpdatedNotificationRequest.TypeEnum type)
-
getType
public MerchantUpdatedNotificationRequest.TypeEnum getType()
Type of notification.- Returns:
- type
-
setType
public void setType(MerchantUpdatedNotificationRequest.TypeEnum type)
Type of notification.- Parameters:
type-
-
equals
public boolean equals(Object o)
Return true if this MerchantUpdatedNotificationRequest object is equal to o.
-
fromJson
public static MerchantUpdatedNotificationRequest fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of MerchantUpdatedNotificationRequest given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of MerchantUpdatedNotificationRequest
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to MerchantUpdatedNotificationRequest
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of MerchantUpdatedNotificationRequest to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-