Package com.adyen.model.checkout
Class CheckoutAwaitAction
- java.lang.Object
-
- com.adyen.model.checkout.CheckoutAwaitAction
-
public class CheckoutAwaitAction extends Object
CheckoutAwaitAction
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCheckoutAwaitAction.CustomTypeAdapterFactorystatic classCheckoutAwaitAction.TypeEnum**await**
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_PAYMENT_DATAstatic StringSERIALIZED_NAME_PAYMENT_METHOD_TYPEstatic StringSERIALIZED_NAME_TYPEstatic StringSERIALIZED_NAME_URL
-
Constructor Summary
Constructors Constructor Description CheckoutAwaitAction()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)static CheckoutAwaitActionfromJson(String jsonString)Create an instance of CheckoutAwaitAction given an JSON stringStringgetPaymentData()A value that must be submitted to the `/payments/details` endpoint to verify this payment.StringgetPaymentMethodType()Specifies the payment method.CheckoutAwaitAction.TypeEnumgetType()**await**StringgetUrl()Specifies the URL to redirect to.inthashCode()CheckoutAwaitActionpaymentData(String paymentData)CheckoutAwaitActionpaymentMethodType(String paymentMethodType)voidsetPaymentData(String paymentData)voidsetPaymentMethodType(String paymentMethodType)voidsetType(CheckoutAwaitAction.TypeEnum type)voidsetUrl(String url)StringtoJson()Convert an instance of CheckoutAwaitAction to an JSON stringStringtoString()CheckoutAwaitActiontype(CheckoutAwaitAction.TypeEnum type)CheckoutAwaitActionurl(String url)static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_PAYMENT_DATA
public static final String SERIALIZED_NAME_PAYMENT_DATA
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_PAYMENT_METHOD_TYPE
public static final String SERIALIZED_NAME_PAYMENT_METHOD_TYPE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TYPE
public static final String SERIALIZED_NAME_TYPE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_URL
public static final String SERIALIZED_NAME_URL
- See Also:
- Constant Field Values
-
-
Method Detail
-
paymentData
public CheckoutAwaitAction paymentData(String paymentData)
-
getPaymentData
public String getPaymentData()
A value that must be submitted to the `/payments/details` endpoint to verify this payment.- Returns:
- paymentData
-
setPaymentData
public void setPaymentData(String paymentData)
-
paymentMethodType
public CheckoutAwaitAction paymentMethodType(String paymentMethodType)
-
getPaymentMethodType
public String getPaymentMethodType()
Specifies the payment method.- Returns:
- paymentMethodType
-
setPaymentMethodType
public void setPaymentMethodType(String paymentMethodType)
-
type
public CheckoutAwaitAction type(CheckoutAwaitAction.TypeEnum type)
-
getType
public CheckoutAwaitAction.TypeEnum getType()
**await**- Returns:
- type
-
setType
public void setType(CheckoutAwaitAction.TypeEnum type)
-
url
public CheckoutAwaitAction url(String url)
-
getUrl
public String getUrl()
Specifies the URL to redirect to.- Returns:
- url
-
setUrl
public void setUrl(String url)
-
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 CheckoutAwaitAction
-
fromJson
public static CheckoutAwaitAction fromJson(String jsonString) throws IOException
Create an instance of CheckoutAwaitAction given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CheckoutAwaitAction
- Throws:
IOException- if the JSON string is invalid with respect to CheckoutAwaitAction
-
toJson
public String toJson()
Convert an instance of CheckoutAwaitAction to an JSON string- Returns:
- JSON string
-
-