amazon_spapi/models/replenishment_2022_11_07/enrollment_method.rs
1/*
2 * Selling Partner API for Replenishment
3 *
4 * 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.
5 *
6 * The version of the OpenAPI document: 2022-11-07
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// EnrollmentMethod : The enrollment method used to enroll the offer into the program.
15/// The enrollment method used to enroll the offer into the program.
16#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
17pub enum EnrollmentMethod {
18 #[serde(rename = "MANUAL")]
19 Manual,
20 #[serde(rename = "AUTOMATIC")]
21 Automatic,
22
23}
24
25impl std::fmt::Display for EnrollmentMethod {
26 fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
27 match self {
28 Self::Manual => write!(f, "MANUAL"),
29 Self::Automatic => write!(f, "AUTOMATIC"),
30 }
31 }
32}
33
34impl Default for EnrollmentMethod {
35 fn default() -> EnrollmentMethod {
36 Self::Manual
37 }
38}
39