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
#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct OrderAcknowledgementItem {
#[serde(default, rename = "itemSequenceNumber", skip_serializing_if = "Option::is_none")]
pub item_sequence_number: Option<String>,
#[serde(default, rename = "amazonProductIdentifier", skip_serializing_if = "Option::is_none")]
pub amazon_product_identifier: Option<String>,
#[serde(default, rename = "vendorProductIdentifier", skip_serializing_if = "Option::is_none")]
pub vendor_product_identifier: Option<String>,
#[serde(default, rename = "orderedQuantity")]
pub ordered_quantity: Box<crate::models::ItemQuantity>,
#[serde(default, rename = "netCost", skip_serializing_if = "Option::is_none")]
pub net_cost: Option<Box<crate::models::Money>>,
#[serde(default, rename = "listPrice", skip_serializing_if = "Option::is_none")]
pub list_price: Option<Box<crate::models::Money>>,
#[serde(default, rename = "discountMultiplier", skip_serializing_if = "Option::is_none")]
pub discount_multiplier: Option<String>,
#[serde(default, rename = "itemAcknowledgements")]
pub item_acknowledgements: Vec<crate::models::OrderItemAcknowledgement>,
}
impl OrderAcknowledgementItem {
pub fn new(ordered_quantity: crate::models::ItemQuantity, item_acknowledgements: Vec<crate::models::OrderItemAcknowledgement>) -> OrderAcknowledgementItem {
OrderAcknowledgementItem {
item_sequence_number: None,
amazon_product_identifier: None,
vendor_product_identifier: None,
ordered_quantity: Box::new(ordered_quantity),
net_cost: None,
list_price: None,
discount_multiplier: None,
item_acknowledgements,
}
}
}