amazon_spapi/models/finances_v0/
promotion.rs

1/*
2 * Selling Partner API for Finances
3 *
4 * The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range.
5 *
6 * The version of the OpenAPI document: v0
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// Promotion : A promotion applied to an item.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct Promotion {
17    /// The type of promotion.
18    #[serde(rename = "PromotionType", skip_serializing_if = "Option::is_none")]
19    pub promotion_type: Option<String>,
20    /// The seller-specified identifier for the promotion.
21    #[serde(rename = "PromotionId", skip_serializing_if = "Option::is_none")]
22    pub promotion_id: Option<String>,
23    #[serde(rename = "PromotionAmount", skip_serializing_if = "Option::is_none")]
24    pub promotion_amount: Option<Box<models::finances_v0::Currency>>,
25}
26
27impl Promotion {
28    /// A promotion applied to an item.
29    pub fn new() -> Promotion {
30        Promotion {
31            promotion_type: None,
32            promotion_id: None,
33            promotion_amount: None,
34        }
35    }
36}
37