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

/**
 * The CRA questionnaire for the end customer.
 */
@ApiModel(description = "The CRA questionnaire for the end customer.")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-12-11T18:58:39.328614Z[Etc/UTC]")
public class PartnerEndCustomerCRAQuestionnaire {
  public static final String SERIALIZED_NAME_PURPOSES = "purposes";
  @SerializedName(SERIALIZED_NAME_PURPOSES)
  private PartnerEndCustomerCRAPurposes purposes;

  public static final String SERIALIZED_NAME_IS_THIRD_PARTY_INVOLVED = "is_third_party_involved";
  @SerializedName(SERIALIZED_NAME_IS_THIRD_PARTY_INVOLVED)
  private Boolean isThirdPartyInvolved;

  public static final String SERIALIZED_NAME_IS_TECHNICAL_SERVICE_PROVIDER_INVOLVED = "is_technical_service_provider_involved";
  @SerializedName(SERIALIZED_NAME_IS_TECHNICAL_SERVICE_PROVIDER_INVOLVED)
  private Boolean isTechnicalServiceProviderInvolved;


  public PartnerEndCustomerCRAQuestionnaire purposes(PartnerEndCustomerCRAPurposes purposes) {
    
    this.purposes = purposes;
    return this;
  }

   /**
   * Get purposes
   * @return purposes
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "")

  public PartnerEndCustomerCRAPurposes getPurposes() {
    return purposes;
  }


  public void setPurposes(PartnerEndCustomerCRAPurposes purposes) {
    this.purposes = purposes;
  }


  public PartnerEndCustomerCRAQuestionnaire isThirdPartyInvolved(Boolean isThirdPartyInvolved) {
    
    this.isThirdPartyInvolved = isThirdPartyInvolved;
    return this;
  }

   /**
   * Denotes whether the third party is involved.
   * @return isThirdPartyInvolved
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "Denotes whether the third party is involved.")

  public Boolean getIsThirdPartyInvolved() {
    return isThirdPartyInvolved;
  }


  public void setIsThirdPartyInvolved(Boolean isThirdPartyInvolved) {
    this.isThirdPartyInvolved = isThirdPartyInvolved;
  }


  public PartnerEndCustomerCRAQuestionnaire isTechnicalServiceProviderInvolved(Boolean isTechnicalServiceProviderInvolved) {
    
    this.isTechnicalServiceProviderInvolved = isTechnicalServiceProviderInvolved;
    return this;
  }

   /**
   * Denotes whether the technical service provider is involved.
   * @return isTechnicalServiceProviderInvolved
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "Denotes whether the technical service provider is involved.")

  public Boolean getIsTechnicalServiceProviderInvolved() {
    return isTechnicalServiceProviderInvolved;
  }


  public void setIsTechnicalServiceProviderInvolved(Boolean isTechnicalServiceProviderInvolved) {
    this.isTechnicalServiceProviderInvolved = isTechnicalServiceProviderInvolved;
  }


  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    PartnerEndCustomerCRAQuestionnaire partnerEndCustomerCRAQuestionnaire = (PartnerEndCustomerCRAQuestionnaire) o;
    return Objects.equals(this.purposes, partnerEndCustomerCRAQuestionnaire.purposes) &&
        Objects.equals(this.isThirdPartyInvolved, partnerEndCustomerCRAQuestionnaire.isThirdPartyInvolved) &&
        Objects.equals(this.isTechnicalServiceProviderInvolved, partnerEndCustomerCRAQuestionnaire.isTechnicalServiceProviderInvolved);
  }

  @Override
  public int hashCode() {
    return Objects.hash(purposes, isThirdPartyInvolved, isTechnicalServiceProviderInvolved);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class PartnerEndCustomerCRAQuestionnaire {\n");
    sb.append("    purposes: ").append(toIndentedString(purposes)).append("\n");
    sb.append("    isThirdPartyInvolved: ").append(toIndentedString(isThirdPartyInvolved)).append("\n");
    sb.append("    isTechnicalServiceProviderInvolved: ").append(toIndentedString(isTechnicalServiceProviderInvolved)).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    ");
  }

}

