/*
 * 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.BusinessEmailAddress;
import com.plaid.client.model.BusinessEntityType;
import com.plaid.client.model.BusinessPhoneNumber;
import com.plaid.client.model.BusinessWebsite;
import com.plaid.client.model.ProviderBusinessAddress;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;
import java.time.LocalDate;
import java.util.ArrayList;
import java.util.List;

/**
 * Detailed information about the business from data provider results
 */
@ApiModel(description = "Detailed information about the business from data provider results")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-12-11T18:58:39.328614Z[Etc/UTC]")
public class BusinessKYBMatchDetails {
  public static final String SERIALIZED_NAME_NAME = "name";
  @SerializedName(SERIALIZED_NAME_NAME)
  private String name;

  public static final String SERIALIZED_NAME_ENTITY_TYPE = "entity_type";
  @SerializedName(SERIALIZED_NAME_ENTITY_TYPE)
  private BusinessEntityType entityType;

  public static final String SERIALIZED_NAME_ADDRESSES = "addresses";
  @SerializedName(SERIALIZED_NAME_ADDRESSES)
  private List<ProviderBusinessAddress> addresses = new ArrayList<>();

  public static final String SERIALIZED_NAME_PHONE_NUMBERS = "phone_numbers";
  @SerializedName(SERIALIZED_NAME_PHONE_NUMBERS)
  private List<BusinessPhoneNumber> phoneNumbers = new ArrayList<>();

  public static final String SERIALIZED_NAME_EMAIL_ADDRESSES = "email_addresses";
  @SerializedName(SERIALIZED_NAME_EMAIL_ADDRESSES)
  private List<BusinessEmailAddress> emailAddresses = new ArrayList<>();

  public static final String SERIALIZED_NAME_WEBSITES = "websites";
  @SerializedName(SERIALIZED_NAME_WEBSITES)
  private List<BusinessWebsite> websites = new ArrayList<>();

  public static final String SERIALIZED_NAME_FORMATION_DATE = "formation_date";
  @SerializedName(SERIALIZED_NAME_FORMATION_DATE)
  private LocalDate formationDate;


  public BusinessKYBMatchDetails name(String name) {
    
    this.name = name;
    return this;
  }

   /**
   * The business name from the data provider
   * @return name
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(example = "Acme Corporation", required = true, value = "The business name from the data provider")

  public String getName() {
    return name;
  }


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


  public BusinessKYBMatchDetails entityType(BusinessEntityType entityType) {
    
    this.entityType = entityType;
    return this;
  }

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

  public BusinessEntityType getEntityType() {
    return entityType;
  }


  public void setEntityType(BusinessEntityType entityType) {
    this.entityType = entityType;
  }


  public BusinessKYBMatchDetails addresses(List<ProviderBusinessAddress> addresses) {
    
    this.addresses = addresses;
    return this;
  }

  public BusinessKYBMatchDetails addAddressesItem(ProviderBusinessAddress addressesItem) {
    this.addresses.add(addressesItem);
    return this;
  }

   /**
   * Addresses associated with the business
   * @return addresses
  **/
  @ApiModelProperty(required = true, value = "Addresses associated with the business")

  public List<ProviderBusinessAddress> getAddresses() {
    return addresses;
  }


  public void setAddresses(List<ProviderBusinessAddress> addresses) {
    this.addresses = addresses;
  }


  public BusinessKYBMatchDetails phoneNumbers(List<BusinessPhoneNumber> phoneNumbers) {
    
    this.phoneNumbers = phoneNumbers;
    return this;
  }

  public BusinessKYBMatchDetails addPhoneNumbersItem(BusinessPhoneNumber phoneNumbersItem) {
    this.phoneNumbers.add(phoneNumbersItem);
    return this;
  }

   /**
   * Phone numbers associated with the business
   * @return phoneNumbers
  **/
  @ApiModelProperty(required = true, value = "Phone numbers associated with the business")

  public List<BusinessPhoneNumber> getPhoneNumbers() {
    return phoneNumbers;
  }


  public void setPhoneNumbers(List<BusinessPhoneNumber> phoneNumbers) {
    this.phoneNumbers = phoneNumbers;
  }


  public BusinessKYBMatchDetails emailAddresses(List<BusinessEmailAddress> emailAddresses) {
    
    this.emailAddresses = emailAddresses;
    return this;
  }

  public BusinessKYBMatchDetails addEmailAddressesItem(BusinessEmailAddress emailAddressesItem) {
    this.emailAddresses.add(emailAddressesItem);
    return this;
  }

   /**
   * Email addresses associated with the business
   * @return emailAddresses
  **/
  @ApiModelProperty(required = true, value = "Email addresses associated with the business")

  public List<BusinessEmailAddress> getEmailAddresses() {
    return emailAddresses;
  }


  public void setEmailAddresses(List<BusinessEmailAddress> emailAddresses) {
    this.emailAddresses = emailAddresses;
  }


  public BusinessKYBMatchDetails websites(List<BusinessWebsite> websites) {
    
    this.websites = websites;
    return this;
  }

  public BusinessKYBMatchDetails addWebsitesItem(BusinessWebsite websitesItem) {
    this.websites.add(websitesItem);
    return this;
  }

   /**
   * Websites associated with the business
   * @return websites
  **/
  @ApiModelProperty(required = true, value = "Websites associated with the business")

  public List<BusinessWebsite> getWebsites() {
    return websites;
  }


  public void setWebsites(List<BusinessWebsite> websites) {
    this.websites = websites;
  }


  public BusinessKYBMatchDetails formationDate(LocalDate formationDate) {
    
    this.formationDate = formationDate;
    return this;
  }

   /**
   * A date in the format YYYY-MM-DD (RFC 3339 Section 5.6).
   * @return formationDate
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(example = "Tue May 29 00:00:00 UTC 1990", required = true, value = "A date in the format YYYY-MM-DD (RFC 3339 Section 5.6).")

  public LocalDate getFormationDate() {
    return formationDate;
  }


  public void setFormationDate(LocalDate formationDate) {
    this.formationDate = formationDate;
  }


  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    BusinessKYBMatchDetails businessKYBMatchDetails = (BusinessKYBMatchDetails) o;
    return Objects.equals(this.name, businessKYBMatchDetails.name) &&
        Objects.equals(this.entityType, businessKYBMatchDetails.entityType) &&
        Objects.equals(this.addresses, businessKYBMatchDetails.addresses) &&
        Objects.equals(this.phoneNumbers, businessKYBMatchDetails.phoneNumbers) &&
        Objects.equals(this.emailAddresses, businessKYBMatchDetails.emailAddresses) &&
        Objects.equals(this.websites, businessKYBMatchDetails.websites) &&
        Objects.equals(this.formationDate, businessKYBMatchDetails.formationDate);
  }

  @Override
  public int hashCode() {
    return Objects.hash(name, entityType, addresses, phoneNumbers, emailAddresses, websites, formationDate);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class BusinessKYBMatchDetails {\n");
    sb.append("    name: ").append(toIndentedString(name)).append("\n");
    sb.append("    entityType: ").append(toIndentedString(entityType)).append("\n");
    sb.append("    addresses: ").append(toIndentedString(addresses)).append("\n");
    sb.append("    phoneNumbers: ").append(toIndentedString(phoneNumbers)).append("\n");
    sb.append("    emailAddresses: ").append(toIndentedString(emailAddresses)).append("\n");
    sb.append("    websites: ").append(toIndentedString(websites)).append("\n");
    sb.append("    formationDate: ").append(toIndentedString(formationDate)).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    ");
  }

}

