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

/// SpdTrackingItem : Contains information used to track and identify a Small Parcel Delivery (SPD) item.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct SpdTrackingItem {
    /// The ID provided by Amazon that identifies a given box. This ID is comprised of the external shipment ID (which is generated after transportation has been confirmed) and the index of the box.
    #[serde(rename = "boxId", skip_serializing_if = "Option::is_none")]
    pub box_id: Option<String>,
    /// The tracking ID associated with each box in a non-Amazon partnered Small Parcel Delivery (SPD) shipment.
    #[serde(rename = "trackingId", skip_serializing_if = "Option::is_none")]
    pub tracking_id: Option<String>,
    /// Whether or not Amazon has validated the tracking number. If more than 24 hours have passed and the status is not yet 'VALIDATED', please verify the number and update if necessary. Possible values: `VALIDATED`, `NOT_VALIDATED`.
    #[serde(rename = "trackingNumberValidationStatus", skip_serializing_if = "Option::is_none")]
    pub tracking_number_validation_status: Option<String>,
}

impl SpdTrackingItem {
    /// Contains information used to track and identify a Small Parcel Delivery (SPD) item.
    pub fn new() -> SpdTrackingItem {
        SpdTrackingItem {
            box_id: None,
            tracking_id: None,
            tracking_number_validation_status: None,
        }
    }
}