/*
 * 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.TransferPlatformPersonAddress;
import com.plaid.client.model.TransferPlatformPersonIDNumber;
import com.plaid.client.model.TransferPlatformPersonName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;
import java.time.LocalDate;

/**
 * Defines the request schema for &#x60;/transfer/platform/person/create&#x60;
 */
@ApiModel(description = "Defines the request schema for `/transfer/platform/person/create`")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-12-11T18:58:39.328614Z[Etc/UTC]")
public class TransferPlatformPersonCreateRequest {
  public static final String SERIALIZED_NAME_CLIENT_ID = "client_id";
  @SerializedName(SERIALIZED_NAME_CLIENT_ID)
  private String clientId;

  public static final String SERIALIZED_NAME_SECRET = "secret";
  @SerializedName(SERIALIZED_NAME_SECRET)
  private String secret;

  public static final String SERIALIZED_NAME_ORIGINATOR_CLIENT_ID = "originator_client_id";
  @SerializedName(SERIALIZED_NAME_ORIGINATOR_CLIENT_ID)
  private String originatorClientId;

  public static final String SERIALIZED_NAME_NAME = "name";
  @SerializedName(SERIALIZED_NAME_NAME)
  private TransferPlatformPersonName name;

  public static final String SERIALIZED_NAME_EMAIL_ADDRESS = "email_address";
  @SerializedName(SERIALIZED_NAME_EMAIL_ADDRESS)
  private String emailAddress;

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

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

  public static final String SERIALIZED_NAME_ID_NUMBER = "id_number";
  @SerializedName(SERIALIZED_NAME_ID_NUMBER)
  private TransferPlatformPersonIDNumber idNumber;

  public static final String SERIALIZED_NAME_DATE_OF_BIRTH = "date_of_birth";
  @SerializedName(SERIALIZED_NAME_DATE_OF_BIRTH)
  private LocalDate dateOfBirth;

  public static final String SERIALIZED_NAME_RELATIONSHIP_TO_ORIGINATOR = "relationship_to_originator";
  @SerializedName(SERIALIZED_NAME_RELATIONSHIP_TO_ORIGINATOR)
  private String relationshipToOriginator;

  public static final String SERIALIZED_NAME_OWNERSHIP_PERCENTAGE = "ownership_percentage";
  @SerializedName(SERIALIZED_NAME_OWNERSHIP_PERCENTAGE)
  private Integer ownershipPercentage;

  public static final String SERIALIZED_NAME_TITLE = "title";
  @SerializedName(SERIALIZED_NAME_TITLE)
  private String title;


  public TransferPlatformPersonCreateRequest clientId(String clientId) {
    
    this.clientId = clientId;
    return this;
  }

   /**
   * Your Plaid API &#x60;client_id&#x60;. The &#x60;client_id&#x60; is required and may be provided either in the &#x60;PLAID-CLIENT-ID&#x60; header or as part of a request body.
   * @return clientId
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "Your Plaid API `client_id`. The `client_id` is required and may be provided either in the `PLAID-CLIENT-ID` header or as part of a request body.")

  public String getClientId() {
    return clientId;
  }


  public void setClientId(String clientId) {
    this.clientId = clientId;
  }


  public TransferPlatformPersonCreateRequest secret(String secret) {
    
    this.secret = secret;
    return this;
  }

   /**
   * Your Plaid API &#x60;secret&#x60;. The &#x60;secret&#x60; is required and may be provided either in the &#x60;PLAID-SECRET&#x60; header or as part of a request body.
   * @return secret
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "Your Plaid API `secret`. The `secret` is required and may be provided either in the `PLAID-SECRET` header or as part of a request body.")

  public String getSecret() {
    return secret;
  }


  public void setSecret(String secret) {
    this.secret = secret;
  }


  public TransferPlatformPersonCreateRequest originatorClientId(String originatorClientId) {
    
    this.originatorClientId = originatorClientId;
    return this;
  }

   /**
   * The client ID of the originator
   * @return originatorClientId
  **/
  @ApiModelProperty(required = true, value = "The client ID of the originator")

  public String getOriginatorClientId() {
    return originatorClientId;
  }


  public void setOriginatorClientId(String originatorClientId) {
    this.originatorClientId = originatorClientId;
  }


  public TransferPlatformPersonCreateRequest name(TransferPlatformPersonName name) {
    
    this.name = name;
    return this;
  }

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

  public TransferPlatformPersonName getName() {
    return name;
  }


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


  public TransferPlatformPersonCreateRequest emailAddress(String emailAddress) {
    
    this.emailAddress = emailAddress;
    return this;
  }

   /**
   * A valid email address. Must not have leading or trailing spaces.
   * @return emailAddress
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(example = "user@example.com", value = "A valid email address. Must not have leading or trailing spaces.")

  public String getEmailAddress() {
    return emailAddress;
  }


  public void setEmailAddress(String emailAddress) {
    this.emailAddress = emailAddress;
  }


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

   /**
   * A valid phone number in E.164 format. Phone number input may be validated against valid number ranges; number strings that do not match a real-world phone numbering scheme may cause the request to fail, even in the Sandbox test environment.
   * @return phoneNumber
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(example = "+12345678909", value = "A valid phone number in E.164 format. Phone number input may be validated against valid number ranges; number strings that do not match a real-world phone numbering scheme may cause the request to fail, even in the Sandbox test environment.")

  public String getPhoneNumber() {
    return phoneNumber;
  }


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


  public TransferPlatformPersonCreateRequest address(TransferPlatformPersonAddress address) {
    
    this.address = address;
    return this;
  }

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

  public TransferPlatformPersonAddress getAddress() {
    return address;
  }


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


  public TransferPlatformPersonCreateRequest idNumber(TransferPlatformPersonIDNumber idNumber) {
    
    this.idNumber = idNumber;
    return this;
  }

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

  public TransferPlatformPersonIDNumber getIdNumber() {
    return idNumber;
  }


  public void setIdNumber(TransferPlatformPersonIDNumber idNumber) {
    this.idNumber = idNumber;
  }


  public TransferPlatformPersonCreateRequest dateOfBirth(LocalDate dateOfBirth) {
    
    this.dateOfBirth = dateOfBirth;
    return this;
  }

   /**
   * The date of birth of the person. Formatted as YYYY-MM-DD.
   * @return dateOfBirth
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "The date of birth of the person. Formatted as YYYY-MM-DD.")

  public LocalDate getDateOfBirth() {
    return dateOfBirth;
  }


  public void setDateOfBirth(LocalDate dateOfBirth) {
    this.dateOfBirth = dateOfBirth;
  }


  public TransferPlatformPersonCreateRequest relationshipToOriginator(String relationshipToOriginator) {
    
    this.relationshipToOriginator = relationshipToOriginator;
    return this;
  }

   /**
   * The relationship between this person and the originator they are related to.
   * @return relationshipToOriginator
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "The relationship between this person and the originator they are related to.")

  public String getRelationshipToOriginator() {
    return relationshipToOriginator;
  }


  public void setRelationshipToOriginator(String relationshipToOriginator) {
    this.relationshipToOriginator = relationshipToOriginator;
  }


  public TransferPlatformPersonCreateRequest ownershipPercentage(Integer ownershipPercentage) {
    
    this.ownershipPercentage = ownershipPercentage;
    return this;
  }

   /**
   * The percentage of ownership this person has in the onboarding business. Only applicable to beneficial owners with 25% or more ownership.
   * minimum: 25
   * maximum: 100
   * @return ownershipPercentage
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "The percentage of ownership this person has in the onboarding business. Only applicable to beneficial owners with 25% or more ownership.")

  public Integer getOwnershipPercentage() {
    return ownershipPercentage;
  }


  public void setOwnershipPercentage(Integer ownershipPercentage) {
    this.ownershipPercentage = ownershipPercentage;
  }


  public TransferPlatformPersonCreateRequest title(String title) {
    
    this.title = title;
    return this;
  }

   /**
   * The title of the person at the business. Only applicable to control persons - for example, \&quot;CEO\&quot;, \&quot;President\&quot;, \&quot;Owner\&quot;, etc.
   * @return title
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "The title of the person at the business. Only applicable to control persons - for example, \"CEO\", \"President\", \"Owner\", etc.")

  public String getTitle() {
    return title;
  }


  public void setTitle(String title) {
    this.title = title;
  }


  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    TransferPlatformPersonCreateRequest transferPlatformPersonCreateRequest = (TransferPlatformPersonCreateRequest) o;
    return Objects.equals(this.clientId, transferPlatformPersonCreateRequest.clientId) &&
        Objects.equals(this.secret, transferPlatformPersonCreateRequest.secret) &&
        Objects.equals(this.originatorClientId, transferPlatformPersonCreateRequest.originatorClientId) &&
        Objects.equals(this.name, transferPlatformPersonCreateRequest.name) &&
        Objects.equals(this.emailAddress, transferPlatformPersonCreateRequest.emailAddress) &&
        Objects.equals(this.phoneNumber, transferPlatformPersonCreateRequest.phoneNumber) &&
        Objects.equals(this.address, transferPlatformPersonCreateRequest.address) &&
        Objects.equals(this.idNumber, transferPlatformPersonCreateRequest.idNumber) &&
        Objects.equals(this.dateOfBirth, transferPlatformPersonCreateRequest.dateOfBirth) &&
        Objects.equals(this.relationshipToOriginator, transferPlatformPersonCreateRequest.relationshipToOriginator) &&
        Objects.equals(this.ownershipPercentage, transferPlatformPersonCreateRequest.ownershipPercentage) &&
        Objects.equals(this.title, transferPlatformPersonCreateRequest.title);
  }

  @Override
  public int hashCode() {
    return Objects.hash(clientId, secret, originatorClientId, name, emailAddress, phoneNumber, address, idNumber, dateOfBirth, relationshipToOriginator, ownershipPercentage, title);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class TransferPlatformPersonCreateRequest {\n");
    sb.append("    clientId: ").append(toIndentedString(clientId)).append("\n");
    sb.append("    secret: ").append(toIndentedString(secret)).append("\n");
    sb.append("    originatorClientId: ").append(toIndentedString(originatorClientId)).append("\n");
    sb.append("    name: ").append(toIndentedString(name)).append("\n");
    sb.append("    emailAddress: ").append(toIndentedString(emailAddress)).append("\n");
    sb.append("    phoneNumber: ").append(toIndentedString(phoneNumber)).append("\n");
    sb.append("    address: ").append(toIndentedString(address)).append("\n");
    sb.append("    idNumber: ").append(toIndentedString(idNumber)).append("\n");
    sb.append("    dateOfBirth: ").append(toIndentedString(dateOfBirth)).append("\n");
    sb.append("    relationshipToOriginator: ").append(toIndentedString(relationshipToOriginator)).append("\n");
    sb.append("    ownershipPercentage: ").append(toIndentedString(ownershipPercentage)).append("\n");
    sb.append("    title: ").append(toIndentedString(title)).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    ");
  }

}

