amazon_spapi/models/shipping_v2/
account_status.rs

1/*
2 * Amazon Shipping API
3 *
4 * The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments.
5 *
6 * The version of the OpenAPI document: v2
7 * Contact: swa-api-core@amazon.com
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// AccountStatus : Account Status.
15/// Account Status.
16#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
17pub enum AccountStatus {
18    #[serde(rename = "ACTIVE")]
19    Active,
20    #[serde(rename = "INACTIVE")]
21    Inactive,
22    #[serde(rename = "PENDING")]
23    Pending,
24    #[serde(rename = "SUSPENDED")]
25    Suspended,
26
27}
28
29impl std::fmt::Display for AccountStatus {
30    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
31        match self {
32            Self::Active => write!(f, "ACTIVE"),
33            Self::Inactive => write!(f, "INACTIVE"),
34            Self::Pending => write!(f, "PENDING"),
35            Self::Suspended => write!(f, "SUSPENDED"),
36        }
37    }
38}
39
40impl Default for AccountStatus {
41    fn default() -> AccountStatus {
42        Self::Active
43    }
44}
45