amazon-spapi 2.0.3

A Rust client library for Amazon Selling Partner API (SP-API)
Documentation
/*
 * The Selling Partner API for FBA inbound operations.
 *
 * The Selling Partner API for Fulfillment By Amazon (FBA) Inbound. The FBA Inbound API enables building inbound workflows to create, manage, and send shipments into Amazon's fulfillment network. The API has interoperability with the Send-to-Amazon user interface.
 *
 * The version of the OpenAPI document: 2024-03-20
 * 
 * Generated by: https://openapi-generator.tech
 */

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

/// AppointmentSlot : The fulfillment center appointment slot for the transportation option.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct AppointmentSlot {
    /// An identifier to a self-ship appointment slot.
    #[serde(rename = "slotId")]
    pub slot_id: String,
    #[serde(rename = "slotTime")]
    pub slot_time: Box<models::fulfillment_inbound_2024_03_20::AppointmentSlotTime>,
}

impl AppointmentSlot {
    /// The fulfillment center appointment slot for the transportation option.
    pub fn new(slot_id: String, slot_time: models::fulfillment_inbound_2024_03_20::AppointmentSlotTime) -> AppointmentSlot {
        AppointmentSlot {
            slot_id,
            slot_time: Box::new(slot_time),
        }
    }
}