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
-
-
-
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)
-
getAuthenticationData
public DetailsRequestAuthenticationData getAuthenticationData()
Get authenticationData- Returns:
- authenticationData
-
setAuthenticationData
public void setAuthenticationData(DetailsRequestAuthenticationData authenticationData)
authenticationData- Parameters:
authenticationData-
-
details
public PaymentDetailsRequest details(PaymentCompletionDetails details)
-
getDetails
public PaymentCompletionDetails getDetails()
Get details- Returns:
- details
-
setDetails
public void setDetails(PaymentCompletionDetails details)
details- Parameters:
details-
-
paymentData
public PaymentDetailsRequest paymentData(String paymentData)
-
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.
-
getThreeDSAuthenticationOnly
@Deprecated public Boolean getThreeDSAuthenticationOnly()
Deprecated.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.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
-
-