Package com.adyen.model.checkout
Class CheckoutSDKAction
- java.lang.Object
-
- com.adyen.model.checkout.CheckoutSDKAction
-
public class CheckoutSDKAction extends Object
CheckoutSDKAction
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCheckoutSDKAction.CustomTypeAdapterFactorystatic classCheckoutSDKAction.TypeEnumThe type of the action.
-
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_SDK_DATAstatic StringSERIALIZED_NAME_TYPEstatic StringSERIALIZED_NAME_URL
-
Constructor Summary
Constructors Constructor Description CheckoutSDKAction()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)static CheckoutSDKActionfromJson(String jsonString)Create an instance of CheckoutSDKAction given an JSON stringStringgetPaymentData()A value that must be submitted to the `/payments/details` endpoint to verify this payment.StringgetPaymentMethodType()Specifies the payment method.Map<String,String>getSdkData()The data to pass to the SDK.CheckoutSDKAction.TypeEnumgetType()The type of the action.StringgetUrl()Specifies the URL to redirect to.inthashCode()CheckoutSDKActionpaymentData(String paymentData)CheckoutSDKActionpaymentMethodType(String paymentMethodType)CheckoutSDKActionputSdkDataItem(String key, String sdkDataItem)CheckoutSDKActionsdkData(Map<String,String> sdkData)voidsetPaymentData(String paymentData)voidsetPaymentMethodType(String paymentMethodType)voidsetSdkData(Map<String,String> sdkData)voidsetType(CheckoutSDKAction.TypeEnum type)voidsetUrl(String url)StringtoJson()Convert an instance of CheckoutSDKAction to an JSON stringStringtoString()CheckoutSDKActiontype(CheckoutSDKAction.TypeEnum type)CheckoutSDKActionurl(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_SDK_DATA
public static final String SERIALIZED_NAME_SDK_DATA
- 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 CheckoutSDKAction 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 CheckoutSDKAction paymentMethodType(String paymentMethodType)
-
getPaymentMethodType
public String getPaymentMethodType()
Specifies the payment method.- Returns:
- paymentMethodType
-
setPaymentMethodType
public void setPaymentMethodType(String paymentMethodType)
-
sdkData
public CheckoutSDKAction sdkData(Map<String,String> sdkData)
-
putSdkDataItem
public CheckoutSDKAction putSdkDataItem(String key, String sdkDataItem)
-
type
public CheckoutSDKAction type(CheckoutSDKAction.TypeEnum type)
-
getType
public CheckoutSDKAction.TypeEnum getType()
The type of the action.- Returns:
- type
-
setType
public void setType(CheckoutSDKAction.TypeEnum type)
-
url
public CheckoutSDKAction 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 CheckoutSDKAction
-
fromJson
public static CheckoutSDKAction fromJson(String jsonString) throws IOException
Create an instance of CheckoutSDKAction given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CheckoutSDKAction
- Throws:
IOException- if the JSON string is invalid with respect to CheckoutSDKAction
-
toJson
public String toJson()
Convert an instance of CheckoutSDKAction to an JSON string- Returns:
- JSON string
-
-