pub struct OrderLineItemsApiSchema {
    pub amount: Value,
    pub item_id: Option<String>,
    pub name: Option<String>,
    pub product_data: Option<OrderLineItemsProductDataApiSchema>,
    pub discount_amount: Option<Value>,
    pub quantity: Option<i64>,
    pub tax_code: Option<String>,
    pub tax_amount: Option<i64>,
    pub description: Option<String>,
    pub product_type: Option<String>,
}

Fields

amount: Value

The amount charged to the customer, in minor units.

item_id: Option<String>

A unique identifier for the line item.

name: Option<String>

A name of the item.

product_data: Option<OrderLineItemsProductDataApiSchema>

Details related to the product

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.

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.

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.

product_type: Option<String>

An identifier for the product type.

Trait Implementations

Formats the value using the given formatter. Read more
Deserialize this value from the given Serde deserializer. Read more
Formats the value using the given formatter. Read more
Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Converts the given value to a String. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more