Struct stripe::CreatePriceProductData
source · pub struct CreatePriceProductData {
pub active: Option<bool>,
pub id: Option<String>,
pub metadata: Option<Metadata>,
pub name: String,
pub statement_descriptor: Option<String>,
pub tax_code: Option<String>,
pub unit_label: Option<String>,
}
Fields§
§active: Option<bool>
Whether the product is currently available for purchase.
Defaults to true
.
id: Option<String>
The identifier for the product.
Must be unique. If not provided, an identifier will be randomly generated.
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: String
The product’s name, meant to be displayable to the customer.
statement_descriptor: Option<String>
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.
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.
Trait Implementations§
source§impl Clone for CreatePriceProductData
impl Clone for CreatePriceProductData
source§fn clone(&self) -> CreatePriceProductData
fn clone(&self) -> CreatePriceProductData
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more