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
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
Auto Trait Implementations
impl RefUnwindSafe for Item
impl UnwindSafe for Item