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)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)CheckoutRedirectActionpaymentMethodType(String paymentMethodType)CheckoutRedirectActionputDataItem(String key, String dataItem)voidsetData(Map<String,String> data)voidsetMethod(String method)voidsetPaymentMethodType(String paymentMethodType)voidsetType(CheckoutRedirectAction.TypeEnum type)voidsetUrl(String url)StringtoJson()Convert an instance of CheckoutRedirectAction to an JSON stringStringtoString()CheckoutRedirectActiontype(CheckoutRedirectAction.TypeEnum type)CheckoutRedirectActionurl(String url)
-
-
-
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)
-
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
-
method
public CheckoutRedirectAction method(String method)
-
getMethod
public String getMethod()
Specifies the HTTP method, for example GET or POST.- Returns:
- method
-
setMethod
public void setMethod(String method)
-
paymentMethodType
public CheckoutRedirectAction paymentMethodType(String paymentMethodType)
-
getPaymentMethodType
public String getPaymentMethodType()
Specifies the payment method.- Returns:
- paymentMethodType
-
setPaymentMethodType
public void setPaymentMethodType(String paymentMethodType)
-
type
public CheckoutRedirectAction type(CheckoutRedirectAction.TypeEnum type)
-
getType
public CheckoutRedirectAction.TypeEnum getType()
**redirect**- Returns:
- type
-
setType
public void setType(CheckoutRedirectAction.TypeEnum type)
-
url
public CheckoutRedirectAction url(String url)
-
getUrl
public String getUrl()
Specifies the URL to redirect to.- Returns:
- url
-
setUrl
public void setUrl(String 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
-
-