All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.GBSEcom.model.Secure3DAuthenticationResponseParams Maven / Gradle / Ivy

Go to download

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.

There is a newer version: 1.15.0
Show newest version
/*
 * 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.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;

/**
 * Additional parameters for authentication redirect.
 */
@ApiModel(description = "Additional parameters for authentication redirect.")

public class Secure3DAuthenticationResponseParams {
  public static final String SERIALIZED_NAME_PAYER_AUTHENTICATION_REQUEST = "payerAuthenticationRequest";
  @SerializedName(SERIALIZED_NAME_PAYER_AUTHENTICATION_REQUEST)
  private String payerAuthenticationRequest;

  public static final String SERIALIZED_NAME_TERM_U_R_L = "termURL";
  @SerializedName(SERIALIZED_NAME_TERM_U_R_L)
  private String termURL;

  public static final String SERIALIZED_NAME_MERCHANT_DATA = "merchantData";
  @SerializedName(SERIALIZED_NAME_MERCHANT_DATA)
  private String merchantData;

  public static final String SERIALIZED_NAME_ACS_U_R_L = "acsURL";
  @SerializedName(SERIALIZED_NAME_ACS_U_R_L)
  private String acsURL;

  public static final String SERIALIZED_NAME_C_REQ = "cReq";
  @SerializedName(SERIALIZED_NAME_C_REQ)
  private String cReq;

  public static final String SERIALIZED_NAME_SESSION_DATA = "sessionData";
  @SerializedName(SERIALIZED_NAME_SESSION_DATA)
  private String sessionData;


  public Secure3DAuthenticationResponseParams payerAuthenticationRequest(String payerAuthenticationRequest) {
    
    this.payerAuthenticationRequest = payerAuthenticationRequest;
    return this;
  }

   /**
   * Message sent from merchant server to authenticate the cardholder.
   * @return payerAuthenticationRequest
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(example = "c7fb83b8ag...73t4a827t4af8738a", value = "Message sent from merchant server to authenticate the cardholder.")

  public String getPayerAuthenticationRequest() {
    return payerAuthenticationRequest;
  }



  public void setPayerAuthenticationRequest(String payerAuthenticationRequest) {
    this.payerAuthenticationRequest = payerAuthenticationRequest;
  }


  public Secure3DAuthenticationResponseParams termURL(String termURL) {
    
    this.termURL = termURL;
    return this;
  }

   /**
   * Terminal URL for processing request.
   * @return termURL
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(example = "https://api.example.com/redirectToAcs", value = "Terminal URL for processing request.")

  public String getTermURL() {
    return termURL;
  }



  public void setTermURL(String termURL) {
    this.termURL = termURL;
  }


  public Secure3DAuthenticationResponseParams merchantData(String merchantData) {
    
    this.merchantData = merchantData;
    return this;
  }

   /**
   * Formatted string encoding transaction time, order ID, and return URL data.
   * @return merchantData
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(example = "MD123...sdfk", value = "Formatted string encoding transaction time, order ID, and return URL data.")

  public String getMerchantData() {
    return merchantData;
  }



  public void setMerchantData(String merchantData) {
    this.merchantData = merchantData;
  }


  public Secure3DAuthenticationResponseParams acsURL(String acsURL) {
    
    this.acsURL = acsURL;
    return this;
  }

   /**
   * The URL for the authentication redirect for the merchant.
   * @return acsURL
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(example = "https://3ds-acs.test.modirum.com/mdpayacs/pareq", value = "The URL for the authentication redirect for the merchant.")

  public String getAcsURL() {
    return acsURL;
  }



  public void setAcsURL(String acsURL) {
    this.acsURL = acsURL;
  }


  public Secure3DAuthenticationResponseParams cReq(String cReq) {
    
    this.cReq = cReq;
    return this;
  }

   /**
   * The CReq message initiates cardholder interaction in a 3DS 2.x challenge flow and carries authentication data from the cardholder.
   * @return cReq
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(example = "ewogICAiYWNzVHJhbnNJRCIgOiAiMDAwMDAwMDAtMDAwNS01YTVhLTgwMDAtMDE2ZmE1NTYzODMyIiwKICAgImNoYWxsZW5nZVdpbmRvd1NpemUiIDogIjAzIiwKICAgIm1lc3NhZ2VUeXBlIiA6ICJDUmVxIiwKICAgIm1lc3NhZ2VWZXJzaW9uIiA6ICIyLjEuMCIsCiAgICJ0aHJlZURTU2VydmVyVHJhbnNJRCIgOiAiZGVmOWZiZDgtZjkzNS01YzcyLTgwMDAtMDAwMDAwMDgyOWVkIgp9", value = "The CReq message initiates cardholder interaction in a 3DS 2.x challenge flow and carries authentication data from the cardholder.")

  public String getcReq() {
    return cReq;
  }



  public void setcReq(String cReq) {
    this.cReq = cReq;
  }


  public Secure3DAuthenticationResponseParams sessionData(String sessionData) {
    
    this.sessionData = sessionData;
    return this;
  }

   /**
   * Customer web browser session data.
   * @return sessionData
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(example = "50F2156E03083CA665BCB4..", value = "Customer web browser session data.")

  public String getSessionData() {
    return sessionData;
  }



  public void setSessionData(String sessionData) {
    this.sessionData = sessionData;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    Secure3DAuthenticationResponseParams secure3DAuthenticationResponseParams = (Secure3DAuthenticationResponseParams) o;
    return Objects.equals(this.payerAuthenticationRequest, secure3DAuthenticationResponseParams.payerAuthenticationRequest) &&
        Objects.equals(this.termURL, secure3DAuthenticationResponseParams.termURL) &&
        Objects.equals(this.merchantData, secure3DAuthenticationResponseParams.merchantData) &&
        Objects.equals(this.acsURL, secure3DAuthenticationResponseParams.acsURL) &&
        Objects.equals(this.cReq, secure3DAuthenticationResponseParams.cReq) &&
        Objects.equals(this.sessionData, secure3DAuthenticationResponseParams.sessionData);
  }

  @Override
  public int hashCode() {
    return Objects.hash(payerAuthenticationRequest, termURL, merchantData, acsURL, cReq, sessionData);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class Secure3DAuthenticationResponseParams {\n");
    sb.append("    payerAuthenticationRequest: ").append(toIndentedString(payerAuthenticationRequest)).append("\n");
    sb.append("    termURL: ").append(toIndentedString(termURL)).append("\n");
    sb.append("    merchantData: ").append(toIndentedString(merchantData)).append("\n");
    sb.append("    acsURL: ").append(toIndentedString(acsURL)).append("\n");
    sb.append("    cReq: ").append(toIndentedString(cReq)).append("\n");
    sb.append("    sessionData: ").append(toIndentedString(sessionData)).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