public class PaymentSourceCollection extends StripeCollection<PaymentSource>
PRETTY_PRINT_GSON
Constructor and Description |
---|
PaymentSourceCollection() |
Modifier and Type | Method and Description |
---|---|
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.
|
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.
|
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.
|
PaymentSourceCollection |
list(PaymentSourceCollectionListParams params)
List sources for a specified customer.
|
PaymentSourceCollection |
list(PaymentSourceCollectionListParams 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,
java.util.Map<java.lang.String,java.lang.Object> params,
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,
RequestOptions options)
Retrieve a specified source for a given customer.
|
autoPagingIterable, autoPagingIterable, autoPagingIterable, canEqual, equals, getCount, getData, getHasMore, getObject, getRequestOptions, getRequestParams, getTotalCount, getUrl, hashCode, setCount, setData, setHasMore, setObject, setRequestOptions, setRequestParams, setTotalCount, setUrl
equals, getLastResponse, setLastResponse, toJson, toString
public PaymentSourceCollection list(java.util.Map<java.lang.String,java.lang.Object> params) throws StripeException
StripeException
public PaymentSourceCollection list(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
StripeException
public PaymentSourceCollection list(PaymentSourceCollectionListParams params) throws StripeException
StripeException
public PaymentSourceCollection list(PaymentSourceCollectionListParams params, RequestOptions options) throws StripeException
StripeException
public PaymentSource retrieve(java.lang.String id) throws StripeException
StripeException
public PaymentSource retrieve(java.lang.String id, RequestOptions options) throws StripeException
StripeException
public PaymentSource retrieve(java.lang.String id, java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
StripeException
public PaymentSource retrieve(java.lang.String id, PaymentSourceCollectionRetrieveParams params, RequestOptions options) throws StripeException
StripeException
public PaymentSource create(java.util.Map<java.lang.String,java.lang.Object> params) throws StripeException
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
either update the customer to have a new
default_source
, or update the recipient to have
a new default_card
.
StripeException
public PaymentSource create(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
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
either update the customer to have a new
default_source
, or update the recipient to have
a new default_card
.
StripeException
public PaymentSource create(PaymentSourceCollectionCreateParams params) throws StripeException
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
either update the customer to have a new
default_source
, or update the recipient to have
a new default_card
.
StripeException
public PaymentSource create(PaymentSourceCollectionCreateParams params, RequestOptions options) throws StripeException
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
either update the customer to have a new
default_source
, or update the recipient to have
a new default_card
.
StripeException