1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
/*
 * Selling Partner API for Fulfillment Inbound
 *
 * The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network.
 *
 * The version of the OpenAPI document: v0
 * 
 * Generated by: https://openapi-generator.tech
 */

/// InboundShipmentItem : Item information for an inbound shipment. Submitted with a call to the createInboundShipment or updateInboundShipment operation.



#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct InboundShipmentItem {
    /// A shipment identifier originally returned by the createInboundShipmentPlan operation.
    #[serde(default, rename = "ShipmentId", skip_serializing_if = "Option::is_none")]
    pub shipment_id: Option<String>,
    /// The seller SKU of the item.
    #[serde(default, rename = "SellerSKU")]
    pub seller_sku: String,
    /// Amazon's fulfillment network SKU of the item.
    #[serde(default, rename = "FulfillmentNetworkSKU", skip_serializing_if = "Option::is_none")]
    pub fulfillment_network_sku: Option<String>,
    /// The item quantity.
    #[serde(default, rename = "QuantityShipped")]
    pub quantity_shipped: i32,
    /// The item quantity.
    #[serde(default, rename = "QuantityReceived", skip_serializing_if = "Option::is_none")]
    pub quantity_received: Option<i32>,
    /// The item quantity.
    #[serde(default, rename = "QuantityInCase", skip_serializing_if = "Option::is_none")]
    pub quantity_in_case: Option<i32>,
    #[serde(default, rename = "ReleaseDate", skip_serializing_if = "Option::is_none")]
    pub release_date: Option<String>,
    /// A list of preparation instructions and who is responsible for that preparation.
    #[serde(default, rename = "PrepDetailsList", skip_serializing_if = "Option::is_none")]
    pub prep_details_list: Option<Vec<crate::models::PrepDetails>>,
}

impl InboundShipmentItem {
    /// Item information for an inbound shipment. Submitted with a call to the createInboundShipment or updateInboundShipment operation.
    pub fn new(seller_sku: String, quantity_shipped: i32) -> InboundShipmentItem {
        InboundShipmentItem {
            shipment_id: None,
            seller_sku,
            fulfillment_network_sku: None,
            quantity_shipped,
            quantity_received: None,
            quantity_in_case: None,
            release_date: None,
            prep_details_list: None,
        }
    }
}