com.github.GBSEcom.model.Secure3DAuthenticationResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of first-data-gateway Show documentation
Show all versions of first-data-gateway Show documentation
Java SDK to be used with a First Data Gateway account. This SDK has been created and packaged to offer the easiest way to integrate your application into the First Data Gateway. This SDK gives you the ability to run transactions such as sales, preauthorizations, postauthorizations, credits, voids, and returns; transaction inquiries; setting up scheduled payments and much more.
/*
* Payment Gateway API Specification.
* The documentation here is designed to provide all of the technical guidance required to consume and integrate with our APIs for payment processing. To learn more about our APIs please visit https://docs.firstdata.com/org/gateway.
*
* The version of the OpenAPI document: 21.2.0.20210406.001
*
*
* 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.github.GBSEcom.model;
import java.util.Objects;
import java.util.Arrays;
import com.github.GBSEcom.model.Secure3DAuthenticationResponseParams;
import com.github.GBSEcom.model.Secure3DAuthenticationResponseSecure3dMethod;
import com.google.gson.TypeAdapter;
import com.google.gson.annotations.JsonAdapter;
import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;
/**
* Encapsulates 3DS authentication details in transaction responses.
*/
@ApiModel(description = "Encapsulates 3DS authentication details in transaction responses.")
public class Secure3DAuthenticationResponse {
/**
* The type of authentication.
*/
@JsonAdapter(TypeEnum.Adapter.class)
public enum TypeEnum {
_3D_SECURE("3D_SECURE");
private String value;
TypeEnum(String value) {
this.value = value;
}
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
public static TypeEnum fromValue(String value) {
for (TypeEnum b : TypeEnum.values()) {
if (b.value.equals(value)) {
return b;
}
}
throw new IllegalArgumentException("Unexpected value '" + value + "'");
}
public static class Adapter extends TypeAdapter {
@Override
public void write(final JsonWriter jsonWriter, final TypeEnum enumeration) throws IOException {
jsonWriter.value(enumeration.getValue());
}
@Override
public TypeEnum read(final JsonReader jsonReader) throws IOException {
String value = jsonReader.nextString();
return TypeEnum.fromValue(value);
}
}
}
public static final String SERIALIZED_NAME_TYPE = "type";
@SerializedName(SERIALIZED_NAME_TYPE)
private TypeEnum type;
/**
* The version of 3DS used to authenticate.
*/
@JsonAdapter(VersionEnum.Adapter.class)
public enum VersionEnum {
_1_0("1.0"),
_2_1("2.1"),
_2_2("2.2");
private String value;
VersionEnum(String value) {
this.value = value;
}
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
public static VersionEnum fromValue(String value) {
for (VersionEnum b : VersionEnum.values()) {
if (b.value.equals(value)) {
return b;
}
}
throw new IllegalArgumentException("Unexpected value '" + value + "'");
}
public static class Adapter extends TypeAdapter {
@Override
public void write(final JsonWriter jsonWriter, final VersionEnum enumeration) throws IOException {
jsonWriter.value(enumeration.getValue());
}
@Override
public VersionEnum read(final JsonReader jsonReader) throws IOException {
String value = jsonReader.nextString();
return VersionEnum.fromValue(value);
}
}
}
public static final String SERIALIZED_NAME_VERSION = "version";
@SerializedName(SERIALIZED_NAME_VERSION)
private VersionEnum version;
public static final String SERIALIZED_NAME_PARAMS = "params";
@SerializedName(SERIALIZED_NAME_PARAMS)
private Secure3DAuthenticationResponseParams params;
public static final String SERIALIZED_NAME_SECURE3D_METHOD = "secure3dMethod";
@SerializedName(SERIALIZED_NAME_SECURE3D_METHOD)
private Secure3DAuthenticationResponseSecure3dMethod secure3dMethod;
public Secure3DAuthenticationResponse type(TypeEnum type) {
this.type = type;
return this;
}
/**
* The type of authentication.
* @return type
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "3D_SECURE", value = "The type of authentication.")
public TypeEnum getType() {
return type;
}
public void setType(TypeEnum type) {
this.type = type;
}
public Secure3DAuthenticationResponse version(VersionEnum version) {
this.version = version;
return this;
}
/**
* The version of 3DS used to authenticate.
* @return version
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "2.1", value = "The version of 3DS used to authenticate.")
public VersionEnum getVersion() {
return version;
}
public void setVersion(VersionEnum version) {
this.version = version;
}
public Secure3DAuthenticationResponse params(Secure3DAuthenticationResponseParams params) {
this.params = params;
return this;
}
/**
* Get params
* @return params
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public Secure3DAuthenticationResponseParams getParams() {
return params;
}
public void setParams(Secure3DAuthenticationResponseParams params) {
this.params = params;
}
public Secure3DAuthenticationResponse secure3dMethod(Secure3DAuthenticationResponseSecure3dMethod secure3dMethod) {
this.secure3dMethod = secure3dMethod;
return this;
}
/**
* Get secure3dMethod
* @return secure3dMethod
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public Secure3DAuthenticationResponseSecure3dMethod getSecure3dMethod() {
return secure3dMethod;
}
public void setSecure3dMethod(Secure3DAuthenticationResponseSecure3dMethod secure3dMethod) {
this.secure3dMethod = secure3dMethod;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
Secure3DAuthenticationResponse secure3DAuthenticationResponse = (Secure3DAuthenticationResponse) o;
return Objects.equals(this.type, secure3DAuthenticationResponse.type) &&
Objects.equals(this.version, secure3DAuthenticationResponse.version) &&
Objects.equals(this.params, secure3DAuthenticationResponse.params) &&
Objects.equals(this.secure3dMethod, secure3DAuthenticationResponse.secure3dMethod);
}
@Override
public int hashCode() {
return Objects.hash(type, version, params, secure3dMethod);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class Secure3DAuthenticationResponse {\n");
sb.append(" type: ").append(toIndentedString(type)).append("\n");
sb.append(" version: ").append(toIndentedString(version)).append("\n");
sb.append(" params: ").append(toIndentedString(params)).append("\n");
sb.append(" secure3dMethod: ").append(toIndentedString(secure3dMethod)).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(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy