Package com.adyen.model.management
Class CustomNotification
- java.lang.Object
-
- com.adyen.model.management.CustomNotification
-
public class CustomNotification extends Object
CustomNotification
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_AMOUNTstatic StringJSON_PROPERTY_EVENT_CODEstatic StringJSON_PROPERTY_EVENT_DATEstatic StringJSON_PROPERTY_MERCHANT_REFERENCEstatic StringJSON_PROPERTY_PAYMENT_METHODstatic StringJSON_PROPERTY_REASONstatic StringJSON_PROPERTY_SUCCESS
-
Constructor Summary
Constructors Constructor Description CustomNotification()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CustomNotificationamount(Amount amount)booleanequals(Object o)Return true if this CustomNotification object is equal to o.CustomNotificationeventCode(String eventCode)CustomNotificationeventDate(OffsetDateTime eventDate)static CustomNotificationfromJson(String jsonString)Create an instance of CustomNotification given an JSON stringAmountgetAmount()Get amountStringgetEventCode()The event that caused the notification to be sent.Currently supported values: * **AUTHORISATION** * **CANCELLATION** * **REFUND** * **CAPTURE** * **REPORT_AVAILABLE** * **CHARGEBACK** * **REQUEST_FOR_INFORMATION** * **NOTIFICATION_OF_CHARGEBACK** * **NOTIFICATIONTEST** * **ORDER_OPENED** * **ORDER_CLOSED** * **CHARGEBACK_REVERSED** * **REFUNDED_REVERSED** * **REFUND_WITH_DATA**OffsetDateTimegetEventDate()The time of the event.StringgetMerchantReference()Your reference for the custom test notification.StringgetPaymentMethod()The payment method for the payment that the notification is about.StringgetReason()A descripton of what caused the notification.BooleangetSuccess()The outcome of the event which the notification is about.inthashCode()CustomNotificationmerchantReference(String merchantReference)CustomNotificationpaymentMethod(String paymentMethod)CustomNotificationreason(String reason)voidsetAmount(Amount amount)amountvoidsetEventCode(String eventCode)The event that caused the notification to be sent.Currently supported values: * **AUTHORISATION** * **CANCELLATION** * **REFUND** * **CAPTURE** * **REPORT_AVAILABLE** * **CHARGEBACK** * **REQUEST_FOR_INFORMATION** * **NOTIFICATION_OF_CHARGEBACK** * **NOTIFICATIONTEST** * **ORDER_OPENED** * **ORDER_CLOSED** * **CHARGEBACK_REVERSED** * **REFUNDED_REVERSED** * **REFUND_WITH_DATA**voidsetEventDate(OffsetDateTime eventDate)The time of the event.voidsetMerchantReference(String merchantReference)Your reference for the custom test notification.voidsetPaymentMethod(String paymentMethod)The payment method for the payment that the notification is about.voidsetReason(String reason)A descripton of what caused the notification.voidsetSuccess(Boolean success)The outcome of the event which the notification is about.CustomNotificationsuccess(Boolean success)StringtoJson()Convert an instance of CustomNotification to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_AMOUNT
public static final String JSON_PROPERTY_AMOUNT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_EVENT_CODE
public static final String JSON_PROPERTY_EVENT_CODE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_EVENT_DATE
public static final String JSON_PROPERTY_EVENT_DATE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_MERCHANT_REFERENCE
public static final String JSON_PROPERTY_MERCHANT_REFERENCE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PAYMENT_METHOD
public static final String JSON_PROPERTY_PAYMENT_METHOD
- See Also:
- Constant Field Values
-
JSON_PROPERTY_REASON
public static final String JSON_PROPERTY_REASON
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SUCCESS
public static final String JSON_PROPERTY_SUCCESS
- See Also:
- Constant Field Values
-
-
Method Detail
-
amount
public CustomNotification amount(Amount amount)
-
getAmount
public Amount getAmount()
Get amount- Returns:
- amount
-
setAmount
public void setAmount(Amount amount)
amount- Parameters:
amount-
-
eventCode
public CustomNotification eventCode(String eventCode)
-
getEventCode
public String getEventCode()
The event that caused the notification to be sent.Currently supported values: * **AUTHORISATION** * **CANCELLATION** * **REFUND** * **CAPTURE** * **REPORT_AVAILABLE** * **CHARGEBACK** * **REQUEST_FOR_INFORMATION** * **NOTIFICATION_OF_CHARGEBACK** * **NOTIFICATIONTEST** * **ORDER_OPENED** * **ORDER_CLOSED** * **CHARGEBACK_REVERSED** * **REFUNDED_REVERSED** * **REFUND_WITH_DATA**- Returns:
- eventCode
-
setEventCode
public void setEventCode(String eventCode)
The event that caused the notification to be sent.Currently supported values: * **AUTHORISATION** * **CANCELLATION** * **REFUND** * **CAPTURE** * **REPORT_AVAILABLE** * **CHARGEBACK** * **REQUEST_FOR_INFORMATION** * **NOTIFICATION_OF_CHARGEBACK** * **NOTIFICATIONTEST** * **ORDER_OPENED** * **ORDER_CLOSED** * **CHARGEBACK_REVERSED** * **REFUNDED_REVERSED** * **REFUND_WITH_DATA**- Parameters:
eventCode-
-
eventDate
public CustomNotification eventDate(OffsetDateTime eventDate)
-
getEventDate
public OffsetDateTime getEventDate()
The time of the event. Format: [ISO 8601](http://www.w3.org/TR/NOTE-datetime), YYYY-MM-DDThh:mm:ssTZD.- Returns:
- eventDate
-
setEventDate
public void setEventDate(OffsetDateTime eventDate)
The time of the event. Format: [ISO 8601](http://www.w3.org/TR/NOTE-datetime), YYYY-MM-DDThh:mm:ssTZD.- Parameters:
eventDate-
-
merchantReference
public CustomNotification merchantReference(String merchantReference)
-
getMerchantReference
public String getMerchantReference()
Your reference for the custom test notification.- Returns:
- merchantReference
-
setMerchantReference
public void setMerchantReference(String merchantReference)
Your reference for the custom test notification.- Parameters:
merchantReference-
-
paymentMethod
public CustomNotification paymentMethod(String paymentMethod)
-
getPaymentMethod
public String getPaymentMethod()
The payment method for the payment that the notification is about. Possible values: * **amex** * **visa** * **mc** * **maestro** * **bcmc** * **paypal** * **sms** * **bankTransfer_NL** * **bankTransfer_DE** * **bankTransfer_BE** * **ideal** * **elv** * **sepadirectdebit**- Returns:
- paymentMethod
-
setPaymentMethod
public void setPaymentMethod(String paymentMethod)
The payment method for the payment that the notification is about. Possible values: * **amex** * **visa** * **mc** * **maestro** * **bcmc** * **paypal** * **sms** * **bankTransfer_NL** * **bankTransfer_DE** * **bankTransfer_BE** * **ideal** * **elv** * **sepadirectdebit**- Parameters:
paymentMethod-
-
reason
public CustomNotification reason(String reason)
-
getReason
public String getReason()
A descripton of what caused the notification.- Returns:
- reason
-
setReason
public void setReason(String reason)
A descripton of what caused the notification.- Parameters:
reason-
-
success
public CustomNotification success(Boolean success)
-
getSuccess
public Boolean getSuccess()
The outcome of the event which the notification is about. Set to either **true** or **false**.- Returns:
- success
-
setSuccess
public void setSuccess(Boolean success)
The outcome of the event which the notification is about. Set to either **true** or **false**.- Parameters:
success-
-
equals
public boolean equals(Object o)
Return true if this CustomNotification object is equal to o.
-
fromJson
public static CustomNotification fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of CustomNotification given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CustomNotification
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to CustomNotification
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of CustomNotification to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-