amazon_spapi/models/orders_v0/
electronic_invoice_status.rs

1/*
2 * Selling Partner API for Orders
3 *
4 * Use the Orders Selling Partner API to programmatically retrieve order information. With this API, you can develop fast, flexible, and custom applications to manage order synchronization, perform order research, and create demand-based decision support tools.   _Note:_ For the JP, AU, and SG marketplaces, the Orders API supports orders from 2016 onward. For all other marketplaces, the Orders API supports orders for the last two years (orders older than this don't show up in the response).
5 *
6 * The version of the OpenAPI document: v0
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// ElectronicInvoiceStatus : The status of the electronic invoice. Only available for Easy Ship orders and orders in the BR marketplace.
15/// The status of the electronic invoice. Only available for Easy Ship orders and orders in the BR marketplace.
16#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
17pub enum ElectronicInvoiceStatus {
18    #[serde(rename = "NotRequired")]
19    NotRequired,
20    #[serde(rename = "NotFound")]
21    NotFound,
22    #[serde(rename = "Processing")]
23    Processing,
24    #[serde(rename = "Errored")]
25    Errored,
26    #[serde(rename = "Accepted")]
27    Accepted,
28
29}
30
31impl std::fmt::Display for ElectronicInvoiceStatus {
32    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
33        match self {
34            Self::NotRequired => write!(f, "NotRequired"),
35            Self::NotFound => write!(f, "NotFound"),
36            Self::Processing => write!(f, "Processing"),
37            Self::Errored => write!(f, "Errored"),
38            Self::Accepted => write!(f, "Accepted"),
39        }
40    }
41}
42
43impl Default for ElectronicInvoiceStatus {
44    fn default() -> ElectronicInvoiceStatus {
45        Self::NotRequired
46    }
47}
48