pub struct CheckoutSessionItem {
pub id: CheckoutSessionItemId,
pub amount_discount: i64,
pub amount_subtotal: i64,
pub amount_tax: i64,
pub amount_total: i64,
pub currency: Currency,
pub description: String,
pub discounts: Option<Vec<LineItemsDiscountAmount>>,
pub price: Option<Price>,
pub quantity: Option<u64>,
pub taxes: Option<Vec<LineItemsTaxAmount>>,
}
Expand description
The resource representing a Stripe “LineItem”.
Fields§
§id: CheckoutSessionItemId
Unique identifier for the object.
amount_discount: i64
Total discount amount applied.
If no discounts were applied, defaults to 0.
amount_subtotal: i64
Total before any discounts or taxes are applied.
amount_tax: i64
Total tax amount applied.
If no tax was applied, defaults to 0.
amount_total: i64
Total after discounts and taxes.
currency: Currency
Three-letter ISO currency code, in lowercase.
Must be a supported currency.
description: 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.
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
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for CheckoutSessionItem
impl Debug for CheckoutSessionItem
source§impl Default for CheckoutSessionItem
impl Default for CheckoutSessionItem
source§fn default() -> CheckoutSessionItem
fn default() -> CheckoutSessionItem
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for CheckoutSessionItem
impl<'de> Deserialize<'de> for CheckoutSessionItem
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Object for CheckoutSessionItem
impl Object for CheckoutSessionItem
Auto Trait Implementations§
impl Freeze for CheckoutSessionItem
impl RefUnwindSafe for CheckoutSessionItem
impl Send for CheckoutSessionItem
impl Sync for CheckoutSessionItem
impl Unpin for CheckoutSessionItem
impl UnwindSafe for CheckoutSessionItem
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more