Package com.stripe.service
Class PaymentSourceService
java.lang.Object
com.stripe.net.ApiService
com.stripe.service.PaymentSourceService
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreate
(String customer, PaymentSourceCreateParams params) When you create a new credit card, you must specify a customer or recipient on which to create it.create
(String customer, PaymentSourceCreateParams params, RequestOptions options) When you create a new credit card, you must specify a customer or recipient on which to create it.Delete a specified source for a given customer.delete
(String customer, String id, RequestOptions options) Delete a specified source for a given customer.delete
(String customer, String id, PaymentSourceDeleteParams params) Delete a specified source for a given customer.delete
(String customer, String id, PaymentSourceDeleteParams params, RequestOptions options) Delete a specified source for a given customer.List sources for a specified customer.list
(String customer, RequestOptions options) List sources for a specified customer.list
(String customer, PaymentSourceListParams params) List sources for a specified customer.list
(String customer, PaymentSourceListParams params, RequestOptions options) List sources for a specified customer.Retrieve a specified source for a given customer.retrieve
(String customer, String id, RequestOptions options) Retrieve a specified source for a given customer.retrieve
(String customer, String id, PaymentSourceRetrieveParams params) Retrieve a specified source for a given customer.retrieve
(String customer, String id, PaymentSourceRetrieveParams params, RequestOptions options) Retrieve a specified source for a given customer.Update a specified source for a given customer.update
(String customer, String id, RequestOptions options) Update a specified source for a given customer.update
(String customer, String id, PaymentSourceUpdateParams params) Update a specified source for a given customer.update
(String customer, String id, PaymentSourceUpdateParams params, RequestOptions options) Update a specified source for a given customer.Verify a specified bank account for a given customer.verify
(String customer, String id, RequestOptions options) Verify a specified bank account for a given customer.verify
(String customer, String id, PaymentSourceVerifyParams params) Verify a specified bank account for a given customer.verify
(String customer, String id, PaymentSourceVerifyParams params, RequestOptions options) Verify a specified bank account for a given customer.Methods inherited from class com.stripe.net.ApiService
getResponseGetter
-
Constructor Details
-
PaymentSourceService
-
-
Method Details
-
list
public StripeCollection<PaymentSource> list(String customer, PaymentSourceListParams params) throws StripeException List sources for a specified customer.- Throws:
StripeException
-
list
public StripeCollection<PaymentSource> list(String customer, RequestOptions options) throws StripeException List sources for a specified customer.- Throws:
StripeException
-
list
List sources for a specified customer.- Throws:
StripeException
-
list
public StripeCollection<PaymentSource> list(String customer, PaymentSourceListParams params, RequestOptions options) throws StripeException List sources for a specified customer.- Throws:
StripeException
-
create
public PaymentSource create(String customer, PaymentSourceCreateParams params) throws StripeException When you create a new credit card, you must specify a customer or recipient on which to create it.If the card’s owner has no default card, then the new card will become the default. However, if the owner already has a default, then it will not change. To change the default, you should update the customer to have a new
default_source
.- Throws:
StripeException
-
create
public PaymentSource create(String customer, PaymentSourceCreateParams params, RequestOptions options) throws StripeException When you create a new credit card, you must specify a customer or recipient on which to create it.If the card’s owner has no default card, then the new card will become the default. However, if the owner already has a default, then it will not change. To change the default, you should update the customer to have a new
default_source
.- Throws:
StripeException
-
retrieve
public PaymentSource retrieve(String customer, String id, PaymentSourceRetrieveParams params) throws StripeException Retrieve a specified source for a given customer.- Throws:
StripeException
-
retrieve
public PaymentSource retrieve(String customer, String id, RequestOptions options) throws StripeException Retrieve a specified source for a given customer.- Throws:
StripeException
-
retrieve
Retrieve a specified source for a given customer.- Throws:
StripeException
-
retrieve
public PaymentSource retrieve(String customer, String id, PaymentSourceRetrieveParams params, RequestOptions options) throws StripeException Retrieve a specified source for a given customer.- Throws:
StripeException
-
update
public PaymentSource update(String customer, String id, PaymentSourceUpdateParams params) throws StripeException Update a specified source for a given customer.- Throws:
StripeException
-
update
public PaymentSource update(String customer, String id, RequestOptions options) throws StripeException Update a specified source for a given customer.- Throws:
StripeException
-
update
Update a specified source for a given customer.- Throws:
StripeException
-
update
public PaymentSource update(String customer, String id, PaymentSourceUpdateParams params, RequestOptions options) throws StripeException Update a specified source for a given customer.- Throws:
StripeException
-
delete
public PaymentSource delete(String customer, String id, PaymentSourceDeleteParams params) throws StripeException Delete a specified source for a given customer.- Throws:
StripeException
-
delete
public PaymentSource delete(String customer, String id, RequestOptions options) throws StripeException Delete a specified source for a given customer.- Throws:
StripeException
-
delete
Delete a specified source for a given customer.- Throws:
StripeException
-
delete
public PaymentSource delete(String customer, String id, PaymentSourceDeleteParams params, RequestOptions options) throws StripeException Delete a specified source for a given customer.- Throws:
StripeException
-
verify
public BankAccount verify(String customer, String id, PaymentSourceVerifyParams params) throws StripeException Verify a specified bank account for a given customer.- Throws:
StripeException
-
verify
public BankAccount verify(String customer, String id, RequestOptions options) throws StripeException Verify a specified bank account for a given customer.- Throws:
StripeException
-
verify
Verify a specified bank account for a given customer.- Throws:
StripeException
-
verify
public BankAccount verify(String customer, String id, PaymentSourceVerifyParams params, RequestOptions options) throws StripeException Verify a specified bank account for a given customer.- Throws:
StripeException
-