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.WalletPurposeEnumThe purpose of a digital wallet transaction.
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_BILLING_ADDRESSstatic StringJSON_PROPERTY_I_B_A_Nstatic StringJSON_PROPERTY_PAYMENT_METHODstatic StringJSON_PROPERTY_SHOPPER_EMAILstatic StringJSON_PROPERTY_SHOPPER_NAMEstatic StringJSON_PROPERTY_SHOPPER_REFERENCEstatic StringJSON_PROPERTY_STORED_PAYMENT_METHOD_IDstatic StringJSON_PROPERTY_SUB_MERCHANTstatic StringJSON_PROPERTY_TELEPHONE_NUMBERstatic StringJSON_PROPERTY_WALLET_IDENTIFIERstatic StringJSON_PROPERTY_WALLET_OWNER_TAX_IDstatic StringJSON_PROPERTY_WALLET_PURPOSE
-
Constructor Summary
Constructors Constructor Description FundRecipient()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description FundRecipientbillingAddress(Address billingAddress)billingAddressbooleanequals(Object o)Return true if this FundRecipient object is equal to o.static FundRecipientfromJson(String jsonString)Create an instance of FundRecipient given an JSON stringAddressgetBillingAddress()billingAddressStringgetIBAN()The IBAN of the bank account where the funds are being transferred to.CardDetailsgetPaymentMethod()paymentMethodStringgetShopperEmail()The email address of the shopper.NamegetShopperName()shopperNameStringgetShopperReference()Required for recurring payments.StringgetStoredPaymentMethodId()This is the `recurringDetailReference` returned in the response when you created the token.SubMerchantgetSubMerchant()subMerchantStringgetTelephoneNumber()The telephone number of the shopper.StringgetWalletIdentifier()The unique identifier for the wallet the funds are being transferred to.StringgetWalletOwnerTaxId()The tax identifier of the person receiving the funds.FundRecipient.WalletPurposeEnumgetWalletPurpose()The purpose of a digital wallet transaction.inthashCode()FundRecipientIBAN(String IBAN)The IBAN of the bank account where the funds are being transferred to.FundRecipientpaymentMethod(CardDetails paymentMethod)paymentMethodvoidsetBillingAddress(Address billingAddress)billingAddressvoidsetIBAN(String IBAN)The IBAN of the bank account where the funds are being transferred to.voidsetPaymentMethod(CardDetails paymentMethod)paymentMethodvoidsetShopperEmail(String shopperEmail)The email address of the shopper.voidsetShopperName(Name shopperName)shopperNamevoidsetShopperReference(String shopperReference)Required for recurring payments.voidsetStoredPaymentMethodId(String storedPaymentMethodId)This is the `recurringDetailReference` returned in the response when you created the token.voidsetSubMerchant(SubMerchant subMerchant)subMerchantvoidsetTelephoneNumber(String telephoneNumber)The telephone number of the shopper.voidsetWalletIdentifier(String walletIdentifier)The unique identifier for the wallet the funds are being transferred to.voidsetWalletOwnerTaxId(String walletOwnerTaxId)The tax identifier of the person receiving the funds.voidsetWalletPurpose(FundRecipient.WalletPurposeEnum walletPurpose)The purpose of a digital wallet transaction.FundRecipientshopperEmail(String shopperEmail)The email address of the shopper.FundRecipientshopperName(Name shopperName)shopperNameFundRecipientshopperReference(String shopperReference)Required for recurring payments.FundRecipientstoredPaymentMethodId(String storedPaymentMethodId)This is the `recurringDetailReference` returned in the response when you created the token.FundRecipientsubMerchant(SubMerchant subMerchant)subMerchantFundRecipienttelephoneNumber(String telephoneNumber)The telephone number of the shopper.StringtoJson()Convert an instance of FundRecipient to an JSON stringStringtoString()FundRecipientwalletIdentifier(String walletIdentifier)The unique identifier for the wallet the funds are being transferred to.FundRecipientwalletOwnerTaxId(String walletOwnerTaxId)The tax identifier of the person receiving the funds.FundRecipientwalletPurpose(FundRecipient.WalletPurposeEnum walletPurpose)The purpose of a digital wallet transaction.
-
-
-
Field Detail
-
JSON_PROPERTY_I_B_A_N
public static final String JSON_PROPERTY_I_B_A_N
- See Also:
- Constant Field Values
-
JSON_PROPERTY_BILLING_ADDRESS
public static final String JSON_PROPERTY_BILLING_ADDRESS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PAYMENT_METHOD
public static final String JSON_PROPERTY_PAYMENT_METHOD
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SHOPPER_EMAIL
public static final String JSON_PROPERTY_SHOPPER_EMAIL
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SHOPPER_NAME
public static final String JSON_PROPERTY_SHOPPER_NAME
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SHOPPER_REFERENCE
public static final String JSON_PROPERTY_SHOPPER_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
-
JSON_PROPERTY_SUB_MERCHANT
public static final String JSON_PROPERTY_SUB_MERCHANT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TELEPHONE_NUMBER
public static final String JSON_PROPERTY_TELEPHONE_NUMBER
- See Also:
- Constant Field Values
-
JSON_PROPERTY_WALLET_IDENTIFIER
public static final String JSON_PROPERTY_WALLET_IDENTIFIER
- See Also:
- Constant Field Values
-
JSON_PROPERTY_WALLET_OWNER_TAX_ID
public static final String JSON_PROPERTY_WALLET_OWNER_TAX_ID
- See Also:
- Constant Field Values
-
JSON_PROPERTY_WALLET_PURPOSE
public static final String JSON_PROPERTY_WALLET_PURPOSE
- See Also:
- Constant Field Values
-
-
Method Detail
-
IBAN
public FundRecipient IBAN(String IBAN)
The IBAN of the bank account where the funds are being transferred to.- Parameters:
IBAN-- Returns:
- the current
FundRecipientinstance, allowing for method chaining
-
getIBAN
public String getIBAN()
The IBAN of the bank account where the funds are being transferred to.- Returns:
- IBAN
-
setIBAN
public void setIBAN(String IBAN)
The IBAN of the bank account where the funds are being transferred to.- Parameters:
IBAN-
-
billingAddress
public FundRecipient billingAddress(Address billingAddress)
billingAddress- Parameters:
billingAddress-- Returns:
- the current
FundRecipientinstance, allowing for method chaining
-
getBillingAddress
public Address getBillingAddress()
billingAddress- Returns:
- billingAddress
-
setBillingAddress
public void setBillingAddress(Address billingAddress)
billingAddress- Parameters:
billingAddress-
-
paymentMethod
public FundRecipient paymentMethod(CardDetails paymentMethod)
paymentMethod- Parameters:
paymentMethod-- Returns:
- the current
FundRecipientinstance, allowing for method chaining
-
getPaymentMethod
public CardDetails getPaymentMethod()
paymentMethod- Returns:
- paymentMethod
-
setPaymentMethod
public void setPaymentMethod(CardDetails paymentMethod)
paymentMethod- Parameters:
paymentMethod-
-
shopperEmail
public FundRecipient shopperEmail(String shopperEmail)
The email address of the shopper.- Parameters:
shopperEmail-- Returns:
- the current
FundRecipientinstance, allowing for method chaining
-
getShopperEmail
public String getShopperEmail()
The email address of the shopper.- Returns:
- shopperEmail
-
setShopperEmail
public void setShopperEmail(String shopperEmail)
The email address of the shopper.- Parameters:
shopperEmail-
-
shopperName
public FundRecipient shopperName(Name shopperName)
shopperName- Parameters:
shopperName-- Returns:
- the current
FundRecipientinstance, allowing for method chaining
-
getShopperName
public Name getShopperName()
shopperName- Returns:
- shopperName
-
setShopperName
public void setShopperName(Name shopperName)
shopperName- Parameters:
shopperName-
-
shopperReference
public FundRecipient shopperReference(String shopperReference)
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.- Parameters:
shopperReference-- Returns:
- the current
FundRecipientinstance, allowing for method chaining
-
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)
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.- Parameters:
shopperReference-
-
storedPaymentMethodId
public FundRecipient storedPaymentMethodId(String storedPaymentMethodId)
This is the `recurringDetailReference` returned in the response when you created the token.- Parameters:
storedPaymentMethodId-- Returns:
- the current
FundRecipientinstance, allowing for method chaining
-
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)
This is the `recurringDetailReference` returned in the response when you created the token.- Parameters:
storedPaymentMethodId-
-
subMerchant
public FundRecipient subMerchant(SubMerchant subMerchant)
subMerchant- Parameters:
subMerchant-- Returns:
- the current
FundRecipientinstance, allowing for method chaining
-
getSubMerchant
public SubMerchant getSubMerchant()
subMerchant- Returns:
- subMerchant
-
setSubMerchant
public void setSubMerchant(SubMerchant subMerchant)
subMerchant- Parameters:
subMerchant-
-
telephoneNumber
public FundRecipient telephoneNumber(String telephoneNumber)
The telephone number of the shopper.- Parameters:
telephoneNumber-- Returns:
- the current
FundRecipientinstance, allowing for method chaining
-
getTelephoneNumber
public String getTelephoneNumber()
The telephone number of the shopper.- Returns:
- telephoneNumber
-
setTelephoneNumber
public void setTelephoneNumber(String telephoneNumber)
The telephone number of the shopper.- Parameters:
telephoneNumber-
-
walletIdentifier
public FundRecipient walletIdentifier(String walletIdentifier)
The unique identifier for the wallet the funds are being transferred to. You can use the shopper reference or any other identifier.- Parameters:
walletIdentifier-- Returns:
- the current
FundRecipientinstance, allowing for method chaining
-
getWalletIdentifier
public String getWalletIdentifier()
The unique identifier for the wallet the funds are being transferred to. You can use the shopper reference or any other identifier.- Returns:
- walletIdentifier
-
setWalletIdentifier
public void setWalletIdentifier(String walletIdentifier)
The unique identifier for the wallet the funds are being transferred to. You can use the shopper reference or any other identifier.- Parameters:
walletIdentifier-
-
walletOwnerTaxId
public FundRecipient walletOwnerTaxId(String walletOwnerTaxId)
The tax identifier of the person receiving the funds.- Parameters:
walletOwnerTaxId-- Returns:
- the current
FundRecipientinstance, allowing for method chaining
-
getWalletOwnerTaxId
public String getWalletOwnerTaxId()
The tax identifier of the person receiving the funds.- Returns:
- walletOwnerTaxId
-
setWalletOwnerTaxId
public void setWalletOwnerTaxId(String walletOwnerTaxId)
The tax identifier of the person receiving the funds.- Parameters:
walletOwnerTaxId-
-
walletPurpose
public FundRecipient walletPurpose(FundRecipient.WalletPurposeEnum walletPurpose)
The purpose of a digital wallet transaction.- Parameters:
walletPurpose-- Returns:
- the current
FundRecipientinstance, allowing for method chaining
-
getWalletPurpose
public FundRecipient.WalletPurposeEnum getWalletPurpose()
The purpose of a digital wallet transaction.- Returns:
- walletPurpose
-
setWalletPurpose
public void setWalletPurpose(FundRecipient.WalletPurposeEnum walletPurpose)
The purpose of a digital wallet transaction.- Parameters:
walletPurpose-
-
equals
public boolean equals(Object o)
Return true if this FundRecipient object is equal to o.
-
fromJson
public static FundRecipient fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of FundRecipient given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of FundRecipient
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to FundRecipient
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of FundRecipient to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-