pub struct Product {Show 18 fields
pub active: bool,
pub created: Timestamp,
pub default_price: Option<Expandable<Price>>,
pub description: Option<String>,
pub id: ProductId,
pub images: Vec<String>,
pub livemode: bool,
pub marketing_features: Vec<ProductMarketingFeature>,
pub metadata: HashMap<String, String>,
pub name: String,
pub package_dimensions: Option<PackageDimensions>,
pub shippable: Option<bool>,
pub statement_descriptor: Option<String>,
pub tax_code: Option<Expandable<TaxCode>>,
pub type_: ProductType,
pub unit_label: Option<String>,
pub updated: Timestamp,
pub url: Option<String>,
}
Expand description
Products describe the specific goods or services you offer to your customers. For example, you might offer a Standard and Premium version of your goods or service; each version would be a separate Product. They can be used in conjunction with Prices to configure pricing in Payment Links, Checkout, and Subscriptions.
Related guides: Set up a subscription,. share a Payment Link, accept payments with Checkout,. and more about Products and Prices
For more details see <https://stripe.com/docs/api/products/object>.
Fields§
§active: bool
Whether the product is currently available for purchase.
created: Timestamp
Time at which the object was created. Measured in seconds since the Unix epoch.
default_price: Option<Expandable<Price>>
The ID of the Price object that is the default price for this product.
description: Option<String>
The product’s description, meant to be displayable to the customer. Use this field to optionally store a long form explanation of the product being sold for your own rendering purposes.
id: ProductId
Unique identifier for the object.
images: Vec<String>
A list of up to 8 URLs of images for this product, meant to be displayable to the customer.
livemode: bool
Has the value true
if the object exists in live mode or the value false
if the object exists in test mode.
marketing_features: Vec<ProductMarketingFeature>
A list of up to 15 marketing features for this product. These are displayed in pricing tables.
metadata: HashMap<String, String>
Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
name: String
The product’s name, meant to be displayable to the customer.
package_dimensions: Option<PackageDimensions>
The dimensions of this product for shipping purposes.
shippable: Option<bool>
Whether this product is shipped (i.e., physical goods).
statement_descriptor: Option<String>
Extra information about a product which will appear on your customer’s credit card statement. In the case that multiple products are billed at once, the first statement descriptor will be used. Only used for subscription payments.
tax_code: Option<Expandable<TaxCode>>
A tax code ID.
type_: ProductType
The type of the product.
The product is either of type good
, which is eligible for use with Orders and SKUs, or service
, which is eligible for use with Subscriptions and Plans.
unit_label: Option<String>
A label that represents units of this product. When set, this will be included in customers’ receipts, invoices, Checkout, and the customer portal.
updated: Timestamp
Time at which the object was last updated. Measured in seconds since the Unix epoch.
url: Option<String>
A URL of a publicly-accessible webpage for this product.