Package com.stripe.service
Class PersonService
java.lang.Object
com.stripe.net.ApiService
com.stripe.service.PersonService
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionCreates a new person.create
(String account, RequestOptions options) Creates a new person.create
(String account, PersonCreateParams params) Creates a new person.create
(String account, PersonCreateParams params, RequestOptions options) Creates a new person.Deletes an existing person’s relationship to the account’s legal entity.delete
(String account, String person, RequestOptions options) Deletes an existing person’s relationship to the account’s legal entity.Returns a list of people associated with the account’s legal entity.list
(String account, RequestOptions options) Returns a list of people associated with the account’s legal entity.list
(String account, PersonListParams params) Returns a list of people associated with the account’s legal entity.list
(String account, PersonListParams params, RequestOptions options) Returns a list of people associated with the account’s legal entity.Retrieves an existing person.retrieve
(String account, String person, RequestOptions options) Retrieves an existing person.retrieve
(String account, String person, PersonRetrieveParams params) Retrieves an existing person.retrieve
(String account, String person, PersonRetrieveParams params, RequestOptions options) Retrieves an existing person.Updates an existing person.update
(String account, String person, RequestOptions options) Updates an existing person.update
(String account, String person, PersonUpdateParams params) Updates an existing person.update
(String account, String person, PersonUpdateParams params, RequestOptions options) Updates an existing person.Methods inherited from class com.stripe.net.ApiService
getResponseGetter
-
Constructor Details
-
PersonService
-
-
Method Details
-
list
public StripeCollection<Person> list(String account, PersonListParams params) throws StripeException Returns a list of people associated with the account’s legal entity. The people are returned sorted by creation date, with the most recent people appearing first.- Throws:
StripeException
-
list
Returns a list of people associated with the account’s legal entity. The people are returned sorted by creation date, with the most recent people appearing first.- Throws:
StripeException
-
list
Returns a list of people associated with the account’s legal entity. The people are returned sorted by creation date, with the most recent people appearing first.- Throws:
StripeException
-
list
public StripeCollection<Person> list(String account, PersonListParams params, RequestOptions options) throws StripeException Returns a list of people associated with the account’s legal entity. The people are returned sorted by creation date, with the most recent people appearing first.- Throws:
StripeException
-
create
Creates a new person.- Throws:
StripeException
-
create
Creates a new person.- Throws:
StripeException
-
create
Creates a new person.- Throws:
StripeException
-
create
public Person create(String account, PersonCreateParams params, RequestOptions options) throws StripeException Creates a new person.- Throws:
StripeException
-
retrieve
public Person retrieve(String account, String person, PersonRetrieveParams params) throws StripeException Retrieves an existing person.- Throws:
StripeException
-
retrieve
public Person retrieve(String account, String person, RequestOptions options) throws StripeException Retrieves an existing person.- Throws:
StripeException
-
retrieve
Retrieves an existing person.- Throws:
StripeException
-
retrieve
public Person retrieve(String account, String person, PersonRetrieveParams params, RequestOptions options) throws StripeException Retrieves an existing person.- Throws:
StripeException
-
update
public Person update(String account, String person, PersonUpdateParams params) throws StripeException Updates an existing person.- Throws:
StripeException
-
update
Updates an existing person.- Throws:
StripeException
-
update
Updates an existing person.- Throws:
StripeException
-
update
public Person update(String account, String person, PersonUpdateParams params, RequestOptions options) throws StripeException Updates an existing person.- Throws:
StripeException
-
delete
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 theexecutive
parameter, you cannot delete the only verifiedexecutive
on file.- Throws:
StripeException
-
delete
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 theexecutive
parameter, you cannot delete the only verifiedexecutive
on file.- Throws:
StripeException
-