Class Person

java.lang.Object
com.stripe.model.StripeObject
com.stripe.model.v2.core.Person
All Implemented Interfaces:
HasId, StripeObjectInterface

public class Person extends StripeObject implements HasId
  • Constructor Details

    • Person

      public Person()
  • Method Details

    • getAccount

      public String getAccount()
      The account ID which the individual belongs to.
    • getAdditionalAddresses

      public List<Person.AdditionalAddress> getAdditionalAddresses()
      Additional addresses associated with the person.
    • getAdditionalNames

      public List<Person.AdditionalName> getAdditionalNames()
      Additional names (e.g. aliases) associated with the person.
    • getAdditionalTermsOfService

      public Person.AdditionalTermsOfService getAdditionalTermsOfService()
      Attestations of accepted terms of service agreements.
    • getAddress

      public Person.Address getAddress()
      The person's residential address.
    • getCreated

      public Instant getCreated()
      Time at which the object was created. Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z.
    • getDateOfBirth

      public Person.DateOfBirth getDateOfBirth()
      The person's date of birth.
    • getDocuments

      public Person.Documents getDocuments()
      Documents that may be submitted to satisfy various informational requests.
    • getEmail

      public String getEmail()
      The person's email address.
    • getGivenName

      public String getGivenName()
      The person's first name.
    • getIdNumbers

      public List<Person.IdNumber> getIdNumbers()
      The identification numbers (e.g., SSN) associated with the person.
    • getLegalGender

      public String getLegalGender()
      The person's gender (International regulations require either "male" or "female").

      One of female, or male.

    • getMetadata

      public Map<String,String> getMetadata()
      Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
    • getNationalities

      public List<String> getNationalities()
      The countries where the person is a national. Two-letter country code (ISO 3166-1 alpha-2).
    • getObject

      public String getObject()
      String representing the object's type. Objects of the same type share the same value of the object field.

      Equal to v2.core.account_person.

    • getPhone

      public String getPhone()
      The person's phone number.
    • getPoliticalExposure

      public String getPoliticalExposure()
      The person's political exposure.

      One of existing, or none.

    • getRelationship

      public Person.Relationship getRelationship()
      The relationship that this person has with the Account's business or legal entity.
    • getScriptAddresses

      public Person.ScriptAddresses getScriptAddresses()
      The script addresses (e.g., non-Latin characters) associated with the person.
    • getScriptNames

      public Person.ScriptNames getScriptNames()
      The script names (e.g. non-Latin characters) associated with the person.
    • getSurname

      public String getSurname()
      The person's last name.
    • getUpdated

      public Instant getUpdated()
      Time at which the object was last updated. Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z.
    • setAccount

      public void setAccount(String account)
      The account ID which the individual belongs to.
    • setAdditionalAddresses

      public void setAdditionalAddresses(List<Person.AdditionalAddress> additionalAddresses)
      Additional addresses associated with the person.
    • setAdditionalNames

      public void setAdditionalNames(List<Person.AdditionalName> additionalNames)
      Additional names (e.g. aliases) associated with the person.
    • setAdditionalTermsOfService

      public void setAdditionalTermsOfService(Person.AdditionalTermsOfService additionalTermsOfService)
      Attestations of accepted terms of service agreements.
    • setAddress

      public void setAddress(Person.Address address)
      The person's residential address.
    • setCreated

      public void setCreated(Instant created)
      Time at which the object was created. Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z.
    • setDateOfBirth

      public void setDateOfBirth(Person.DateOfBirth dateOfBirth)
      The person's date of birth.
    • setDocuments

      public void setDocuments(Person.Documents documents)
      Documents that may be submitted to satisfy various informational requests.
    • setEmail

      public void setEmail(String email)
      The person's email address.
    • setGivenName

      public void setGivenName(String givenName)
      The person's first name.
    • setId

      public void setId(String id)
      Unique identifier for the Person.
    • setIdNumbers

      public void setIdNumbers(List<Person.IdNumber> idNumbers)
      The identification numbers (e.g., SSN) associated with the person.
    • setLegalGender

      public void setLegalGender(String legalGender)
      The person's gender (International regulations require either "male" or "female").

      One of female, or male.

    • setMetadata

      public void setMetadata(Map<String,String> metadata)
      Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
    • setNationalities

      public void setNationalities(List<String> nationalities)
      The countries where the person is a national. Two-letter country code (ISO 3166-1 alpha-2).
    • setObject

      public void setObject(String object)
      String representing the object's type. Objects of the same type share the same value of the object field.

      Equal to v2.core.account_person.

    • setPhone

      public void setPhone(String phone)
      The person's phone number.
    • setPoliticalExposure

      public void setPoliticalExposure(String politicalExposure)
      The person's political exposure.

      One of existing, or none.

    • setRelationship

      public void setRelationship(Person.Relationship relationship)
      The relationship that this person has with the Account's business or legal entity.
    • setScriptAddresses

      public void setScriptAddresses(Person.ScriptAddresses scriptAddresses)
      The script addresses (e.g., non-Latin characters) associated with the person.
    • setScriptNames

      public void setScriptNames(Person.ScriptNames scriptNames)
      The script names (e.g. non-Latin characters) associated with the person.
    • setSurname

      public void setSurname(String surname)
      The person's last name.
    • setUpdated

      public void setUpdated(Instant updated)
      Time at which the object was last updated. Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • getId

      public String getId()
      Unique identifier for the Person.
      Specified by:
      getId in interface HasId