Package com.adyen.model.recurring
Class NotifyShopperResult
- java.lang.Object
-
- com.adyen.model.recurring.NotifyShopperResult
-
public class NotifyShopperResult extends Object
NotifyShopperResult
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_DISPLAYED_REFERENCEstatic StringJSON_PROPERTY_MESSAGEstatic StringJSON_PROPERTY_PSP_REFERENCEstatic StringJSON_PROPERTY_REFERENCEstatic StringJSON_PROPERTY_RESULT_CODEstatic StringJSON_PROPERTY_SHOPPER_NOTIFICATION_REFERENCEstatic StringJSON_PROPERTY_STORED_PAYMENT_METHOD_ID
-
Constructor Summary
Constructors Constructor Description NotifyShopperResult()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description NotifyShopperResultdisplayedReference(String displayedReference)Reference of Pre-debit notification that is displayed to the shopperbooleanequals(Object o)Return true if this NotifyShopperResult object is equal to o.static NotifyShopperResultfromJson(String jsonString)Create an instance of NotifyShopperResult given an JSON stringStringgetDisplayedReference()Reference of Pre-debit notification that is displayed to the shopperStringgetMessage()A simple description of the `resultCode`.StringgetPspReference()The unique reference that is associated with the request.StringgetReference()Reference of Pre-debit notification sent in my the merchantStringgetResultCode()The code indicating the status of notification.StringgetShopperNotificationReference()The unique reference for the request sent downstream.StringgetStoredPaymentMethodId()This is the recurringDetailReference returned in the response when token was createdinthashCode()NotifyShopperResultmessage(String message)A simple description of the `resultCode`.NotifyShopperResultpspReference(String pspReference)The unique reference that is associated with the request.NotifyShopperResultreference(String reference)Reference of Pre-debit notification sent in my the merchantNotifyShopperResultresultCode(String resultCode)The code indicating the status of notification.voidsetDisplayedReference(String displayedReference)Reference of Pre-debit notification that is displayed to the shoppervoidsetMessage(String message)A simple description of the `resultCode`.voidsetPspReference(String pspReference)The unique reference that is associated with the request.voidsetReference(String reference)Reference of Pre-debit notification sent in my the merchantvoidsetResultCode(String resultCode)The code indicating the status of notification.voidsetShopperNotificationReference(String shopperNotificationReference)The unique reference for the request sent downstream.voidsetStoredPaymentMethodId(String storedPaymentMethodId)This is the recurringDetailReference returned in the response when token was createdNotifyShopperResultshopperNotificationReference(String shopperNotificationReference)The unique reference for the request sent downstream.NotifyShopperResultstoredPaymentMethodId(String storedPaymentMethodId)This is the recurringDetailReference returned in the response when token was createdStringtoJson()Convert an instance of NotifyShopperResult to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_DISPLAYED_REFERENCE
public static final String JSON_PROPERTY_DISPLAYED_REFERENCE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_MESSAGE
public static final String JSON_PROPERTY_MESSAGE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PSP_REFERENCE
public static final String JSON_PROPERTY_PSP_REFERENCE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_REFERENCE
public static final String JSON_PROPERTY_REFERENCE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_RESULT_CODE
public static final String JSON_PROPERTY_RESULT_CODE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SHOPPER_NOTIFICATION_REFERENCE
public static final String JSON_PROPERTY_SHOPPER_NOTIFICATION_REFERENCE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_STORED_PAYMENT_METHOD_ID
public static final String JSON_PROPERTY_STORED_PAYMENT_METHOD_ID
- See Also:
- Constant Field Values
-
-
Method Detail
-
displayedReference
public NotifyShopperResult displayedReference(String displayedReference)
Reference of Pre-debit notification that is displayed to the shopper- Parameters:
displayedReference-- Returns:
- the current
NotifyShopperResultinstance, allowing for method chaining
-
getDisplayedReference
public String getDisplayedReference()
Reference of Pre-debit notification that is displayed to the shopper- Returns:
- displayedReference
-
setDisplayedReference
public void setDisplayedReference(String displayedReference)
Reference of Pre-debit notification that is displayed to the shopper- Parameters:
displayedReference-
-
message
public NotifyShopperResult message(String message)
A simple description of the `resultCode`.- Parameters:
message-- Returns:
- the current
NotifyShopperResultinstance, allowing for method chaining
-
getMessage
public String getMessage()
A simple description of the `resultCode`.- Returns:
- message
-
setMessage
public void setMessage(String message)
A simple description of the `resultCode`.- Parameters:
message-
-
pspReference
public NotifyShopperResult pspReference(String pspReference)
The unique reference that is associated with the request.- Parameters:
pspReference-- Returns:
- the current
NotifyShopperResultinstance, allowing for method chaining
-
getPspReference
public String getPspReference()
The unique reference that is associated with the request.- Returns:
- pspReference
-
setPspReference
public void setPspReference(String pspReference)
The unique reference that is associated with the request.- Parameters:
pspReference-
-
reference
public NotifyShopperResult reference(String reference)
Reference of Pre-debit notification sent in my the merchant- Parameters:
reference-- Returns:
- the current
NotifyShopperResultinstance, allowing for method chaining
-
getReference
public String getReference()
Reference of Pre-debit notification sent in my the merchant- Returns:
- reference
-
setReference
public void setReference(String reference)
Reference of Pre-debit notification sent in my the merchant- Parameters:
reference-
-
resultCode
public NotifyShopperResult resultCode(String resultCode)
The code indicating the status of notification.- Parameters:
resultCode-- Returns:
- the current
NotifyShopperResultinstance, allowing for method chaining
-
getResultCode
public String getResultCode()
The code indicating the status of notification.- Returns:
- resultCode
-
setResultCode
public void setResultCode(String resultCode)
The code indicating the status of notification.- Parameters:
resultCode-
-
shopperNotificationReference
public NotifyShopperResult shopperNotificationReference(String shopperNotificationReference)
The unique reference for the request sent downstream.- Parameters:
shopperNotificationReference-- Returns:
- the current
NotifyShopperResultinstance, allowing for method chaining
-
getShopperNotificationReference
public String getShopperNotificationReference()
The unique reference for the request sent downstream.- Returns:
- shopperNotificationReference
-
setShopperNotificationReference
public void setShopperNotificationReference(String shopperNotificationReference)
The unique reference for the request sent downstream.- Parameters:
shopperNotificationReference-
-
storedPaymentMethodId
public NotifyShopperResult storedPaymentMethodId(String storedPaymentMethodId)
This is the recurringDetailReference returned in the response when token was created- Parameters:
storedPaymentMethodId-- Returns:
- the current
NotifyShopperResultinstance, allowing for method chaining
-
getStoredPaymentMethodId
public String getStoredPaymentMethodId()
This is the recurringDetailReference returned in the response when token was created- Returns:
- storedPaymentMethodId
-
setStoredPaymentMethodId
public void setStoredPaymentMethodId(String storedPaymentMethodId)
This is the recurringDetailReference returned in the response when token was created- Parameters:
storedPaymentMethodId-
-
equals
public boolean equals(Object o)
Return true if this NotifyShopperResult object is equal to o.
-
fromJson
public static NotifyShopperResult fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of NotifyShopperResult given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of NotifyShopperResult
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to NotifyShopperResult
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of NotifyShopperResult to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-