amazon-spapi 2.0.3

A Rust client library for Amazon Selling Partner API (SP-API)
Documentation
/*
 * 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
 */

use crate::models;
use serde::{Deserialize, Serialize};

/// FulfillmentPreviewShipment : Delivery and item information for a shipment in a fulfillment order preview.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct FulfillmentPreviewShipment {
    /// Date timestamp
    #[serde(rename = "earliestShipDate", skip_serializing_if = "Option::is_none")]
    pub earliest_ship_date: Option<String>,
    /// Date timestamp
    #[serde(rename = "latestShipDate", skip_serializing_if = "Option::is_none")]
    pub latest_ship_date: Option<String>,
    /// Date timestamp
    #[serde(rename = "earliestArrivalDate", skip_serializing_if = "Option::is_none")]
    pub earliest_arrival_date: Option<String>,
    /// Date timestamp
    #[serde(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(rename = "shippingNotes", skip_serializing_if = "Option::is_none")]
    pub shipping_notes: Option<Vec<String>>,
    /// An array of fulfillment preview item information.
    #[serde(rename = "fulfillmentPreviewItems")]
    pub fulfillment_preview_items: Vec<models::fulfillment_outbound_2020_07_01::FulfillmentPreviewItem>,
}

impl FulfillmentPreviewShipment {
    /// Delivery and item information for a shipment in a fulfillment order preview.
    pub fn new(fulfillment_preview_items: Vec<models::fulfillment_outbound_2020_07_01::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,
        }
    }
}