Package com.adyen.model.recurring
Class NotifyShopperRequest
- java.lang.Object
-
- com.adyen.model.recurring.NotifyShopperRequest
-
public class NotifyShopperRequest extends Object
NotifyShopperRequest
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classNotifyShopperRequest.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_AMOUNTstatic StringSERIALIZED_NAME_BILLING_DATEstatic StringSERIALIZED_NAME_BILLING_SEQUENCE_NUMBERstatic StringSERIALIZED_NAME_DISPLAYED_REFERENCEstatic StringSERIALIZED_NAME_MERCHANT_ACCOUNTstatic StringSERIALIZED_NAME_RECURRING_DETAIL_REFERENCEstatic StringSERIALIZED_NAME_REFERENCEstatic StringSERIALIZED_NAME_SHOPPER_REFERENCEstatic StringSERIALIZED_NAME_STORED_PAYMENT_METHOD_ID
-
Constructor Summary
Constructors Constructor Description NotifyShopperRequest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description NotifyShopperRequestamount(Amount amount)NotifyShopperRequestbillingDate(String billingDate)NotifyShopperRequestbillingSequenceNumber(String billingSequenceNumber)NotifyShopperRequestdisplayedReference(String displayedReference)booleanequals(Object o)static NotifyShopperRequestfromJson(String jsonString)Create an instance of NotifyShopperRequest given an JSON stringAmountgetAmount()Get amountStringgetBillingDate()Date on which the subscription amount will be debited from the shopper.StringgetBillingSequenceNumber()Sequence of the debit.StringgetDisplayedReference()Reference of Pre-debit notification that is displayed to the shopper.StringgetMerchantAccount()The merchant account identifier with which you want to process the transaction.StringgetRecurringDetailReference()This is the `recurringDetailReference` returned in the response when you created the token.StringgetReference()Pre-debit notification reference sent by the merchant.StringgetShopperReference()The ID that uniquely identifies the shopper.StringgetStoredPaymentMethodId()This is the `recurringDetailReference` returned in the response when you created the token.inthashCode()NotifyShopperRequestmerchantAccount(String merchantAccount)NotifyShopperRequestrecurringDetailReference(String recurringDetailReference)NotifyShopperRequestreference(String reference)voidsetAmount(Amount amount)voidsetBillingDate(String billingDate)voidsetBillingSequenceNumber(String billingSequenceNumber)voidsetDisplayedReference(String displayedReference)voidsetMerchantAccount(String merchantAccount)voidsetRecurringDetailReference(String recurringDetailReference)voidsetReference(String reference)voidsetShopperReference(String shopperReference)voidsetStoredPaymentMethodId(String storedPaymentMethodId)NotifyShopperRequestshopperReference(String shopperReference)NotifyShopperRequeststoredPaymentMethodId(String storedPaymentMethodId)StringtoJson()Convert an instance of NotifyShopperRequest 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_AMOUNT
public static final String SERIALIZED_NAME_AMOUNT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_BILLING_DATE
public static final String SERIALIZED_NAME_BILLING_DATE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_BILLING_SEQUENCE_NUMBER
public static final String SERIALIZED_NAME_BILLING_SEQUENCE_NUMBER
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_DISPLAYED_REFERENCE
public static final String SERIALIZED_NAME_DISPLAYED_REFERENCE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_MERCHANT_ACCOUNT
public static final String SERIALIZED_NAME_MERCHANT_ACCOUNT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_RECURRING_DETAIL_REFERENCE
public static final String SERIALIZED_NAME_RECURRING_DETAIL_REFERENCE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_REFERENCE
public static final String SERIALIZED_NAME_REFERENCE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SHOPPER_REFERENCE
public static final String SERIALIZED_NAME_SHOPPER_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
-
amount
public NotifyShopperRequest amount(Amount amount)
-
getAmount
public Amount getAmount()
Get amount- Returns:
- amount
-
setAmount
public void setAmount(Amount amount)
-
billingDate
public NotifyShopperRequest billingDate(String billingDate)
-
getBillingDate
public String getBillingDate()
Date on which the subscription amount will be debited from the shopper. In YYYY-MM-DD format- Returns:
- billingDate
-
setBillingDate
public void setBillingDate(String billingDate)
-
billingSequenceNumber
public NotifyShopperRequest billingSequenceNumber(String billingSequenceNumber)
-
getBillingSequenceNumber
public String getBillingSequenceNumber()
Sequence of the debit. Depends on Frequency and Billing Attempts Rule.- Returns:
- billingSequenceNumber
-
setBillingSequenceNumber
public void setBillingSequenceNumber(String billingSequenceNumber)
-
displayedReference
public NotifyShopperRequest displayedReference(String displayedReference)
-
getDisplayedReference
public String getDisplayedReference()
Reference of Pre-debit notification that is displayed to the shopper. Optional field. Maps to reference if missing- Returns:
- displayedReference
-
setDisplayedReference
public void setDisplayedReference(String displayedReference)
-
merchantAccount
public NotifyShopperRequest merchantAccount(String merchantAccount)
-
getMerchantAccount
public String getMerchantAccount()
The merchant account identifier with which you want to process the transaction.- Returns:
- merchantAccount
-
setMerchantAccount
public void setMerchantAccount(String merchantAccount)
-
recurringDetailReference
public NotifyShopperRequest recurringDetailReference(String recurringDetailReference)
-
getRecurringDetailReference
public String getRecurringDetailReference()
This is the `recurringDetailReference` returned in the response when you created the token.- Returns:
- recurringDetailReference
-
setRecurringDetailReference
public void setRecurringDetailReference(String recurringDetailReference)
-
reference
public NotifyShopperRequest reference(String reference)
-
getReference
public String getReference()
Pre-debit notification reference sent by the merchant. This is a mandatory field- Returns:
- reference
-
setReference
public void setReference(String reference)
-
shopperReference
public NotifyShopperRequest shopperReference(String shopperReference)
-
getShopperReference
public String getShopperReference()
The ID that uniquely identifies the shopper. This `shopperReference` must be the same as the `shopperReference` used in the initial payment.- Returns:
- shopperReference
-
setShopperReference
public void setShopperReference(String shopperReference)
-
storedPaymentMethodId
public NotifyShopperRequest storedPaymentMethodId(String storedPaymentMethodId)
-
getStoredPaymentMethodId
public String getStoredPaymentMethodId()
This is the `recurringDetailReference` returned in the response when you created the token.- 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 NotifyShopperRequest
-
fromJson
public static NotifyShopperRequest fromJson(String jsonString) throws IOException
Create an instance of NotifyShopperRequest given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of NotifyShopperRequest
- Throws:
IOException- if the JSON string is invalid with respect to NotifyShopperRequest
-
toJson
public String toJson()
Convert an instance of NotifyShopperRequest to an JSON string- Returns:
- JSON string
-
-