1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
/*
 * Selling Partner API for Finances
 *
 * 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.
 *
 * The version of the OpenAPI document: v0
 * 
 * Generated by: https://openapi-generator.tech
 */

/// CouponPaymentEvent : An event related to coupon payments.



#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct CouponPaymentEvent {
    #[serde(default, rename = "PostedDate", skip_serializing_if = "Option::is_none")]
    pub posted_date: Option<String>,
    /// A coupon identifier.
    #[serde(default, rename = "CouponId", skip_serializing_if = "Option::is_none")]
    pub coupon_id: Option<String>,
    /// The description provided by the seller when they created the coupon.
    #[serde(default, rename = "SellerCouponDescription", skip_serializing_if = "Option::is_none")]
    pub seller_coupon_description: Option<String>,
    /// The number of coupon clips or redemptions.
    #[serde(default, rename = "ClipOrRedemptionCount", skip_serializing_if = "Option::is_none")]
    pub clip_or_redemption_count: Option<i64>,
    /// A payment event identifier.
    #[serde(default, rename = "PaymentEventId", skip_serializing_if = "Option::is_none")]
    pub payment_event_id: Option<String>,
    #[serde(default, rename = "FeeComponent", skip_serializing_if = "Option::is_none")]
    pub fee_component: Option<Box<crate::models::FeeComponent>>,
    #[serde(default, rename = "ChargeComponent", skip_serializing_if = "Option::is_none")]
    pub charge_component: Option<Box<crate::models::ChargeComponent>>,
    #[serde(default, rename = "TotalAmount", skip_serializing_if = "Option::is_none")]
    pub total_amount: Option<Box<crate::models::Currency>>,
}

impl CouponPaymentEvent {
    /// An event related to coupon payments.
    pub fn new() -> CouponPaymentEvent {
        CouponPaymentEvent {
            posted_date: None,
            coupon_id: None,
            seller_coupon_description: None,
            clip_or_redemption_count: None,
            payment_event_id: None,
            fee_component: None,
            charge_component: None,
            total_amount: None,
        }
    }
}