Package com.stripe.service
Class PriceService
java.lang.Object
com.stripe.net.ApiService
com.stripe.service.PriceService
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreate
(PriceCreateParams params) Creates a new price for an existing product.create
(PriceCreateParams params, RequestOptions options) Creates a new price for an existing product.list()
Returns a list of your active prices, excluding inline prices.list
(RequestOptions options) Returns a list of your active prices, excluding inline prices.list
(PriceListParams params) Returns a list of your active prices, excluding inline prices.list
(PriceListParams params, RequestOptions options) Returns a list of your active prices, excluding inline prices.Retrieves the price with the given ID.retrieve
(String price, RequestOptions options) Retrieves the price with the given ID.retrieve
(String price, PriceRetrieveParams params) Retrieves the price with the given ID.retrieve
(String price, PriceRetrieveParams params, RequestOptions options) Retrieves the price with the given ID.search
(PriceSearchParams params) Search for prices you’ve previously created using Stripe’s Search Query Language.search
(PriceSearchParams params, RequestOptions options) Search for prices you’ve previously created using Stripe’s Search Query Language.Updates the specified price by setting the values of the parameters passed.update
(String price, RequestOptions options) Updates the specified price by setting the values of the parameters passed.update
(String price, PriceUpdateParams params) Updates the specified price by setting the values of the parameters passed.update
(String price, PriceUpdateParams params, RequestOptions options) Updates the specified price by setting the values of the parameters passed.Methods inherited from class com.stripe.net.ApiService
getResponseGetter, request, requestStream
-
Constructor Details
-
PriceService
-
-
Method Details
-
list
Returns a list of your active prices, excluding inline prices. For the list of inactive prices, setactive
to false.- Throws:
StripeException
-
list
Returns a list of your active prices, excluding inline prices. For the list of inactive prices, setactive
to false.- Throws:
StripeException
-
list
Returns a list of your active prices, excluding inline prices. For the list of inactive prices, setactive
to false.- Throws:
StripeException
-
list
public StripeCollection<Price> list(PriceListParams params, RequestOptions options) throws StripeException Returns a list of your active prices, excluding inline prices. For the list of inactive prices, setactive
to false.- Throws:
StripeException
-
create
Creates a new price for an existing product. The price can be recurring or one-time.- Throws:
StripeException
-
create
Creates a new price for an existing product. The price can be recurring or one-time.- Throws:
StripeException
-
retrieve
Retrieves the price with the given ID.- Throws:
StripeException
-
retrieve
Retrieves the price with the given ID.- Throws:
StripeException
-
retrieve
Retrieves the price with the given ID.- Throws:
StripeException
-
retrieve
public Price retrieve(String price, PriceRetrieveParams params, RequestOptions options) throws StripeException Retrieves the price with the given ID.- Throws:
StripeException
-
update
Updates the specified price by setting the values of the parameters passed. Any parameters not provided are left unchanged.- Throws:
StripeException
-
update
Updates the specified price by setting the values of the parameters passed. Any parameters not provided are left unchanged.- Throws:
StripeException
-
update
Updates the specified price by setting the values of the parameters passed. Any parameters not provided are left unchanged.- Throws:
StripeException
-
update
public Price update(String price, PriceUpdateParams params, RequestOptions options) throws StripeException Updates the specified price by setting the values of the parameters passed. Any parameters not provided are left unchanged.- Throws:
StripeException
-
search
Search for prices you’ve previously created using Stripe’s Search Query Language. Don’t use search in read-after-write flows where strict consistency is necessary. Under normal operating conditions, data is searchable in less than a minute. Occasionally, propagation of new or updated data can be up to an hour behind during outages. Search functionality is not available to merchants in India.- Throws:
StripeException
-
search
public StripeSearchResult<Price> search(PriceSearchParams params, RequestOptions options) throws StripeException Search for prices you’ve previously created using Stripe’s Search Query Language. Don’t use search in read-after-write flows where strict consistency is necessary. Under normal operating conditions, data is searchable in less than a minute. Occasionally, propagation of new or updated data can be up to an hour behind during outages. Search functionality is not available to merchants in India.- Throws:
StripeException
-