/*
 * The Plaid API
 * The Plaid REST API. Please see https://plaid.com/docs/api for more details.
 *
 * The version of the OpenAPI document: 2020-09-14_1.680.0
 * 
 *
 * 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.plaid.client.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 com.plaid.client.model.BusinessKYBCheck;
import com.plaid.client.model.BusinessRiskCheck;
import com.plaid.client.model.BusinessSearchTerms;
import com.plaid.client.model.BusinessVerificationStatusOverall;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;
import java.time.OffsetDateTime;

/**
 * A business verification represents a check of a business&#39;s identity and risk profile, including information collected about the business and results from third-party data providers.
 */
@ApiModel(description = "A business verification represents a check of a business's identity and risk profile, including information collected about the business and results from third-party data providers.")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-12-11T18:58:39.328614Z[Etc/UTC]")
public class BusinessVerificationCreateResponse {
  public static final String SERIALIZED_NAME_ID = "id";
  @SerializedName(SERIALIZED_NAME_ID)
  private String id;

  public static final String SERIALIZED_NAME_CLIENT_USER_ID = "client_user_id";
  @SerializedName(SERIALIZED_NAME_CLIENT_USER_ID)
  private String clientUserId;

  public static final String SERIALIZED_NAME_CREATED_AT = "created_at";
  @SerializedName(SERIALIZED_NAME_CREATED_AT)
  private java.sql.Timestamp createdAt;

  public static final String SERIALIZED_NAME_COMPLETED_AT = "completed_at";
  @SerializedName(SERIALIZED_NAME_COMPLETED_AT)
  private OffsetDateTime completedAt;

  public static final String SERIALIZED_NAME_REDACTED_AT = "redacted_at";
  @SerializedName(SERIALIZED_NAME_REDACTED_AT)
  private OffsetDateTime redactedAt;

  public static final String SERIALIZED_NAME_STATUS = "status";
  @SerializedName(SERIALIZED_NAME_STATUS)
  private BusinessVerificationStatusOverall status;

  public static final String SERIALIZED_NAME_SEARCH_TERMS = "search_terms";
  @SerializedName(SERIALIZED_NAME_SEARCH_TERMS)
  private BusinessSearchTerms searchTerms;

  public static final String SERIALIZED_NAME_KYB_CHECK = "kyb_check";
  @SerializedName(SERIALIZED_NAME_KYB_CHECK)
  private BusinessKYBCheck kybCheck;

  public static final String SERIALIZED_NAME_RISK_CHECK = "risk_check";
  @SerializedName(SERIALIZED_NAME_RISK_CHECK)
  private BusinessRiskCheck riskCheck;

  public static final String SERIALIZED_NAME_REQUEST_ID = "request_id";
  @SerializedName(SERIALIZED_NAME_REQUEST_ID)
  private String requestId;


  public BusinessVerificationCreateResponse id(String id) {
    
    this.id = id;
    return this;
  }

   /**
   * ID of the associated business verification.
   * @return id
  **/
  @ApiModelProperty(example = "busver_52xR9LKo77r1Np", required = true, value = "ID of the associated business verification.")

  public String getId() {
    return id;
  }


  public void setId(String id) {
    this.id = id;
  }


  public BusinessVerificationCreateResponse clientUserId(String clientUserId) {
    
    this.clientUserId = clientUserId;
    return this;
  }

   /**
   * A unique ID that identifies the end user in your system. This ID can also be used to associate user-specific data from other Plaid products. Financial Account Matching requires this field and the &#x60;/link/token/create&#x60; &#x60;client_user_id&#x60; to be consistent. Personally identifiable information, such as an email address or phone number, should not be used in the &#x60;client_user_id&#x60;.
   * @return clientUserId
  **/
  @ApiModelProperty(example = "your-db-id-3b24110", required = true, value = "A unique ID that identifies the end user in your system. This ID can also be used to associate user-specific data from other Plaid products. Financial Account Matching requires this field and the `/link/token/create` `client_user_id` to be consistent. Personally identifiable information, such as an email address or phone number, should not be used in the `client_user_id`.")

  public String getClientUserId() {
    return clientUserId;
  }


  public void setClientUserId(String clientUserId) {
    this.clientUserId = clientUserId;
  }


  public BusinessVerificationCreateResponse createdAt(java.sql.Timestamp createdAt) {
    
    this.createdAt = createdAt;
    return this;
  }

   /**
   * Get createdAt
   * @return createdAt
  **/
  @ApiModelProperty(required = true, value = "")

  public java.sql.Timestamp getCreatedAt() {
    return createdAt;
  }


  public void setCreatedAt(java.sql.Timestamp createdAt) {
    this.createdAt = createdAt;
  }


  public BusinessVerificationCreateResponse completedAt(OffsetDateTime completedAt) {
    
    this.completedAt = completedAt;
    return this;
  }

   /**
   * An ISO8601 formatted timestamp.
   * @return completedAt
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(example = "2020-07-24T03:26:02Z", required = true, value = "An ISO8601 formatted timestamp.")

  public OffsetDateTime getCompletedAt() {
    return completedAt;
  }


  public void setCompletedAt(OffsetDateTime completedAt) {
    this.completedAt = completedAt;
  }


  public BusinessVerificationCreateResponse redactedAt(OffsetDateTime redactedAt) {
    
    this.redactedAt = redactedAt;
    return this;
  }

   /**
   * An ISO8601 formatted timestamp.
   * @return redactedAt
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(example = "2020-07-24T03:26:02Z", required = true, value = "An ISO8601 formatted timestamp.")

  public OffsetDateTime getRedactedAt() {
    return redactedAt;
  }


  public void setRedactedAt(OffsetDateTime redactedAt) {
    this.redactedAt = redactedAt;
  }


  public BusinessVerificationCreateResponse status(BusinessVerificationStatusOverall status) {
    
    this.status = status;
    return this;
  }

   /**
   * Get status
   * @return status
  **/
  @ApiModelProperty(required = true, value = "")

  public BusinessVerificationStatusOverall getStatus() {
    return status;
  }


  public void setStatus(BusinessVerificationStatusOverall status) {
    this.status = status;
  }


  public BusinessVerificationCreateResponse searchTerms(BusinessSearchTerms searchTerms) {
    
    this.searchTerms = searchTerms;
    return this;
  }

   /**
   * Get searchTerms
   * @return searchTerms
  **/
  @ApiModelProperty(required = true, value = "")

  public BusinessSearchTerms getSearchTerms() {
    return searchTerms;
  }


  public void setSearchTerms(BusinessSearchTerms searchTerms) {
    this.searchTerms = searchTerms;
  }


  public BusinessVerificationCreateResponse kybCheck(BusinessKYBCheck kybCheck) {
    
    this.kybCheck = kybCheck;
    return this;
  }

   /**
   * Get kybCheck
   * @return kybCheck
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(required = true, value = "")

  public BusinessKYBCheck getKybCheck() {
    return kybCheck;
  }


  public void setKybCheck(BusinessKYBCheck kybCheck) {
    this.kybCheck = kybCheck;
  }


  public BusinessVerificationCreateResponse riskCheck(BusinessRiskCheck riskCheck) {
    
    this.riskCheck = riskCheck;
    return this;
  }

   /**
   * Get riskCheck
   * @return riskCheck
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(required = true, value = "")

  public BusinessRiskCheck getRiskCheck() {
    return riskCheck;
  }


  public void setRiskCheck(BusinessRiskCheck riskCheck) {
    this.riskCheck = riskCheck;
  }


  public BusinessVerificationCreateResponse requestId(String requestId) {
    
    this.requestId = requestId;
    return this;
  }

   /**
   * A unique identifier for the request, which can be used for troubleshooting. This identifier, like all Plaid identifiers, is case sensitive.
   * @return requestId
  **/
  @ApiModelProperty(required = true, value = "A unique identifier for the request, which can be used for troubleshooting. This identifier, like all Plaid identifiers, is case sensitive.")

  public String getRequestId() {
    return requestId;
  }


  public void setRequestId(String requestId) {
    this.requestId = requestId;
  }


  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    BusinessVerificationCreateResponse businessVerificationCreateResponse = (BusinessVerificationCreateResponse) o;
    return Objects.equals(this.id, businessVerificationCreateResponse.id) &&
        Objects.equals(this.clientUserId, businessVerificationCreateResponse.clientUserId) &&
        Objects.equals(this.createdAt, businessVerificationCreateResponse.createdAt) &&
        Objects.equals(this.completedAt, businessVerificationCreateResponse.completedAt) &&
        Objects.equals(this.redactedAt, businessVerificationCreateResponse.redactedAt) &&
        Objects.equals(this.status, businessVerificationCreateResponse.status) &&
        Objects.equals(this.searchTerms, businessVerificationCreateResponse.searchTerms) &&
        Objects.equals(this.kybCheck, businessVerificationCreateResponse.kybCheck) &&
        Objects.equals(this.riskCheck, businessVerificationCreateResponse.riskCheck) &&
        Objects.equals(this.requestId, businessVerificationCreateResponse.requestId);
  }

  @Override
  public int hashCode() {
    return Objects.hash(id, clientUserId, createdAt, completedAt, redactedAt, status, searchTerms, kybCheck, riskCheck, requestId);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class BusinessVerificationCreateResponse {\n");
    sb.append("    id: ").append(toIndentedString(id)).append("\n");
    sb.append("    clientUserId: ").append(toIndentedString(clientUserId)).append("\n");
    sb.append("    createdAt: ").append(toIndentedString(createdAt)).append("\n");
    sb.append("    completedAt: ").append(toIndentedString(completedAt)).append("\n");
    sb.append("    redactedAt: ").append(toIndentedString(redactedAt)).append("\n");
    sb.append("    status: ").append(toIndentedString(status)).append("\n");
    sb.append("    searchTerms: ").append(toIndentedString(searchTerms)).append("\n");
    sb.append("    kybCheck: ").append(toIndentedString(kybCheck)).append("\n");
    sb.append("    riskCheck: ").append(toIndentedString(riskCheck)).append("\n");
    sb.append("    requestId: ").append(toIndentedString(requestId)).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    ");
  }

}

