Package com.stripe.service
Class TopupService
java.lang.Object
com.stripe.net.ApiService
com.stripe.service.TopupService
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionCancels a top-up.cancel
(String topup, RequestOptions options) Cancels a top-up.cancel
(String topup, TopupCancelParams params) Cancels a top-up.cancel
(String topup, TopupCancelParams params, RequestOptions options) Cancels a top-up.create
(TopupCreateParams params) Top up the balance of an account.create
(TopupCreateParams params, RequestOptions options) Top up the balance of an account.list()
Returns a list of top-ups.list
(RequestOptions options) Returns a list of top-ups.list
(TopupListParams params) Returns a list of top-ups.list
(TopupListParams params, RequestOptions options) Returns a list of top-ups.Retrieves the details of a top-up that has previously been created.retrieve
(String topup, RequestOptions options) Retrieves the details of a top-up that has previously been created.retrieve
(String topup, TopupRetrieveParams params) Retrieves the details of a top-up that has previously been created.retrieve
(String topup, TopupRetrieveParams params, RequestOptions options) Retrieves the details of a top-up that has previously been created.Updates the metadata of a top-up.update
(String topup, RequestOptions options) Updates the metadata of a top-up.update
(String topup, TopupUpdateParams params) Updates the metadata of a top-up.update
(String topup, TopupUpdateParams params, RequestOptions options) Updates the metadata of a top-up.Methods inherited from class com.stripe.net.ApiService
getResponseGetter, request, requestStream
-
Constructor Details
-
TopupService
-
-
Method Details
-
list
Returns a list of top-ups.- Throws:
StripeException
-
list
Returns a list of top-ups.- Throws:
StripeException
-
list
Returns a list of top-ups.- Throws:
StripeException
-
list
public StripeCollection<Topup> list(TopupListParams params, RequestOptions options) throws StripeException Returns a list of top-ups.- Throws:
StripeException
-
create
Top up the balance of an account.- Throws:
StripeException
-
create
Top up the balance of an account.- Throws:
StripeException
-
retrieve
Retrieves the details of a top-up that has previously been created. Supply the unique top-up ID that was returned from your previous request, and Stripe will return the corresponding top-up information.- Throws:
StripeException
-
retrieve
Retrieves the details of a top-up that has previously been created. Supply the unique top-up ID that was returned from your previous request, and Stripe will return the corresponding top-up information.- Throws:
StripeException
-
retrieve
Retrieves the details of a top-up that has previously been created. Supply the unique top-up ID that was returned from your previous request, and Stripe will return the corresponding top-up information.- Throws:
StripeException
-
retrieve
public Topup retrieve(String topup, TopupRetrieveParams params, RequestOptions options) throws StripeException Retrieves the details of a top-up that has previously been created. Supply the unique top-up ID that was returned from your previous request, and Stripe will return the corresponding top-up information.- Throws:
StripeException
-
update
Updates the metadata of a top-up. Other top-up details are not editable by design.- Throws:
StripeException
-
update
Updates the metadata of a top-up. Other top-up details are not editable by design.- Throws:
StripeException
-
update
Updates the metadata of a top-up. Other top-up details are not editable by design.- Throws:
StripeException
-
update
public Topup update(String topup, TopupUpdateParams params, RequestOptions options) throws StripeException Updates the metadata of a top-up. Other top-up details are not editable by design.- Throws:
StripeException
-
cancel
Cancels a top-up. Only pending top-ups can be canceled.- Throws:
StripeException
-
cancel
Cancels a top-up. Only pending top-ups can be canceled.- Throws:
StripeException
-
cancel
Cancels a top-up. Only pending top-ups can be canceled.- Throws:
StripeException
-
cancel
public Topup cancel(String topup, TopupCancelParams params, RequestOptions options) throws StripeException Cancels a top-up. Only pending top-ups can be canceled.- Throws:
StripeException
-