Package com.adyen.model.checkout
Class EcontextVoucherDetails
- java.lang.Object
-
- com.adyen.model.checkout.EcontextVoucherDetails
-
public class EcontextVoucherDetails extends Object
EcontextVoucherDetails
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classEcontextVoucherDetails.TypeEnum**econtextvoucher**
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_CHECKOUT_ATTEMPT_IDstatic StringJSON_PROPERTY_FIRST_NAMEstatic StringJSON_PROPERTY_LAST_NAMEstatic StringJSON_PROPERTY_SHOPPER_EMAILstatic StringJSON_PROPERTY_TELEPHONE_NUMBERstatic StringJSON_PROPERTY_TYPE
-
Constructor Summary
Constructors Constructor Description EcontextVoucherDetails()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description EcontextVoucherDetailscheckoutAttemptId(String checkoutAttemptId)booleanequals(Object o)Return true if this EcontextVoucherDetails object is equal to o.EcontextVoucherDetailsfirstName(String firstName)static EcontextVoucherDetailsfromJson(String jsonString)Create an instance of EcontextVoucherDetails given an JSON stringStringgetCheckoutAttemptId()The checkout attempt identifier.StringgetFirstName()The shopper's first name.StringgetLastName()The shopper's last name.StringgetShopperEmail()The shopper's email.StringgetTelephoneNumber()The shopper's contact number.EcontextVoucherDetails.TypeEnumgetType()**econtextvoucher**inthashCode()EcontextVoucherDetailslastName(String lastName)voidsetCheckoutAttemptId(String checkoutAttemptId)The checkout attempt identifier.voidsetFirstName(String firstName)The shopper's first name.voidsetLastName(String lastName)The shopper's last name.voidsetShopperEmail(String shopperEmail)The shopper's email.voidsetTelephoneNumber(String telephoneNumber)The shopper's contact number.voidsetType(EcontextVoucherDetails.TypeEnum type)**econtextvoucher**EcontextVoucherDetailsshopperEmail(String shopperEmail)EcontextVoucherDetailstelephoneNumber(String telephoneNumber)StringtoJson()Convert an instance of EcontextVoucherDetails to an JSON stringStringtoString()EcontextVoucherDetailstype(EcontextVoucherDetails.TypeEnum type)
-
-
-
Field Detail
-
JSON_PROPERTY_CHECKOUT_ATTEMPT_ID
public static final String JSON_PROPERTY_CHECKOUT_ATTEMPT_ID
- See Also:
- Constant Field Values
-
JSON_PROPERTY_FIRST_NAME
public static final String JSON_PROPERTY_FIRST_NAME
- See Also:
- Constant Field Values
-
JSON_PROPERTY_LAST_NAME
public static final String JSON_PROPERTY_LAST_NAME
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SHOPPER_EMAIL
public static final String JSON_PROPERTY_SHOPPER_EMAIL
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TELEPHONE_NUMBER
public static final String JSON_PROPERTY_TELEPHONE_NUMBER
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TYPE
public static final String JSON_PROPERTY_TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
checkoutAttemptId
public EcontextVoucherDetails checkoutAttemptId(String checkoutAttemptId)
-
getCheckoutAttemptId
public String getCheckoutAttemptId()
The checkout attempt identifier.- Returns:
- checkoutAttemptId
-
setCheckoutAttemptId
public void setCheckoutAttemptId(String checkoutAttemptId)
The checkout attempt identifier.- Parameters:
checkoutAttemptId-
-
firstName
public EcontextVoucherDetails firstName(String firstName)
-
getFirstName
public String getFirstName()
The shopper's first name.- Returns:
- firstName
-
setFirstName
public void setFirstName(String firstName)
The shopper's first name.- Parameters:
firstName-
-
lastName
public EcontextVoucherDetails lastName(String lastName)
-
getLastName
public String getLastName()
The shopper's last name.- Returns:
- lastName
-
setLastName
public void setLastName(String lastName)
The shopper's last name.- Parameters:
lastName-
-
shopperEmail
public EcontextVoucherDetails shopperEmail(String shopperEmail)
-
getShopperEmail
public String getShopperEmail()
The shopper's email.- Returns:
- shopperEmail
-
setShopperEmail
public void setShopperEmail(String shopperEmail)
The shopper's email.- Parameters:
shopperEmail-
-
telephoneNumber
public EcontextVoucherDetails telephoneNumber(String telephoneNumber)
-
getTelephoneNumber
public String getTelephoneNumber()
The shopper's contact number. It must have an international number format, for example **+31 20 779 1846**. Formats like **+31 (0)20 779 1846** or **0031 20 779 1846** are not accepted.- Returns:
- telephoneNumber
-
setTelephoneNumber
public void setTelephoneNumber(String telephoneNumber)
The shopper's contact number. It must have an international number format, for example **+31 20 779 1846**. Formats like **+31 (0)20 779 1846** or **0031 20 779 1846** are not accepted.- Parameters:
telephoneNumber-
-
type
public EcontextVoucherDetails type(EcontextVoucherDetails.TypeEnum type)
-
getType
public EcontextVoucherDetails.TypeEnum getType()
**econtextvoucher**- Returns:
- type
-
setType
public void setType(EcontextVoucherDetails.TypeEnum type)
**econtextvoucher**- Parameters:
type-
-
equals
public boolean equals(Object o)
Return true if this EcontextVoucherDetails object is equal to o.
-
fromJson
public static EcontextVoucherDetails fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of EcontextVoucherDetails given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of EcontextVoucherDetails
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to EcontextVoucherDetails
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of EcontextVoucherDetails to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-