/*
 * 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;

/**
 * The product access being requested. Used to or disallow product access across all accounts. If unset, defaults to all products allowed.
 */
@ApiModel(description = "The product access being requested. Used to or disallow product access across all accounts. If unset, defaults to all products allowed.")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-12-11T18:58:39.328614Z[Etc/UTC]")
public class ProductAccess {
  public static final String SERIALIZED_NAME_STATEMENTS = "statements";
  @SerializedName(SERIALIZED_NAME_STATEMENTS)
  private Boolean statements = true;

  public static final String SERIALIZED_NAME_IDENTITY = "identity";
  @SerializedName(SERIALIZED_NAME_IDENTITY)
  private Boolean identity = true;

  public static final String SERIALIZED_NAME_AUTH = "auth";
  @SerializedName(SERIALIZED_NAME_AUTH)
  private Boolean auth = true;

  public static final String SERIALIZED_NAME_TRANSACTIONS = "transactions";
  @SerializedName(SERIALIZED_NAME_TRANSACTIONS)
  private Boolean transactions = true;

  public static final String SERIALIZED_NAME_ACCOUNTS_DETAILS_TRANSACTIONS = "accounts_details_transactions";
  @SerializedName(SERIALIZED_NAME_ACCOUNTS_DETAILS_TRANSACTIONS)
  private Boolean accountsDetailsTransactions = true;

  public static final String SERIALIZED_NAME_ACCOUNTS_ROUTING_NUMBER = "accounts_routing_number";
  @SerializedName(SERIALIZED_NAME_ACCOUNTS_ROUTING_NUMBER)
  private Boolean accountsRoutingNumber = true;

  public static final String SERIALIZED_NAME_ACCOUNTS_STATEMENTS = "accounts_statements";
  @SerializedName(SERIALIZED_NAME_ACCOUNTS_STATEMENTS)
  private Boolean accountsStatements = true;

  public static final String SERIALIZED_NAME_ACCOUNTS_TAX_STATEMENTS = "accounts_tax_statements";
  @SerializedName(SERIALIZED_NAME_ACCOUNTS_TAX_STATEMENTS)
  private Boolean accountsTaxStatements = true;

  public static final String SERIALIZED_NAME_CUSTOMERS_PROFILES = "customers_profiles";
  @SerializedName(SERIALIZED_NAME_CUSTOMERS_PROFILES)
  private Boolean customersProfiles = true;


  public ProductAccess statements(Boolean statements) {
    
    this.statements = statements;
    return this;
  }

   /**
   * Allow access to statements. Only used by certain partners. If relevant to the partner and unset, defaults to &#x60;true&#x60;.
   * @return statements
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "Allow access to statements. Only used by certain partners. If relevant to the partner and unset, defaults to `true`.")

  public Boolean getStatements() {
    return statements;
  }


  public void setStatements(Boolean statements) {
    this.statements = statements;
  }


  public ProductAccess identity(Boolean identity) {
    
    this.identity = identity;
    return this;
  }

   /**
   * Allow access to the Identity product (name, email, phone, address). Only used by certain partners. If relevant to the partner and unset, defaults to &#x60;true&#x60;.
   * @return identity
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "Allow access to the Identity product (name, email, phone, address). Only used by certain partners. If relevant to the partner and unset, defaults to `true`.")

  public Boolean getIdentity() {
    return identity;
  }


  public void setIdentity(Boolean identity) {
    this.identity = identity;
  }


  public ProductAccess auth(Boolean auth) {
    
    this.auth = auth;
    return this;
  }

   /**
   * Allow access to account number details. Only used by certain partners. If relevant to the partner and unset, defaults to &#x60;true&#x60;.
   * @return auth
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "Allow access to account number details. Only used by certain partners. If relevant to the partner and unset, defaults to `true`.")

  public Boolean getAuth() {
    return auth;
  }


  public void setAuth(Boolean auth) {
    this.auth = auth;
  }


  public ProductAccess transactions(Boolean transactions) {
    
    this.transactions = transactions;
    return this;
  }

   /**
   * Allow access to transaction details. Only used by certain partners. If relevant to the partner and unset, defaults to &#x60;true&#x60;.
   * @return transactions
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "Allow access to transaction details. Only used by certain partners. If relevant to the partner and unset, defaults to `true`.")

  public Boolean getTransactions() {
    return transactions;
  }


  public void setTransactions(Boolean transactions) {
    this.transactions = transactions;
  }


  public ProductAccess accountsDetailsTransactions(Boolean accountsDetailsTransactions) {
    
    this.accountsDetailsTransactions = accountsDetailsTransactions;
    return this;
  }

   /**
   * Allow access to &#x60;accounts_details_transactions&#x60;. Only used by certain partners. If relevant to the partner and unset, defaults to &#x60;true&#x60;.
   * @return accountsDetailsTransactions
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "Allow access to `accounts_details_transactions`. Only used by certain partners. If relevant to the partner and unset, defaults to `true`.")

  public Boolean getAccountsDetailsTransactions() {
    return accountsDetailsTransactions;
  }


  public void setAccountsDetailsTransactions(Boolean accountsDetailsTransactions) {
    this.accountsDetailsTransactions = accountsDetailsTransactions;
  }


  public ProductAccess accountsRoutingNumber(Boolean accountsRoutingNumber) {
    
    this.accountsRoutingNumber = accountsRoutingNumber;
    return this;
  }

   /**
   * Allow access to &#x60;accounts_routing_number&#x60;. Only used by certain partners. If relevant to the partner and unset, defaults to &#x60;true&#x60;.
   * @return accountsRoutingNumber
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "Allow access to `accounts_routing_number`. Only used by certain partners. If relevant to the partner and unset, defaults to `true`.")

  public Boolean getAccountsRoutingNumber() {
    return accountsRoutingNumber;
  }


  public void setAccountsRoutingNumber(Boolean accountsRoutingNumber) {
    this.accountsRoutingNumber = accountsRoutingNumber;
  }


  public ProductAccess accountsStatements(Boolean accountsStatements) {
    
    this.accountsStatements = accountsStatements;
    return this;
  }

   /**
   * Allow access to &#x60;accounts_statements&#x60;. Only used by certain partners. If relevant to the partner and unset, defaults to &#x60;true&#x60;.
   * @return accountsStatements
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "Allow access to `accounts_statements`. Only used by certain partners. If relevant to the partner and unset, defaults to `true`.")

  public Boolean getAccountsStatements() {
    return accountsStatements;
  }


  public void setAccountsStatements(Boolean accountsStatements) {
    this.accountsStatements = accountsStatements;
  }


  public ProductAccess accountsTaxStatements(Boolean accountsTaxStatements) {
    
    this.accountsTaxStatements = accountsTaxStatements;
    return this;
  }

   /**
   * Allow access to &#x60;accounts_tax_statements&#x60;. Only used by certain partners. If relevant to the partner and unset, defaults to &#x60;true&#x60;.
   * @return accountsTaxStatements
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "Allow access to `accounts_tax_statements`. Only used by certain partners. If relevant to the partner and unset, defaults to `true`.")

  public Boolean getAccountsTaxStatements() {
    return accountsTaxStatements;
  }


  public void setAccountsTaxStatements(Boolean accountsTaxStatements) {
    this.accountsTaxStatements = accountsTaxStatements;
  }


  public ProductAccess customersProfiles(Boolean customersProfiles) {
    
    this.customersProfiles = customersProfiles;
    return this;
  }

   /**
   * Allow access to &#x60;customers_profiles&#x60;. Only used by certain partners. If relevant to the partner and unset, defaults to &#x60;true&#x60;.
   * @return customersProfiles
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "Allow access to `customers_profiles`. Only used by certain partners. If relevant to the partner and unset, defaults to `true`.")

  public Boolean getCustomersProfiles() {
    return customersProfiles;
  }


  public void setCustomersProfiles(Boolean customersProfiles) {
    this.customersProfiles = customersProfiles;
  }


  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    ProductAccess productAccess = (ProductAccess) o;
    return Objects.equals(this.statements, productAccess.statements) &&
        Objects.equals(this.identity, productAccess.identity) &&
        Objects.equals(this.auth, productAccess.auth) &&
        Objects.equals(this.transactions, productAccess.transactions) &&
        Objects.equals(this.accountsDetailsTransactions, productAccess.accountsDetailsTransactions) &&
        Objects.equals(this.accountsRoutingNumber, productAccess.accountsRoutingNumber) &&
        Objects.equals(this.accountsStatements, productAccess.accountsStatements) &&
        Objects.equals(this.accountsTaxStatements, productAccess.accountsTaxStatements) &&
        Objects.equals(this.customersProfiles, productAccess.customersProfiles);
  }

  @Override
  public int hashCode() {
    return Objects.hash(statements, identity, auth, transactions, accountsDetailsTransactions, accountsRoutingNumber, accountsStatements, accountsTaxStatements, customersProfiles);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class ProductAccess {\n");
    sb.append("    statements: ").append(toIndentedString(statements)).append("\n");
    sb.append("    identity: ").append(toIndentedString(identity)).append("\n");
    sb.append("    auth: ").append(toIndentedString(auth)).append("\n");
    sb.append("    transactions: ").append(toIndentedString(transactions)).append("\n");
    sb.append("    accountsDetailsTransactions: ").append(toIndentedString(accountsDetailsTransactions)).append("\n");
    sb.append("    accountsRoutingNumber: ").append(toIndentedString(accountsRoutingNumber)).append("\n");
    sb.append("    accountsStatements: ").append(toIndentedString(accountsStatements)).append("\n");
    sb.append("    accountsTaxStatements: ").append(toIndentedString(accountsTaxStatements)).append("\n");
    sb.append("    customersProfiles: ").append(toIndentedString(customersProfiles)).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    ");
  }

}

