Package com.adyen.model.management
Class Notification
- java.lang.Object
-
- com.adyen.model.management.Notification
-
public class Notification extends Object
Notification
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classNotification.CategoryEnumThe type of event notification sent when you select the notification button.
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_CATEGORYstatic StringJSON_PROPERTY_DETAILSstatic StringJSON_PROPERTY_ENABLEDstatic StringJSON_PROPERTY_SHOW_BUTTONstatic StringJSON_PROPERTY_TITLE
-
Constructor Summary
Constructors Constructor Description Notification()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Notificationcategory(Notification.CategoryEnum category)The type of event notification sent when you select the notification button.Notificationdetails(String details)The text shown in the prompt which opens when you select the notification button.Notificationenabled(Boolean enabled)Enables sending event notifications either by pressing the Confirm key on terminals with a keypad or by tapping the event notification button on the terminal screen.booleanequals(Object o)Return true if this Notification object is equal to o.static NotificationfromJson(String jsonString)Create an instance of Notification given an JSON stringNotification.CategoryEnumgetCategory()The type of event notification sent when you select the notification button.StringgetDetails()The text shown in the prompt which opens when you select the notification button.BooleangetEnabled()Enables sending event notifications either by pressing the Confirm key on terminals with a keypad or by tapping the event notification button on the terminal screen.BooleangetShowButton()Shows or hides the event notification button on the screen of terminal models that have a keypad.StringgetTitle()The name of the notification button on the terminal screen.inthashCode()voidsetCategory(Notification.CategoryEnum category)The type of event notification sent when you select the notification button.voidsetDetails(String details)The text shown in the prompt which opens when you select the notification button.voidsetEnabled(Boolean enabled)Enables sending event notifications either by pressing the Confirm key on terminals with a keypad or by tapping the event notification button on the terminal screen.voidsetShowButton(Boolean showButton)Shows or hides the event notification button on the screen of terminal models that have a keypad.voidsetTitle(String title)The name of the notification button on the terminal screen.NotificationshowButton(Boolean showButton)Shows or hides the event notification button on the screen of terminal models that have a keypad.Notificationtitle(String title)The name of the notification button on the terminal screen.StringtoJson()Convert an instance of Notification to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_CATEGORY
public static final String JSON_PROPERTY_CATEGORY
- See Also:
- Constant Field Values
-
JSON_PROPERTY_DETAILS
public static final String JSON_PROPERTY_DETAILS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ENABLED
public static final String JSON_PROPERTY_ENABLED
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SHOW_BUTTON
public static final String JSON_PROPERTY_SHOW_BUTTON
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TITLE
public static final String JSON_PROPERTY_TITLE
- See Also:
- Constant Field Values
-
-
Method Detail
-
category
public Notification category(Notification.CategoryEnum category)
The type of event notification sent when you select the notification button.- Parameters:
category-- Returns:
- the current
Notificationinstance, allowing for method chaining
-
getCategory
public Notification.CategoryEnum getCategory()
The type of event notification sent when you select the notification button.- Returns:
- category
-
setCategory
public void setCategory(Notification.CategoryEnum category)
The type of event notification sent when you select the notification button.- Parameters:
category-
-
details
public Notification details(String details)
The text shown in the prompt which opens when you select the notification button. For example, the description of the input box for pay-at-table.- Parameters:
details-- Returns:
- the current
Notificationinstance, allowing for method chaining
-
getDetails
public String getDetails()
The text shown in the prompt which opens when you select the notification button. For example, the description of the input box for pay-at-table.- Returns:
- details
-
setDetails
public void setDetails(String details)
The text shown in the prompt which opens when you select the notification button. For example, the description of the input box for pay-at-table.- Parameters:
details-
-
enabled
public Notification enabled(Boolean enabled)
Enables sending event notifications either by pressing the Confirm key on terminals with a keypad or by tapping the event notification button on the terminal screen.- Parameters:
enabled-- Returns:
- the current
Notificationinstance, allowing for method chaining
-
getEnabled
public Boolean getEnabled()
Enables sending event notifications either by pressing the Confirm key on terminals with a keypad or by tapping the event notification button on the terminal screen.- Returns:
- enabled
-
setEnabled
public void setEnabled(Boolean enabled)
Enables sending event notifications either by pressing the Confirm key on terminals with a keypad or by tapping the event notification button on the terminal screen.- Parameters:
enabled-
-
showButton
public Notification showButton(Boolean showButton)
Shows or hides the event notification button on the screen of terminal models that have a keypad.- Parameters:
showButton-- Returns:
- the current
Notificationinstance, allowing for method chaining
-
getShowButton
public Boolean getShowButton()
Shows or hides the event notification button on the screen of terminal models that have a keypad.- Returns:
- showButton
-
setShowButton
public void setShowButton(Boolean showButton)
Shows or hides the event notification button on the screen of terminal models that have a keypad.- Parameters:
showButton-
-
title
public Notification title(String title)
The name of the notification button on the terminal screen.- Parameters:
title-- Returns:
- the current
Notificationinstance, allowing for method chaining
-
getTitle
public String getTitle()
The name of the notification button on the terminal screen.- Returns:
- title
-
setTitle
public void setTitle(String title)
The name of the notification button on the terminal screen.- Parameters:
title-
-
equals
public boolean equals(Object o)
Return true if this Notification object is equal to o.
-
fromJson
public static Notification fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of Notification given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of Notification
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to Notification
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of Notification to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-