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
56
57
58
59
60
61
62
63
64
65
#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct PayWithAmazonEvent {
#[serde(default, rename = "SellerOrderId", skip_serializing_if = "Option::is_none")]
pub seller_order_id: Option<String>,
#[serde(default, rename = "TransactionPostedDate", skip_serializing_if = "Option::is_none")]
pub transaction_posted_date: Option<String>,
#[serde(default, rename = "BusinessObjectType", skip_serializing_if = "Option::is_none")]
pub business_object_type: Option<String>,
#[serde(default, rename = "SalesChannel", skip_serializing_if = "Option::is_none")]
pub sales_channel: Option<String>,
#[serde(default, rename = "Charge", skip_serializing_if = "Option::is_none")]
pub charge: Option<Box<crate::models::ChargeComponent>>,
#[serde(default, rename = "FeeList", skip_serializing_if = "Option::is_none")]
pub fee_list: Option<Vec<crate::models::FeeComponent>>,
#[serde(default, rename = "PaymentAmountType", skip_serializing_if = "Option::is_none")]
pub payment_amount_type: Option<String>,
#[serde(default, rename = "AmountDescription", skip_serializing_if = "Option::is_none")]
pub amount_description: Option<String>,
#[serde(default, rename = "FulfillmentChannel", skip_serializing_if = "Option::is_none")]
pub fulfillment_channel: Option<String>,
#[serde(default, rename = "StoreName", skip_serializing_if = "Option::is_none")]
pub store_name: Option<String>,
}
impl PayWithAmazonEvent {
pub fn new() -> PayWithAmazonEvent {
PayWithAmazonEvent {
seller_order_id: None,
transaction_posted_date: None,
business_object_type: None,
sales_channel: None,
charge: None,
fee_list: None,
payment_amount_type: None,
amount_description: None,
fulfillment_channel: None,
store_name: None,
}
}
}