Package com.adyen.model.checkout
Class PaymentDetailsRequest
- java.lang.Object
-
- com.adyen.model.checkout.PaymentDetailsRequest
-
public class PaymentDetailsRequest extends Object
PaymentDetailsRequest
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_AUTHENTICATION_DATAstatic StringJSON_PROPERTY_DETAILSstatic StringJSON_PROPERTY_PAYMENT_DATAstatic StringJSON_PROPERTY_THREE_D_S_AUTHENTICATION_ONLY
-
Constructor Summary
Constructors Constructor Description PaymentDetailsRequest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description PaymentDetailsRequestauthenticationData(DetailsRequestAuthenticationData authenticationData)authenticationDataPaymentDetailsRequestdetails(PaymentCompletionDetails details)detailsbooleanequals(Object o)Return true if this PaymentDetailsRequest object is equal to o.static PaymentDetailsRequestfromJson(String jsonString)Create an instance of PaymentDetailsRequest given an JSON stringDetailsRequestAuthenticationDatagetAuthenticationData()authenticationDataPaymentCompletionDetailsgetDetails()detailsStringgetPaymentData()Encoded payment data.BooleangetThreeDSAuthenticationOnly()Deprecated.since Adyen Checkout API v69 Use `authenticationData.authenticationOnly` instead.inthashCode()PaymentDetailsRequestpaymentData(String paymentData)Encoded payment data.voidsetAuthenticationData(DetailsRequestAuthenticationData authenticationData)authenticationDatavoidsetDetails(PaymentCompletionDetails details)detailsvoidsetPaymentData(String paymentData)Encoded payment data.voidsetThreeDSAuthenticationOnly(Boolean threeDSAuthenticationOnly)Deprecated.since Adyen Checkout API v69 Use `authenticationData.authenticationOnly` instead.PaymentDetailsRequestthreeDSAuthenticationOnly(Boolean threeDSAuthenticationOnly)Deprecated.since Adyen Checkout API v69 Use `authenticationData.authenticationOnly` instead.StringtoJson()Convert an instance of PaymentDetailsRequest to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_AUTHENTICATION_DATA
public static final String JSON_PROPERTY_AUTHENTICATION_DATA
- See Also:
- Constant Field Values
-
JSON_PROPERTY_DETAILS
public static final String JSON_PROPERTY_DETAILS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PAYMENT_DATA
public static final String JSON_PROPERTY_PAYMENT_DATA
- See Also:
- Constant Field Values
-
JSON_PROPERTY_THREE_D_S_AUTHENTICATION_ONLY
public static final String JSON_PROPERTY_THREE_D_S_AUTHENTICATION_ONLY
- See Also:
- Constant Field Values
-
-
Method Detail
-
authenticationData
public PaymentDetailsRequest authenticationData(DetailsRequestAuthenticationData authenticationData)
authenticationData- Parameters:
authenticationData-- Returns:
- the current
PaymentDetailsRequestinstance, allowing for method chaining
-
getAuthenticationData
public DetailsRequestAuthenticationData getAuthenticationData()
authenticationData- Returns:
- authenticationData
-
setAuthenticationData
public void setAuthenticationData(DetailsRequestAuthenticationData authenticationData)
authenticationData- Parameters:
authenticationData-
-
details
public PaymentDetailsRequest details(PaymentCompletionDetails details)
details- Parameters:
details-- Returns:
- the current
PaymentDetailsRequestinstance, allowing for method chaining
-
getDetails
public PaymentCompletionDetails getDetails()
details- Returns:
- details
-
setDetails
public void setDetails(PaymentCompletionDetails details)
details- Parameters:
details-
-
paymentData
public PaymentDetailsRequest paymentData(String paymentData)
Encoded payment data. For [authorizing a payment after using 3D Secure 2 Authentication-only](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only/#authorise-the-payment-with-adyen): If you received `resultCode`: **AuthenticationNotRequired** in the `/payments` response, use the `threeDSPaymentData` from the same response. If you received `resultCode`: **AuthenticationFinished** in the `/payments` response, use the `action.paymentData` from the same response.- Parameters:
paymentData-- Returns:
- the current
PaymentDetailsRequestinstance, allowing for method chaining
-
getPaymentData
public String getPaymentData()
Encoded payment data. For [authorizing a payment after using 3D Secure 2 Authentication-only](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only/#authorise-the-payment-with-adyen): If you received `resultCode`: **AuthenticationNotRequired** in the `/payments` response, use the `threeDSPaymentData` from the same response. If you received `resultCode`: **AuthenticationFinished** in the `/payments` response, use the `action.paymentData` from the same response.- Returns:
- paymentData
-
setPaymentData
public void setPaymentData(String paymentData)
Encoded payment data. For [authorizing a payment after using 3D Secure 2 Authentication-only](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only/#authorise-the-payment-with-adyen): If you received `resultCode`: **AuthenticationNotRequired** in the `/payments` response, use the `threeDSPaymentData` from the same response. If you received `resultCode`: **AuthenticationFinished** in the `/payments` response, use the `action.paymentData` from the same response.- Parameters:
paymentData-
-
threeDSAuthenticationOnly
@Deprecated public PaymentDetailsRequest threeDSAuthenticationOnly(Boolean threeDSAuthenticationOnly)
Deprecated.since Adyen Checkout API v69 Use `authenticationData.authenticationOnly` instead.Change the `authenticationOnly` indicator originally set in the `/payments` request. Only needs to be set if you want to modify the value set previously.- Parameters:
threeDSAuthenticationOnly-- Returns:
- the current
PaymentDetailsRequestinstance, allowing for method chaining
-
getThreeDSAuthenticationOnly
@Deprecated public Boolean getThreeDSAuthenticationOnly()
Deprecated.since Adyen Checkout API v69 Use `authenticationData.authenticationOnly` instead.Change the `authenticationOnly` indicator originally set in the `/payments` request. Only needs to be set if you want to modify the value set previously.- Returns:
- threeDSAuthenticationOnly
-
setThreeDSAuthenticationOnly
@Deprecated public void setThreeDSAuthenticationOnly(Boolean threeDSAuthenticationOnly)
Deprecated.since Adyen Checkout API v69 Use `authenticationData.authenticationOnly` instead.Change the `authenticationOnly` indicator originally set in the `/payments` request. Only needs to be set if you want to modify the value set previously.- Parameters:
threeDSAuthenticationOnly-
-
equals
public boolean equals(Object o)
Return true if this PaymentDetailsRequest object is equal to o.
-
fromJson
public static PaymentDetailsRequest fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of PaymentDetailsRequest given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of PaymentDetailsRequest
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to PaymentDetailsRequest
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of PaymentDetailsRequest to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-