Skip to main content

amazon_spapi/models/finances_v0/
solution_provider_credit_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/// SolutionProviderCreditEvent : A credit given to a solution provider.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct SolutionProviderCreditEvent {
17    /// The transaction type.
18    #[serde(rename = "ProviderTransactionType", skip_serializing_if = "Option::is_none")]
19    pub provider_transaction_type: Option<String>,
20    /// A seller-defined identifier for an order.
21    #[serde(rename = "SellerOrderId", skip_serializing_if = "Option::is_none")]
22    pub seller_order_id: Option<String>,
23    /// The identifier of the marketplace where the order was placed.
24    #[serde(rename = "MarketplaceId", skip_serializing_if = "Option::is_none")]
25    pub marketplace_id: Option<String>,
26    /// The two-letter country code of the country associated with the marketplace where the order was placed.
27    #[serde(rename = "MarketplaceCountryCode", skip_serializing_if = "Option::is_none")]
28    pub marketplace_country_code: Option<String>,
29    /// The Amazon-defined identifier of the seller.
30    #[serde(rename = "SellerId", skip_serializing_if = "Option::is_none")]
31    pub seller_id: Option<String>,
32    /// The store name where the payment event occurred.
33    #[serde(rename = "SellerStoreName", skip_serializing_if = "Option::is_none")]
34    pub seller_store_name: Option<String>,
35    /// The Amazon-defined identifier of the solution provider.
36    #[serde(rename = "ProviderId", skip_serializing_if = "Option::is_none")]
37    pub provider_id: Option<String>,
38    /// The store name where the payment event occurred.
39    #[serde(rename = "ProviderStoreName", skip_serializing_if = "Option::is_none")]
40    pub provider_store_name: Option<String>,
41    #[serde(rename = "TransactionAmount", skip_serializing_if = "Option::is_none")]
42    pub transaction_amount: Option<Box<models::finances_v0::Currency>>,
43    /// Fields with a schema type of date are in ISO 8601 date time format (for example GroupBeginDate).
44    #[serde(rename = "TransactionCreationDate", skip_serializing_if = "Option::is_none")]
45    pub transaction_creation_date: Option<String>,
46}
47
48impl SolutionProviderCreditEvent {
49    /// A credit given to a solution provider.
50    pub fn new() -> SolutionProviderCreditEvent {
51        SolutionProviderCreditEvent {
52            provider_transaction_type: None,
53            seller_order_id: None,
54            marketplace_id: None,
55            marketplace_country_code: None,
56            seller_id: None,
57            seller_store_name: None,
58            provider_id: None,
59            provider_store_name: None,
60            transaction_amount: None,
61            transaction_creation_date: None,
62        }
63    }
64}
65