Package com.adyen.model.payment
Class FundSource
- java.lang.Object
-
- com.adyen.model.payment.FundSource
-
public class FundSource extends Object
FundSource
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_ADDITIONAL_DATAstatic StringJSON_PROPERTY_BILLING_ADDRESSstatic StringJSON_PROPERTY_CARDstatic StringJSON_PROPERTY_SHOPPER_EMAILstatic StringJSON_PROPERTY_SHOPPER_NAMEstatic StringJSON_PROPERTY_TELEPHONE_NUMBER
-
Constructor Summary
Constructors Constructor Description FundSource()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description FundSourceadditionalData(Map<String,String> additionalData)A map of name-value pairs for passing additional or industry-specific data.FundSourcebillingAddress(Address billingAddress)billingAddressFundSourcecard(Card card)cardbooleanequals(Object o)Return true if this FundSource object is equal to o.static FundSourcefromJson(String jsonString)Create an instance of FundSource given an JSON stringMap<String,String>getAdditionalData()A map of name-value pairs for passing additional or industry-specific data.AddressgetBillingAddress()billingAddressCardgetCard()cardStringgetShopperEmail()Email address of the person.NamegetShopperName()shopperNameStringgetTelephoneNumber()Phone number of the personinthashCode()FundSourceputAdditionalDataItem(String key, String additionalDataItem)voidsetAdditionalData(Map<String,String> additionalData)A map of name-value pairs for passing additional or industry-specific data.voidsetBillingAddress(Address billingAddress)billingAddressvoidsetCard(Card card)cardvoidsetShopperEmail(String shopperEmail)Email address of the person.voidsetShopperName(Name shopperName)shopperNamevoidsetTelephoneNumber(String telephoneNumber)Phone number of the personFundSourceshopperEmail(String shopperEmail)Email address of the person.FundSourceshopperName(Name shopperName)shopperNameFundSourcetelephoneNumber(String telephoneNumber)Phone number of the personStringtoJson()Convert an instance of FundSource 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_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_TELEPHONE_NUMBER
public static final String JSON_PROPERTY_TELEPHONE_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
additionalData
public FundSource additionalData(Map<String,String> additionalData)
A map of name-value pairs for passing additional or industry-specific data.- Parameters:
additionalData-- Returns:
- the current
FundSourceinstance, allowing for method chaining
-
putAdditionalDataItem
public FundSource putAdditionalDataItem(String key, String additionalDataItem)
-
getAdditionalData
public Map<String,String> getAdditionalData()
A map of name-value pairs for passing additional or industry-specific data.- Returns:
- additionalData
-
setAdditionalData
public void setAdditionalData(Map<String,String> additionalData)
A map of name-value pairs for passing additional or industry-specific data.- Parameters:
additionalData-
-
billingAddress
public FundSource billingAddress(Address billingAddress)
billingAddress- Parameters:
billingAddress-- Returns:
- the current
FundSourceinstance, allowing for method chaining
-
getBillingAddress
public Address getBillingAddress()
billingAddress- Returns:
- billingAddress
-
setBillingAddress
public void setBillingAddress(Address billingAddress)
billingAddress- Parameters:
billingAddress-
-
card
public FundSource card(Card card)
card- Parameters:
card-- Returns:
- the current
FundSourceinstance, allowing for method chaining
-
getCard
public Card getCard()
card- Returns:
- card
-
setCard
public void setCard(Card card)
card- Parameters:
card-
-
shopperEmail
public FundSource shopperEmail(String shopperEmail)
Email address of the person.- Parameters:
shopperEmail-- Returns:
- the current
FundSourceinstance, allowing for method chaining
-
getShopperEmail
public String getShopperEmail()
Email address of the person.- Returns:
- shopperEmail
-
setShopperEmail
public void setShopperEmail(String shopperEmail)
Email address of the person.- Parameters:
shopperEmail-
-
shopperName
public FundSource shopperName(Name shopperName)
shopperName- Parameters:
shopperName-- Returns:
- the current
FundSourceinstance, allowing for method chaining
-
getShopperName
public Name getShopperName()
shopperName- Returns:
- shopperName
-
setShopperName
public void setShopperName(Name shopperName)
shopperName- Parameters:
shopperName-
-
telephoneNumber
public FundSource telephoneNumber(String telephoneNumber)
Phone number of the person- Parameters:
telephoneNumber-- Returns:
- the current
FundSourceinstance, allowing for method chaining
-
getTelephoneNumber
public String getTelephoneNumber()
Phone number of the person- Returns:
- telephoneNumber
-
setTelephoneNumber
public void setTelephoneNumber(String telephoneNumber)
Phone number of the person- Parameters:
telephoneNumber-
-
equals
public boolean equals(Object o)
Return true if this FundSource object is equal to o.
-
fromJson
public static FundSource fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of FundSource given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of FundSource
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to FundSource
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of FundSource to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-