pub struct CheckoutSessionItem {
pub amount_discount: i64,
pub amount_subtotal: i64,
pub amount_tax: i64,
pub amount_total: i64,
pub currency: Currency,
pub description: Option<String>,
pub discounts: Option<Vec<LineItemsDiscountAmount>>,
pub id: CheckoutSessionItemId,
pub metadata: Option<HashMap<String, String>>,
pub price: Option<Price>,
pub quantity: Option<u64>,
pub taxes: Option<Vec<LineItemsTaxAmount>>,
}Expand description
A line item.
Fields§
§amount_discount: i64Total discount amount applied. If no discounts were applied, defaults to 0.
amount_subtotal: i64Total before any discounts or taxes are applied.
amount_tax: i64Total tax amount applied. If no tax was applied, defaults to 0.
amount_total: i64Total after discounts and taxes.
currency: CurrencyThree-letter ISO currency code, in lowercase. Must be a supported currency.
description: Option<String>An arbitrary string attached to the object. Often useful for displaying to users. Defaults to product name.
discounts: Option<Vec<LineItemsDiscountAmount>>The discounts applied to the line item.
id: CheckoutSessionItemIdUnique identifier for the object.
metadata: Option<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.
price: Option<Price>The price used to generate the line item.
quantity: Option<u64>The quantity of products being purchased.
taxes: Option<Vec<LineItemsTaxAmount>>The taxes applied to the line item.
Trait Implementations§
Source§impl Clone for CheckoutSessionItem
impl Clone for CheckoutSessionItem
Source§fn clone(&self) -> CheckoutSessionItem
fn clone(&self) -> CheckoutSessionItem
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more