1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/*
 * Selling Partner API for Fulfillment Inbound
 *
 * The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network.
 *
 * The version of the OpenAPI document: v0
 * 
 * Generated by: https://openapi-generator.tech
 */

/// TransportHeader : The shipping identifier, information about whether the shipment is by an Amazon-partnered carrier, and information about whether the shipment is Small Parcel or Less Than Truckload/Full Truckload (LTL/FTL).



#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct TransportHeader {
    /// The Amazon seller identifier.
    #[serde(default, rename = "SellerId")]
    pub seller_id: String,
    /// A shipment identifier originally returned by the createInboundShipmentPlan operation.
    #[serde(default, rename = "ShipmentId")]
    pub shipment_id: String,
    /// Indicates whether a putTransportDetails request is for a partnered carrier.  Possible values:  * true – Request is for an Amazon-partnered carrier.  * false – Request is for a non-Amazon-partnered carrier.
    #[serde(default, rename = "IsPartnered")]
    pub is_partnered: bool,
    #[serde(default, rename = "ShipmentType")]
    pub shipment_type: crate::models::ShipmentType,
}

impl TransportHeader {
    /// The shipping identifier, information about whether the shipment is by an Amazon-partnered carrier, and information about whether the shipment is Small Parcel or Less Than Truckload/Full Truckload (LTL/FTL).
    pub fn new(seller_id: String, shipment_id: String, is_partnered: bool, shipment_type: crate::models::ShipmentType) -> TransportHeader {
        TransportHeader {
            seller_id,
            shipment_id,
            is_partnered,
            shipment_type,
        }
    }
}