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
/*
 * 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
 */

/// SolutionProviderCreditEvent : A credit given to a solution provider.



#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct SolutionProviderCreditEvent {
    /// The transaction type.
    #[serde(default, rename = "ProviderTransactionType", skip_serializing_if = "Option::is_none")]
    pub provider_transaction_type: 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 identifier of the marketplace where the order was placed.
    #[serde(default, rename = "MarketplaceId", skip_serializing_if = "Option::is_none")]
    pub marketplace_id: Option<String>,
    /// The two-letter country code of the country associated with the marketplace where the order was placed.
    #[serde(default, rename = "MarketplaceCountryCode", skip_serializing_if = "Option::is_none")]
    pub marketplace_country_code: Option<String>,
    /// The Amazon-defined identifier of the seller.
    #[serde(default, rename = "SellerId", skip_serializing_if = "Option::is_none")]
    pub seller_id: Option<String>,
    /// The store name where the payment event occurred.
    #[serde(default, rename = "SellerStoreName", skip_serializing_if = "Option::is_none")]
    pub seller_store_name: Option<String>,
    /// The Amazon-defined identifier of the solution provider.
    #[serde(default, rename = "ProviderId", skip_serializing_if = "Option::is_none")]
    pub provider_id: Option<String>,
    /// The store name where the payment event occurred.
    #[serde(default, rename = "ProviderStoreName", skip_serializing_if = "Option::is_none")]
    pub provider_store_name: Option<String>,
    #[serde(default, rename = "TransactionAmount", skip_serializing_if = "Option::is_none")]
    pub transaction_amount: Option<Box<crate::models::Currency>>,
    #[serde(default, rename = "TransactionCreationDate", skip_serializing_if = "Option::is_none")]
    pub transaction_creation_date: Option<String>,
}

impl SolutionProviderCreditEvent {
    /// A credit given to a solution provider.
    pub fn new() -> SolutionProviderCreditEvent {
        SolutionProviderCreditEvent {
            provider_transaction_type: None,
            seller_order_id: None,
            marketplace_id: None,
            marketplace_country_code: None,
            seller_id: None,
            seller_store_name: None,
            provider_id: None,
            provider_store_name: None,
            transaction_amount: None,
            transaction_creation_date: None,
        }
    }
}