
com.adyen.model.checkout.ThreeDSRequestorPriorAuthenticationInfo Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of adyen-java-api-library Show documentation
Show all versions of adyen-java-api-library Show documentation
Adyen API Client Library for Java
/*
* Adyen Checkout API
*
* The version of the OpenAPI document: 71
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package com.adyen.model.checkout;
import java.util.Objects;
import java.util.Map;
import java.util.HashMap;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.core.JsonProcessingException;
/**
* ThreeDSRequestorPriorAuthenticationInfo
*/
@JsonPropertyOrder({
ThreeDSRequestorPriorAuthenticationInfo.JSON_PROPERTY_THREE_D_S_REQ_PRIOR_AUTH_DATA,
ThreeDSRequestorPriorAuthenticationInfo.JSON_PROPERTY_THREE_D_S_REQ_PRIOR_AUTH_METHOD,
ThreeDSRequestorPriorAuthenticationInfo.JSON_PROPERTY_THREE_D_S_REQ_PRIOR_AUTH_TIMESTAMP,
ThreeDSRequestorPriorAuthenticationInfo.JSON_PROPERTY_THREE_D_S_REQ_PRIOR_REF
})
public class ThreeDSRequestorPriorAuthenticationInfo {
public static final String JSON_PROPERTY_THREE_D_S_REQ_PRIOR_AUTH_DATA = "threeDSReqPriorAuthData";
private String threeDSReqPriorAuthData;
/**
* Mechanism used by the Cardholder to previously authenticate to the 3DS Requestor. Allowed values: * **01** — Frictionless authentication occurred by ACS. * **02** — Cardholder challenge occurred by ACS. * **03** — AVS verified. * **04** — Other issuer methods.
*/
public enum ThreeDSReqPriorAuthMethodEnum {
_01(String.valueOf("01")),
_02(String.valueOf("02")),
_03(String.valueOf("03")),
_04(String.valueOf("04"));
private String value;
ThreeDSReqPriorAuthMethodEnum(String value) {
this.value = value;
}
@JsonValue
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
@JsonCreator
public static ThreeDSReqPriorAuthMethodEnum fromValue(String value) {
for (ThreeDSReqPriorAuthMethodEnum b : ThreeDSReqPriorAuthMethodEnum.values()) {
if (b.value.equals(value)) {
return b;
}
}
throw new IllegalArgumentException("Unexpected value '" + value + "'");
}
}
public static final String JSON_PROPERTY_THREE_D_S_REQ_PRIOR_AUTH_METHOD = "threeDSReqPriorAuthMethod";
private ThreeDSReqPriorAuthMethodEnum threeDSReqPriorAuthMethod;
public static final String JSON_PROPERTY_THREE_D_S_REQ_PRIOR_AUTH_TIMESTAMP = "threeDSReqPriorAuthTimestamp";
private String threeDSReqPriorAuthTimestamp;
public static final String JSON_PROPERTY_THREE_D_S_REQ_PRIOR_REF = "threeDSReqPriorRef";
private String threeDSReqPriorRef;
public ThreeDSRequestorPriorAuthenticationInfo() {
}
/**
* Data that documents and supports a specific authentication process. Maximum length: 2048 bytes.
*
* @param threeDSReqPriorAuthData Data that documents and supports a specific authentication process. Maximum length: 2048 bytes.
* @return the current {@code ThreeDSRequestorPriorAuthenticationInfo} instance, allowing for method chaining
*/
public ThreeDSRequestorPriorAuthenticationInfo threeDSReqPriorAuthData(String threeDSReqPriorAuthData) {
this.threeDSReqPriorAuthData = threeDSReqPriorAuthData;
return this;
}
/**
* Data that documents and supports a specific authentication process. Maximum length: 2048 bytes.
* @return threeDSReqPriorAuthData Data that documents and supports a specific authentication process. Maximum length: 2048 bytes.
*/
@JsonProperty(JSON_PROPERTY_THREE_D_S_REQ_PRIOR_AUTH_DATA)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getThreeDSReqPriorAuthData() {
return threeDSReqPriorAuthData;
}
/**
* Data that documents and supports a specific authentication process. Maximum length: 2048 bytes.
*
* @param threeDSReqPriorAuthData Data that documents and supports a specific authentication process. Maximum length: 2048 bytes.
*/
@JsonProperty(JSON_PROPERTY_THREE_D_S_REQ_PRIOR_AUTH_DATA)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setThreeDSReqPriorAuthData(String threeDSReqPriorAuthData) {
this.threeDSReqPriorAuthData = threeDSReqPriorAuthData;
}
/**
* Mechanism used by the Cardholder to previously authenticate to the 3DS Requestor. Allowed values: * **01** — Frictionless authentication occurred by ACS. * **02** — Cardholder challenge occurred by ACS. * **03** — AVS verified. * **04** — Other issuer methods.
*
* @param threeDSReqPriorAuthMethod Mechanism used by the Cardholder to previously authenticate to the 3DS Requestor. Allowed values: * **01** — Frictionless authentication occurred by ACS. * **02** — Cardholder challenge occurred by ACS. * **03** — AVS verified. * **04** — Other issuer methods.
* @return the current {@code ThreeDSRequestorPriorAuthenticationInfo} instance, allowing for method chaining
*/
public ThreeDSRequestorPriorAuthenticationInfo threeDSReqPriorAuthMethod(ThreeDSReqPriorAuthMethodEnum threeDSReqPriorAuthMethod) {
this.threeDSReqPriorAuthMethod = threeDSReqPriorAuthMethod;
return this;
}
/**
* Mechanism used by the Cardholder to previously authenticate to the 3DS Requestor. Allowed values: * **01** — Frictionless authentication occurred by ACS. * **02** — Cardholder challenge occurred by ACS. * **03** — AVS verified. * **04** — Other issuer methods.
* @return threeDSReqPriorAuthMethod Mechanism used by the Cardholder to previously authenticate to the 3DS Requestor. Allowed values: * **01** — Frictionless authentication occurred by ACS. * **02** — Cardholder challenge occurred by ACS. * **03** — AVS verified. * **04** — Other issuer methods.
*/
@JsonProperty(JSON_PROPERTY_THREE_D_S_REQ_PRIOR_AUTH_METHOD)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public ThreeDSReqPriorAuthMethodEnum getThreeDSReqPriorAuthMethod() {
return threeDSReqPriorAuthMethod;
}
/**
* Mechanism used by the Cardholder to previously authenticate to the 3DS Requestor. Allowed values: * **01** — Frictionless authentication occurred by ACS. * **02** — Cardholder challenge occurred by ACS. * **03** — AVS verified. * **04** — Other issuer methods.
*
* @param threeDSReqPriorAuthMethod Mechanism used by the Cardholder to previously authenticate to the 3DS Requestor. Allowed values: * **01** — Frictionless authentication occurred by ACS. * **02** — Cardholder challenge occurred by ACS. * **03** — AVS verified. * **04** — Other issuer methods.
*/
@JsonProperty(JSON_PROPERTY_THREE_D_S_REQ_PRIOR_AUTH_METHOD)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setThreeDSReqPriorAuthMethod(ThreeDSReqPriorAuthMethodEnum threeDSReqPriorAuthMethod) {
this.threeDSReqPriorAuthMethod = threeDSReqPriorAuthMethod;
}
/**
* Date and time in UTC of the prior cardholder authentication. Format: YYYYMMDDHHMM
*
* @param threeDSReqPriorAuthTimestamp Date and time in UTC of the prior cardholder authentication. Format: YYYYMMDDHHMM
* @return the current {@code ThreeDSRequestorPriorAuthenticationInfo} instance, allowing for method chaining
*/
public ThreeDSRequestorPriorAuthenticationInfo threeDSReqPriorAuthTimestamp(String threeDSReqPriorAuthTimestamp) {
this.threeDSReqPriorAuthTimestamp = threeDSReqPriorAuthTimestamp;
return this;
}
/**
* Date and time in UTC of the prior cardholder authentication. Format: YYYYMMDDHHMM
* @return threeDSReqPriorAuthTimestamp Date and time in UTC of the prior cardholder authentication. Format: YYYYMMDDHHMM
*/
@JsonProperty(JSON_PROPERTY_THREE_D_S_REQ_PRIOR_AUTH_TIMESTAMP)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getThreeDSReqPriorAuthTimestamp() {
return threeDSReqPriorAuthTimestamp;
}
/**
* Date and time in UTC of the prior cardholder authentication. Format: YYYYMMDDHHMM
*
* @param threeDSReqPriorAuthTimestamp Date and time in UTC of the prior cardholder authentication. Format: YYYYMMDDHHMM
*/
@JsonProperty(JSON_PROPERTY_THREE_D_S_REQ_PRIOR_AUTH_TIMESTAMP)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setThreeDSReqPriorAuthTimestamp(String threeDSReqPriorAuthTimestamp) {
this.threeDSReqPriorAuthTimestamp = threeDSReqPriorAuthTimestamp;
}
/**
* This data element provides additional information to the ACS to determine the best approach for handing a request. This data element contains an ACS Transaction ID for a prior authenticated transaction. For example, the first recurring transaction that was authenticated with the cardholder. Length: 30 characters.
*
* @param threeDSReqPriorRef This data element provides additional information to the ACS to determine the best approach for handing a request. This data element contains an ACS Transaction ID for a prior authenticated transaction. For example, the first recurring transaction that was authenticated with the cardholder. Length: 30 characters.
* @return the current {@code ThreeDSRequestorPriorAuthenticationInfo} instance, allowing for method chaining
*/
public ThreeDSRequestorPriorAuthenticationInfo threeDSReqPriorRef(String threeDSReqPriorRef) {
this.threeDSReqPriorRef = threeDSReqPriorRef;
return this;
}
/**
* This data element provides additional information to the ACS to determine the best approach for handing a request. This data element contains an ACS Transaction ID for a prior authenticated transaction. For example, the first recurring transaction that was authenticated with the cardholder. Length: 30 characters.
* @return threeDSReqPriorRef This data element provides additional information to the ACS to determine the best approach for handing a request. This data element contains an ACS Transaction ID for a prior authenticated transaction. For example, the first recurring transaction that was authenticated with the cardholder. Length: 30 characters.
*/
@JsonProperty(JSON_PROPERTY_THREE_D_S_REQ_PRIOR_REF)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getThreeDSReqPriorRef() {
return threeDSReqPriorRef;
}
/**
* This data element provides additional information to the ACS to determine the best approach for handing a request. This data element contains an ACS Transaction ID for a prior authenticated transaction. For example, the first recurring transaction that was authenticated with the cardholder. Length: 30 characters.
*
* @param threeDSReqPriorRef This data element provides additional information to the ACS to determine the best approach for handing a request. This data element contains an ACS Transaction ID for a prior authenticated transaction. For example, the first recurring transaction that was authenticated with the cardholder. Length: 30 characters.
*/
@JsonProperty(JSON_PROPERTY_THREE_D_S_REQ_PRIOR_REF)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setThreeDSReqPriorRef(String threeDSReqPriorRef) {
this.threeDSReqPriorRef = threeDSReqPriorRef;
}
/**
* Return true if this ThreeDSRequestorPriorAuthenticationInfo object is equal to o.
*/
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
ThreeDSRequestorPriorAuthenticationInfo threeDSRequestorPriorAuthenticationInfo = (ThreeDSRequestorPriorAuthenticationInfo) o;
return Objects.equals(this.threeDSReqPriorAuthData, threeDSRequestorPriorAuthenticationInfo.threeDSReqPriorAuthData) &&
Objects.equals(this.threeDSReqPriorAuthMethod, threeDSRequestorPriorAuthenticationInfo.threeDSReqPriorAuthMethod) &&
Objects.equals(this.threeDSReqPriorAuthTimestamp, threeDSRequestorPriorAuthenticationInfo.threeDSReqPriorAuthTimestamp) &&
Objects.equals(this.threeDSReqPriorRef, threeDSRequestorPriorAuthenticationInfo.threeDSReqPriorRef);
}
@Override
public int hashCode() {
return Objects.hash(threeDSReqPriorAuthData, threeDSReqPriorAuthMethod, threeDSReqPriorAuthTimestamp, threeDSReqPriorRef);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ThreeDSRequestorPriorAuthenticationInfo {\n");
sb.append(" threeDSReqPriorAuthData: ").append(toIndentedString(threeDSReqPriorAuthData)).append("\n");
sb.append(" threeDSReqPriorAuthMethod: ").append(toIndentedString(threeDSReqPriorAuthMethod)).append("\n");
sb.append(" threeDSReqPriorAuthTimestamp: ").append(toIndentedString(threeDSReqPriorAuthTimestamp)).append("\n");
sb.append(" threeDSReqPriorRef: ").append(toIndentedString(threeDSReqPriorRef)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
/**
* Create an instance of ThreeDSRequestorPriorAuthenticationInfo given an JSON string
*
* @param jsonString JSON string
* @return An instance of ThreeDSRequestorPriorAuthenticationInfo
* @throws JsonProcessingException if the JSON string is invalid with respect to ThreeDSRequestorPriorAuthenticationInfo
*/
public static ThreeDSRequestorPriorAuthenticationInfo fromJson(String jsonString) throws JsonProcessingException {
return JSON.getMapper().readValue(jsonString, ThreeDSRequestorPriorAuthenticationInfo.class);
}
/**
* Convert an instance of ThreeDSRequestorPriorAuthenticationInfo to an JSON string
*
* @return JSON string
*/
public String toJson() throws JsonProcessingException {
return JSON.getMapper().writeValueAsString(this);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy