Package com.adyen.model.checkout
Class DokuDetails
- java.lang.Object
-
- com.adyen.model.checkout.DokuDetails
-
public class DokuDetails extends Object
DokuDetails
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDokuDetails.CustomTypeAdapterFactorystatic classDokuDetails.TypeEnum**doku**
-
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_TYPE
-
Constructor Summary
Constructors Constructor Description DokuDetails()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description DokuDetailscheckoutAttemptId(String checkoutAttemptId)booleanequals(Object o)DokuDetailsfirstName(String firstName)static DokuDetailsfromJson(String jsonString)Create an instance of DokuDetails 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.DokuDetails.TypeEnumgetType()**doku**inthashCode()DokuDetailslastName(String lastName)voidsetCheckoutAttemptId(String checkoutAttemptId)voidsetFirstName(String firstName)voidsetLastName(String lastName)voidsetShopperEmail(String shopperEmail)voidsetType(DokuDetails.TypeEnum type)DokuDetailsshopperEmail(String shopperEmail)StringtoJson()Convert an instance of DokuDetails to an JSON stringStringtoString()DokuDetailstype(DokuDetails.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_TYPE
public static final String SERIALIZED_NAME_TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
checkoutAttemptId
public DokuDetails checkoutAttemptId(String checkoutAttemptId)
-
getCheckoutAttemptId
public String getCheckoutAttemptId()
The checkout attempt identifier.- Returns:
- checkoutAttemptId
-
setCheckoutAttemptId
public void setCheckoutAttemptId(String checkoutAttemptId)
-
firstName
public DokuDetails firstName(String firstName)
-
getFirstName
public String getFirstName()
The shopper's first name.- Returns:
- firstName
-
setFirstName
public void setFirstName(String firstName)
-
lastName
public DokuDetails lastName(String lastName)
-
getLastName
public String getLastName()
The shopper's last name.- Returns:
- lastName
-
setLastName
public void setLastName(String lastName)
-
shopperEmail
public DokuDetails shopperEmail(String shopperEmail)
-
getShopperEmail
public String getShopperEmail()
The shopper's email.- Returns:
- shopperEmail
-
setShopperEmail
public void setShopperEmail(String shopperEmail)
-
type
public DokuDetails type(DokuDetails.TypeEnum type)
-
getType
public DokuDetails.TypeEnum getType()
**doku**- Returns:
- type
-
setType
public void setType(DokuDetails.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 DokuDetails
-
fromJson
public static DokuDetails fromJson(String jsonString) throws IOException
Create an instance of DokuDetails given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of DokuDetails
- Throws:
IOException- if the JSON string is invalid with respect to DokuDetails
-
toJson
public String toJson()
Convert an instance of DokuDetails to an JSON string- Returns:
- JSON string
-
-