/*
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
 * in compliance with the License. You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software distributed under the License
 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
 * or implied. See the License for the specific language governing permissions and limitations under
 * the License.
 */
/*
 * This code was generated by https://github.com/googleapis/google-api-java-client-services/
 * Modify at your own risk.
 */

package com.google.api.services.recaptchaenterprise.v1.model;

/**
 * Details about the transaction from the gateway.
 *
 * <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
 * transmitted over HTTP when working with the reCAPTCHA Enterprise API. For a detailed explanation
 * see:
 * <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a>
 * </p>
 *
 * @author Google, Inc.
 */
@SuppressWarnings("javadoc")
public final class GoogleCloudRecaptchaenterpriseV1TransactionDataGatewayInfo extends com.google.api.client.json.GenericJson {

  /**
   * AVS response code from the gateway (available only when reCAPTCHA Enterprise is called after
   * authorization).
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String avsResponseCode;

  /**
   * CVV response code from the gateway (available only when reCAPTCHA Enterprise is called after
   * authorization).
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String cvvResponseCode;

  /**
   * Gateway response code describing the state of the transaction.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String gatewayResponseCode;

  /**
   * Name of the gateway service (for example, stripe, square, paypal).
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String name;

  /**
   * AVS response code from the gateway (available only when reCAPTCHA Enterprise is called after
   * authorization).
   * @return value or {@code null} for none
   */
  public java.lang.String getAvsResponseCode() {
    return avsResponseCode;
  }

  /**
   * AVS response code from the gateway (available only when reCAPTCHA Enterprise is called after
   * authorization).
   * @param avsResponseCode avsResponseCode or {@code null} for none
   */
  public GoogleCloudRecaptchaenterpriseV1TransactionDataGatewayInfo setAvsResponseCode(java.lang.String avsResponseCode) {
    this.avsResponseCode = avsResponseCode;
    return this;
  }

  /**
   * CVV response code from the gateway (available only when reCAPTCHA Enterprise is called after
   * authorization).
   * @return value or {@code null} for none
   */
  public java.lang.String getCvvResponseCode() {
    return cvvResponseCode;
  }

  /**
   * CVV response code from the gateway (available only when reCAPTCHA Enterprise is called after
   * authorization).
   * @param cvvResponseCode cvvResponseCode or {@code null} for none
   */
  public GoogleCloudRecaptchaenterpriseV1TransactionDataGatewayInfo setCvvResponseCode(java.lang.String cvvResponseCode) {
    this.cvvResponseCode = cvvResponseCode;
    return this;
  }

  /**
   * Gateway response code describing the state of the transaction.
   * @return value or {@code null} for none
   */
  public java.lang.String getGatewayResponseCode() {
    return gatewayResponseCode;
  }

  /**
   * Gateway response code describing the state of the transaction.
   * @param gatewayResponseCode gatewayResponseCode or {@code null} for none
   */
  public GoogleCloudRecaptchaenterpriseV1TransactionDataGatewayInfo setGatewayResponseCode(java.lang.String gatewayResponseCode) {
    this.gatewayResponseCode = gatewayResponseCode;
    return this;
  }

  /**
   * Name of the gateway service (for example, stripe, square, paypal).
   * @return value or {@code null} for none
   */
  public java.lang.String getName() {
    return name;
  }

  /**
   * Name of the gateway service (for example, stripe, square, paypal).
   * @param name name or {@code null} for none
   */
  public GoogleCloudRecaptchaenterpriseV1TransactionDataGatewayInfo setName(java.lang.String name) {
    this.name = name;
    return this;
  }

  @Override
  public GoogleCloudRecaptchaenterpriseV1TransactionDataGatewayInfo set(String fieldName, Object value) {
    return (GoogleCloudRecaptchaenterpriseV1TransactionDataGatewayInfo) super.set(fieldName, value);
  }

  @Override
  public GoogleCloudRecaptchaenterpriseV1TransactionDataGatewayInfo clone() {
    return (GoogleCloudRecaptchaenterpriseV1TransactionDataGatewayInfo) super.clone();
  }

}
