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};

/// DebtRecoveryEvent : A debt payment or debt adjustment.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct DebtRecoveryEvent {
    /// The debt recovery type.  Possible values:  * DebtPayment  * DebtPaymentFailure  * DebtAdjustment
    #[serde(rename = "DebtRecoveryType", skip_serializing_if = "Option::is_none")]
    pub debt_recovery_type: Option<String>,
    #[serde(rename = "RecoveryAmount", skip_serializing_if = "Option::is_none")]
    pub recovery_amount: Option<Box<models::finances_v0::Currency>>,
    #[serde(rename = "OverPaymentCredit", skip_serializing_if = "Option::is_none")]
    pub over_payment_credit: Option<Box<models::finances_v0::Currency>>,
    /// A list of debt recovery item information.
    #[serde(rename = "DebtRecoveryItemList", skip_serializing_if = "Option::is_none")]
    pub debt_recovery_item_list: Option<Vec<models::finances_v0::DebtRecoveryItem>>,
    /// A list of payment instruments.
    #[serde(rename = "ChargeInstrumentList", skip_serializing_if = "Option::is_none")]
    pub charge_instrument_list: Option<Vec<models::finances_v0::ChargeInstrument>>,
}

impl DebtRecoveryEvent {
    /// A debt payment or debt adjustment.
    pub fn new() -> DebtRecoveryEvent {
        DebtRecoveryEvent {
            debt_recovery_type: None,
            recovery_amount: None,
            over_payment_credit: None,
            debt_recovery_item_list: None,
            charge_instrument_list: None,
        }
    }
}