Skip to main content

amazon_spapi/models/services/
item_delivery.rs

1/*
2 * Selling Partner API for Services
3 *
4 * With the Services API, you can build applications that help service providers get and modify their service orders and manage their resources.
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/// ItemDelivery : Delivery information for the item.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct ItemDelivery {
17    /// The date and time of the latest Estimated Delivery Date (EDD) of all the items with an EDD. In ISO 8601 format.
18    #[serde(rename = "estimatedDeliveryDate", skip_serializing_if = "Option::is_none")]
19    pub estimated_delivery_date: Option<String>,
20    #[serde(rename = "itemDeliveryPromise", skip_serializing_if = "Option::is_none")]
21    pub item_delivery_promise: Option<Box<models::services::ItemDeliveryPromise>>,
22}
23
24impl ItemDelivery {
25    /// Delivery information for the item.
26    pub fn new() -> ItemDelivery {
27        ItemDelivery {
28            estimated_delivery_date: None,
29            item_delivery_promise: None,
30        }
31    }
32}
33