amazon_spapi/models/finances_v0/
pay_with_amazon_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/// PayWithAmazonEvent : An event related to the seller's Pay with Amazon account.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct PayWithAmazonEvent {
17    /// An order identifier that is specified by the seller.
18    #[serde(rename = "SellerOrderId", skip_serializing_if = "Option::is_none")]
19    pub seller_order_id: Option<String>,
20    /// Fields with a schema type of date are in ISO 8601 date time format (for example GroupBeginDate).
21    #[serde(rename = "TransactionPostedDate", skip_serializing_if = "Option::is_none")]
22    pub transaction_posted_date: Option<String>,
23    /// The type of business object.
24    #[serde(rename = "BusinessObjectType", skip_serializing_if = "Option::is_none")]
25    pub business_object_type: Option<String>,
26    /// The sales channel for the transaction.
27    #[serde(rename = "SalesChannel", skip_serializing_if = "Option::is_none")]
28    pub sales_channel: Option<String>,
29    #[serde(rename = "Charge", skip_serializing_if = "Option::is_none")]
30    pub charge: Option<Box<models::finances_v0::ChargeComponent>>,
31    /// A list of fee component information.
32    #[serde(rename = "FeeList", skip_serializing_if = "Option::is_none")]
33    pub fee_list: Option<Vec<models::finances_v0::FeeComponent>>,
34    /// The type of payment.  Possible values:  * Sales
35    #[serde(rename = "PaymentAmountType", skip_serializing_if = "Option::is_none")]
36    pub payment_amount_type: Option<String>,
37    /// A short description of this payment event.
38    #[serde(rename = "AmountDescription", skip_serializing_if = "Option::is_none")]
39    pub amount_description: Option<String>,
40    /// The fulfillment channel.  Possible values:  * AFN - Amazon Fulfillment Network (Fulfillment by Amazon)  * MFN - Merchant Fulfillment Network (self-fulfilled)
41    #[serde(rename = "FulfillmentChannel", skip_serializing_if = "Option::is_none")]
42    pub fulfillment_channel: Option<String>,
43    /// The store name where the event occurred.
44    #[serde(rename = "StoreName", skip_serializing_if = "Option::is_none")]
45    pub store_name: Option<String>,
46}
47
48impl PayWithAmazonEvent {
49    /// An event related to the seller's Pay with Amazon account.
50    pub fn new() -> PayWithAmazonEvent {
51        PayWithAmazonEvent {
52            seller_order_id: None,
53            transaction_posted_date: None,
54            business_object_type: None,
55            sales_channel: None,
56            charge: None,
57            fee_list: None,
58            payment_amount_type: None,
59            amount_description: None,
60            fulfillment_channel: None,
61            store_name: None,
62        }
63    }
64}
65