Package com.adyen.model.checkout
Class CheckoutRedirectAction
- java.lang.Object
-
- com.adyen.model.checkout.CheckoutRedirectAction
-
public class CheckoutRedirectAction extends Object
CheckoutRedirectAction
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCheckoutRedirectAction.TypeEnum**redirect**
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_DATAstatic StringJSON_PROPERTY_METHODstatic StringJSON_PROPERTY_PAYMENT_METHOD_TYPEstatic StringJSON_PROPERTY_TYPEstatic StringJSON_PROPERTY_URL
-
Constructor Summary
Constructors Constructor Description CheckoutRedirectAction()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CheckoutRedirectActiondata(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 CheckoutRedirectAction object is equal to o.static CheckoutRedirectActionfromJson(String jsonString)Create an instance of CheckoutRedirectAction 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.StringgetPaymentMethodType()Specifies the payment method.CheckoutRedirectAction.TypeEnumgetType()**redirect**StringgetUrl()Specifies the URL to redirect to.inthashCode()CheckoutRedirectActionmethod(String method)Specifies the HTTP method, for example GET or POST.CheckoutRedirectActionpaymentMethodType(String paymentMethodType)Specifies the payment method.CheckoutRedirectActionputDataItem(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.voidsetPaymentMethodType(String paymentMethodType)Specifies the payment method.voidsetType(CheckoutRedirectAction.TypeEnum type)**redirect**voidsetUrl(String url)Specifies the URL to redirect to.StringtoJson()Convert an instance of CheckoutRedirectAction to an JSON stringStringtoString()CheckoutRedirectActiontype(CheckoutRedirectAction.TypeEnum type)**redirect**CheckoutRedirectActionurl(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_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 CheckoutRedirectAction 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
CheckoutRedirectActioninstance, allowing for method chaining
-
putDataItem
public CheckoutRedirectAction 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 CheckoutRedirectAction method(String method)
Specifies the HTTP method, for example GET or POST.- Parameters:
method-- Returns:
- the current
CheckoutRedirectActioninstance, 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-
-
paymentMethodType
public CheckoutRedirectAction paymentMethodType(String paymentMethodType)
Specifies the payment method.- Parameters:
paymentMethodType-- Returns:
- the current
CheckoutRedirectActioninstance, 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 CheckoutRedirectAction type(CheckoutRedirectAction.TypeEnum type)
**redirect**- Parameters:
type-- Returns:
- the current
CheckoutRedirectActioninstance, allowing for method chaining
-
getType
public CheckoutRedirectAction.TypeEnum getType()
**redirect**- Returns:
- type
-
setType
public void setType(CheckoutRedirectAction.TypeEnum type)
**redirect**- Parameters:
type-
-
url
public CheckoutRedirectAction url(String url)
Specifies the URL to redirect to.- Parameters:
url-- Returns:
- the current
CheckoutRedirectActioninstance, 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 CheckoutRedirectAction object is equal to o.
-
fromJson
public static CheckoutRedirectAction fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of CheckoutRedirectAction given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CheckoutRedirectAction
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to CheckoutRedirectAction
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of CheckoutRedirectAction to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-