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
43
44
45
46
/*
* 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,
}
}
}