All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.plaid.client.model.ProfileIdentity Maven / Gradle / Ivy

There is a newer version: 29.0.0
Show newest version
/*
 * 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.503.5
 * 
 *
 * 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.ProfileIdentityAddress;
import com.plaid.client.model.ProfileIdentityName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;

/**
 * ProfileIdentity defines the identity data permissioned by the end user during the authorization flow.
 */
@ApiModel(description = "ProfileIdentity defines the identity data permissioned by the end user during the authorization flow.")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-28T21:00:55.745394Z[Etc/UTC]")
public class ProfileIdentity {
  public static final String SERIALIZED_NAME_NAME = "name";
  @SerializedName(SERIALIZED_NAME_NAME)
  private ProfileIdentityName name;

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

  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 static final String SERIALIZED_NAME_DATE_OF_BIRTH = "date_of_birth";
  @SerializedName(SERIALIZED_NAME_DATE_OF_BIRTH)
  private String dateOfBirth;

  public static final String SERIALIZED_NAME_SSN = "ssn";
  @SerializedName(SERIALIZED_NAME_SSN)
  private String ssn;

  public static final String SERIALIZED_NAME_SSN_LAST4 = "ssn_last_4";
  @SerializedName(SERIALIZED_NAME_SSN_LAST4)
  private String ssnLast4;


  public ProfileIdentity name(ProfileIdentityName name) {
    
    this.name = name;
    return this;
  }

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

  public ProfileIdentityName getName() {
    return name;
  }


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


  public ProfileIdentity address(ProfileIdentityAddress address) {
    
    this.address = address;
    return this;
  }

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

  public ProfileIdentityAddress getAddress() {
    return address;
  }


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


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

   /**
   * The user's phone number in [E.164](https://en.wikipedia.org/wiki/E.164) format
   * @return phoneNumber
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "The user's phone number in [E.164](https://en.wikipedia.org/wiki/E.164) format")

  public String getPhoneNumber() {
    return phoneNumber;
  }


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


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

   /**
   * The user's email address.
   * @return email
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "The user's email address.")

  public String getEmail() {
    return email;
  }


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


  public ProfileIdentity dateOfBirth(String dateOfBirth) {
    
    this.dateOfBirth = dateOfBirth;
    return this;
  }

   /**
   * The user's date of birth.
   * @return dateOfBirth
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "The user's date of birth.")

  public String getDateOfBirth() {
    return dateOfBirth;
  }


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


  public ProfileIdentity ssn(String ssn) {
    
    this.ssn = ssn;
    return this;
  }

   /**
   * The user's social security number.
   * @return ssn
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "The user's social security number.")

  public String getSsn() {
    return ssn;
  }


  public void setSsn(String ssn) {
    this.ssn = ssn;
  }


  public ProfileIdentity ssnLast4(String ssnLast4) {
    
    this.ssnLast4 = ssnLast4;
    return this;
  }

   /**
   * The last 4 digits of the user's social security number.
   * @return ssnLast4
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "The last 4 digits of the user's social security number.")

  public String getSsnLast4() {
    return ssnLast4;
  }


  public void setSsnLast4(String ssnLast4) {
    this.ssnLast4 = ssnLast4;
  }


  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    ProfileIdentity profileIdentity = (ProfileIdentity) o;
    return Objects.equals(this.name, profileIdentity.name) &&
        Objects.equals(this.address, profileIdentity.address) &&
        Objects.equals(this.phoneNumber, profileIdentity.phoneNumber) &&
        Objects.equals(this.email, profileIdentity.email) &&
        Objects.equals(this.dateOfBirth, profileIdentity.dateOfBirth) &&
        Objects.equals(this.ssn, profileIdentity.ssn) &&
        Objects.equals(this.ssnLast4, profileIdentity.ssnLast4);
  }

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

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

}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy