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
66
67
68
69
70
71
72
73
74
75
76
77
78
/*
 * 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
 */

/// ShipmentEvent : A shipment, refund, guarantee claim, or chargeback.



#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct ShipmentEvent {
    /// An Amazon-defined identifier for an order.
    #[serde(default, rename = "AmazonOrderId", skip_serializing_if = "Option::is_none")]
    pub amazon_order_id: Option<String>,
    /// A seller-defined identifier for an order.
    #[serde(default, rename = "SellerOrderId", skip_serializing_if = "Option::is_none")]
    pub seller_order_id: Option<String>,
    /// The name of the marketplace where the event occurred.
    #[serde(default, rename = "MarketplaceName", skip_serializing_if = "Option::is_none")]
    pub marketplace_name: Option<String>,
    /// A list of charge information on the seller's account.
    #[serde(default, rename = "OrderChargeList", skip_serializing_if = "Option::is_none")]
    pub order_charge_list: Option<Vec<crate::models::ChargeComponent>>,
    /// A list of charge information on the seller's account.
    #[serde(default, rename = "OrderChargeAdjustmentList", skip_serializing_if = "Option::is_none")]
    pub order_charge_adjustment_list: Option<Vec<crate::models::ChargeComponent>>,
    /// A list of fee component information.
    #[serde(default, rename = "ShipmentFeeList", skip_serializing_if = "Option::is_none")]
    pub shipment_fee_list: Option<Vec<crate::models::FeeComponent>>,
    /// A list of fee component information.
    #[serde(default, rename = "ShipmentFeeAdjustmentList", skip_serializing_if = "Option::is_none")]
    pub shipment_fee_adjustment_list: Option<Vec<crate::models::FeeComponent>>,
    /// A list of fee component information.
    #[serde(default, rename = "OrderFeeList", skip_serializing_if = "Option::is_none")]
    pub order_fee_list: Option<Vec<crate::models::FeeComponent>>,
    /// A list of fee component information.
    #[serde(default, rename = "OrderFeeAdjustmentList", skip_serializing_if = "Option::is_none")]
    pub order_fee_adjustment_list: Option<Vec<crate::models::FeeComponent>>,
    /// A list of direct payment information.
    #[serde(default, rename = "DirectPaymentList", skip_serializing_if = "Option::is_none")]
    pub direct_payment_list: Option<Vec<crate::models::DirectPayment>>,
    #[serde(default, rename = "PostedDate", skip_serializing_if = "Option::is_none")]
    pub posted_date: Option<String>,
    /// A list of shipment items.
    #[serde(default, rename = "ShipmentItemList", skip_serializing_if = "Option::is_none")]
    pub shipment_item_list: Option<Vec<crate::models::ShipmentItem>>,
    /// A list of shipment items.
    #[serde(default, rename = "ShipmentItemAdjustmentList", skip_serializing_if = "Option::is_none")]
    pub shipment_item_adjustment_list: Option<Vec<crate::models::ShipmentItem>>,
}

impl ShipmentEvent {
    /// A shipment, refund, guarantee claim, or chargeback.
    pub fn new() -> ShipmentEvent {
        ShipmentEvent {
            amazon_order_id: None,
            seller_order_id: None,
            marketplace_name: None,
            order_charge_list: None,
            order_charge_adjustment_list: None,
            shipment_fee_list: None,
            shipment_fee_adjustment_list: None,
            order_fee_list: None,
            order_fee_adjustment_list: None,
            direct_payment_list: None,
            posted_date: None,
            shipment_item_list: None,
            shipment_item_adjustment_list: None,
        }
    }
}