amazon_spapi/models/shipping/shipping_promise_set.rs
1/*
2 * Selling Partner API for Shipping
3 *
4 * Provides programmatic access to Amazon Shipping APIs. **Note:** If you are new to the Amazon Shipping API, refer to the latest version of <a href=\"https://developer-docs.amazon.com/amazon-shipping/docs/shipping-api-v2-reference\">Amazon Shipping API (v2)</a> on the <a href=\"https://developer-docs.amazon.com/amazon-shipping/\">Amazon Shipping Developer Documentation</a> site.
5 *
6 * The version of the OpenAPI document: v1
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// ShippingPromiseSet : The promised delivery time and pickup time.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct ShippingPromiseSet {
17 #[serde(rename = "deliveryWindow", skip_serializing_if = "Option::is_none")]
18 pub delivery_window: Option<Box<models::shipping::TimeRange>>,
19 #[serde(rename = "receiveWindow", skip_serializing_if = "Option::is_none")]
20 pub receive_window: Option<Box<models::shipping::TimeRange>>,
21}
22
23impl ShippingPromiseSet {
24 /// The promised delivery time and pickup time.
25 pub fn new() -> ShippingPromiseSet {
26 ShippingPromiseSet {
27 delivery_window: None,
28 receive_window: None,
29 }
30 }
31}
32