amazon_spapi/models/finances_v0/
network_commingling_transaction_event.rs

1/*
2 * Selling Partner API for Finances
3 *
4 * 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.
5 *
6 * The version of the OpenAPI document: v0
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// NetworkComminglingTransactionEvent : A network commingling transaction event.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct NetworkComminglingTransactionEvent {
17    /// The type of network item swap.  Possible values:  * NetCo - A Fulfillment by Amazon inventory pooling transaction. Available only in the India marketplace.  * ComminglingVAT - A commingling VAT transaction. Available only in the UK, Spain, France, Germany, and Italy marketplaces.
18    #[serde(rename = "TransactionType", skip_serializing_if = "Option::is_none")]
19    pub transaction_type: Option<String>,
20    /// Fields with a schema type of date are in ISO 8601 date time format (for example GroupBeginDate).
21    #[serde(rename = "PostedDate", skip_serializing_if = "Option::is_none")]
22    pub posted_date: Option<String>,
23    /// The identifier for the network item swap.
24    #[serde(rename = "NetCoTransactionID", skip_serializing_if = "Option::is_none")]
25    pub net_co_transaction_id: Option<String>,
26    /// The reason for the network item swap.
27    #[serde(rename = "SwapReason", skip_serializing_if = "Option::is_none")]
28    pub swap_reason: Option<String>,
29    /// The Amazon Standard Identification Number (ASIN) of the swapped item.
30    #[serde(rename = "ASIN", skip_serializing_if = "Option::is_none")]
31    pub asin: Option<String>,
32    /// The marketplace in which the event took place.
33    #[serde(rename = "MarketplaceId", skip_serializing_if = "Option::is_none")]
34    pub marketplace_id: Option<String>,
35    #[serde(rename = "TaxExclusiveAmount", skip_serializing_if = "Option::is_none")]
36    pub tax_exclusive_amount: Option<Box<models::finances_v0::Currency>>,
37    #[serde(rename = "TaxAmount", skip_serializing_if = "Option::is_none")]
38    pub tax_amount: Option<Box<models::finances_v0::Currency>>,
39}
40
41impl NetworkComminglingTransactionEvent {
42    /// A network commingling transaction event.
43    pub fn new() -> NetworkComminglingTransactionEvent {
44        NetworkComminglingTransactionEvent {
45            transaction_type: None,
46            posted_date: None,
47            net_co_transaction_id: None,
48            swap_reason: None,
49            asin: None,
50            marketplace_id: None,
51            tax_exclusive_amount: None,
52            tax_amount: None,
53        }
54    }
55}
56