Package com.stripe.service
Class CustomerPaymentSourceService
java.lang.Object
com.stripe.net.ApiService
com.stripe.service.CustomerPaymentSourceService
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreate
(String customer, CustomerPaymentSourceCreateParams params) When you create a new credit card, you must specify a customer or recipient on which to create it.create
(String customer, CustomerPaymentSourceCreateParams 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, CustomerPaymentSourceDeleteParams params) Delete a specified source for a given customer.delete
(String customer, String id, CustomerPaymentSourceDeleteParams 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, CustomerPaymentSourceListParams params) List sources for a specified customer.list
(String customer, CustomerPaymentSourceListParams 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, CustomerPaymentSourceRetrieveParams params) Retrieve a specified source for a given customer.retrieve
(String customer, String id, CustomerPaymentSourceRetrieveParams 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, CustomerPaymentSourceUpdateParams params) Update a specified source for a given customer.update
(String customer, String id, CustomerPaymentSourceUpdateParams 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, CustomerPaymentSourceVerifyParams params) Verify a specified bank account for a given customer.verify
(String customer, String id, CustomerPaymentSourceVerifyParams params, RequestOptions options) Verify a specified bank account for a given customer.Methods inherited from class com.stripe.net.ApiService
getResponseGetter, request, requestStream
-
Constructor Details
-
CustomerPaymentSourceService
-
-
Method Details
-
list
public StripeCollection<PaymentSource> list(String customer, CustomerPaymentSourceListParams 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, CustomerPaymentSourceListParams params, RequestOptions options) throws StripeException List sources for a specified customer.- Throws:
StripeException
-
create
public PaymentSource create(String customer, CustomerPaymentSourceCreateParams 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, CustomerPaymentSourceCreateParams 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, CustomerPaymentSourceRetrieveParams 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, CustomerPaymentSourceRetrieveParams params, RequestOptions options) throws StripeException Retrieve a specified source for a given customer.- Throws:
StripeException
-
update
public PaymentSource update(String customer, String id, CustomerPaymentSourceUpdateParams 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, CustomerPaymentSourceUpdateParams params, RequestOptions options) throws StripeException Update a specified source for a given customer.- Throws:
StripeException
-
delete
public PaymentSource delete(String customer, String id, CustomerPaymentSourceDeleteParams 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, CustomerPaymentSourceDeleteParams params, RequestOptions options) throws StripeException Delete a specified source for a given customer.- Throws:
StripeException
-
verify
public BankAccount verify(String customer, String id, CustomerPaymentSourceVerifyParams 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, CustomerPaymentSourceVerifyParams params, RequestOptions options) throws StripeException Verify a specified bank account for a given customer.- Throws:
StripeException
-