Struct paypal_rs::invoice::Item[][src]

pub struct Item {
    pub id: Option<String>,
    pub name: String,
    pub description: Option<String>,
    pub quantity: String,
    pub unit_amount: Money,
    pub tax: Option<Tax>,
    pub item_date: Option<DateTime<Utc>>,
    pub discount: Option<Discount>,
    pub unit_of_measure: Option<UnitOfMeasure>,
}
Expand description

Item information

Fields

id: Option<String>

The ID of the invoice line item. Read only.

name: String

The item name for the invoice line item.

description: Option<String>

The item description for the invoice line item.

quantity: String

The quantity of the item that the invoicer provides to the payer. Value is from -1000000 to 1000000. Supports up to five decimal places.

unit_amount: Money

The unit price of the item. This does not include tax and discount. Value is from -1000000 to 1000000. Supports up to two decimal places.

tax: Option<Tax>

The tax associated with the item. The tax amount is added to the item total. Value is from 0 to 100. Supports up to five decimal places.

item_date: Option<DateTime<Utc>>

The date when the item or service was provided, in Internet date and time format.

discount: Option<Discount>

Discount as a percent or amount at invoice level. The invoice discount amount is subtracted from the item total.

unit_of_measure: Option<UnitOfMeasure>

The unit of measure for the invoiced item. For AMOUNT the unit_amount and quantity are not shown on the invoice.

Trait Implementations

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. 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

Performs the conversion.

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

Performs the conversion.

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.