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
/*
 * Selling Partner API for Orders
 *
 * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools.
 *
 * The version of the OpenAPI document: v0
 * 
 * Generated by: https://openapi-generator.tech
 */

/// ElectronicInvoiceStatus : The status of the electronic invoice.

/// The status of the electronic invoice.
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum ElectronicInvoiceStatus {
    #[serde(rename = "NotRequired")]
    NotRequired,
    #[serde(rename = "NotFound")]
    NotFound,
    #[serde(rename = "Processing")]
    Processing,
    #[serde(rename = "Errored")]
    Errored,
    #[serde(rename = "Accepted")]
    Accepted,

}

impl ToString for ElectronicInvoiceStatus {
    fn to_string(&self) -> String {
        match self {
            Self::NotRequired => String::from("NotRequired"),
            Self::NotFound => String::from("NotFound"),
            Self::Processing => String::from("Processing"),
            Self::Errored => String::from("Errored"),
            Self::Accepted => String::from("Accepted"),
        }
    }
}

impl Default for ElectronicInvoiceStatus {
    fn default() -> ElectronicInvoiceStatus {
        Self::NotRequired
    }
}