public class Person extends ApiResource implements HasId, MetadataStore<Person>
Modifier and Type | Class and Description |
---|---|
static class |
Person.DateOfBirth |
static class |
Person.JapanAddress |
static class |
Person.Relationship |
static class |
Person.Requirements |
static class |
Person.Verification |
static class |
Person.VerificationDocument |
ApiResource.RequestMethod, ApiResource.RequestType
CHARSET, GSON
PRETTY_PRINT_GSON
Constructor and Description |
---|
Person() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canEqual(java.lang.Object other) |
Person |
delete()
Deletes an existing person’s relationship to the account’s legal entity.
|
Person |
delete(java.util.Map<java.lang.String,java.lang.Object> params)
Deletes an existing person’s relationship to the account’s legal entity.
|
Person |
delete(java.util.Map<java.lang.String,java.lang.Object> params,
RequestOptions options)
Deletes an existing person’s relationship to the account’s legal entity.
|
Person |
delete(RequestOptions options)
Deletes an existing person’s relationship to the account’s legal entity.
|
boolean |
equals(java.lang.Object o) |
java.lang.String |
getAccount()
The account the person is associated with.
|
Address |
getAddress() |
Person.JapanAddress |
getAddressKana()
The Kana variation of the person's address (Japan only).
|
Person.JapanAddress |
getAddressKanji()
The Kanji variation of the person's address (Japan only).
|
java.lang.Long |
getCreated()
Time at which the object was created.
|
java.lang.Boolean |
getDeleted()
Always true for a deleted object.
|
Person.DateOfBirth |
getDob() |
java.lang.String |
getEmail()
The person's email address.
|
java.lang.String |
getFirstName()
The person's first name.
|
java.lang.String |
getFirstNameKana()
The Kana variation of the person's first name (Japan only).
|
java.lang.String |
getFirstNameKanji()
The Kanji variation of the person's first name (Japan only).
|
java.lang.String |
getGender()
The person's gender (International regulations require either "male" or "female").
|
java.lang.String |
getId()
Unique identifier for the object.
|
java.lang.Boolean |
getIdNumberProvided()
Whether the person's `id_number` was provided.
|
java.lang.String |
getLastName()
The person's last name.
|
java.lang.String |
getLastNameKana()
The Kana variation of the person's last name (Japan only).
|
java.lang.String |
getLastNameKanji()
The Kanji variation of the person's last name (Japan only).
|
java.lang.String |
getMaidenName()
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.String |
getObject()
String representing the object's type.
|
java.lang.String |
getPhone()
The person's phone number.
|
Person.Relationship |
getRelationship() |
Person.Requirements |
getRequirements()
Information about the requirements for this person, including what information needs to be
collected, and by when.
|
java.lang.Boolean |
getSsnLast4Provided()
Whether the last 4 digits of this person's SSN have been provided.
|
Person.Verification |
getVerification() |
int |
hashCode() |
void |
setAccount(java.lang.String account)
The account the person is associated with.
|
void |
setAddress(Address address) |
void |
setAddressKana(Person.JapanAddress addressKana)
The Kana variation of the person's address (Japan only).
|
void |
setAddressKanji(Person.JapanAddress addressKanji)
The Kanji variation of the person's address (Japan only).
|
void |
setCreated(java.lang.Long created)
Time at which the object was created.
|
void |
setDeleted(java.lang.Boolean deleted)
Always true for a deleted object.
|
void |
setDob(Person.DateOfBirth dob) |
void |
setEmail(java.lang.String email)
The person's email address.
|
void |
setFirstName(java.lang.String firstName)
The person's first name.
|
void |
setFirstNameKana(java.lang.String firstNameKana)
The Kana variation of the person's first name (Japan only).
|
void |
setFirstNameKanji(java.lang.String firstNameKanji)
The Kanji variation of the person's first name (Japan only).
|
void |
setGender(java.lang.String gender)
The person's gender (International regulations require either "male" or "female").
|
void |
setId(java.lang.String id)
Unique identifier for the object.
|
void |
setIdNumberProvided(java.lang.Boolean idNumberProvided)
Whether the person's `id_number` was provided.
|
void |
setLastName(java.lang.String lastName)
The person's last name.
|
void |
setLastNameKana(java.lang.String lastNameKana)
The Kana variation of the person's last name (Japan only).
|
void |
setLastNameKanji(java.lang.String lastNameKanji)
The Kanji variation of the person's last name (Japan only).
|
void |
setMaidenName(java.lang.String maidenName)
The person's maiden name.
|
void |
setMetadata(java.util.Map<java.lang.String,java.lang.String> metadata)
Set of key-value pairs that you can attach to an object.
|
void |
setObject(java.lang.String object)
String representing the object's type.
|
void |
setPhone(java.lang.String phone)
The person's phone number.
|
void |
setRelationship(Person.Relationship relationship) |
void |
setRequirements(Person.Requirements requirements)
Information about the requirements for this person, including what information needs to be
collected, and by when.
|
void |
setSsnLast4Provided(java.lang.Boolean ssnLast4Provided)
Whether the last 4 digits of this person's SSN have been provided.
|
void |
setVerification(Person.Verification verification) |
Person |
update(java.util.Map<java.lang.String,java.lang.Object> params)
Updates an existing person.
|
Person |
update(java.util.Map<java.lang.String,java.lang.Object> params,
RequestOptions options)
Updates an existing person.
|
Person |
update(PersonUpdateParams params)
Updates an existing person.
|
Person |
update(PersonUpdateParams params,
RequestOptions options)
Updates an existing person.
|
checkNullTypedParams, classUrl, classUrl, instanceUrl, instanceUrl, multipartRequest, request, request, requestCollection, requestCollection, setExpandableFieldId, setStripeResponseGetter, singleClassUrl, singleClassUrl, subresourceUrl, urlEncode, urlEncodeId
equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
public Person update(java.util.Map<java.lang.String,java.lang.Object> params) throws StripeException
update
in interface MetadataStore<Person>
StripeException
public Person update(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
update
in interface MetadataStore<Person>
StripeException
public Person update(PersonUpdateParams params) throws StripeException
StripeException
public Person update(PersonUpdateParams params, RequestOptions options) throws StripeException
StripeException
public Person delete() throws StripeException
account_opener
. If your integration is using the executive
parameter, you
cannot delete the only verified executive
on file.StripeException
public Person delete(RequestOptions options) throws StripeException
account_opener
. If your integration is using the executive
parameter, you
cannot delete the only verified executive
on file.StripeException
public Person delete(java.util.Map<java.lang.String,java.lang.Object> params) throws StripeException
account_opener
. If your integration is using the executive
parameter, you
cannot delete the only verified executive
on file.StripeException
public Person delete(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
account_opener
. If your integration is using the executive
parameter, you
cannot delete the only verified executive
on file.StripeException
public java.lang.String getAccount()
public Address getAddress()
public Person.JapanAddress getAddressKana()
public Person.JapanAddress getAddressKanji()
public java.lang.Long getCreated()
public java.lang.Boolean getDeleted()
public Person.DateOfBirth getDob()
public java.lang.String getEmail()
public java.lang.String getFirstName()
public java.lang.String getFirstNameKana()
public java.lang.String getFirstNameKanji()
public java.lang.String getGender()
public java.lang.Boolean getIdNumberProvided()
public java.lang.String getLastName()
public java.lang.String getLastNameKana()
public java.lang.String getLastNameKanji()
public java.lang.String getMaidenName()
public java.lang.String getObject()
Equal to `person`.
public java.lang.String getPhone()
public Person.Relationship getRelationship()
public Person.Requirements getRequirements()
public java.lang.Boolean getSsnLast4Provided()
public Person.Verification getVerification()
public void setAccount(java.lang.String account)
public void setAddress(Address address)
public void setAddressKana(Person.JapanAddress addressKana)
public void setAddressKanji(Person.JapanAddress addressKanji)
public void setCreated(java.lang.Long created)
public void setDeleted(java.lang.Boolean deleted)
public void setDob(Person.DateOfBirth dob)
public void setEmail(java.lang.String email)
public void setFirstName(java.lang.String firstName)
public void setFirstNameKana(java.lang.String firstNameKana)
public void setFirstNameKanji(java.lang.String firstNameKanji)
public void setGender(java.lang.String gender)
public void setId(java.lang.String id)
public void setIdNumberProvided(java.lang.Boolean idNumberProvided)
public void setLastName(java.lang.String lastName)
public void setLastNameKana(java.lang.String lastNameKana)
public void setLastNameKanji(java.lang.String lastNameKanji)
public void setMaidenName(java.lang.String maidenName)
public void setMetadata(java.util.Map<java.lang.String,java.lang.String> metadata)
public void setObject(java.lang.String object)
Equal to `person`.
public void setPhone(java.lang.String phone)
public void setRelationship(Person.Relationship relationship)
public void setRequirements(Person.Requirements requirements)
public void setSsnLast4Provided(java.lang.Boolean ssnLast4Provided)
public void setVerification(Person.Verification verification)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
protected boolean canEqual(java.lang.Object other)
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String getId()
public java.util.Map<java.lang.String,java.lang.String> getMetadata()
getMetadata
in interface MetadataStore<Person>