Class PaymentSourceCollection
- All Implemented Interfaces:
StripeActiveObject
,StripeCollectionInterface<PaymentSource>
,StripeObjectInterface
-
Field Summary
Fields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionWhen you create a new credit card, you must specify a customer or recipient on which to create it.create
(PaymentSourceCollectionCreateParams params, RequestOptions options) When you create a new credit card, you must specify a customer or recipient on which to create it.When you create a new credit card, you must specify a customer or recipient on which to create it.create
(Map<String, Object> params, RequestOptions options) When you create a new credit card, you must specify a customer or recipient on which to create it.List sources for a specified customer.list
(PaymentSourceCollectionListParams params, RequestOptions options) List sources for a specified customer.List sources for a specified customer.list
(Map<String, Object> params, RequestOptions options) List sources for a specified customer.Retrieve a specified source for a given customer.retrieve
(String id, RequestOptions options) Retrieve a specified source for a given customer.retrieve
(String id, PaymentSourceCollectionRetrieveParams params, RequestOptions options) Retrieve a specified source for a given customer.Retrieve a specified source for a given customer.Methods inherited from class com.stripe.model.StripeCollection
autoPagingIterable, autoPagingIterable, autoPagingIterable, canEqual, equals, getData, getHasMore, getObject, getPageTypeToken, getRequestOptions, getRequestParams, getResponseGetter, getUrl, hashCode, setData, setHasMore, setObject, setPageTypeToken, setRequestOptions, setRequestParams, setResponseGetter, setUrl
Methods inherited from class com.stripe.model.StripeObject
deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.stripe.model.StripeActiveObject
trySetResponseGetter
Methods inherited from interface com.stripe.model.StripeObjectInterface
getLastResponse, setLastResponse
-
Constructor Details
-
PaymentSourceCollection
public PaymentSourceCollection()
-
-
Method Details
-
create
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(Map<String, Object> params, RequestOptions options) throws StripeExceptionWhen 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
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(PaymentSourceCollectionCreateParams 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
-
list
List sources for a specified customer.- Throws:
StripeException
-
list
public PaymentSourceCollection list(Map<String, Object> params, RequestOptions options) throws StripeExceptionList sources for a specified customer.- Throws:
StripeException
-
list
public PaymentSourceCollection list(PaymentSourceCollectionListParams params) throws StripeException List sources for a specified customer.- Throws:
StripeException
-
list
public PaymentSourceCollection list(PaymentSourceCollectionListParams params, RequestOptions options) throws StripeException List sources for a specified customer.- Throws:
StripeException
-
retrieve
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 id, Map<String, Object> params, RequestOptions options) throws StripeExceptionRetrieve a specified source for a given customer.- Throws:
StripeException
-
retrieve
public PaymentSource retrieve(String id, PaymentSourceCollectionRetrieveParams params, RequestOptions options) throws StripeException Retrieve a specified source for a given customer.- Throws:
StripeException
-