Package com.stripe.service
Class ProductService
java.lang.Object
com.stripe.net.ApiService
com.stripe.service.ProductService
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreate
(ProductCreateParams params) Creates a new product object.create
(ProductCreateParams params, RequestOptions options) Creates a new product object.Delete a product.delete
(String id, RequestOptions options) Delete a product.features()
list()
Returns a list of your products.list
(RequestOptions options) Returns a list of your products.list
(ProductListParams params) Returns a list of your products.list
(ProductListParams params, RequestOptions options) Returns a list of your products.Retrieves the details of an existing product.retrieve
(String id, RequestOptions options) Retrieves the details of an existing product.retrieve
(String id, ProductRetrieveParams params) Retrieves the details of an existing product.retrieve
(String id, ProductRetrieveParams params, RequestOptions options) Retrieves the details of an existing product.search
(ProductSearchParams params) Search for products you’ve previously created using Stripe’s Search Query Language.search
(ProductSearchParams params, RequestOptions options) Search for products you’ve previously created using Stripe’s Search Query Language.Updates the specific product by setting the values of the parameters passed.update
(String id, RequestOptions options) Updates the specific product by setting the values of the parameters passed.update
(String id, ProductUpdateParams params) Updates the specific product by setting the values of the parameters passed.update
(String id, ProductUpdateParams params, RequestOptions options) Updates the specific product by setting the values of the parameters passed.Methods inherited from class com.stripe.net.ApiService
getResponseGetter, request, requestStream
-
Constructor Details
-
ProductService
-
-
Method Details
-
delete
Delete a product. Deleting a product is only possible if it has no prices associated with it. Additionally, deleting a product withtype=good
is only possible if it has no SKUs associated with it.- Throws:
StripeException
-
delete
Delete a product. Deleting a product is only possible if it has no prices associated with it. Additionally, deleting a product withtype=good
is only possible if it has no SKUs associated with it.- Throws:
StripeException
-
retrieve
Retrieves the details of an existing product. Supply the unique product ID from either a product creation request or the product list, and Stripe will return the corresponding product information.- Throws:
StripeException
-
retrieve
Retrieves the details of an existing product. Supply the unique product ID from either a product creation request or the product list, and Stripe will return the corresponding product information.- Throws:
StripeException
-
retrieve
Retrieves the details of an existing product. Supply the unique product ID from either a product creation request or the product list, and Stripe will return the corresponding product information.- Throws:
StripeException
-
retrieve
public Product retrieve(String id, ProductRetrieveParams params, RequestOptions options) throws StripeException Retrieves the details of an existing product. Supply the unique product ID from either a product creation request or the product list, and Stripe will return the corresponding product information.- Throws:
StripeException
-
update
Updates the specific product by setting the values of the parameters passed. Any parameters not provided will be left unchanged.- Throws:
StripeException
-
update
Updates the specific product by setting the values of the parameters passed. Any parameters not provided will be left unchanged.- Throws:
StripeException
-
update
Updates the specific product by setting the values of the parameters passed. Any parameters not provided will be left unchanged.- Throws:
StripeException
-
update
public Product update(String id, ProductUpdateParams params, RequestOptions options) throws StripeException Updates the specific product by setting the values of the parameters passed. Any parameters not provided will be left unchanged.- Throws:
StripeException
-
list
Returns a list of your products. The products are returned sorted by creation date, with the most recently created products appearing first.- Throws:
StripeException
-
list
Returns a list of your products. The products are returned sorted by creation date, with the most recently created products appearing first.- Throws:
StripeException
-
list
Returns a list of your products. The products are returned sorted by creation date, with the most recently created products appearing first.- Throws:
StripeException
-
list
public StripeCollection<Product> list(ProductListParams params, RequestOptions options) throws StripeException Returns a list of your products. The products are returned sorted by creation date, with the most recently created products appearing first.- Throws:
StripeException
-
create
Creates a new product object.- Throws:
StripeException
-
create
Creates a new product object.- Throws:
StripeException
-
search
Search for products 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<Product> search(ProductSearchParams params, RequestOptions options) throws StripeException Search for products 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
-
features
-