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
/*
* Selling Partner API for Replenishment
*
* The Selling Partner API for Replenishment (Replenishment API) provides programmatic access to replenishment program metrics and offers. These programs provide recurring delivery of any replenishable item at a frequency chosen by the customer. The Replenishment API is available worldwide wherever Amazon Subscribe & Save is available or is supported. The API is available to vendors and FBA selling partners.
*
* The version of the OpenAPI document: 2022-11-07
*
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
/// EligibilityStatus : The current eligibility status of an offer.
/// The current eligibility status of an offer.
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum EligibilityStatus {
#[serde(rename = "ELIGIBLE")]
Eligible,
#[serde(rename = "INELIGIBLE")]
Ineligible,
#[serde(rename = "SUSPENDED")]
Suspended,
#[serde(rename = "REPLENISHMENT_ONLY_ORDERING")]
ReplenishmentOnlyOrdering,
}
impl std::fmt::Display for EligibilityStatus {
fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
match self {
Self::Eligible => write!(f, "ELIGIBLE"),
Self::Ineligible => write!(f, "INELIGIBLE"),
Self::Suspended => write!(f, "SUSPENDED"),
Self::ReplenishmentOnlyOrdering => write!(f, "REPLENISHMENT_ONLY_ORDERING"),
}
}
}
impl Default for EligibilityStatus {
fn default() -> EligibilityStatus {
Self::Eligible
}
}