pub struct OrderLineItemsApiSchema {
pub item_id: Option<String>,
pub quantity: Option<i64>,
pub tax_code: Option<String>,
pub name: Option<String>,
pub amount: Value,
pub product_data: Option<OrderLineItemsProductDataApiSchema>,
pub product_type: Option<String>,
pub discount_amount: Option<Value>,
pub tax_amount: Option<i64>,
pub description: Option<String>,
}
Fields§
§item_id: Option<String>
A unique identifier for the line item.
quantity: Option<i64>
The number of the particular line item that is being ordered.
tax_code: Option<String>
The tax code associated with this item, in minor units. This is required for Primer-initiated tax calculations.
name: Option<String>
A name of the item.
amount: Value
The amount charged to the customer, in minor units.
product_data: Option<OrderLineItemsProductDataApiSchema>
Details related to the product
product_type: Option<String>
An identifier for the product type.
discount_amount: Option<Value>
Any discount applicable to this item, in minor units. This discount is applied for the entire line item, and not per quantity
.
tax_amount: Option<i64>
The tax charged on this item, in minor units. This tax amount is applied for the entire line item, and not per quantity
.
description: Option<String>
A description of the item.
Trait Implementations§
Source§impl Debug for OrderLineItemsApiSchema
impl Debug for OrderLineItemsApiSchema
Source§impl<'de> Deserialize<'de> for OrderLineItemsApiSchema
impl<'de> Deserialize<'de> for OrderLineItemsApiSchema
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 Display for OrderLineItemsApiSchema
impl Display for OrderLineItemsApiSchema
Auto Trait Implementations§
impl Freeze for OrderLineItemsApiSchema
impl RefUnwindSafe for OrderLineItemsApiSchema
impl Send for OrderLineItemsApiSchema
impl Sync for OrderLineItemsApiSchema
impl Unpin for OrderLineItemsApiSchema
impl UnwindSafe for OrderLineItemsApiSchema
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