amazon-spapi 2.0.3

A Rust client library for Amazon Selling Partner API (SP-API)
Documentation
/*
 * 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};

/// AutoEnrollmentPreference : The auto-enrollment preference indicates whether the offer is opted-in to or opted-out of Amazon's auto-enrollment feature.
/// The auto-enrollment preference indicates whether the offer is opted-in to or opted-out of Amazon's auto-enrollment feature.
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum AutoEnrollmentPreference {
    #[serde(rename = "OPTED_IN")]
    OptedIn,
    #[serde(rename = "OPTED_OUT")]
    OptedOut,

}

impl std::fmt::Display for AutoEnrollmentPreference {
    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
        match self {
            Self::OptedIn => write!(f, "OPTED_IN"),
            Self::OptedOut => write!(f, "OPTED_OUT"),
        }
    }
}

impl Default for AutoEnrollmentPreference {
    fn default() -> AutoEnrollmentPreference {
        Self::OptedIn
    }
}