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};

/// TransportationSelection : The transportation option selected to confirm.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct TransportationSelection {
    #[serde(rename = "contactInformation", skip_serializing_if = "Option::is_none")]
    pub contact_information: Option<Box<models::fulfillment_inbound_2024_03_20::ContactInformation>>,
    /// Shipment ID that the transportation Option is for.
    #[serde(rename = "shipmentId")]
    pub shipment_id: String,
    /// Transportation option being selected for the provided shipment.
    #[serde(rename = "transportationOptionId")]
    pub transportation_option_id: String,
}

impl TransportationSelection {
    /// The transportation option selected to confirm.
    pub fn new(shipment_id: String, transportation_option_id: String) -> TransportationSelection {
        TransportationSelection {
            contact_information: None,
            shipment_id,
            transportation_option_id,
        }
    }
}