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()Get billingAddressMap<String,Object>getExplicitNulls()Returns a map of properties to be merged into the JSON payload as explicit null values.StringgetShopperEmail()The email address of the person funding the money.NamegetShopperName()Get shopperNameStringgetTelephoneNumber()The phone number of the person funding the money.StringgetWalletIdentifier()The unique identifier of the wallet where the funds are coming from.inthashCode()FundOriginincludeNullValues(boolean includeNullValues)Configures whether null values are explicitly serialized in the JSON payload.booleanisIncludeNullValues()Returns whether null values are explicitly serialized in the JSON payload.voidsetBillingAddress(Address billingAddress)billingAddressvoidsetIncludeNullValues(boolean includeNullValues)Sets whether null values should be explicitly serialized in the JSON payload.voidsetShopperEmail(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()
Get 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- The email address of the person funding the money.- Returns:
- the current
FundOrigininstance, allowing for method chaining
-
getShopperEmail
public String getShopperEmail()
The email address of the person funding the money.- Returns:
- shopperEmail The email address of the person funding the money.
-
setShopperEmail
public void setShopperEmail(String shopperEmail)
The email address of the person funding the money.- Parameters:
shopperEmail- The email address of the person funding the money.
-
shopperName
public FundOrigin shopperName(Name shopperName)
shopperName- Parameters:
shopperName-- Returns:
- the current
FundOrigininstance, allowing for method chaining
-
getShopperName
public Name getShopperName()
Get 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- The phone number of the person funding the money.- Returns:
- the current
FundOrigininstance, allowing for method chaining
-
getTelephoneNumber
public String getTelephoneNumber()
The phone number of the person funding the money.- Returns:
- telephoneNumber The phone number of the person funding the money.
-
setTelephoneNumber
public void setTelephoneNumber(String telephoneNumber)
The phone number of the person funding the money.- Parameters:
telephoneNumber- The phone number of the person funding the money.
-
walletIdentifier
public FundOrigin walletIdentifier(String walletIdentifier)
The unique identifier of the wallet where the funds are coming from.- Parameters:
walletIdentifier- The unique identifier of the wallet where the funds are coming from.- 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 The unique identifier of the wallet where the funds are coming from.
-
setWalletIdentifier
public void setWalletIdentifier(String walletIdentifier)
The unique identifier of the wallet where the funds are coming from.- Parameters:
walletIdentifier- The unique identifier of the wallet where the funds are coming from.
-
includeNullValues
public FundOrigin includeNullValues(boolean includeNullValues)
Configures whether null values are explicitly serialized in the JSON payload. Default is false.
-
isIncludeNullValues
public boolean isIncludeNullValues()
Returns whether null values are explicitly serialized in the JSON payload.
-
setIncludeNullValues
public void setIncludeNullValues(boolean includeNullValues)
Sets whether null values should be explicitly serialized in the JSON payload. Default is false.
-
equals
public boolean equals(Object o)
Return true if this FundOrigin object is equal to o.
-
getExplicitNulls
public Map<String,Object> getExplicitNulls()
Returns a map of properties to be merged into the JSON payload as explicit null values.
-
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
-
-