Package com.adyen.model.payment
Class FundDestination
- java.lang.Object
-
- com.adyen.model.payment.FundDestination
-
public class FundDestination extends Object
FundDestination
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_ADDITIONAL_DATAstatic StringJSON_PROPERTY_BILLING_ADDRESSstatic StringJSON_PROPERTY_CARDstatic StringJSON_PROPERTY_I_B_A_Nstatic StringJSON_PROPERTY_SELECTED_RECURRING_DETAIL_REFERENCEstatic StringJSON_PROPERTY_SHOPPER_EMAILstatic StringJSON_PROPERTY_SHOPPER_NAMEstatic StringJSON_PROPERTY_SHOPPER_REFERENCEstatic StringJSON_PROPERTY_SUB_MERCHANTstatic StringJSON_PROPERTY_TELEPHONE_NUMBERstatic StringJSON_PROPERTY_WALLET_PURPOSE
-
Constructor Summary
Constructors Constructor Description FundDestination()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description FundDestinationadditionalData(Map<String,String> additionalData)a map of name/value pairs for passing in additional/industry-specific dataFundDestinationbillingAddress(Address billingAddress)billingAddressFundDestinationcard(Card card)cardbooleanequals(Object o)Return true if this FundDestination object is equal to o.static FundDestinationfromJson(String jsonString)Create an instance of FundDestination given an JSON stringMap<String,String>getAdditionalData()a map of name/value pairs for passing in additional/industry-specific dataAddressgetBillingAddress()billingAddressCardgetCard()cardStringgetIBAN()Bank Account Number of the recipientStringgetSelectedRecurringDetailReference()The `recurringDetailReference` you want to use for this payment.StringgetShopperEmail()the email address of the personNamegetShopperName()shopperNameStringgetShopperReference()Required for recurring payments.SubMerchantgetSubMerchant()subMerchantStringgetTelephoneNumber()the telephone number of the personStringgetWalletPurpose()The purpose of a digital wallet transaction.inthashCode()FundDestinationIBAN(String IBAN)Bank Account Number of the recipientFundDestinationputAdditionalDataItem(String key, String additionalDataItem)FundDestinationselectedRecurringDetailReference(String selectedRecurringDetailReference)The `recurringDetailReference` you want to use for this payment.voidsetAdditionalData(Map<String,String> additionalData)a map of name/value pairs for passing in additional/industry-specific datavoidsetBillingAddress(Address billingAddress)billingAddressvoidsetCard(Card card)cardvoidsetIBAN(String IBAN)Bank Account Number of the recipientvoidsetSelectedRecurringDetailReference(String selectedRecurringDetailReference)The `recurringDetailReference` you want to use for this payment.voidsetShopperEmail(String shopperEmail)the email address of the personvoidsetShopperName(Name shopperName)shopperNamevoidsetShopperReference(String shopperReference)Required for recurring payments.voidsetSubMerchant(SubMerchant subMerchant)subMerchantvoidsetTelephoneNumber(String telephoneNumber)the telephone number of the personvoidsetWalletPurpose(String walletPurpose)The purpose of a digital wallet transaction.FundDestinationshopperEmail(String shopperEmail)the email address of the personFundDestinationshopperName(Name shopperName)shopperNameFundDestinationshopperReference(String shopperReference)Required for recurring payments.FundDestinationsubMerchant(SubMerchant subMerchant)subMerchantFundDestinationtelephoneNumber(String telephoneNumber)the telephone number of the personStringtoJson()Convert an instance of FundDestination to an JSON stringStringtoString()FundDestinationwalletPurpose(String 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_ADDITIONAL_DATA
public static final String JSON_PROPERTY_ADDITIONAL_DATA
- See Also:
- Constant Field Values
-
JSON_PROPERTY_BILLING_ADDRESS
public static final String JSON_PROPERTY_BILLING_ADDRESS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_CARD
public static final String JSON_PROPERTY_CARD
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SELECTED_RECURRING_DETAIL_REFERENCE
public static final String JSON_PROPERTY_SELECTED_RECURRING_DETAIL_REFERENCE
- 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_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_PURPOSE
public static final String JSON_PROPERTY_WALLET_PURPOSE
- See Also:
- Constant Field Values
-
-
Method Detail
-
IBAN
public FundDestination IBAN(String IBAN)
Bank Account Number of the recipient- Parameters:
IBAN-- Returns:
- the current
FundDestinationinstance, allowing for method chaining
-
getIBAN
public String getIBAN()
Bank Account Number of the recipient- Returns:
- IBAN
-
setIBAN
public void setIBAN(String IBAN)
Bank Account Number of the recipient- Parameters:
IBAN-
-
additionalData
public FundDestination additionalData(Map<String,String> additionalData)
a map of name/value pairs for passing in additional/industry-specific data- Parameters:
additionalData-- Returns:
- the current
FundDestinationinstance, allowing for method chaining
-
putAdditionalDataItem
public FundDestination putAdditionalDataItem(String key, String additionalDataItem)
-
getAdditionalData
public Map<String,String> getAdditionalData()
a map of name/value pairs for passing in additional/industry-specific data- Returns:
- additionalData
-
setAdditionalData
public void setAdditionalData(Map<String,String> additionalData)
a map of name/value pairs for passing in additional/industry-specific data- Parameters:
additionalData-
-
billingAddress
public FundDestination billingAddress(Address billingAddress)
billingAddress- Parameters:
billingAddress-- Returns:
- the current
FundDestinationinstance, allowing for method chaining
-
getBillingAddress
public Address getBillingAddress()
billingAddress- Returns:
- billingAddress
-
setBillingAddress
public void setBillingAddress(Address billingAddress)
billingAddress- Parameters:
billingAddress-
-
card
public FundDestination card(Card card)
card- Parameters:
card-- Returns:
- the current
FundDestinationinstance, allowing for method chaining
-
getCard
public Card getCard()
card- Returns:
- card
-
setCard
public void setCard(Card card)
card- Parameters:
card-
-
selectedRecurringDetailReference
public FundDestination selectedRecurringDetailReference(String selectedRecurringDetailReference)
The `recurringDetailReference` you want to use for this payment. The value `LATEST` can be used to select the most recently stored recurring detail.- Parameters:
selectedRecurringDetailReference-- Returns:
- the current
FundDestinationinstance, allowing for method chaining
-
getSelectedRecurringDetailReference
public String getSelectedRecurringDetailReference()
The `recurringDetailReference` you want to use for this payment. The value `LATEST` can be used to select the most recently stored recurring detail.- Returns:
- selectedRecurringDetailReference
-
setSelectedRecurringDetailReference
public void setSelectedRecurringDetailReference(String selectedRecurringDetailReference)
The `recurringDetailReference` you want to use for this payment. The value `LATEST` can be used to select the most recently stored recurring detail.- Parameters:
selectedRecurringDetailReference-
-
shopperEmail
public FundDestination shopperEmail(String shopperEmail)
the email address of the person- Parameters:
shopperEmail-- Returns:
- the current
FundDestinationinstance, allowing for method chaining
-
getShopperEmail
public String getShopperEmail()
the email address of the person- Returns:
- shopperEmail
-
setShopperEmail
public void setShopperEmail(String shopperEmail)
the email address of the person- Parameters:
shopperEmail-
-
shopperName
public FundDestination shopperName(Name shopperName)
shopperName- Parameters:
shopperName-- Returns:
- the current
FundDestinationinstance, allowing for method chaining
-
getShopperName
public Name getShopperName()
shopperName- Returns:
- shopperName
-
setShopperName
public void setShopperName(Name shopperName)
shopperName- Parameters:
shopperName-
-
shopperReference
public FundDestination 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
FundDestinationinstance, 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-
-
subMerchant
public FundDestination subMerchant(SubMerchant subMerchant)
subMerchant- Parameters:
subMerchant-- Returns:
- the current
FundDestinationinstance, allowing for method chaining
-
getSubMerchant
public SubMerchant getSubMerchant()
subMerchant- Returns:
- subMerchant
-
setSubMerchant
public void setSubMerchant(SubMerchant subMerchant)
subMerchant- Parameters:
subMerchant-
-
telephoneNumber
public FundDestination telephoneNumber(String telephoneNumber)
the telephone number of the person- Parameters:
telephoneNumber-- Returns:
- the current
FundDestinationinstance, allowing for method chaining
-
getTelephoneNumber
public String getTelephoneNumber()
the telephone number of the person- Returns:
- telephoneNumber
-
setTelephoneNumber
public void setTelephoneNumber(String telephoneNumber)
the telephone number of the person- Parameters:
telephoneNumber-
-
walletPurpose
public FundDestination walletPurpose(String walletPurpose)
The purpose of a digital wallet transaction.- Parameters:
walletPurpose-- Returns:
- the current
FundDestinationinstance, allowing for method chaining
-
getWalletPurpose
public String getWalletPurpose()
The purpose of a digital wallet transaction.- Returns:
- walletPurpose
-
setWalletPurpose
public void setWalletPurpose(String walletPurpose)
The purpose of a digital wallet transaction.- Parameters:
walletPurpose-
-
equals
public boolean equals(Object o)
Return true if this FundDestination object is equal to o.
-
fromJson
public static FundDestination fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of FundDestination given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of FundDestination
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to FundDestination
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of FundDestination to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-