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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
/*
 * 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
 */

/// SellerFreightClass : The freight class of the shipment. For information about determining the freight class, contact the carrier.

/// The freight class of the shipment. For information about determining the freight class, contact the carrier.
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum SellerFreightClass {
    #[serde(rename = "50")]
    _50,
    #[serde(rename = "55")]
    _55,
    #[serde(rename = "60")]
    _60,
    #[serde(rename = "65")]
    _65,
    #[serde(rename = "70")]
    _70,
    #[serde(rename = "77.5")]
    _775,
    #[serde(rename = "85")]
    _85,
    #[serde(rename = "92.5")]
    _925,
    #[serde(rename = "100")]
    _100,
    #[serde(rename = "110")]
    _110,
    #[serde(rename = "125")]
    _125,
    #[serde(rename = "150")]
    _150,
    #[serde(rename = "175")]
    _175,
    #[serde(rename = "200")]
    _200,
    #[serde(rename = "250")]
    _250,
    #[serde(rename = "300")]
    _300,
    #[serde(rename = "400")]
    _400,
    #[serde(rename = "500")]
    _500,

}

impl ToString for SellerFreightClass {
    fn to_string(&self) -> String {
        match self {
            Self::_50 => String::from("50"),
            Self::_55 => String::from("55"),
            Self::_60 => String::from("60"),
            Self::_65 => String::from("65"),
            Self::_70 => String::from("70"),
            Self::_775 => String::from("77.5"),
            Self::_85 => String::from("85"),
            Self::_925 => String::from("92.5"),
            Self::_100 => String::from("100"),
            Self::_110 => String::from("110"),
            Self::_125 => String::from("125"),
            Self::_150 => String::from("150"),
            Self::_175 => String::from("175"),
            Self::_200 => String::from("200"),
            Self::_250 => String::from("250"),
            Self::_300 => String::from("300"),
            Self::_400 => String::from("400"),
            Self::_500 => String::from("500"),
        }
    }
}

impl Default for SellerFreightClass {
    fn default() -> SellerFreightClass {
        Self::_50
    }
}