/*
 * 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.BusinessFieldMatchSummary;
import com.plaid.client.model.BusinessKYBMatchDetails;
import com.plaid.client.model.BusinessVerificationStatusKYBCheck;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;

/**
 * Results from the KYB (Know Your Business) identity verification check
 */
@ApiModel(description = "Results from the KYB (Know Your Business) identity verification check")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-12-11T18:58:39.328614Z[Etc/UTC]")
public class BusinessKYBCheck {
  public static final String SERIALIZED_NAME_STATUS = "status";
  @SerializedName(SERIALIZED_NAME_STATUS)
  private BusinessVerificationStatusKYBCheck status;

  public static final String SERIALIZED_NAME_SCORE = "score";
  @SerializedName(SERIALIZED_NAME_SCORE)
  private Integer score;

  public static final String SERIALIZED_NAME_NAME = "name";
  @SerializedName(SERIALIZED_NAME_NAME)
  private BusinessFieldMatchSummary name;

  public static final String SERIALIZED_NAME_ADDRESS = "address";
  @SerializedName(SERIALIZED_NAME_ADDRESS)
  private BusinessFieldMatchSummary address;

  public static final String SERIALIZED_NAME_WEBSITE = "website";
  @SerializedName(SERIALIZED_NAME_WEBSITE)
  private BusinessFieldMatchSummary website;

  public static final String SERIALIZED_NAME_MATCH_DETAILS = "match_details";
  @SerializedName(SERIALIZED_NAME_MATCH_DETAILS)
  private BusinessKYBMatchDetails matchDetails;


  public BusinessKYBCheck status(BusinessVerificationStatusKYBCheck status) {
    
    this.status = status;
    return this;
  }

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

  public BusinessVerificationStatusKYBCheck getStatus() {
    return status;
  }


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


  public BusinessKYBCheck score(Integer score) {
    
    this.score = score;
    return this;
  }

   /**
   * A score from 0 to 100 indicating the confidence in KYB (Know Your Business) identity assessment for the business
   * @return score
  **/
  @ApiModelProperty(example = "85", required = true, value = "A score from 0 to 100 indicating the confidence in KYB (Know Your Business) identity assessment for the business")

  public Integer getScore() {
    return score;
  }


  public void setScore(Integer score) {
    this.score = score;
  }


  public BusinessKYBCheck name(BusinessFieldMatchSummary name) {
    
    this.name = name;
    return this;
  }

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

  public BusinessFieldMatchSummary getName() {
    return name;
  }


  public void setName(BusinessFieldMatchSummary name) {
    this.name = name;
  }


  public BusinessKYBCheck address(BusinessFieldMatchSummary address) {
    
    this.address = address;
    return this;
  }

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

  public BusinessFieldMatchSummary getAddress() {
    return address;
  }


  public void setAddress(BusinessFieldMatchSummary address) {
    this.address = address;
  }


  public BusinessKYBCheck website(BusinessFieldMatchSummary website) {
    
    this.website = website;
    return this;
  }

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

  public BusinessFieldMatchSummary getWebsite() {
    return website;
  }


  public void setWebsite(BusinessFieldMatchSummary website) {
    this.website = website;
  }


  public BusinessKYBCheck matchDetails(BusinessKYBMatchDetails matchDetails) {
    
    this.matchDetails = matchDetails;
    return this;
  }

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

  public BusinessKYBMatchDetails getMatchDetails() {
    return matchDetails;
  }


  public void setMatchDetails(BusinessKYBMatchDetails matchDetails) {
    this.matchDetails = matchDetails;
  }


  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    BusinessKYBCheck businessKYBCheck = (BusinessKYBCheck) o;
    return Objects.equals(this.status, businessKYBCheck.status) &&
        Objects.equals(this.score, businessKYBCheck.score) &&
        Objects.equals(this.name, businessKYBCheck.name) &&
        Objects.equals(this.address, businessKYBCheck.address) &&
        Objects.equals(this.website, businessKYBCheck.website) &&
        Objects.equals(this.matchDetails, businessKYBCheck.matchDetails);
  }

  @Override
  public int hashCode() {
    return Objects.hash(status, score, name, address, website, matchDetails);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class BusinessKYBCheck {\n");
    sb.append("    status: ").append(toIndentedString(status)).append("\n");
    sb.append("    score: ").append(toIndentedString(score)).append("\n");
    sb.append("    name: ").append(toIndentedString(name)).append("\n");
    sb.append("    address: ").append(toIndentedString(address)).append("\n");
    sb.append("    website: ").append(toIndentedString(website)).append("\n");
    sb.append("    matchDetails: ").append(toIndentedString(matchDetails)).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    ");
  }

}

