/*
* 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};
/// OfferProgramConfiguration : The offer program configuration contains a set of program properties for an offer.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct OfferProgramConfiguration {
#[serde(rename = "preferences", skip_serializing_if = "Option::is_none")]
pub preferences: Option<Box<models::replenishment_2022_11_07::OfferProgramConfigurationPreferences>>,
#[serde(rename = "promotions", skip_serializing_if = "Option::is_none")]
pub promotions: Option<Box<models::replenishment_2022_11_07::OfferProgramConfigurationPromotions>>,
#[serde(rename = "enrollmentMethod", skip_serializing_if = "Option::is_none")]
pub enrollment_method: Option<models::replenishment_2022_11_07::EnrollmentMethod>,
}
impl OfferProgramConfiguration {
/// The offer program configuration contains a set of program properties for an offer.
pub fn new() -> OfferProgramConfiguration {
OfferProgramConfiguration {
preferences: None,
promotions: None,
enrollment_method: None,
}
}
}