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.TypeEnum**nativeRedirect**
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_DATAstatic StringJSON_PROPERTY_METHODstatic StringJSON_PROPERTY_NATIVE_REDIRECT_DATAstatic StringJSON_PROPERTY_PAYMENT_METHOD_TYPEstatic StringJSON_PROPERTY_TYPEstatic StringJSON_PROPERTY_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)When the redirect URL must be accessed via POST, use this data to post to the redirect URL.booleanequals(Object o)Return true if this CheckoutNativeRedirectAction object is equal to 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)Specifies the HTTP method, for example GET or POST.CheckoutNativeRedirectActionnativeRedirectData(String nativeRedirectData)Native SDK's redirect data containing the direct issuer link and state data that must be submitted to the /v1/nativeRedirect/redirectResult.CheckoutNativeRedirectActionpaymentMethodType(String paymentMethodType)Specifies the payment method.CheckoutNativeRedirectActionputDataItem(String key, String dataItem)voidsetData(Map<String,String> data)When the redirect URL must be accessed via POST, use this data to post to the redirect URL.voidsetMethod(String method)Specifies the HTTP method, for example GET or POST.voidsetNativeRedirectData(String nativeRedirectData)Native SDK's redirect data containing the direct issuer link and state data that must be submitted to the /v1/nativeRedirect/redirectResult.voidsetPaymentMethodType(String paymentMethodType)Specifies the payment method.voidsetType(CheckoutNativeRedirectAction.TypeEnum type)**nativeRedirect**voidsetUrl(String url)Specifies the URL to redirect to.StringtoJson()Convert an instance of CheckoutNativeRedirectAction to an JSON stringStringtoString()CheckoutNativeRedirectActiontype(CheckoutNativeRedirectAction.TypeEnum type)**nativeRedirect**CheckoutNativeRedirectActionurl(String url)Specifies the URL to redirect to.
-
-
-
Field Detail
-
JSON_PROPERTY_DATA
public static final String JSON_PROPERTY_DATA
- See Also:
- Constant Field Values
-
JSON_PROPERTY_METHOD
public static final String JSON_PROPERTY_METHOD
- See Also:
- Constant Field Values
-
JSON_PROPERTY_NATIVE_REDIRECT_DATA
public static final String JSON_PROPERTY_NATIVE_REDIRECT_DATA
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PAYMENT_METHOD_TYPE
public static final String JSON_PROPERTY_PAYMENT_METHOD_TYPE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TYPE
public static final String JSON_PROPERTY_TYPE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_URL
public static final String JSON_PROPERTY_URL
- See Also:
- Constant Field Values
-
-
Method Detail
-
data
public CheckoutNativeRedirectAction data(Map<String,String> data)
When the redirect URL must be accessed via POST, use this data to post to the redirect URL.- Parameters:
data-- Returns:
- the current
CheckoutNativeRedirectActioninstance, allowing for method chaining
-
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
-
setData
public void setData(Map<String,String> data)
When the redirect URL must be accessed via POST, use this data to post to the redirect URL.- Parameters:
data-
-
method
public CheckoutNativeRedirectAction method(String method)
Specifies the HTTP method, for example GET or POST.- Parameters:
method-- Returns:
- the current
CheckoutNativeRedirectActioninstance, allowing for method chaining
-
getMethod
public String getMethod()
Specifies the HTTP method, for example GET or POST.- Returns:
- method
-
setMethod
public void setMethod(String method)
Specifies the HTTP method, for example GET or POST.- Parameters:
method-
-
nativeRedirectData
public CheckoutNativeRedirectAction nativeRedirectData(String nativeRedirectData)
Native SDK's redirect data containing the direct issuer link and state data that must be submitted to the /v1/nativeRedirect/redirectResult.- Parameters:
nativeRedirectData-- Returns:
- the current
CheckoutNativeRedirectActioninstance, allowing for method chaining
-
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)
Native SDK's redirect data containing the direct issuer link and state data that must be submitted to the /v1/nativeRedirect/redirectResult.- Parameters:
nativeRedirectData-
-
paymentMethodType
public CheckoutNativeRedirectAction paymentMethodType(String paymentMethodType)
Specifies the payment method.- Parameters:
paymentMethodType-- Returns:
- the current
CheckoutNativeRedirectActioninstance, allowing for method chaining
-
getPaymentMethodType
public String getPaymentMethodType()
Specifies the payment method.- Returns:
- paymentMethodType
-
setPaymentMethodType
public void setPaymentMethodType(String paymentMethodType)
Specifies the payment method.- Parameters:
paymentMethodType-
-
type
public CheckoutNativeRedirectAction type(CheckoutNativeRedirectAction.TypeEnum type)
**nativeRedirect**- Parameters:
type-- Returns:
- the current
CheckoutNativeRedirectActioninstance, allowing for method chaining
-
getType
public CheckoutNativeRedirectAction.TypeEnum getType()
**nativeRedirect**- Returns:
- type
-
setType
public void setType(CheckoutNativeRedirectAction.TypeEnum type)
**nativeRedirect**- Parameters:
type-
-
url
public CheckoutNativeRedirectAction url(String url)
Specifies the URL to redirect to.- Parameters:
url-- Returns:
- the current
CheckoutNativeRedirectActioninstance, allowing for method chaining
-
getUrl
public String getUrl()
Specifies the URL to redirect to.- Returns:
- url
-
setUrl
public void setUrl(String url)
Specifies the URL to redirect to.- Parameters:
url-
-
equals
public boolean equals(Object o)
Return true if this CheckoutNativeRedirectAction object is equal to o.
-
fromJson
public static CheckoutNativeRedirectAction fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of CheckoutNativeRedirectAction given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CheckoutNativeRedirectAction
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to CheckoutNativeRedirectAction
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of CheckoutNativeRedirectAction to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-