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
#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct GetFulfillmentPreviewRequest {
#[serde(default, rename = "marketplaceId", skip_serializing_if = "Option::is_none")]
pub marketplace_id: Option<String>,
#[serde(default, rename = "address")]
pub address: Box<crate::models::Address>,
#[serde(default, rename = "items")]
pub items: Vec<crate::models::GetFulfillmentPreviewItem>,
#[serde(default, rename = "shippingSpeedCategories", skip_serializing_if = "Option::is_none")]
pub shipping_speed_categories: Option<Vec<crate::models::ShippingSpeedCategory>>,
#[serde(default, rename = "includeCODFulfillmentPreview", skip_serializing_if = "Option::is_none")]
pub include_cod_fulfillment_preview: Option<bool>,
#[serde(default, rename = "includeDeliveryWindows", skip_serializing_if = "Option::is_none")]
pub include_delivery_windows: Option<bool>,
#[serde(default, rename = "featureConstraints", skip_serializing_if = "Option::is_none")]
pub feature_constraints: Option<Vec<crate::models::FeatureSettings>>,
}
impl GetFulfillmentPreviewRequest {
pub fn new(address: crate::models::Address, items: Vec<crate::models::GetFulfillmentPreviewItem>) -> GetFulfillmentPreviewRequest {
GetFulfillmentPreviewRequest {
marketplace_id: None,
address: Box::new(address),
items,
shipping_speed_categories: None,
include_cod_fulfillment_preview: None,
include_delivery_windows: None,
feature_constraints: None,
}
}
}