Package com.adyen.model.checkout
Class CheckoutNativeRedirectAction
- java.lang.Object
-
- com.adyen.model.checkout.CheckoutNativeRedirectAction
-
public class CheckoutNativeRedirectAction extends Object
CheckoutNativeRedirectAction
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCheckoutNativeRedirectAction.CustomTypeAdapterFactorystatic classCheckoutNativeRedirectAction.TypeEnum**nativeRedirect**
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_DATAstatic StringSERIALIZED_NAME_METHODstatic StringSERIALIZED_NAME_NATIVE_REDIRECT_DATAstatic StringSERIALIZED_NAME_PAYMENT_METHOD_TYPEstatic StringSERIALIZED_NAME_TYPEstatic StringSERIALIZED_NAME_URL
-
Constructor Summary
Constructors Constructor Description CheckoutNativeRedirectAction()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CheckoutNativeRedirectActiondata(Map<String,String> data)booleanequals(Object o)static CheckoutNativeRedirectActionfromJson(String jsonString)Create an instance of CheckoutNativeRedirectAction given an JSON stringMap<String,String>getData()When the redirect URL must be accessed via POST, use this data to post to the redirect URL.StringgetMethod()Specifies the HTTP method, for example GET or POST.StringgetNativeRedirectData()Native SDK's redirect data containing the direct issuer link and state data that must be submitted to the /v1/nativeRedirect/redirectResult.StringgetPaymentMethodType()Specifies the payment method.CheckoutNativeRedirectAction.TypeEnumgetType()**nativeRedirect**StringgetUrl()Specifies the URL to redirect to.inthashCode()CheckoutNativeRedirectActionmethod(String method)CheckoutNativeRedirectActionnativeRedirectData(String nativeRedirectData)CheckoutNativeRedirectActionpaymentMethodType(String paymentMethodType)CheckoutNativeRedirectActionputDataItem(String key, String dataItem)voidsetData(Map<String,String> data)voidsetMethod(String method)voidsetNativeRedirectData(String nativeRedirectData)voidsetPaymentMethodType(String paymentMethodType)voidsetType(CheckoutNativeRedirectAction.TypeEnum type)voidsetUrl(String url)StringtoJson()Convert an instance of CheckoutNativeRedirectAction to an JSON stringStringtoString()CheckoutNativeRedirectActiontype(CheckoutNativeRedirectAction.TypeEnum type)CheckoutNativeRedirectActionurl(String url)static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_DATA
public static final String SERIALIZED_NAME_DATA
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_METHOD
public static final String SERIALIZED_NAME_METHOD
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_NATIVE_REDIRECT_DATA
public static final String SERIALIZED_NAME_NATIVE_REDIRECT_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
-
data
public CheckoutNativeRedirectAction data(Map<String,String> data)
-
putDataItem
public CheckoutNativeRedirectAction putDataItem(String key, String dataItem)
-
getData
public Map<String,String> getData()
When the redirect URL must be accessed via POST, use this data to post to the redirect URL.- Returns:
- data
-
method
public CheckoutNativeRedirectAction method(String method)
-
getMethod
public String getMethod()
Specifies the HTTP method, for example GET or POST.- Returns:
- method
-
setMethod
public void setMethod(String method)
-
nativeRedirectData
public CheckoutNativeRedirectAction nativeRedirectData(String nativeRedirectData)
-
getNativeRedirectData
public String getNativeRedirectData()
Native SDK's redirect data containing the direct issuer link and state data that must be submitted to the /v1/nativeRedirect/redirectResult.- Returns:
- nativeRedirectData
-
setNativeRedirectData
public void setNativeRedirectData(String nativeRedirectData)
-
paymentMethodType
public CheckoutNativeRedirectAction paymentMethodType(String paymentMethodType)
-
getPaymentMethodType
public String getPaymentMethodType()
Specifies the payment method.- Returns:
- paymentMethodType
-
setPaymentMethodType
public void setPaymentMethodType(String paymentMethodType)
-
type
public CheckoutNativeRedirectAction type(CheckoutNativeRedirectAction.TypeEnum type)
-
getType
public CheckoutNativeRedirectAction.TypeEnum getType()
**nativeRedirect**- Returns:
- type
-
setType
public void setType(CheckoutNativeRedirectAction.TypeEnum type)
-
url
public CheckoutNativeRedirectAction 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 CheckoutNativeRedirectAction
-
fromJson
public static CheckoutNativeRedirectAction fromJson(String jsonString) throws IOException
Create an instance of CheckoutNativeRedirectAction given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CheckoutNativeRedirectAction
- Throws:
IOException- if the JSON string is invalid with respect to CheckoutNativeRedirectAction
-
toJson
public String toJson()
Convert an instance of CheckoutNativeRedirectAction to an JSON string- Returns:
- JSON string
-
-