amazon-spapi 2.0.3

A Rust client library for Amazon Selling Partner API (SP-API)
Documentation
/*
 * Selling Partner API for FBA Inventory
 *
 * The Selling Partner API for FBA Inventory lets you programmatically retrieve information about inventory in Amazon's fulfillment network.
 *
 * The version of the OpenAPI document: v1
 * 
 * Generated by: https://openapi-generator.tech
 */

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

/// UnfulfillableQuantity : The quantity of unfulfillable inventory.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct UnfulfillableQuantity {
    /// The total number of units in Amazon's fulfillment network in unsellable condition.
    #[serde(rename = "totalUnfulfillableQuantity", skip_serializing_if = "Option::is_none")]
    pub total_unfulfillable_quantity: Option<i32>,
    /// The number of units in customer damaged disposition.
    #[serde(rename = "customerDamagedQuantity", skip_serializing_if = "Option::is_none")]
    pub customer_damaged_quantity: Option<i32>,
    /// The number of units in warehouse damaged disposition.
    #[serde(rename = "warehouseDamagedQuantity", skip_serializing_if = "Option::is_none")]
    pub warehouse_damaged_quantity: Option<i32>,
    /// The number of units in distributor damaged disposition.
    #[serde(rename = "distributorDamagedQuantity", skip_serializing_if = "Option::is_none")]
    pub distributor_damaged_quantity: Option<i32>,
    /// The number of units in carrier damaged disposition.
    #[serde(rename = "carrierDamagedQuantity", skip_serializing_if = "Option::is_none")]
    pub carrier_damaged_quantity: Option<i32>,
    /// The number of units in defective disposition.
    #[serde(rename = "defectiveQuantity", skip_serializing_if = "Option::is_none")]
    pub defective_quantity: Option<i32>,
    /// The number of units in expired disposition.
    #[serde(rename = "expiredQuantity", skip_serializing_if = "Option::is_none")]
    pub expired_quantity: Option<i32>,
}

impl UnfulfillableQuantity {
    /// The quantity of unfulfillable inventory.
    pub fn new() -> UnfulfillableQuantity {
        UnfulfillableQuantity {
            total_unfulfillable_quantity: None,
            customer_damaged_quantity: None,
            warehouse_damaged_quantity: None,
            distributor_damaged_quantity: None,
            carrier_damaged_quantity: None,
            defective_quantity: None,
            expired_quantity: None,
        }
    }
}