Package com.adyen.model.payments
Class FundSource
- java.lang.Object
-
- com.adyen.model.payments.FundSource
-
public class FundSource extends Object
FundSource
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classFundSource.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_ADDITIONAL_DATAstatic StringSERIALIZED_NAME_BILLING_ADDRESSstatic StringSERIALIZED_NAME_CARDstatic StringSERIALIZED_NAME_SHOPPER_EMAILstatic StringSERIALIZED_NAME_SHOPPER_NAMEstatic StringSERIALIZED_NAME_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)FundSourcebillingAddress(Address billingAddress)FundSourcecard(Card card)booleanequals(Object 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()Get billingAddressCardgetCard()Get cardStringgetShopperEmail()Email address of the person.NamegetShopperName()Get shopperNameStringgetTelephoneNumber()Phone number of the personinthashCode()FundSourceputAdditionalDataItem(String key, String additionalDataItem)voidsetAdditionalData(Map<String,String> additionalData)voidsetBillingAddress(Address billingAddress)voidsetCard(Card card)voidsetShopperEmail(String shopperEmail)voidsetShopperName(Name shopperName)voidsetTelephoneNumber(String telephoneNumber)FundSourceshopperEmail(String shopperEmail)FundSourceshopperName(Name shopperName)FundSourcetelephoneNumber(String telephoneNumber)StringtoJson()Convert an instance of FundSource to an JSON stringStringtoString()static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_ADDITIONAL_DATA
public static final String SERIALIZED_NAME_ADDITIONAL_DATA
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_BILLING_ADDRESS
public static final String SERIALIZED_NAME_BILLING_ADDRESS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_CARD
public static final String SERIALIZED_NAME_CARD
- 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_TELEPHONE_NUMBER
public static final String SERIALIZED_NAME_TELEPHONE_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
additionalData
public FundSource additionalData(Map<String,String> additionalData)
-
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
-
billingAddress
public FundSource billingAddress(Address billingAddress)
-
getBillingAddress
public Address getBillingAddress()
Get billingAddress- Returns:
- billingAddress
-
setBillingAddress
public void setBillingAddress(Address billingAddress)
-
card
public FundSource card(Card card)
-
getCard
public Card getCard()
Get card- Returns:
- card
-
setCard
public void setCard(Card card)
-
shopperEmail
public FundSource shopperEmail(String shopperEmail)
-
getShopperEmail
public String getShopperEmail()
Email address of the person.- Returns:
- shopperEmail
-
setShopperEmail
public void setShopperEmail(String shopperEmail)
-
shopperName
public FundSource shopperName(Name shopperName)
-
getShopperName
public Name getShopperName()
Get shopperName- Returns:
- shopperName
-
setShopperName
public void setShopperName(Name shopperName)
-
telephoneNumber
public FundSource telephoneNumber(String telephoneNumber)
-
getTelephoneNumber
public String getTelephoneNumber()
Phone number of the person- Returns:
- telephoneNumber
-
setTelephoneNumber
public void setTelephoneNumber(String telephoneNumber)
-
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 FundSource
-
fromJson
public static FundSource fromJson(String jsonString) throws IOException
Create an instance of FundSource given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of FundSource
- Throws:
IOException- if the JSON string is invalid with respect to FundSource
-
toJson
public String toJson()
Convert an instance of FundSource to an JSON string- Returns:
- JSON string
-
-