Class PaymentSourceCollection
- java.lang.Object
-
- com.stripe.model.StripeObject
-
- com.stripe.model.StripeCollection<PaymentSource>
-
- com.stripe.model.PaymentSourceCollection
-
- All Implemented Interfaces:
StripeCollectionInterface<PaymentSource>
,StripeObjectInterface
public class PaymentSourceCollection extends StripeCollection<PaymentSource>
-
-
Field Summary
-
Fields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON
-
-
Constructor Summary
Constructors Constructor Description PaymentSourceCollection()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PaymentSource
create(PaymentSourceCollectionCreateParams params)
When you create a new credit card, you must specify a customer or recipient on which to create it.PaymentSource
create(PaymentSourceCollectionCreateParams params, RequestOptions options)
When you create a new credit card, you must specify a customer or recipient on which to create it.PaymentSource
create(java.util.Map<java.lang.String,java.lang.Object> params)
When you create a new credit card, you must specify a customer or recipient on which to create it.PaymentSource
create(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options)
When you create a new credit card, you must specify a customer or recipient on which to create it.PaymentSourceCollection
list(PaymentSourceCollectionListParams params)
List sources for a specified customer.PaymentSourceCollection
list(PaymentSourceCollectionListParams params, RequestOptions options)
List sources for a specified customer.PaymentSourceCollection
list(java.util.Map<java.lang.String,java.lang.Object> params)
List sources for a specified customer.PaymentSourceCollection
list(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options)
List sources for a specified customer.PaymentSource
retrieve(java.lang.String id)
Retrieve a specified source for a given customer.PaymentSource
retrieve(java.lang.String id, RequestOptions options)
Retrieve a specified source for a given customer.PaymentSource
retrieve(java.lang.String id, PaymentSourceCollectionRetrieveParams params, RequestOptions options)
Retrieve a specified source for a given customer.PaymentSource
retrieve(java.lang.String id, java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options)
Retrieve a specified source for a given customer.-
Methods inherited from class com.stripe.model.StripeCollection
autoPagingIterable, autoPagingIterable, autoPagingIterable, canEqual, equals, getData, getHasMore, getObject, getRequestOptions, getRequestParams, getUrl, hashCode, setData, setHasMore, setObject, setRequestOptions, setRequestParams, setUrl
-
Methods inherited from class com.stripe.model.StripeObject
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.StripeObjectInterface
getLastResponse, setLastResponse
-
-
-
-
Method Detail
-
list
public PaymentSourceCollection list(java.util.Map<java.lang.String,java.lang.Object> params) throws StripeException
List sources for a specified customer.- Throws:
StripeException
-
list
public PaymentSourceCollection list(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
List 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
public PaymentSource retrieve(java.lang.String id) throws StripeException
Retrieve a specified source for a given customer.- Throws:
StripeException
-
retrieve
public PaymentSource retrieve(java.lang.String id, RequestOptions options) throws StripeException
Retrieve a specified source for a given customer.- Throws:
StripeException
-
retrieve
public PaymentSource retrieve(java.lang.String id, java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
Retrieve a specified source for a given customer.- Throws:
StripeException
-
retrieve
public PaymentSource retrieve(java.lang.String id, PaymentSourceCollectionRetrieveParams params, RequestOptions options) throws StripeException
Retrieve a specified source for a given customer.- Throws:
StripeException
-
create
public PaymentSource create(java.util.Map<java.lang.String,java.lang.Object> 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(java.util.Map<java.lang.String,java.lang.Object> 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
-
create
public PaymentSource create(PaymentSourceCollectionCreateParams 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(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
-
-