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