Class SourceService
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreate()
Creates a new source object.create
(RequestOptions options) Creates a new source object.create
(SourceCreateParams params) Creates a new source object.create
(SourceCreateParams params, RequestOptions options) Creates a new source object.Delete a specified source for a given customer.detach
(String customer, String id, RequestOptions options) Delete a specified source for a given customer.detach
(String customer, String id, SourceDetachParams params) Delete a specified source for a given customer.detach
(String customer, String id, SourceDetachParams params, RequestOptions options) Delete a specified source for a given customer.Retrieves an existing source object.retrieve
(String source, RequestOptions options) Retrieves an existing source object.retrieve
(String source, SourceRetrieveParams params) Retrieves an existing source object.retrieve
(String source, SourceRetrieveParams params, RequestOptions options) Retrieves an existing source object.Updates the specified source by setting the values of the parameters passed.update
(String source, RequestOptions options) Updates the specified source by setting the values of the parameters passed.update
(String source, SourceUpdateParams params) Updates the specified source by setting the values of the parameters passed.update
(String source, SourceUpdateParams params, RequestOptions options) Updates the specified source by setting the values of the parameters passed.verify
(String source, SourceVerifyParams params) Verify a given source.verify
(String source, SourceVerifyParams params, RequestOptions options) Verify a given source.Methods inherited from class com.stripe.net.ApiService
getResponseGetter, request, requestStream
-
Constructor Details
-
SourceService
-
-
Method Details
-
detach
public PaymentSource detach(String customer, String id, SourceDetachParams params) throws StripeException Delete a specified source for a given customer.- Throws:
StripeException
-
detach
public PaymentSource detach(String customer, String id, RequestOptions options) throws StripeException Delete a specified source for a given customer.- Throws:
StripeException
-
detach
Delete a specified source for a given customer.- Throws:
StripeException
-
detach
public PaymentSource detach(String customer, String id, SourceDetachParams params, RequestOptions options) throws StripeException Delete a specified source for a given customer.- Throws:
StripeException
-
retrieve
Retrieves an existing source object. Supply the unique source ID from a source creation request and Stripe will return the corresponding up-to-date source object information.- Throws:
StripeException
-
retrieve
Retrieves an existing source object. Supply the unique source ID from a source creation request and Stripe will return the corresponding up-to-date source object information.- Throws:
StripeException
-
retrieve
Retrieves an existing source object. Supply the unique source ID from a source creation request and Stripe will return the corresponding up-to-date source object information.- Throws:
StripeException
-
retrieve
public Source retrieve(String source, SourceRetrieveParams params, RequestOptions options) throws StripeException Retrieves an existing source object. Supply the unique source ID from a source creation request and Stripe will return the corresponding up-to-date source object information.- Throws:
StripeException
-
update
Updates the specified source by setting the values of the parameters passed. Any parameters not provided will be left unchanged.This request accepts the
metadata
andowner
as arguments. It is also possible to update type specific information for selected payment methods. Please refer to our payment method guides for more detail.- Throws:
StripeException
-
update
Updates the specified source by setting the values of the parameters passed. Any parameters not provided will be left unchanged.This request accepts the
metadata
andowner
as arguments. It is also possible to update type specific information for selected payment methods. Please refer to our payment method guides for more detail.- Throws:
StripeException
-
update
Updates the specified source by setting the values of the parameters passed. Any parameters not provided will be left unchanged.This request accepts the
metadata
andowner
as arguments. It is also possible to update type specific information for selected payment methods. Please refer to our payment method guides for more detail.- Throws:
StripeException
-
update
public Source update(String source, SourceUpdateParams params, RequestOptions options) throws StripeException Updates the specified source by setting the values of the parameters passed. Any parameters not provided will be left unchanged.This request accepts the
metadata
andowner
as arguments. It is also possible to update type specific information for selected payment methods. Please refer to our payment method guides for more detail.- Throws:
StripeException
-
create
Creates a new source object.- Throws:
StripeException
-
create
Creates a new source object.- Throws:
StripeException
-
create
Creates a new source object.- Throws:
StripeException
-
create
Creates a new source object.- Throws:
StripeException
-
verify
Verify a given source.- Throws:
StripeException
-
verify
public Source verify(String source, SourceVerifyParams params, RequestOptions options) throws StripeException Verify a given source.- Throws:
StripeException
-
transactions
-