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.CustomTypeAdapterFactorystatic classEcontextVoucherDetails.TypeEnum**econtextvoucher**
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_CHECKOUT_ATTEMPT_IDstatic StringSERIALIZED_NAME_FIRST_NAMEstatic StringSERIALIZED_NAME_LAST_NAMEstatic StringSERIALIZED_NAME_SHOPPER_EMAILstatic StringSERIALIZED_NAME_TELEPHONE_NUMBERstatic StringSERIALIZED_NAME_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)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)voidsetFirstName(String firstName)voidsetLastName(String lastName)voidsetShopperEmail(String shopperEmail)voidsetTelephoneNumber(String telephoneNumber)voidsetType(EcontextVoucherDetails.TypeEnum type)EcontextVoucherDetailsshopperEmail(String shopperEmail)EcontextVoucherDetailstelephoneNumber(String telephoneNumber)StringtoJson()Convert an instance of EcontextVoucherDetails to an JSON stringStringtoString()EcontextVoucherDetailstype(EcontextVoucherDetails.TypeEnum type)static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_CHECKOUT_ATTEMPT_ID
public static final String SERIALIZED_NAME_CHECKOUT_ATTEMPT_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_FIRST_NAME
public static final String SERIALIZED_NAME_FIRST_NAME
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_LAST_NAME
public static final String SERIALIZED_NAME_LAST_NAME
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SHOPPER_EMAIL
public static final String SERIALIZED_NAME_SHOPPER_EMAIL
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TELEPHONE_NUMBER
public static final String SERIALIZED_NAME_TELEPHONE_NUMBER
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TYPE
public static final String SERIALIZED_NAME_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)
-
firstName
public EcontextVoucherDetails firstName(String firstName)
-
getFirstName
public String getFirstName()
The shopper's first name.- Returns:
- firstName
-
setFirstName
public void setFirstName(String firstName)
-
lastName
public EcontextVoucherDetails lastName(String lastName)
-
getLastName
public String getLastName()
The shopper's last name.- Returns:
- lastName
-
setLastName
public void setLastName(String lastName)
-
shopperEmail
public EcontextVoucherDetails shopperEmail(String shopperEmail)
-
getShopperEmail
public String getShopperEmail()
The shopper's email.- Returns:
- shopperEmail
-
setShopperEmail
public void setShopperEmail(String 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)
-
type
public EcontextVoucherDetails type(EcontextVoucherDetails.TypeEnum type)
-
getType
public EcontextVoucherDetails.TypeEnum getType()
**econtextvoucher**- Returns:
- type
-
setType
public void setType(EcontextVoucherDetails.TypeEnum type)
-
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 EcontextVoucherDetails
-
fromJson
public static EcontextVoucherDetails fromJson(String jsonString) throws IOException
Create an instance of EcontextVoucherDetails given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of EcontextVoucherDetails
- Throws:
IOException- if the JSON string is invalid with respect to EcontextVoucherDetails
-
toJson
public String toJson()
Convert an instance of EcontextVoucherDetails to an JSON string- Returns:
- JSON string
-
-