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
/*
 * Selling Partner API for Orders
 *
 * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools.
 *
 * The version of the OpenAPI document: v0
 * 
 * Generated by: https://openapi-generator.tech
 */

/// UpdateShipmentStatusRequest : The request body for the updateShipmentStatus operation.



#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct UpdateShipmentStatusRequest {
    /// The unobfuscated marketplace identifier.
    #[serde(default, rename = "marketplaceId")]
    pub marketplace_id: String,
    #[serde(default, rename = "shipmentStatus")]
    pub shipment_status: crate::models::ShipmentStatus,
    /// For partial shipment status updates, the list of order items and quantities to be updated.
    #[serde(default, rename = "orderItems", skip_serializing_if = "Option::is_none")]
    pub order_items: Option<Vec<crate::models::OrderItemsInner>>,
}

impl UpdateShipmentStatusRequest {
    /// The request body for the updateShipmentStatus operation.
    pub fn new(marketplace_id: String, shipment_status: crate::models::ShipmentStatus) -> UpdateShipmentStatusRequest {
        UpdateShipmentStatusRequest {
            marketplace_id,
            shipment_status,
            order_items: None,
        }
    }
}