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
#[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>,
#[serde(default, rename = "CouponId", skip_serializing_if = "Option::is_none")]
pub coupon_id: Option<String>,
#[serde(default, rename = "SellerCouponDescription", skip_serializing_if = "Option::is_none")]
pub seller_coupon_description: Option<String>,
#[serde(default, rename = "ClipOrRedemptionCount", skip_serializing_if = "Option::is_none")]
pub clip_or_redemption_count: Option<i64>,
#[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 {
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,
}
}
}