Skip to main content

amazon_spapi/models/awd_2024_05_09/
inbound_status.rs

1/*
2 * The Selling Partner API for Amazon Warehousing and Distribution
3 *
4 * The Selling Partner API for Amazon Warehousing and Distribution (AWD) provides programmatic access to information about AWD shipments and inventory.
5 *
6 * The version of the OpenAPI document: 2024-05-09
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// InboundStatus : The supported statuses for an inbound order.
15/// The supported statuses for an inbound order.
16#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
17pub enum InboundStatus {
18    #[serde(rename = "DRAFT")]
19    Draft,
20    #[serde(rename = "VALIDATING")]
21    Validating,
22    #[serde(rename = "CONFIRMED")]
23    Confirmed,
24    #[serde(rename = "CLOSED")]
25    Closed,
26    #[serde(rename = "EXPIRED")]
27    Expired,
28    #[serde(rename = "CANCELLED")]
29    Cancelled,
30
31}
32
33impl std::fmt::Display for InboundStatus {
34    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
35        match self {
36            Self::Draft => write!(f, "DRAFT"),
37            Self::Validating => write!(f, "VALIDATING"),
38            Self::Confirmed => write!(f, "CONFIRMED"),
39            Self::Closed => write!(f, "CLOSED"),
40            Self::Expired => write!(f, "EXPIRED"),
41            Self::Cancelled => write!(f, "CANCELLED"),
42        }
43    }
44}
45
46impl Default for InboundStatus {
47    fn default() -> InboundStatus {
48        Self::Draft
49    }
50}
51