amazon-spapi 2.0.3

A Rust client library for Amazon Selling Partner API (SP-API)
Documentation
/*
 * 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};

/// OfferProgramConfigurationPromotions : An object which represents all promotions applied to an offer.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct OfferProgramConfigurationPromotions {
    #[serde(rename = "sellingPartnerFundedBaseDiscount", skip_serializing_if = "Option::is_none")]
    pub selling_partner_funded_base_discount: Option<Box<models::replenishment_2022_11_07::OfferProgramConfigurationPromotionsDiscountFunding>>,
    #[serde(rename = "sellingPartnerFundedTieredDiscount", skip_serializing_if = "Option::is_none")]
    pub selling_partner_funded_tiered_discount: Option<Box<models::replenishment_2022_11_07::OfferProgramConfigurationPromotionsDiscountFunding>>,
    #[serde(rename = "amazonFundedBaseDiscount", skip_serializing_if = "Option::is_none")]
    pub amazon_funded_base_discount: Option<Box<models::replenishment_2022_11_07::OfferProgramConfigurationPromotionsDiscountFunding>>,
    #[serde(rename = "amazonFundedTieredDiscount", skip_serializing_if = "Option::is_none")]
    pub amazon_funded_tiered_discount: Option<Box<models::replenishment_2022_11_07::OfferProgramConfigurationPromotionsDiscountFunding>>,
}

impl OfferProgramConfigurationPromotions {
    /// An object which represents all promotions applied to an offer.
    pub fn new() -> OfferProgramConfigurationPromotions {
        OfferProgramConfigurationPromotions {
            selling_partner_funded_base_discount: None,
            selling_partner_funded_tiered_discount: None,
            amazon_funded_base_discount: None,
            amazon_funded_tiered_discount: None,
        }
    }
}