amazon_spapi/models/shipping_v2/
tracking_detail_codes.rs

1/*
2 * Amazon Shipping API
3 *
4 * The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments.
5 *
6 * The version of the OpenAPI document: v2
7 * Contact: swa-api-core@amazon.com
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// TrackingDetailCodes : Contains detail codes that provide additional details related to the forward and return leg of the shipment.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct TrackingDetailCodes {
17    /// Contains detail codes that provide additional details related to the forward leg of the shipment.
18    #[serde(rename = "forward")]
19    pub forward: Vec<models::shipping_v2::DetailCodes>,
20    /// Contains detail codes that provide additional details related to the return leg of the shipment.
21    #[serde(rename = "returns")]
22    pub returns: Vec<models::shipping_v2::DetailCodes>,
23}
24
25impl TrackingDetailCodes {
26    /// Contains detail codes that provide additional details related to the forward and return leg of the shipment.
27    pub fn new(forward: Vec<models::shipping_v2::DetailCodes>, returns: Vec<models::shipping_v2::DetailCodes>) -> TrackingDetailCodes {
28        TrackingDetailCodes {
29            forward,
30            returns,
31        }
32    }
33}
34