amazon_spapi/models/easy_ship_2022_03_23/item.rs
1/*
2 * Selling Partner API for Easy Ship
3 *
4 * Use the Selling Partner API for Easy Ship to build applications for sellers to manage and ship Amazon Easy Ship orders. With this API, you can get available time slots, schedule and reschedule Easy Ship orders, and print shipping labels, invoices, and warranties. To review the differences in Easy Ship operations by marketplace, refer to [Marketplace support](https://developer-docs.amazon.com/sp-api/docs/easyship-api-v2022-03-23-use-case-guide#marketplace-support).
5 *
6 * The version of the OpenAPI document: 2022-03-23
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// Item : Item identifier and serial number information.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct Item {
17 /// The Amazon-defined order item identifier.
18 #[serde(rename = "orderItemId", skip_serializing_if = "Option::is_none")]
19 pub order_item_id: Option<String>,
20 /// A list of serial numbers for the items associated with the `OrderItemId` value.
21 #[serde(rename = "orderItemSerialNumbers", skip_serializing_if = "Option::is_none")]
22 pub order_item_serial_numbers: Option<Vec<String>>,
23}
24
25impl Item {
26 /// Item identifier and serial number information.
27 pub fn new() -> Item {
28 Item {
29 order_item_id: None,
30 order_item_serial_numbers: None,
31 }
32 }
33}
34