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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct ShipmentItem {
#[serde(default, rename = "SellerSKU", skip_serializing_if = "Option::is_none")]
pub seller_sku: Option<String>,
#[serde(default, rename = "OrderItemId", skip_serializing_if = "Option::is_none")]
pub order_item_id: Option<String>,
#[serde(default, rename = "OrderAdjustmentItemId", skip_serializing_if = "Option::is_none")]
pub order_adjustment_item_id: Option<String>,
#[serde(default, rename = "QuantityShipped", skip_serializing_if = "Option::is_none")]
pub quantity_shipped: Option<i32>,
#[serde(default, rename = "ItemChargeList", skip_serializing_if = "Option::is_none")]
pub item_charge_list: Option<Vec<crate::models::ChargeComponent>>,
#[serde(default, rename = "ItemChargeAdjustmentList", skip_serializing_if = "Option::is_none")]
pub item_charge_adjustment_list: Option<Vec<crate::models::ChargeComponent>>,
#[serde(default, rename = "ItemFeeList", skip_serializing_if = "Option::is_none")]
pub item_fee_list: Option<Vec<crate::models::FeeComponent>>,
#[serde(default, rename = "ItemFeeAdjustmentList", skip_serializing_if = "Option::is_none")]
pub item_fee_adjustment_list: Option<Vec<crate::models::FeeComponent>>,
#[serde(default, rename = "ItemTaxWithheldList", skip_serializing_if = "Option::is_none")]
pub item_tax_withheld_list: Option<Vec<crate::models::TaxWithheldComponent>>,
#[serde(default, rename = "PromotionList", skip_serializing_if = "Option::is_none")]
pub promotion_list: Option<Vec<crate::models::Promotion>>,
#[serde(default, rename = "PromotionAdjustmentList", skip_serializing_if = "Option::is_none")]
pub promotion_adjustment_list: Option<Vec<crate::models::Promotion>>,
#[serde(default, rename = "CostOfPointsGranted", skip_serializing_if = "Option::is_none")]
pub cost_of_points_granted: Option<Box<crate::models::Currency>>,
#[serde(default, rename = "CostOfPointsReturned", skip_serializing_if = "Option::is_none")]
pub cost_of_points_returned: Option<Box<crate::models::Currency>>,
}
impl ShipmentItem {
pub fn new() -> ShipmentItem {
ShipmentItem {
seller_sku: None,
order_item_id: None,
order_adjustment_item_id: None,
quantity_shipped: None,
item_charge_list: None,
item_charge_adjustment_list: None,
item_fee_list: None,
item_fee_adjustment_list: None,
item_tax_withheld_list: None,
promotion_list: None,
promotion_adjustment_list: None,
cost_of_points_granted: None,
cost_of_points_returned: None,
}
}
}