Package com.adyen.model.checkout
Class FundOrigin
- java.lang.Object
-
- com.adyen.model.checkout.FundOrigin
-
public class FundOrigin extends Object
FundOrigin
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_BILLING_ADDRESSstatic StringJSON_PROPERTY_SHOPPER_EMAILstatic StringJSON_PROPERTY_SHOPPER_NAMEstatic StringJSON_PROPERTY_TELEPHONE_NUMBERstatic StringJSON_PROPERTY_WALLET_IDENTIFIER
-
Constructor Summary
Constructors Constructor Description FundOrigin()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description FundOriginbillingAddress(Address billingAddress)billingAddressbooleanequals(Object o)Return true if this FundOrigin object is equal to o.static FundOriginfromJson(String jsonString)Create an instance of FundOrigin given an JSON stringAddressgetBillingAddress()billingAddressStringgetShopperEmail()The email address of the person funding the money.NamegetShopperName()shopperNameStringgetTelephoneNumber()The phone number of the person funding the money.StringgetWalletIdentifier()The unique identifier of the wallet where the funds are coming from.inthashCode()voidsetBillingAddress(Address billingAddress)billingAddressvoidsetShopperEmail(String shopperEmail)The email address of the person funding the money.voidsetShopperName(Name shopperName)shopperNamevoidsetTelephoneNumber(String telephoneNumber)The phone number of the person funding the money.voidsetWalletIdentifier(String walletIdentifier)The unique identifier of the wallet where the funds are coming from.FundOriginshopperEmail(String shopperEmail)The email address of the person funding the money.FundOriginshopperName(Name shopperName)shopperNameFundOrigintelephoneNumber(String telephoneNumber)The phone number of the person funding the money.StringtoJson()Convert an instance of FundOrigin to an JSON stringStringtoString()FundOriginwalletIdentifier(String walletIdentifier)The unique identifier of the wallet where the funds are coming from.
-
-
-
Field Detail
-
JSON_PROPERTY_BILLING_ADDRESS
public static final String JSON_PROPERTY_BILLING_ADDRESS
- 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
-
JSON_PROPERTY_WALLET_IDENTIFIER
public static final String JSON_PROPERTY_WALLET_IDENTIFIER
- See Also:
- Constant Field Values
-
-
Method Detail
-
billingAddress
public FundOrigin billingAddress(Address billingAddress)
billingAddress- Parameters:
billingAddress-- Returns:
- the current
FundOrigininstance, allowing for method chaining
-
getBillingAddress
public Address getBillingAddress()
billingAddress- Returns:
- billingAddress
-
setBillingAddress
public void setBillingAddress(Address billingAddress)
billingAddress- Parameters:
billingAddress-
-
shopperEmail
public FundOrigin shopperEmail(String shopperEmail)
The email address of the person funding the money.- Parameters:
shopperEmail-- Returns:
- the current
FundOrigininstance, allowing for method chaining
-
getShopperEmail
public String getShopperEmail()
The email address of the person funding the money.- Returns:
- shopperEmail
-
setShopperEmail
public void setShopperEmail(String shopperEmail)
The email address of the person funding the money.- Parameters:
shopperEmail-
-
shopperName
public FundOrigin shopperName(Name shopperName)
shopperName- Parameters:
shopperName-- Returns:
- the current
FundOrigininstance, allowing for method chaining
-
getShopperName
public Name getShopperName()
shopperName- Returns:
- shopperName
-
setShopperName
public void setShopperName(Name shopperName)
shopperName- Parameters:
shopperName-
-
telephoneNumber
public FundOrigin telephoneNumber(String telephoneNumber)
The phone number of the person funding the money.- Parameters:
telephoneNumber-- Returns:
- the current
FundOrigininstance, allowing for method chaining
-
getTelephoneNumber
public String getTelephoneNumber()
The phone number of the person funding the money.- Returns:
- telephoneNumber
-
setTelephoneNumber
public void setTelephoneNumber(String telephoneNumber)
The phone number of the person funding the money.- Parameters:
telephoneNumber-
-
walletIdentifier
public FundOrigin walletIdentifier(String walletIdentifier)
The unique identifier of the wallet where the funds are coming from.- Parameters:
walletIdentifier-- Returns:
- the current
FundOrigininstance, allowing for method chaining
-
getWalletIdentifier
public String getWalletIdentifier()
The unique identifier of the wallet where the funds are coming from.- Returns:
- walletIdentifier
-
setWalletIdentifier
public void setWalletIdentifier(String walletIdentifier)
The unique identifier of the wallet where the funds are coming from.- Parameters:
walletIdentifier-
-
equals
public boolean equals(Object o)
Return true if this FundOrigin object is equal to o.
-
fromJson
public static FundOrigin fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of FundOrigin given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of FundOrigin
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to FundOrigin
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of FundOrigin to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-