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

/**
 * Business information provided in the verification request
 */
@ApiModel(description = "Business information provided in the verification request")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-12-11T18:58:39.328614Z[Etc/UTC]")
public class BusinessVerificationCreateRequestBusiness {
  public static final String SERIALIZED_NAME_NAME = "name";
  @SerializedName(SERIALIZED_NAME_NAME)
  private String name;

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

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

  public static final String SERIALIZED_NAME_PHONE_NUMBER = "phone_number";
  @SerializedName(SERIALIZED_NAME_PHONE_NUMBER)
  private String phoneNumber;

  public static final String SERIALIZED_NAME_EMAIL = "email";
  @SerializedName(SERIALIZED_NAME_EMAIL)
  private String email;


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

   /**
   * The name of the business. Must have at least one character and a maximum length of 500 characters.
   * @return name
  **/
  @ApiModelProperty(example = "Acme Corporation", required = true, value = "The name of the business. Must have at least one character and a maximum length of 500 characters.")

  public String getName() {
    return name;
  }


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


  public BusinessVerificationCreateRequestBusiness address(RequestBusinessAddress address) {
    
    this.address = address;
    return this;
  }

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

  public RequestBusinessAddress getAddress() {
    return address;
  }


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


  public BusinessVerificationCreateRequestBusiness website(URI website) {
    
    this.website = website;
    return this;
  }

   /**
   * An &#39;http&#39; or &#39;https&#39; URL (must begin with either of those).
   * @return website
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(example = "https://example.com", value = "An 'http' or 'https' URL (must begin with either of those).")

  public URI getWebsite() {
    return website;
  }


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


  public BusinessVerificationCreateRequestBusiness phoneNumber(String phoneNumber) {
    
    this.phoneNumber = phoneNumber;
    return this;
  }

   /**
   * A phone number in E.164 format.
   * @return phoneNumber
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(example = "+14025671234", value = "A phone number in E.164 format.")

  public String getPhoneNumber() {
    return phoneNumber;
  }


  public void setPhoneNumber(String phoneNumber) {
    this.phoneNumber = phoneNumber;
  }


  public BusinessVerificationCreateRequestBusiness email(String email) {
    
    this.email = email;
    return this;
  }

   /**
   * A valid email address. Must not have leading or trailing spaces and address must be RFC compliant. For more information, see [RFC 3696](https://datatracker.ietf.org/doc/html/rfc3696).
   * @return email
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(example = "user@example.com", value = "A valid email address. Must not have leading or trailing spaces and address must be RFC compliant. For more information, see [RFC 3696](https://datatracker.ietf.org/doc/html/rfc3696).")

  public String getEmail() {
    return email;
  }


  public void setEmail(String email) {
    this.email = email;
  }


  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    BusinessVerificationCreateRequestBusiness businessVerificationCreateRequestBusiness = (BusinessVerificationCreateRequestBusiness) o;
    return Objects.equals(this.name, businessVerificationCreateRequestBusiness.name) &&
        Objects.equals(this.address, businessVerificationCreateRequestBusiness.address) &&
        Objects.equals(this.website, businessVerificationCreateRequestBusiness.website) &&
        Objects.equals(this.phoneNumber, businessVerificationCreateRequestBusiness.phoneNumber) &&
        Objects.equals(this.email, businessVerificationCreateRequestBusiness.email);
  }

  @Override
  public int hashCode() {
    return Objects.hash(name, address, website, phoneNumber, email);
  }

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

}

