amazon-spapi 2.0.3

A Rust client library for Amazon Selling Partner API (SP-API)
Documentation
/*
 * Selling Partner API for Retail Procurement Shipments
 *
 * The Selling Partner API for Retail Procurement Shipments provides programmatic access to retail shipping data for vendors.
 *
 * The version of the OpenAPI document: v1
 * 
 * Generated by: https://openapi-generator.tech
 */

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

/// CarrierDetails : Indicates the carrier details and their contact informations
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct CarrierDetails {
    /// The field is used to represent the carrier used for performing the shipment.
    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
    /// Code that identifies the carrier for the shipment. The Standard Carrier Alpha Code (SCAC) is a unique two to four letter code used to identify a carrier. Carrier SCAC codes are assigned and maintained by the NMFTA (National Motor Freight Association).
    #[serde(rename = "code", skip_serializing_if = "Option::is_none")]
    pub code: Option<String>,
    /// The field is used to represent the Carrier contact number.
    #[serde(rename = "phone", skip_serializing_if = "Option::is_none")]
    pub phone: Option<String>,
    /// The field is used to represent the carrier Email id.
    #[serde(rename = "email", skip_serializing_if = "Option::is_none")]
    pub email: Option<String>,
    /// The field is also known as PRO number is a unique number assigned by the carrier. It is used to identify and track the shipment that goes out for delivery. This field is mandatory for US, CA, MX shipment confirmations.
    #[serde(rename = "shipmentReferenceNumber", skip_serializing_if = "Option::is_none")]
    pub shipment_reference_number: Option<String>,
}

impl CarrierDetails {
    /// Indicates the carrier details and their contact informations
    pub fn new() -> CarrierDetails {
        CarrierDetails {
            name: None,
            code: None,
            phone: None,
            email: None,
            shipment_reference_number: None,
        }
    }
}