amazon_spapi/models/replenishment_2022_11_07/preference.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/// Preference : Offer preferences that you can include in the result filter criteria.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct Preference {
17 /// Filters the results to only include offers with the auto-enrollment preference specified.
18 #[serde(rename = "autoEnrollment", skip_serializing_if = "Option::is_none")]
19 pub auto_enrollment: Option<Vec<models::replenishment_2022_11_07::AutoEnrollmentPreference>>,
20}
21
22impl Preference {
23 /// Offer preferences that you can include in the result filter criteria.
24 pub fn new() -> Preference {
25 Preference {
26 auto_enrollment: None,
27 }
28 }
29}
30