amazon_spapi/models/replenishment_2022_11_07/
offer_program_configuration.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/// OfferProgramConfiguration : The offer program configuration contains a set of program properties for an offer.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct OfferProgramConfiguration {
17    #[serde(rename = "preferences", skip_serializing_if = "Option::is_none")]
18    pub preferences: Option<Box<models::replenishment_2022_11_07::OfferProgramConfigurationPreferences>>,
19    #[serde(rename = "promotions", skip_serializing_if = "Option::is_none")]
20    pub promotions: Option<Box<models::replenishment_2022_11_07::OfferProgramConfigurationPromotions>>,
21    #[serde(rename = "enrollmentMethod", skip_serializing_if = "Option::is_none")]
22    pub enrollment_method: Option<models::replenishment_2022_11_07::EnrollmentMethod>,
23}
24
25impl OfferProgramConfiguration {
26    /// The offer program configuration contains a set of program properties for an offer.
27    pub fn new() -> OfferProgramConfiguration {
28        OfferProgramConfiguration {
29            preferences: None,
30            promotions: None,
31            enrollment_method: None,
32        }
33    }
34}
35