Skip to main content

amazon_spapi/models/finances_v0/
financial_events.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/// FinancialEvents : Contains all information related to a financial event.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct FinancialEvents {
17    /// A list of shipment event information.
18    #[serde(rename = "ShipmentEventList", skip_serializing_if = "Option::is_none")]
19    pub shipment_event_list: Option<Vec<models::finances_v0::ShipmentEvent>>,
20    /// A list of `ShipmentEvent` items.
21    #[serde(rename = "ShipmentSettleEventList", skip_serializing_if = "Option::is_none")]
22    pub shipment_settle_event_list: Option<Vec<models::finances_v0::ShipmentEvent>>,
23    /// A list of shipment event information.
24    #[serde(rename = "RefundEventList", skip_serializing_if = "Option::is_none")]
25    pub refund_event_list: Option<Vec<models::finances_v0::ShipmentEvent>>,
26    /// A list of shipment event information.
27    #[serde(rename = "GuaranteeClaimEventList", skip_serializing_if = "Option::is_none")]
28    pub guarantee_claim_event_list: Option<Vec<models::finances_v0::ShipmentEvent>>,
29    /// A list of shipment event information.
30    #[serde(rename = "ChargebackEventList", skip_serializing_if = "Option::is_none")]
31    pub chargeback_event_list: Option<Vec<models::finances_v0::ShipmentEvent>>,
32    /// A list of events related to the seller's Pay with Amazon account.
33    #[serde(rename = "PayWithAmazonEventList", skip_serializing_if = "Option::is_none")]
34    pub pay_with_amazon_event_list: Option<Vec<models::finances_v0::PayWithAmazonEvent>>,
35    /// A list of information about solution provider credits.
36    #[serde(rename = "ServiceProviderCreditEventList", skip_serializing_if = "Option::is_none")]
37    pub service_provider_credit_event_list: Option<Vec<models::finances_v0::SolutionProviderCreditEvent>>,
38    /// A list of information about Retrocharge or RetrochargeReversal events.
39    #[serde(rename = "RetrochargeEventList", skip_serializing_if = "Option::is_none")]
40    pub retrocharge_event_list: Option<Vec<models::finances_v0::RetrochargeEvent>>,
41    /// A list of rental transaction event information.
42    #[serde(rename = "RentalTransactionEventList", skip_serializing_if = "Option::is_none")]
43    pub rental_transaction_event_list: Option<Vec<models::finances_v0::RentalTransactionEvent>>,
44    /// A list of sponsored products payment events.
45    #[serde(rename = "ProductAdsPaymentEventList", skip_serializing_if = "Option::is_none")]
46    pub product_ads_payment_event_list: Option<Vec<models::finances_v0::ProductAdsPaymentEvent>>,
47    /// A list of information about service fee events.
48    #[serde(rename = "ServiceFeeEventList", skip_serializing_if = "Option::is_none")]
49    pub service_fee_event_list: Option<Vec<models::finances_v0::ServiceFeeEvent>>,
50    /// A list of payment events for deal-related fees.
51    #[serde(rename = "SellerDealPaymentEventList", skip_serializing_if = "Option::is_none")]
52    pub seller_deal_payment_event_list: Option<Vec<models::finances_v0::SellerDealPaymentEvent>>,
53    /// A list of debt recovery event information.
54    #[serde(rename = "DebtRecoveryEventList", skip_serializing_if = "Option::is_none")]
55    pub debt_recovery_event_list: Option<Vec<models::finances_v0::DebtRecoveryEvent>>,
56    /// A list of loan servicing events.
57    #[serde(rename = "LoanServicingEventList", skip_serializing_if = "Option::is_none")]
58    pub loan_servicing_event_list: Option<Vec<models::finances_v0::LoanServicingEvent>>,
59    /// A list of adjustment event information for the seller's account.
60    #[serde(rename = "AdjustmentEventList", skip_serializing_if = "Option::is_none")]
61    pub adjustment_event_list: Option<Vec<models::finances_v0::AdjustmentEvent>>,
62    /// A list of SAFETReimbursementEvents.
63    #[serde(rename = "SAFETReimbursementEventList", skip_serializing_if = "Option::is_none")]
64    pub safet_reimbursement_event_list: Option<Vec<models::finances_v0::SafetReimbursementEvent>>,
65    /// A list of information about fee events for the Early Reviewer Program.
66    #[serde(rename = "SellerReviewEnrollmentPaymentEventList", skip_serializing_if = "Option::is_none")]
67    pub seller_review_enrollment_payment_event_list: Option<Vec<models::finances_v0::SellerReviewEnrollmentPaymentEvent>>,
68    /// A list of FBA inventory liquidation payment events.
69    #[serde(rename = "FBALiquidationEventList", skip_serializing_if = "Option::is_none")]
70    pub fba_liquidation_event_list: Option<Vec<models::finances_v0::FbaLiquidationEvent>>,
71    /// A list of coupon payment event information.
72    #[serde(rename = "CouponPaymentEventList", skip_serializing_if = "Option::is_none")]
73    pub coupon_payment_event_list: Option<Vec<models::finances_v0::CouponPaymentEvent>>,
74    /// A list of fee events related to Amazon Imaging services.
75    #[serde(rename = "ImagingServicesFeeEventList", skip_serializing_if = "Option::is_none")]
76    pub imaging_services_fee_event_list: Option<Vec<models::finances_v0::ImagingServicesFeeEvent>>,
77    /// A list of network commingling transaction events.
78    #[serde(rename = "NetworkComminglingTransactionEventList", skip_serializing_if = "Option::is_none")]
79    pub network_commingling_transaction_event_list: Option<Vec<models::finances_v0::NetworkComminglingTransactionEvent>>,
80    /// A list of expense information related to an affordability promotion.
81    #[serde(rename = "AffordabilityExpenseEventList", skip_serializing_if = "Option::is_none")]
82    pub affordability_expense_event_list: Option<Vec<models::finances_v0::AffordabilityExpenseEvent>>,
83    /// A list of expense information related to an affordability promotion.
84    #[serde(rename = "AffordabilityExpenseReversalEventList", skip_serializing_if = "Option::is_none")]
85    pub affordability_expense_reversal_event_list: Option<Vec<models::finances_v0::AffordabilityExpenseEvent>>,
86    /// A list of removal shipment event information.
87    #[serde(rename = "RemovalShipmentEventList", skip_serializing_if = "Option::is_none")]
88    pub removal_shipment_event_list: Option<Vec<models::finances_v0::RemovalShipmentEvent>>,
89    /// A comma-delimited list of Removal shipmentAdjustment details for FBA inventory.
90    #[serde(rename = "RemovalShipmentAdjustmentEventList", skip_serializing_if = "Option::is_none")]
91    pub removal_shipment_adjustment_event_list: Option<Vec<models::finances_v0::RemovalShipmentAdjustmentEvent>>,
92    /// A list of information about trial shipment financial events.
93    #[serde(rename = "TrialShipmentEventList", skip_serializing_if = "Option::is_none")]
94    pub trial_shipment_event_list: Option<Vec<models::finances_v0::TrialShipmentEvent>>,
95    /// A list of `TDSReimbursementEvent` items.
96    #[serde(rename = "TDSReimbursementEventList", skip_serializing_if = "Option::is_none")]
97    pub tds_reimbursement_event_list: Option<Vec<models::finances_v0::TdsReimbursementEvent>>,
98    /// A list of `AdhocDisbursement` events.
99    #[serde(rename = "AdhocDisbursementEventList", skip_serializing_if = "Option::is_none")]
100    pub adhoc_disbursement_event_list: Option<Vec<models::finances_v0::AdhocDisbursementEvent>>,
101    /// A list of `TaxWithholding` events.
102    #[serde(rename = "TaxWithholdingEventList", skip_serializing_if = "Option::is_none")]
103    pub tax_withholding_event_list: Option<Vec<models::finances_v0::TaxWithholdingEvent>>,
104    /// A list of charge refund events.
105    #[serde(rename = "ChargeRefundEventList", skip_serializing_if = "Option::is_none")]
106    pub charge_refund_event_list: Option<Vec<models::finances_v0::ChargeRefundEvent>>,
107    /// A list of `FailedAdhocDisbursementEvent`s.
108    #[serde(rename = "FailedAdhocDisbursementEventList", skip_serializing_if = "Option::is_none")]
109    pub failed_adhoc_disbursement_event_list: Option<Vec<models::finances_v0::FailedAdhocDisbursementEvent>>,
110    /// A list of `ValueAddedServiceCharge` events.
111    #[serde(rename = "ValueAddedServiceChargeEventList", skip_serializing_if = "Option::is_none")]
112    pub value_added_service_charge_event_list: Option<Vec<models::finances_v0::ValueAddedServiceChargeEvent>>,
113    /// A list of `CapacityReservationBillingEvent` events.
114    #[serde(rename = "CapacityReservationBillingEventList", skip_serializing_if = "Option::is_none")]
115    pub capacity_reservation_billing_event_list: Option<Vec<models::finances_v0::CapacityReservationBillingEvent>>,
116}
117
118impl FinancialEvents {
119    /// Contains all information related to a financial event.
120    pub fn new() -> FinancialEvents {
121        FinancialEvents {
122            shipment_event_list: None,
123            shipment_settle_event_list: None,
124            refund_event_list: None,
125            guarantee_claim_event_list: None,
126            chargeback_event_list: None,
127            pay_with_amazon_event_list: None,
128            service_provider_credit_event_list: None,
129            retrocharge_event_list: None,
130            rental_transaction_event_list: None,
131            product_ads_payment_event_list: None,
132            service_fee_event_list: None,
133            seller_deal_payment_event_list: None,
134            debt_recovery_event_list: None,
135            loan_servicing_event_list: None,
136            adjustment_event_list: None,
137            safet_reimbursement_event_list: None,
138            seller_review_enrollment_payment_event_list: None,
139            fba_liquidation_event_list: None,
140            coupon_payment_event_list: None,
141            imaging_services_fee_event_list: None,
142            network_commingling_transaction_event_list: None,
143            affordability_expense_event_list: None,
144            affordability_expense_reversal_event_list: None,
145            removal_shipment_event_list: None,
146            removal_shipment_adjustment_event_list: None,
147            trial_shipment_event_list: None,
148            tds_reimbursement_event_list: None,
149            adhoc_disbursement_event_list: None,
150            tax_withholding_event_list: None,
151            charge_refund_event_list: None,
152            failed_adhoc_disbursement_event_list: None,
153            value_added_service_charge_event_list: None,
154            capacity_reservation_billing_event_list: None,
155        }
156    }
157}
158