Skip to main content

amazon_spapi/models/vendor_orders/
order_item_status.rs

1/*
2 * Selling Partner API for Retail Procurement Orders
3 *
4 * The Selling Partner API for Retail Procurement Orders provides programmatic access to vendor orders data.
5 *
6 * The version of the OpenAPI document: v1
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// OrderItemStatus : Represents the current status of an order item, including acknowledgement and receiving details.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct OrderItemStatus {
17    /// Numbering of the item on the purchase order. The first item will be 1, the second 2, and so on.
18    #[serde(rename = "itemSequenceNumber")]
19    pub item_sequence_number: String,
20    /// Buyer's Standard Identification Number (ASIN) of an item.
21    #[serde(rename = "buyerProductIdentifier", skip_serializing_if = "Option::is_none")]
22    pub buyer_product_identifier: Option<String>,
23    /// The vendor selected product identification of the item.
24    #[serde(rename = "vendorProductIdentifier", skip_serializing_if = "Option::is_none")]
25    pub vendor_product_identifier: Option<String>,
26    #[serde(rename = "netCost", skip_serializing_if = "Option::is_none")]
27    pub net_cost: Option<Box<models::vendor_orders::Money>>,
28    #[serde(rename = "listPrice", skip_serializing_if = "Option::is_none")]
29    pub list_price: Option<Box<models::vendor_orders::Money>>,
30    #[serde(rename = "orderedQuantity", skip_serializing_if = "Option::is_none")]
31    pub ordered_quantity: Option<Box<models::vendor_orders::OrderItemStatusOrderedQuantity>>,
32    #[serde(rename = "acknowledgementStatus", skip_serializing_if = "Option::is_none")]
33    pub acknowledgement_status: Option<Box<models::vendor_orders::OrderItemStatusAcknowledgementStatus>>,
34    #[serde(rename = "receivingStatus", skip_serializing_if = "Option::is_none")]
35    pub receiving_status: Option<Box<models::vendor_orders::OrderItemStatusReceivingStatus>>,
36}
37
38impl OrderItemStatus {
39    /// Represents the current status of an order item, including acknowledgement and receiving details.
40    pub fn new(item_sequence_number: String) -> OrderItemStatus {
41        OrderItemStatus {
42            item_sequence_number,
43            buyer_product_identifier: None,
44            vendor_product_identifier: None,
45            net_cost: None,
46            list_price: None,
47            ordered_quantity: None,
48            acknowledgement_status: None,
49            receiving_status: None,
50        }
51    }
52}
53