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
/*
 * Selling Partner API for Direct Fulfillment Orders
 *
 * The Selling Partner API for Direct Fulfillment Orders provides programmatic access to a direct fulfillment vendor's order data.
 *
 * The version of the OpenAPI document: v1
 * 
 * Generated by: https://openapi-generator.tech
 */

/// ShipmentDates : Shipment dates.



#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct ShipmentDates {
    /// Time by which the vendor is required to ship the order.
    #[serde(default, rename = "requiredShipDate")]
    pub required_ship_date: String,
    /// Delivery date promised to the Amazon customer.
    #[serde(default, rename = "promisedDeliveryDate", skip_serializing_if = "Option::is_none")]
    pub promised_delivery_date: Option<String>,
}

impl ShipmentDates {
    /// Shipment dates.
    pub fn new(required_ship_date: String) -> ShipmentDates {
        ShipmentDates {
            required_ship_date,
            promised_delivery_date: None,
        }
    }
}