/*
 * 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 io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;

/**
 * Result summary object specifying values for the &#x60;facial_duplicate&#x60; attributes of risk check.
 */
@ApiModel(description = "Result summary object specifying values for the `facial_duplicate` attributes of risk check.")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-12-11T18:58:39.328614Z[Etc/UTC]")
public class RiskCheckFacialDuplicate {
  public static final String SERIALIZED_NAME_ID = "id";
  @SerializedName(SERIALIZED_NAME_ID)
  private String id;

  public static final String SERIALIZED_NAME_SIMILARITY = "similarity";
  @SerializedName(SERIALIZED_NAME_SIMILARITY)
  private Integer similarity;

  public static final String SERIALIZED_NAME_MATCHED_AFTER_COMPLETED = "matched_after_completed";
  @SerializedName(SERIALIZED_NAME_MATCHED_AFTER_COMPLETED)
  private Boolean matchedAfterCompleted;


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

   /**
   * ID of the associated Identity Verification attempt.
   * @return id
  **/
  @ApiModelProperty(example = "idv_52xR9LKo77r1Np", required = true, value = "ID of the associated Identity Verification attempt.")

  public String getId() {
    return id;
  }


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


  public RiskCheckFacialDuplicate similarity(Integer similarity) {
    
    this.similarity = similarity;
    return this;
  }

   /**
   * Similarity score of the match. Ranges from 0 to 100.
   * @return similarity
  **/
  @ApiModelProperty(example = "95", required = true, value = "Similarity score of the match. Ranges from 0 to 100.")

  public Integer getSimilarity() {
    return similarity;
  }


  public void setSimilarity(Integer similarity) {
    this.similarity = similarity;
  }


  public RiskCheckFacialDuplicate matchedAfterCompleted(Boolean matchedAfterCompleted) {
    
    this.matchedAfterCompleted = matchedAfterCompleted;
    return this;
  }

   /**
   * Whether this match occurred after the session was complete. For example, this would be &#x60;true&#x60; if a later session ended up matching this one.
   * @return matchedAfterCompleted
  **/
  @ApiModelProperty(example = "true", required = true, value = "Whether this match occurred after the session was complete. For example, this would be `true` if a later session ended up matching this one.")

  public Boolean getMatchedAfterCompleted() {
    return matchedAfterCompleted;
  }


  public void setMatchedAfterCompleted(Boolean matchedAfterCompleted) {
    this.matchedAfterCompleted = matchedAfterCompleted;
  }


  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    RiskCheckFacialDuplicate riskCheckFacialDuplicate = (RiskCheckFacialDuplicate) o;
    return Objects.equals(this.id, riskCheckFacialDuplicate.id) &&
        Objects.equals(this.similarity, riskCheckFacialDuplicate.similarity) &&
        Objects.equals(this.matchedAfterCompleted, riskCheckFacialDuplicate.matchedAfterCompleted);
  }

  @Override
  public int hashCode() {
    return Objects.hash(id, similarity, matchedAfterCompleted);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class RiskCheckFacialDuplicate {\n");
    sb.append("    id: ").append(toIndentedString(id)).append("\n");
    sb.append("    similarity: ").append(toIndentedString(similarity)).append("\n");
    sb.append("    matchedAfterCompleted: ").append(toIndentedString(matchedAfterCompleted)).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    ");
  }

}

