Struct stripe::UpdateProduct
source · pub struct UpdateProduct<'a> {Show 14 fields
pub active: Option<bool>,
pub default_price: Option<&'a str>,
pub description: Option<String>,
pub expand: &'a [&'a str],
pub features: Option<Vec<UpdateProductFeatures>>,
pub images: Option<Vec<String>>,
pub metadata: Option<Metadata>,
pub name: Option<&'a str>,
pub package_dimensions: Option<PackageDimensions>,
pub shippable: Option<bool>,
pub statement_descriptor: Option<&'a str>,
pub tax_code: Option<String>,
pub unit_label: Option<String>,
pub url: Option<String>,
}
Expand description
The parameters for Product::update
.
Fields§
§active: Option<bool>
Whether the product is available for purchase.
default_price: Option<&'a str>
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.
expand: &'a [&'a str]
Specifies which fields in the response should be expanded.
features: Option<Vec<UpdateProductFeatures>>
A list of up to 15 features for this product.
These are displayed in pricing tables.
images: Option<Vec<String>>
A list of up to 8 URLs of images for this product, meant to be displayable to the customer.
metadata: Option<Metadata>
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.
Individual keys can be unset by posting an empty value to them.
All keys can be unset by posting an empty value to metadata
.
name: Option<&'a str>
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<&'a str>
An arbitrary string to be displayed on your customer’s credit card or bank statement.
While most banks display this information consistently, some may display it incorrectly or not at all. This may be up to 22 characters.
The statement description may not include <
, >
, \
, "
, '
characters, and will appear on your customer’s statement in capital letters.
Non-ASCII characters are automatically stripped. It must contain at least one letter.
May only be set if type=service
.
tax_code: Option<String>
A tax code ID.
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.
May only be set if type=service
.
url: Option<String>
A URL of a publicly-accessible webpage for this product.
Implementations§
source§impl<'a> UpdateProduct<'a>
impl<'a> UpdateProduct<'a>
Trait Implementations§
source§impl<'a> Clone for UpdateProduct<'a>
impl<'a> Clone for UpdateProduct<'a>
source§fn clone(&self) -> UpdateProduct<'a>
fn clone(&self) -> UpdateProduct<'a>
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more