Package com.stripe.model
Class Person
- java.lang.Object
-
- com.stripe.model.StripeObject
-
- com.stripe.net.ApiResource
-
- com.stripe.model.Person
-
- All Implemented Interfaces:
HasId,MetadataStore<Person>,StripeObjectInterface
public class Person extends ApiResource implements HasId, MetadataStore<Person>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPerson.DateOfBirthstatic classPerson.JapanAddressstatic classPerson.Relationshipstatic classPerson.Requirementsstatic classPerson.Verificationstatic classPerson.VerificationDocument-
Nested classes/interfaces inherited from class com.stripe.net.ApiResource
ApiResource.RequestMethod
-
-
Field Summary
-
Fields inherited from class com.stripe.net.ApiResource
CHARSET, GSON
-
Fields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON
-
-
Constructor Summary
Constructors Constructor Description Person()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanEqual(java.lang.Object other)Persondelete()Deletes an existing person’s relationship to the account’s legal entity.Persondelete(RequestOptions options)Deletes an existing person’s relationship to the account’s legal entity.Persondelete(java.util.Map<java.lang.String,java.lang.Object> params)Deletes an existing person’s relationship to the account’s legal entity.Persondelete(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options)Deletes an existing person’s relationship to the account’s legal entity.booleanequals(java.lang.Object o)java.lang.StringgetAccount()The account the person is associated with.AddressgetAddress()Person.JapanAddressgetAddressKana()The Kana variation of the person's address (Japan only).Person.JapanAddressgetAddressKanji()The Kanji variation of the person's address (Japan only).java.lang.LonggetCreated()Time at which the object was created.java.lang.BooleangetDeleted()Always true for a deleted object.Person.DateOfBirthgetDob()java.lang.StringgetEmail()The person's email address.java.lang.StringgetFirstName()The person's first name.java.lang.StringgetFirstNameKana()The Kana variation of the person's first name (Japan only).java.lang.StringgetFirstNameKanji()The Kanji variation of the person's first name (Japan only).java.lang.StringgetGender()The person's gender (International regulations require either "male" or "female").java.lang.StringgetId()Unique identifier for the object.java.lang.BooleangetIdNumberProvided()Whether the person'sid_numberwas provided.java.lang.StringgetLastName()The person's last name.java.lang.StringgetLastNameKana()The Kana variation of the person's last name (Japan only).java.lang.StringgetLastNameKanji()The Kanji variation of the person's last name (Japan only).java.lang.StringgetMaidenName()The person's maiden name.java.util.Map<java.lang.String,java.lang.String>getMetadata()Set of key-value pairs that you can attach to an object.java.lang.StringgetNationality()The country where the person is a national.java.lang.StringgetObject()String representing the object's type.java.lang.StringgetPhone()The person's phone number.java.lang.StringgetPoliticalExposure()Indicates if the person or any of their representatives, family members, or other closely related persons, declares that they hold or have held an important public job or function, in any jurisdiction.Person.RelationshipgetRelationship()Person.RequirementsgetRequirements()Information about the requirements for this person, including what information needs to be collected, and by when.java.lang.BooleangetSsnLast4Provided()Whether the last four digits of the person's Social Security number have been provided (U.S.Person.VerificationgetVerification()inthashCode()voidsetAccount(java.lang.String account)The account the person is associated with.voidsetAddress(Address address)voidsetAddressKana(Person.JapanAddress addressKana)The Kana variation of the person's address (Japan only).voidsetAddressKanji(Person.JapanAddress addressKanji)The Kanji variation of the person's address (Japan only).voidsetCreated(java.lang.Long created)Time at which the object was created.voidsetDeleted(java.lang.Boolean deleted)Always true for a deleted object.voidsetDob(Person.DateOfBirth dob)voidsetEmail(java.lang.String email)The person's email address.voidsetFirstName(java.lang.String firstName)The person's first name.voidsetFirstNameKana(java.lang.String firstNameKana)The Kana variation of the person's first name (Japan only).voidsetFirstNameKanji(java.lang.String firstNameKanji)The Kanji variation of the person's first name (Japan only).voidsetGender(java.lang.String gender)The person's gender (International regulations require either "male" or "female").voidsetId(java.lang.String id)Unique identifier for the object.voidsetIdNumberProvided(java.lang.Boolean idNumberProvided)Whether the person'sid_numberwas provided.voidsetLastName(java.lang.String lastName)The person's last name.voidsetLastNameKana(java.lang.String lastNameKana)The Kana variation of the person's last name (Japan only).voidsetLastNameKanji(java.lang.String lastNameKanji)The Kanji variation of the person's last name (Japan only).voidsetMaidenName(java.lang.String maidenName)The person's maiden name.voidsetMetadata(java.util.Map<java.lang.String,java.lang.String> metadata)Set of key-value pairs that you can attach to an object.voidsetNationality(java.lang.String nationality)The country where the person is a national.voidsetObject(java.lang.String object)String representing the object's type.voidsetPhone(java.lang.String phone)The person's phone number.voidsetPoliticalExposure(java.lang.String politicalExposure)Indicates if the person or any of their representatives, family members, or other closely related persons, declares that they hold or have held an important public job or function, in any jurisdiction.voidsetRelationship(Person.Relationship relationship)voidsetRequirements(Person.Requirements requirements)Information about the requirements for this person, including what information needs to be collected, and by when.voidsetSsnLast4Provided(java.lang.Boolean ssnLast4Provided)Whether the last four digits of the person's Social Security number have been provided (U.S.voidsetVerification(Person.Verification verification)Personupdate(PersonUpdateParams params)Updates an existing person.Personupdate(PersonUpdateParams params, RequestOptions options)Updates an existing person.Personupdate(java.util.Map<java.lang.String,java.lang.Object> params)Updates an existing person.Personupdate(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options)Updates an existing person.-
Methods inherited from class com.stripe.net.ApiResource
checkNullTypedParams, classUrl, classUrl, instanceUrl, instanceUrl, request, request, requestCollection, requestCollection, setExpandableFieldId, setStripeResponseGetter, singleClassUrl, singleClassUrl, subresourceUrl, urlEncode, urlEncodeId
-
Methods inherited from class com.stripe.model.StripeObject
equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
-
-
-
-
Method Detail
-
update
public Person update(java.util.Map<java.lang.String,java.lang.Object> params) throws StripeException
Updates an existing person.- Specified by:
updatein interfaceMetadataStore<Person>- Throws:
StripeException
-
update
public Person update(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
Updates an existing person.- Specified by:
updatein interfaceMetadataStore<Person>- Throws:
StripeException
-
update
public Person update(PersonUpdateParams params) throws StripeException
Updates an existing person.- Throws:
StripeException
-
update
public Person update(PersonUpdateParams params, RequestOptions options) throws StripeException
Updates an existing person.- Throws:
StripeException
-
delete
public Person delete() throws StripeException
Deletes an existing person’s relationship to the account’s legal entity. Any person with a relationship for an account can be deleted through the API, except if the person is theaccount_opener. If your integration is using theexecutiveparameter, you cannot delete the only verifiedexecutiveon file.- Throws:
StripeException
-
delete
public Person delete(RequestOptions options) throws StripeException
Deletes an existing person’s relationship to the account’s legal entity. Any person with a relationship for an account can be deleted through the API, except if the person is theaccount_opener. If your integration is using theexecutiveparameter, you cannot delete the only verifiedexecutiveon file.- Throws:
StripeException
-
delete
public Person delete(java.util.Map<java.lang.String,java.lang.Object> params) throws StripeException
Deletes an existing person’s relationship to the account’s legal entity. Any person with a relationship for an account can be deleted through the API, except if the person is theaccount_opener. If your integration is using theexecutiveparameter, you cannot delete the only verifiedexecutiveon file.- Throws:
StripeException
-
delete
public Person delete(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
Deletes an existing person’s relationship to the account’s legal entity. Any person with a relationship for an account can be deleted through the API, except if the person is theaccount_opener. If your integration is using theexecutiveparameter, you cannot delete the only verifiedexecutiveon file.- Throws:
StripeException
-
getAccount
public java.lang.String getAccount()
The account the person is associated with.
-
getAddress
public Address getAddress()
-
getAddressKana
public Person.JapanAddress getAddressKana()
The Kana variation of the person's address (Japan only).
-
getAddressKanji
public Person.JapanAddress getAddressKanji()
The Kanji variation of the person's address (Japan only).
-
getCreated
public java.lang.Long getCreated()
Time at which the object was created. Measured in seconds since the Unix epoch.
-
getDeleted
public java.lang.Boolean getDeleted()
Always true for a deleted object.
-
getDob
public Person.DateOfBirth getDob()
-
getEmail
public java.lang.String getEmail()
The person's email address.
-
getFirstName
public java.lang.String getFirstName()
The person's first name.
-
getFirstNameKana
public java.lang.String getFirstNameKana()
The Kana variation of the person's first name (Japan only).
-
getFirstNameKanji
public java.lang.String getFirstNameKanji()
The Kanji variation of the person's first name (Japan only).
-
getGender
public java.lang.String getGender()
The person's gender (International regulations require either "male" or "female").
-
getIdNumberProvided
public java.lang.Boolean getIdNumberProvided()
Whether the person'sid_numberwas provided.
-
getLastName
public java.lang.String getLastName()
The person's last name.
-
getLastNameKana
public java.lang.String getLastNameKana()
The Kana variation of the person's last name (Japan only).
-
getLastNameKanji
public java.lang.String getLastNameKanji()
The Kanji variation of the person's last name (Japan only).
-
getMaidenName
public java.lang.String getMaidenName()
The person's maiden name.
-
getNationality
public java.lang.String getNationality()
The country where the person is a national.
-
getObject
public java.lang.String getObject()
String representing the object's type. Objects of the same type share the same value.Equal to
person.
-
getPhone
public java.lang.String getPhone()
The person's phone number.
-
getPoliticalExposure
public java.lang.String getPoliticalExposure()
Indicates if the person or any of their representatives, family members, or other closely related persons, declares that they hold or have held an important public job or function, in any jurisdiction.One of
existing, ornone.
-
getRelationship
public Person.Relationship getRelationship()
-
getRequirements
public Person.Requirements getRequirements()
Information about the requirements for this person, including what information needs to be collected, and by when.
-
getSsnLast4Provided
public java.lang.Boolean getSsnLast4Provided()
Whether the last four digits of the person's Social Security number have been provided (U.S. only).
-
getVerification
public Person.Verification getVerification()
-
setAccount
public void setAccount(java.lang.String account)
The account the person is associated with.
-
setAddress
public void setAddress(Address address)
-
setAddressKana
public void setAddressKana(Person.JapanAddress addressKana)
The Kana variation of the person's address (Japan only).
-
setAddressKanji
public void setAddressKanji(Person.JapanAddress addressKanji)
The Kanji variation of the person's address (Japan only).
-
setCreated
public void setCreated(java.lang.Long created)
Time at which the object was created. Measured in seconds since the Unix epoch.
-
setDeleted
public void setDeleted(java.lang.Boolean deleted)
Always true for a deleted object.
-
setDob
public void setDob(Person.DateOfBirth dob)
-
setEmail
public void setEmail(java.lang.String email)
The person's email address.
-
setFirstName
public void setFirstName(java.lang.String firstName)
The person's first name.
-
setFirstNameKana
public void setFirstNameKana(java.lang.String firstNameKana)
The Kana variation of the person's first name (Japan only).
-
setFirstNameKanji
public void setFirstNameKanji(java.lang.String firstNameKanji)
The Kanji variation of the person's first name (Japan only).
-
setGender
public void setGender(java.lang.String gender)
The person's gender (International regulations require either "male" or "female").
-
setId
public void setId(java.lang.String id)
Unique identifier for the object.
-
setIdNumberProvided
public void setIdNumberProvided(java.lang.Boolean idNumberProvided)
Whether the person'sid_numberwas provided.
-
setLastName
public void setLastName(java.lang.String lastName)
The person's last name.
-
setLastNameKana
public void setLastNameKana(java.lang.String lastNameKana)
The Kana variation of the person's last name (Japan only).
-
setLastNameKanji
public void setLastNameKanji(java.lang.String lastNameKanji)
The Kanji variation of the person's last name (Japan only).
-
setMaidenName
public void setMaidenName(java.lang.String maidenName)
The person's maiden name.
-
setMetadata
public void setMetadata(java.util.Map<java.lang.String,java.lang.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.
-
setNationality
public void setNationality(java.lang.String nationality)
The country where the person is a national.
-
setObject
public void setObject(java.lang.String object)
String representing the object's type. Objects of the same type share the same value.Equal to
person.
-
setPhone
public void setPhone(java.lang.String phone)
The person's phone number.
-
setPoliticalExposure
public void setPoliticalExposure(java.lang.String politicalExposure)
Indicates if the person or any of their representatives, family members, or other closely related persons, declares that they hold or have held an important public job or function, in any jurisdiction.One of
existing, ornone.
-
setRelationship
public void setRelationship(Person.Relationship relationship)
-
setRequirements
public void setRequirements(Person.Requirements requirements)
Information about the requirements for this person, including what information needs to be collected, and by when.
-
setSsnLast4Provided
public void setSsnLast4Provided(java.lang.Boolean ssnLast4Provided)
Whether the last four digits of the person's Social Security number have been provided (U.S. only).
-
setVerification
public void setVerification(Person.Verification verification)
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
getId
public java.lang.String getId()
Unique identifier for the object.
-
getMetadata
public java.util.Map<java.lang.String,java.lang.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.- Specified by:
getMetadatain interfaceMetadataStore<Person>
-
-