amazon_spapi/models/orders_v0/preferred_delivery_time.rs
1/*
2 * Selling Partner API for Orders
3 *
4 * Use the Orders Selling Partner API to programmatically retrieve order information. With this API, you can develop fast, flexible, and custom applications to manage order synchronization, perform order research, and create demand-based decision support tools. _Note:_ For the JP, AU, and SG marketplaces, the Orders API supports orders from 2016 onward. For all other marketplaces, the Orders API supports orders for the last two years (orders older than this don't show up in the response).
5 *
6 * The version of the OpenAPI document: v0
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// PreferredDeliveryTime : The time window when the delivery is preferred.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct PreferredDeliveryTime {
17 /// Business hours when the business is open for deliveries.
18 #[serde(rename = "BusinessHours", skip_serializing_if = "Option::is_none")]
19 pub business_hours: Option<Vec<models::orders_v0::BusinessHours>>,
20 /// Dates when the business is closed during the next 30 days.
21 #[serde(rename = "ExceptionDates", skip_serializing_if = "Option::is_none")]
22 pub exception_dates: Option<Vec<models::orders_v0::ExceptionDates>>,
23}
24
25impl PreferredDeliveryTime {
26 /// The time window when the delivery is preferred.
27 pub fn new() -> PreferredDeliveryTime {
28 PreferredDeliveryTime {
29 business_hours: None,
30 exception_dates: None,
31 }
32 }
33}
34