Package com.adyen.model.checkout
Class FundRecipient
- java.lang.Object
-
- com.adyen.model.checkout.FundRecipient
-
public class FundRecipient extends Object
FundRecipient
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classFundRecipient.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_BILLING_ADDRESSstatic StringSERIALIZED_NAME_PAYMENT_METHODstatic StringSERIALIZED_NAME_SHOPPER_EMAILstatic StringSERIALIZED_NAME_SHOPPER_NAMEstatic StringSERIALIZED_NAME_SHOPPER_REFERENCEstatic StringSERIALIZED_NAME_STORED_PAYMENT_METHOD_IDstatic StringSERIALIZED_NAME_SUB_MERCHANTstatic StringSERIALIZED_NAME_TELEPHONE_NUMBERstatic StringSERIALIZED_NAME_WALLET_IDENTIFIERstatic StringSERIALIZED_NAME_WALLET_OWNER_TAX_ID
-
Constructor Summary
Constructors Constructor Description FundRecipient()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description FundRecipientbillingAddress(Address billingAddress)booleanequals(Object o)static FundRecipientfromJson(String jsonString)Create an instance of FundRecipient given an JSON stringAddressgetBillingAddress()Get billingAddressCardDetailsgetPaymentMethod()Get paymentMethodStringgetShopperEmail()the email address of the personNamegetShopperName()Get shopperNameStringgetShopperReference()Required for recurring payments.StringgetStoredPaymentMethodId()This is the `recurringDetailReference` returned in the response when you created the token.SubMerchantgetSubMerchant()Get subMerchantStringgetTelephoneNumber()the telephone number of the personStringgetWalletIdentifier()indicates where the money is goingStringgetWalletOwnerTaxId()indicates the tax identifier of the fund recepientinthashCode()FundRecipientpaymentMethod(CardDetails paymentMethod)voidsetBillingAddress(Address billingAddress)voidsetPaymentMethod(CardDetails paymentMethod)voidsetShopperEmail(String shopperEmail)voidsetShopperName(Name shopperName)voidsetShopperReference(String shopperReference)voidsetStoredPaymentMethodId(String storedPaymentMethodId)voidsetSubMerchant(SubMerchant subMerchant)voidsetTelephoneNumber(String telephoneNumber)voidsetWalletIdentifier(String walletIdentifier)voidsetWalletOwnerTaxId(String walletOwnerTaxId)FundRecipientshopperEmail(String shopperEmail)FundRecipientshopperName(Name shopperName)FundRecipientshopperReference(String shopperReference)FundRecipientstoredPaymentMethodId(String storedPaymentMethodId)FundRecipientsubMerchant(SubMerchant subMerchant)FundRecipienttelephoneNumber(String telephoneNumber)StringtoJson()Convert an instance of FundRecipient to an JSON stringStringtoString()static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues foundFundRecipientwalletIdentifier(String walletIdentifier)FundRecipientwalletOwnerTaxId(String walletOwnerTaxId)
-
-
-
Field Detail
-
SERIALIZED_NAME_BILLING_ADDRESS
public static final String SERIALIZED_NAME_BILLING_ADDRESS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_PAYMENT_METHOD
public static final String SERIALIZED_NAME_PAYMENT_METHOD
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SHOPPER_EMAIL
public static final String SERIALIZED_NAME_SHOPPER_EMAIL
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SHOPPER_NAME
public static final String SERIALIZED_NAME_SHOPPER_NAME
- 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
-
SERIALIZED_NAME_SUB_MERCHANT
public static final String SERIALIZED_NAME_SUB_MERCHANT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TELEPHONE_NUMBER
public static final String SERIALIZED_NAME_TELEPHONE_NUMBER
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_WALLET_IDENTIFIER
public static final String SERIALIZED_NAME_WALLET_IDENTIFIER
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_WALLET_OWNER_TAX_ID
public static final String SERIALIZED_NAME_WALLET_OWNER_TAX_ID
- See Also:
- Constant Field Values
-
-
Method Detail
-
billingAddress
public FundRecipient billingAddress(Address billingAddress)
-
getBillingAddress
public Address getBillingAddress()
Get billingAddress- Returns:
- billingAddress
-
setBillingAddress
public void setBillingAddress(Address billingAddress)
-
paymentMethod
public FundRecipient paymentMethod(CardDetails paymentMethod)
-
getPaymentMethod
public CardDetails getPaymentMethod()
Get paymentMethod- Returns:
- paymentMethod
-
setPaymentMethod
public void setPaymentMethod(CardDetails paymentMethod)
-
shopperEmail
public FundRecipient shopperEmail(String shopperEmail)
-
getShopperEmail
public String getShopperEmail()
the email address of the person- Returns:
- shopperEmail
-
setShopperEmail
public void setShopperEmail(String shopperEmail)
-
shopperName
public FundRecipient shopperName(Name shopperName)
-
getShopperName
public Name getShopperName()
Get shopperName- Returns:
- shopperName
-
setShopperName
public void setShopperName(Name shopperName)
-
shopperReference
public FundRecipient shopperReference(String shopperReference)
-
getShopperReference
public String getShopperReference()
Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. Minimum length: 3 characters. > Your reference must not include personally identifiable information (PII), for example name or email address.- Returns:
- shopperReference
-
setShopperReference
public void setShopperReference(String shopperReference)
-
storedPaymentMethodId
public FundRecipient 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)
-
subMerchant
public FundRecipient subMerchant(SubMerchant subMerchant)
-
getSubMerchant
public SubMerchant getSubMerchant()
Get subMerchant- Returns:
- subMerchant
-
setSubMerchant
public void setSubMerchant(SubMerchant subMerchant)
-
telephoneNumber
public FundRecipient telephoneNumber(String telephoneNumber)
-
getTelephoneNumber
public String getTelephoneNumber()
the telephone number of the person- Returns:
- telephoneNumber
-
setTelephoneNumber
public void setTelephoneNumber(String telephoneNumber)
-
walletIdentifier
public FundRecipient walletIdentifier(String walletIdentifier)
-
getWalletIdentifier
public String getWalletIdentifier()
indicates where the money is going- Returns:
- walletIdentifier
-
setWalletIdentifier
public void setWalletIdentifier(String walletIdentifier)
-
walletOwnerTaxId
public FundRecipient walletOwnerTaxId(String walletOwnerTaxId)
-
getWalletOwnerTaxId
public String getWalletOwnerTaxId()
indicates the tax identifier of the fund recepient- Returns:
- walletOwnerTaxId
-
setWalletOwnerTaxId
public void setWalletOwnerTaxId(String walletOwnerTaxId)
-
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 FundRecipient
-
fromJson
public static FundRecipient fromJson(String jsonString) throws IOException
Create an instance of FundRecipient given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of FundRecipient
- Throws:
IOException- if the JSON string is invalid with respect to FundRecipient
-
toJson
public String toJson()
Convert an instance of FundRecipient to an JSON string- Returns:
- JSON string
-
-