Package com.adyen.model.recurring
Class NotifyShopperResult
- java.lang.Object
-
- com.adyen.model.recurring.NotifyShopperResult
-
public class NotifyShopperResult extends Object
NotifyShopperResult
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classNotifyShopperResult.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_DISPLAYED_REFERENCEstatic StringSERIALIZED_NAME_MESSAGEstatic StringSERIALIZED_NAME_PSP_REFERENCEstatic StringSERIALIZED_NAME_REFERENCEstatic StringSERIALIZED_NAME_RESULT_CODEstatic StringSERIALIZED_NAME_SHOPPER_NOTIFICATION_REFERENCEstatic StringSERIALIZED_NAME_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)booleanequals(Object 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)NotifyShopperResultpspReference(String pspReference)NotifyShopperResultreference(String reference)NotifyShopperResultresultCode(String resultCode)voidsetDisplayedReference(String displayedReference)voidsetMessage(String message)voidsetPspReference(String pspReference)voidsetReference(String reference)voidsetResultCode(String resultCode)voidsetShopperNotificationReference(String shopperNotificationReference)voidsetStoredPaymentMethodId(String storedPaymentMethodId)NotifyShopperResultshopperNotificationReference(String shopperNotificationReference)NotifyShopperResultstoredPaymentMethodId(String storedPaymentMethodId)StringtoJson()Convert an instance of NotifyShopperResult to an JSON stringStringtoString()static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_DISPLAYED_REFERENCE
public static final String SERIALIZED_NAME_DISPLAYED_REFERENCE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_MESSAGE
public static final String SERIALIZED_NAME_MESSAGE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_PSP_REFERENCE
public static final String SERIALIZED_NAME_PSP_REFERENCE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_REFERENCE
public static final String SERIALIZED_NAME_REFERENCE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_RESULT_CODE
public static final String SERIALIZED_NAME_RESULT_CODE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SHOPPER_NOTIFICATION_REFERENCE
public static final String SERIALIZED_NAME_SHOPPER_NOTIFICATION_REFERENCE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_STORED_PAYMENT_METHOD_ID
public static final String SERIALIZED_NAME_STORED_PAYMENT_METHOD_ID
- See Also:
- Constant Field Values
-
-
Method Detail
-
displayedReference
public NotifyShopperResult displayedReference(String displayedReference)
-
getDisplayedReference
public String getDisplayedReference()
Reference of Pre-debit notification that is displayed to the shopper- Returns:
- displayedReference
-
setDisplayedReference
public void setDisplayedReference(String displayedReference)
-
message
public NotifyShopperResult message(String message)
-
getMessage
public String getMessage()
A simple description of the `resultCode`.- Returns:
- message
-
setMessage
public void setMessage(String message)
-
pspReference
public NotifyShopperResult pspReference(String pspReference)
-
getPspReference
public String getPspReference()
The unique reference that is associated with the request.- Returns:
- pspReference
-
setPspReference
public void setPspReference(String pspReference)
-
reference
public NotifyShopperResult reference(String reference)
-
getReference
public String getReference()
Reference of Pre-debit notification sent in my the merchant- Returns:
- reference
-
setReference
public void setReference(String reference)
-
resultCode
public NotifyShopperResult resultCode(String resultCode)
-
getResultCode
public String getResultCode()
The code indicating the status of notification.- Returns:
- resultCode
-
setResultCode
public void setResultCode(String resultCode)
-
shopperNotificationReference
public NotifyShopperResult shopperNotificationReference(String shopperNotificationReference)
-
getShopperNotificationReference
public String getShopperNotificationReference()
The unique reference for the request sent downstream.- Returns:
- shopperNotificationReference
-
setShopperNotificationReference
public void setShopperNotificationReference(String shopperNotificationReference)
-
storedPaymentMethodId
public NotifyShopperResult storedPaymentMethodId(String storedPaymentMethodId)
-
getStoredPaymentMethodId
public String getStoredPaymentMethodId()
This is the recurringDetailReference returned in the response when token was created- Returns:
- storedPaymentMethodId
-
setStoredPaymentMethodId
public void setStoredPaymentMethodId(String storedPaymentMethodId)
-
validateJsonObject
public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOExceptionValidates the JSON Object and throws an exception if issues found- Parameters:
jsonObj- JSON Object- Throws:
IOException- if the JSON Object is invalid with respect to NotifyShopperResult
-
fromJson
public static NotifyShopperResult fromJson(String jsonString) throws IOException
Create an instance of NotifyShopperResult given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of NotifyShopperResult
- Throws:
IOException- if the JSON string is invalid with respect to NotifyShopperResult
-
toJson
public String toJson()
Convert an instance of NotifyShopperResult to an JSON string- Returns:
- JSON string
-
-