amazon_spapi/models/orders_v0/update_shipment_status_request.rs
1/*
2 * Selling Partner API for Orders
3 *
4 * Use the Orders Selling Partner API to programmatically retrieve order information. With this API, you can develop fast, flexible, and custom applications to manage order synchronization, perform order research, and create demand-based decision support tools. _Note:_ For the JP, AU, and SG marketplaces, the Orders API supports orders from 2016 onward. For all other marketplaces, the Orders API supports orders for the last two years (orders older than this don't show up in the response).
5 *
6 * The version of the OpenAPI document: v0
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// UpdateShipmentStatusRequest : The request body for the `updateShipmentStatus` operation.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct UpdateShipmentStatusRequest {
17 /// The unobfuscated marketplace identifier.
18 #[serde(rename = "marketplaceId")]
19 pub marketplace_id: String,
20 #[serde(rename = "shipmentStatus")]
21 pub shipment_status: models::orders_v0::ShipmentStatus,
22 /// For partial shipment status updates, the list of order items and quantities to be updated.
23 #[serde(rename = "orderItems", skip_serializing_if = "Option::is_none")]
24 pub order_items: Option<Vec<models::orders_v0::OrderItemsInner>>,
25}
26
27impl UpdateShipmentStatusRequest {
28 /// The request body for the `updateShipmentStatus` operation.
29 pub fn new(marketplace_id: String, shipment_status: models::orders_v0::ShipmentStatus) -> UpdateShipmentStatusRequest {
30 UpdateShipmentStatusRequest {
31 marketplace_id,
32 shipment_status,
33 order_items: None,
34 }
35 }
36}
37