Skip to main content

amazon_spapi/models/replenishment_2022_11_07/
offer_program_configuration_promotions.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/// OfferProgramConfigurationPromotions : An object which represents all promotions applied to an offer.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct OfferProgramConfigurationPromotions {
17    #[serde(rename = "sellingPartnerFundedBaseDiscount", skip_serializing_if = "Option::is_none")]
18    pub selling_partner_funded_base_discount: Option<Box<models::replenishment_2022_11_07::OfferProgramConfigurationPromotionsDiscountFunding>>,
19    #[serde(rename = "sellingPartnerFundedTieredDiscount", skip_serializing_if = "Option::is_none")]
20    pub selling_partner_funded_tiered_discount: Option<Box<models::replenishment_2022_11_07::OfferProgramConfigurationPromotionsDiscountFunding>>,
21    #[serde(rename = "amazonFundedBaseDiscount", skip_serializing_if = "Option::is_none")]
22    pub amazon_funded_base_discount: Option<Box<models::replenishment_2022_11_07::OfferProgramConfigurationPromotionsDiscountFunding>>,
23    #[serde(rename = "amazonFundedTieredDiscount", skip_serializing_if = "Option::is_none")]
24    pub amazon_funded_tiered_discount: Option<Box<models::replenishment_2022_11_07::OfferProgramConfigurationPromotionsDiscountFunding>>,
25}
26
27impl OfferProgramConfigurationPromotions {
28    /// An object which represents all promotions applied to an offer.
29    pub fn new() -> OfferProgramConfigurationPromotions {
30        OfferProgramConfigurationPromotions {
31            selling_partner_funded_base_discount: None,
32            selling_partner_funded_tiered_discount: None,
33            amazon_funded_base_discount: None,
34            amazon_funded_tiered_discount: None,
35        }
36    }
37}
38