amazon-spapi 2.0.3

A Rust client library for Amazon Selling Partner API (SP-API)
Documentation
/*
 * 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
 */

use crate::models;
use serde::{Deserialize, Serialize};

/// FinancialEvents : Contains all information related to a financial event.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct FinancialEvents {
    /// A list of shipment event information.
    #[serde(rename = "ShipmentEventList", skip_serializing_if = "Option::is_none")]
    pub shipment_event_list: Option<Vec<models::finances_v0::ShipmentEvent>>,
    /// A list of `ShipmentEvent` items.
    #[serde(rename = "ShipmentSettleEventList", skip_serializing_if = "Option::is_none")]
    pub shipment_settle_event_list: Option<Vec<models::finances_v0::ShipmentEvent>>,
    /// A list of shipment event information.
    #[serde(rename = "RefundEventList", skip_serializing_if = "Option::is_none")]
    pub refund_event_list: Option<Vec<models::finances_v0::ShipmentEvent>>,
    /// A list of shipment event information.
    #[serde(rename = "GuaranteeClaimEventList", skip_serializing_if = "Option::is_none")]
    pub guarantee_claim_event_list: Option<Vec<models::finances_v0::ShipmentEvent>>,
    /// A list of shipment event information.
    #[serde(rename = "ChargebackEventList", skip_serializing_if = "Option::is_none")]
    pub chargeback_event_list: Option<Vec<models::finances_v0::ShipmentEvent>>,
    /// A list of events related to the seller's Pay with Amazon account.
    #[serde(rename = "PayWithAmazonEventList", skip_serializing_if = "Option::is_none")]
    pub pay_with_amazon_event_list: Option<Vec<models::finances_v0::PayWithAmazonEvent>>,
    /// A list of information about solution provider credits.
    #[serde(rename = "ServiceProviderCreditEventList", skip_serializing_if = "Option::is_none")]
    pub service_provider_credit_event_list: Option<Vec<models::finances_v0::SolutionProviderCreditEvent>>,
    /// A list of information about Retrocharge or RetrochargeReversal events.
    #[serde(rename = "RetrochargeEventList", skip_serializing_if = "Option::is_none")]
    pub retrocharge_event_list: Option<Vec<models::finances_v0::RetrochargeEvent>>,
    /// A list of rental transaction event information.
    #[serde(rename = "RentalTransactionEventList", skip_serializing_if = "Option::is_none")]
    pub rental_transaction_event_list: Option<Vec<models::finances_v0::RentalTransactionEvent>>,
    /// A list of sponsored products payment events.
    #[serde(rename = "ProductAdsPaymentEventList", skip_serializing_if = "Option::is_none")]
    pub product_ads_payment_event_list: Option<Vec<models::finances_v0::ProductAdsPaymentEvent>>,
    /// A list of information about service fee events.
    #[serde(rename = "ServiceFeeEventList", skip_serializing_if = "Option::is_none")]
    pub service_fee_event_list: Option<Vec<models::finances_v0::ServiceFeeEvent>>,
    /// A list of payment events for deal-related fees.
    #[serde(rename = "SellerDealPaymentEventList", skip_serializing_if = "Option::is_none")]
    pub seller_deal_payment_event_list: Option<Vec<models::finances_v0::SellerDealPaymentEvent>>,
    /// A list of debt recovery event information.
    #[serde(rename = "DebtRecoveryEventList", skip_serializing_if = "Option::is_none")]
    pub debt_recovery_event_list: Option<Vec<models::finances_v0::DebtRecoveryEvent>>,
    /// A list of loan servicing events.
    #[serde(rename = "LoanServicingEventList", skip_serializing_if = "Option::is_none")]
    pub loan_servicing_event_list: Option<Vec<models::finances_v0::LoanServicingEvent>>,
    /// A list of adjustment event information for the seller's account.
    #[serde(rename = "AdjustmentEventList", skip_serializing_if = "Option::is_none")]
    pub adjustment_event_list: Option<Vec<models::finances_v0::AdjustmentEvent>>,
    /// A list of SAFETReimbursementEvents.
    #[serde(rename = "SAFETReimbursementEventList", skip_serializing_if = "Option::is_none")]
    pub safet_reimbursement_event_list: Option<Vec<models::finances_v0::SafetReimbursementEvent>>,
    /// A list of information about fee events for the Early Reviewer Program.
    #[serde(rename = "SellerReviewEnrollmentPaymentEventList", skip_serializing_if = "Option::is_none")]
    pub seller_review_enrollment_payment_event_list: Option<Vec<models::finances_v0::SellerReviewEnrollmentPaymentEvent>>,
    /// A list of FBA inventory liquidation payment events.
    #[serde(rename = "FBALiquidationEventList", skip_serializing_if = "Option::is_none")]
    pub fba_liquidation_event_list: Option<Vec<models::finances_v0::FbaLiquidationEvent>>,
    /// A list of coupon payment event information.
    #[serde(rename = "CouponPaymentEventList", skip_serializing_if = "Option::is_none")]
    pub coupon_payment_event_list: Option<Vec<models::finances_v0::CouponPaymentEvent>>,
    /// A list of fee events related to Amazon Imaging services.
    #[serde(rename = "ImagingServicesFeeEventList", skip_serializing_if = "Option::is_none")]
    pub imaging_services_fee_event_list: Option<Vec<models::finances_v0::ImagingServicesFeeEvent>>,
    /// A list of network commingling transaction events.
    #[serde(rename = "NetworkComminglingTransactionEventList", skip_serializing_if = "Option::is_none")]
    pub network_commingling_transaction_event_list: Option<Vec<models::finances_v0::NetworkComminglingTransactionEvent>>,
    /// A list of expense information related to an affordability promotion.
    #[serde(rename = "AffordabilityExpenseEventList", skip_serializing_if = "Option::is_none")]
    pub affordability_expense_event_list: Option<Vec<models::finances_v0::AffordabilityExpenseEvent>>,
    /// A list of expense information related to an affordability promotion.
    #[serde(rename = "AffordabilityExpenseReversalEventList", skip_serializing_if = "Option::is_none")]
    pub affordability_expense_reversal_event_list: Option<Vec<models::finances_v0::AffordabilityExpenseEvent>>,
    /// A list of removal shipment event information.
    #[serde(rename = "RemovalShipmentEventList", skip_serializing_if = "Option::is_none")]
    pub removal_shipment_event_list: Option<Vec<models::finances_v0::RemovalShipmentEvent>>,
    /// A comma-delimited list of Removal shipmentAdjustment details for FBA inventory.
    #[serde(rename = "RemovalShipmentAdjustmentEventList", skip_serializing_if = "Option::is_none")]
    pub removal_shipment_adjustment_event_list: Option<Vec<models::finances_v0::RemovalShipmentAdjustmentEvent>>,
    /// A list of information about trial shipment financial events.
    #[serde(rename = "TrialShipmentEventList", skip_serializing_if = "Option::is_none")]
    pub trial_shipment_event_list: Option<Vec<models::finances_v0::TrialShipmentEvent>>,
    /// A list of `TDSReimbursementEvent` items.
    #[serde(rename = "TDSReimbursementEventList", skip_serializing_if = "Option::is_none")]
    pub tds_reimbursement_event_list: Option<Vec<models::finances_v0::TdsReimbursementEvent>>,
    /// A list of `AdhocDisbursement` events.
    #[serde(rename = "AdhocDisbursementEventList", skip_serializing_if = "Option::is_none")]
    pub adhoc_disbursement_event_list: Option<Vec<models::finances_v0::AdhocDisbursementEvent>>,
    /// A list of `TaxWithholding` events.
    #[serde(rename = "TaxWithholdingEventList", skip_serializing_if = "Option::is_none")]
    pub tax_withholding_event_list: Option<Vec<models::finances_v0::TaxWithholdingEvent>>,
    /// A list of charge refund events.
    #[serde(rename = "ChargeRefundEventList", skip_serializing_if = "Option::is_none")]
    pub charge_refund_event_list: Option<Vec<models::finances_v0::ChargeRefundEvent>>,
    /// A list of `FailedAdhocDisbursementEvent`s.
    #[serde(rename = "FailedAdhocDisbursementEventList", skip_serializing_if = "Option::is_none")]
    pub failed_adhoc_disbursement_event_list: Option<Vec<models::finances_v0::FailedAdhocDisbursementEvent>>,
    /// A list of `ValueAddedServiceCharge` events.
    #[serde(rename = "ValueAddedServiceChargeEventList", skip_serializing_if = "Option::is_none")]
    pub value_added_service_charge_event_list: Option<Vec<models::finances_v0::ValueAddedServiceChargeEvent>>,
    /// A list of `CapacityReservationBillingEvent` events.
    #[serde(rename = "CapacityReservationBillingEventList", skip_serializing_if = "Option::is_none")]
    pub capacity_reservation_billing_event_list: Option<Vec<models::finances_v0::CapacityReservationBillingEvent>>,
}

impl FinancialEvents {
    /// Contains all information related to a financial event.
    pub fn new() -> FinancialEvents {
        FinancialEvents {
            shipment_event_list: None,
            shipment_settle_event_list: None,
            refund_event_list: None,
            guarantee_claim_event_list: None,
            chargeback_event_list: None,
            pay_with_amazon_event_list: None,
            service_provider_credit_event_list: None,
            retrocharge_event_list: None,
            rental_transaction_event_list: None,
            product_ads_payment_event_list: None,
            service_fee_event_list: None,
            seller_deal_payment_event_list: None,
            debt_recovery_event_list: None,
            loan_servicing_event_list: None,
            adjustment_event_list: None,
            safet_reimbursement_event_list: None,
            seller_review_enrollment_payment_event_list: None,
            fba_liquidation_event_list: None,
            coupon_payment_event_list: None,
            imaging_services_fee_event_list: None,
            network_commingling_transaction_event_list: None,
            affordability_expense_event_list: None,
            affordability_expense_reversal_event_list: None,
            removal_shipment_event_list: None,
            removal_shipment_adjustment_event_list: None,
            trial_shipment_event_list: None,
            tds_reimbursement_event_list: None,
            adhoc_disbursement_event_list: None,
            tax_withholding_event_list: None,
            charge_refund_event_list: None,
            failed_adhoc_disbursement_event_list: None,
            value_added_service_charge_event_list: None,
            capacity_reservation_billing_event_list: None,
        }
    }
}