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
/*
 * Selling Partner APIs for Fulfillment Outbound
 *
 * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders.
 *
 * The version of the OpenAPI document: 2020-07-01
 * 
 * Generated by: https://openapi-generator.tech
 */

/// FulfillmentPreviewShipment : Delivery and item information for a shipment in a fulfillment order preview.



#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct FulfillmentPreviewShipment {
    #[serde(default, rename = "earliestShipDate", skip_serializing_if = "Option::is_none")]
    pub earliest_ship_date: Option<String>,
    #[serde(default, rename = "latestShipDate", skip_serializing_if = "Option::is_none")]
    pub latest_ship_date: Option<String>,
    #[serde(default, rename = "earliestArrivalDate", skip_serializing_if = "Option::is_none")]
    pub earliest_arrival_date: Option<String>,
    #[serde(default, rename = "latestArrivalDate", skip_serializing_if = "Option::is_none")]
    pub latest_arrival_date: Option<String>,
    /// Provides additional insight into the shipment timeline when exact delivery dates are not able to be precomputed.
    #[serde(default, rename = "shippingNotes", skip_serializing_if = "Option::is_none")]
    pub shipping_notes: Option<Vec<String>>,
    /// An array of fulfillment preview item information.
    #[serde(default, rename = "fulfillmentPreviewItems")]
    pub fulfillment_preview_items: Vec<crate::models::FulfillmentPreviewItem>,
}

impl FulfillmentPreviewShipment {
    /// Delivery and item information for a shipment in a fulfillment order preview.
    pub fn new(fulfillment_preview_items: Vec<crate::models::FulfillmentPreviewItem>) -> FulfillmentPreviewShipment {
        FulfillmentPreviewShipment {
            earliest_ship_date: None,
            latest_ship_date: None,
            earliest_arrival_date: None,
            latest_arrival_date: None,
            shipping_notes: None,
            fulfillment_preview_items,
        }
    }
}