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_SELECTED_RECURRING_DETAIL_REFERENCEstatic StringJSON_PROPERTY_SHOPPER_EMAILstatic StringJSON_PROPERTY_SHOPPER_NAMEstatic StringJSON_PROPERTY_SHOPPER_REFERENCEstatic StringJSON_PROPERTY_SUB_MERCHANTstatic StringJSON_PROPERTY_TELEPHONE_NUMBER
-
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)FundDestinationbillingAddress(Address billingAddress)FundDestinationcard(Card card)booleanequals(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()Get billingAddressCardgetCard()Get cardStringgetSelectedRecurringDetailReference()The `recurringDetailReference` you want to use for this payment.StringgetShopperEmail()the email address of the personNamegetShopperName()Get shopperNameStringgetShopperReference()Required for recurring payments.SubMerchantgetSubMerchant()Get subMerchantStringgetTelephoneNumber()the telephone number of the personinthashCode()FundDestinationputAdditionalDataItem(String key, String additionalDataItem)FundDestinationselectedRecurringDetailReference(String selectedRecurringDetailReference)voidsetAdditionalData(Map<String,String> additionalData)voidsetBillingAddress(Address billingAddress)voidsetCard(Card card)voidsetSelectedRecurringDetailReference(String selectedRecurringDetailReference)voidsetShopperEmail(String shopperEmail)voidsetShopperName(Name shopperName)voidsetShopperReference(String shopperReference)voidsetSubMerchant(SubMerchant subMerchant)voidsetTelephoneNumber(String telephoneNumber)FundDestinationshopperEmail(String shopperEmail)FundDestinationshopperName(Name shopperName)FundDestinationshopperReference(String shopperReference)FundDestinationsubMerchant(SubMerchant subMerchant)FundDestinationtelephoneNumber(String telephoneNumber)StringtoJson()Convert an instance of FundDestination to an JSON stringStringtoString()
-
-
-
Field Detail
-
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
-
-
Method Detail
-
additionalData
public FundDestination additionalData(Map<String,String> additionalData)
-
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
-
billingAddress
public FundDestination billingAddress(Address billingAddress)
-
getBillingAddress
public Address getBillingAddress()
Get billingAddress- Returns:
- billingAddress
-
setBillingAddress
public void setBillingAddress(Address billingAddress)
-
card
public FundDestination card(Card card)
-
getCard
public Card getCard()
Get card- Returns:
- card
-
setCard
public void setCard(Card card)
-
selectedRecurringDetailReference
public FundDestination selectedRecurringDetailReference(String selectedRecurringDetailReference)
-
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)
-
shopperEmail
public FundDestination shopperEmail(String shopperEmail)
-
getShopperEmail
public String getShopperEmail()
the email address of the person- Returns:
- shopperEmail
-
setShopperEmail
public void setShopperEmail(String shopperEmail)
-
shopperName
public FundDestination shopperName(Name shopperName)
-
getShopperName
public Name getShopperName()
Get shopperName- Returns:
- shopperName
-
setShopperName
public void setShopperName(Name shopperName)
-
shopperReference
public FundDestination 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)
-
subMerchant
public FundDestination subMerchant(SubMerchant subMerchant)
-
getSubMerchant
public SubMerchant getSubMerchant()
Get subMerchant- Returns:
- subMerchant
-
setSubMerchant
public void setSubMerchant(SubMerchant subMerchant)
-
telephoneNumber
public FundDestination telephoneNumber(String telephoneNumber)
-
getTelephoneNumber
public String getTelephoneNumber()
the telephone number of the person- Returns:
- telephoneNumber
-
setTelephoneNumber
public void setTelephoneNumber(String telephoneNumber)
-
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
-
-