Package com.adyen.model.checkout
Class CheckoutThreeDS2Action
- java.lang.Object
-
- com.adyen.model.checkout.CheckoutThreeDS2Action
-
public class CheckoutThreeDS2Action extends Object
CheckoutThreeDS2Action
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCheckoutThreeDS2Action.TypeEnum**threeDS2**
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_AUTHORISATION_TOKENstatic StringJSON_PROPERTY_PAYMENT_DATAstatic StringJSON_PROPERTY_PAYMENT_METHOD_TYPEstatic StringJSON_PROPERTY_SUBTYPEstatic StringJSON_PROPERTY_TOKENstatic StringJSON_PROPERTY_TYPEstatic StringJSON_PROPERTY_URL
-
Constructor Summary
Constructors Constructor Description CheckoutThreeDS2Action()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CheckoutThreeDS2ActionauthorisationToken(String authorisationToken)booleanequals(Object o)Return true if this CheckoutThreeDS2Action object is equal to o.static CheckoutThreeDS2ActionfromJson(String jsonString)Create an instance of CheckoutThreeDS2Action given an JSON stringStringgetAuthorisationToken()A token needed to authorise a payment.StringgetPaymentData()Encoded payment data.StringgetPaymentMethodType()Specifies the payment method.StringgetSubtype()A subtype of the token.StringgetToken()A token to pass to the 3DS2 Component to get the fingerprint.CheckoutThreeDS2Action.TypeEnumgetType()**threeDS2**StringgetUrl()Specifies the URL to redirect to.inthashCode()CheckoutThreeDS2ActionpaymentData(String paymentData)CheckoutThreeDS2ActionpaymentMethodType(String paymentMethodType)voidsetAuthorisationToken(String authorisationToken)A token needed to authorise a payment.voidsetPaymentData(String paymentData)Encoded payment data.voidsetPaymentMethodType(String paymentMethodType)Specifies the payment method.voidsetSubtype(String subtype)A subtype of the token.voidsetToken(String token)A token to pass to the 3DS2 Component to get the fingerprint.voidsetType(CheckoutThreeDS2Action.TypeEnum type)**threeDS2**voidsetUrl(String url)Specifies the URL to redirect to.CheckoutThreeDS2Actionsubtype(String subtype)StringtoJson()Convert an instance of CheckoutThreeDS2Action to an JSON stringCheckoutThreeDS2Actiontoken(String token)StringtoString()CheckoutThreeDS2Actiontype(CheckoutThreeDS2Action.TypeEnum type)CheckoutThreeDS2Actionurl(String url)
-
-
-
Field Detail
-
JSON_PROPERTY_AUTHORISATION_TOKEN
public static final String JSON_PROPERTY_AUTHORISATION_TOKEN
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PAYMENT_DATA
public static final String JSON_PROPERTY_PAYMENT_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_SUBTYPE
public static final String JSON_PROPERTY_SUBTYPE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TOKEN
public static final String JSON_PROPERTY_TOKEN
- 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
-
authorisationToken
public CheckoutThreeDS2Action authorisationToken(String authorisationToken)
-
getAuthorisationToken
public String getAuthorisationToken()
A token needed to authorise a payment.- Returns:
- authorisationToken
-
setAuthorisationToken
public void setAuthorisationToken(String authorisationToken)
A token needed to authorise a payment.- Parameters:
authorisationToken-
-
paymentData
public CheckoutThreeDS2Action paymentData(String paymentData)
-
getPaymentData
public String getPaymentData()
Encoded payment data.- Returns:
- paymentData
-
setPaymentData
public void setPaymentData(String paymentData)
Encoded payment data.- Parameters:
paymentData-
-
paymentMethodType
public CheckoutThreeDS2Action paymentMethodType(String paymentMethodType)
-
getPaymentMethodType
public String getPaymentMethodType()
Specifies the payment method.- Returns:
- paymentMethodType
-
setPaymentMethodType
public void setPaymentMethodType(String paymentMethodType)
Specifies the payment method.- Parameters:
paymentMethodType-
-
subtype
public CheckoutThreeDS2Action subtype(String subtype)
-
getSubtype
public String getSubtype()
A subtype of the token.- Returns:
- subtype
-
setSubtype
public void setSubtype(String subtype)
A subtype of the token.- Parameters:
subtype-
-
token
public CheckoutThreeDS2Action token(String token)
-
getToken
public String getToken()
A token to pass to the 3DS2 Component to get the fingerprint.- Returns:
- token
-
setToken
public void setToken(String token)
A token to pass to the 3DS2 Component to get the fingerprint.- Parameters:
token-
-
type
public CheckoutThreeDS2Action type(CheckoutThreeDS2Action.TypeEnum type)
-
getType
public CheckoutThreeDS2Action.TypeEnum getType()
**threeDS2**- Returns:
- type
-
setType
public void setType(CheckoutThreeDS2Action.TypeEnum type)
**threeDS2**- Parameters:
type-
-
url
public CheckoutThreeDS2Action url(String url)
-
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 CheckoutThreeDS2Action object is equal to o.
-
fromJson
public static CheckoutThreeDS2Action fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of CheckoutThreeDS2Action given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CheckoutThreeDS2Action
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to CheckoutThreeDS2Action
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of CheckoutThreeDS2Action to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-