Package com.adyen.model.checkout
Class IdealDetails
- java.lang.Object
-
- com.adyen.model.checkout.IdealDetails
-
public class IdealDetails extends Object
IdealDetails
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classIdealDetails.CustomTypeAdapterFactorystatic classIdealDetails.TypeEnum**ideal**
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_CHECKOUT_ATTEMPT_IDstatic StringSERIALIZED_NAME_ISSUERstatic StringSERIALIZED_NAME_RECURRING_DETAIL_REFERENCEstatic StringSERIALIZED_NAME_STORED_PAYMENT_METHOD_IDstatic StringSERIALIZED_NAME_TYPE
-
Constructor Summary
Constructors Constructor Description IdealDetails()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description IdealDetailscheckoutAttemptId(String checkoutAttemptId)booleanequals(Object o)static IdealDetailsfromJson(String jsonString)Create an instance of IdealDetails given an JSON stringStringgetCheckoutAttemptId()The checkout attempt identifier.StringgetIssuer()The iDEAL issuer value of the shopper's selected bank.StringgetRecurringDetailReference()Deprecated.StringgetStoredPaymentMethodId()This is the `recurringDetailReference` returned in the response when you created the token.IdealDetails.TypeEnumgetType()**ideal**inthashCode()IdealDetailsissuer(String issuer)IdealDetailsrecurringDetailReference(String recurringDetailReference)voidsetCheckoutAttemptId(String checkoutAttemptId)voidsetIssuer(String issuer)voidsetRecurringDetailReference(String recurringDetailReference)voidsetStoredPaymentMethodId(String storedPaymentMethodId)voidsetType(IdealDetails.TypeEnum type)IdealDetailsstoredPaymentMethodId(String storedPaymentMethodId)StringtoJson()Convert an instance of IdealDetails to an JSON stringStringtoString()IdealDetailstype(IdealDetails.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_ISSUER
public static final String SERIALIZED_NAME_ISSUER
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_RECURRING_DETAIL_REFERENCE
public static final String SERIALIZED_NAME_RECURRING_DETAIL_REFERENCE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_STORED_PAYMENT_METHOD_ID
public static final String SERIALIZED_NAME_STORED_PAYMENT_METHOD_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TYPE
public static final String SERIALIZED_NAME_TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
checkoutAttemptId
public IdealDetails checkoutAttemptId(String checkoutAttemptId)
-
getCheckoutAttemptId
public String getCheckoutAttemptId()
The checkout attempt identifier.- Returns:
- checkoutAttemptId
-
setCheckoutAttemptId
public void setCheckoutAttemptId(String checkoutAttemptId)
-
issuer
public IdealDetails issuer(String issuer)
-
getIssuer
public String getIssuer()
The iDEAL issuer value of the shopper's selected bank. Set this to an **id** of an iDEAL issuer to preselect it.- Returns:
- issuer
-
setIssuer
public void setIssuer(String issuer)
-
recurringDetailReference
public IdealDetails recurringDetailReference(String recurringDetailReference)
-
getRecurringDetailReference
@Deprecated public String getRecurringDetailReference()
Deprecated.This is the `recurringDetailReference` returned in the response when you created the token.- Returns:
- recurringDetailReference
-
setRecurringDetailReference
public void setRecurringDetailReference(String recurringDetailReference)
-
storedPaymentMethodId
public IdealDetails storedPaymentMethodId(String storedPaymentMethodId)
-
getStoredPaymentMethodId
public String getStoredPaymentMethodId()
This is the `recurringDetailReference` returned in the response when you created the token.- Returns:
- storedPaymentMethodId
-
setStoredPaymentMethodId
public void setStoredPaymentMethodId(String storedPaymentMethodId)
-
type
public IdealDetails type(IdealDetails.TypeEnum type)
-
getType
public IdealDetails.TypeEnum getType()
**ideal**- Returns:
- type
-
setType
public void setType(IdealDetails.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 IdealDetails
-
fromJson
public static IdealDetails fromJson(String jsonString) throws IOException
Create an instance of IdealDetails given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of IdealDetails
- Throws:
IOException- if the JSON string is invalid with respect to IdealDetails
-
toJson
public String toJson()
Convert an instance of IdealDetails to an JSON string- Returns:
- JSON string
-
-