amazon-spapi 2.0.3

A Rust client library for Amazon Selling Partner API (SP-API)
Documentation
/*
 * The Selling Partner API for Amazon Warehousing and Distribution
 *
 * The Selling Partner API for Amazon Warehousing and Distribution (AWD) provides programmatic access to information about AWD shipments and inventory.
 *
 * The version of the OpenAPI document: 2024-05-09
 * 
 * Generated by: https://openapi-generator.tech
 */

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

/// InventoryDetails : Additional inventory details. This object is only displayed if the details parameter in the request is set to `SHOW`.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct InventoryDetails {
    /// Quantity that is available for downstream channel replenishment.
    #[serde(rename = "availableDistributableQuantity", skip_serializing_if = "Option::is_none")]
    pub available_distributable_quantity: Option<i64>,
    /// Quantity that is in transit from AWD and has not yet been received at FBA.
    #[serde(rename = "replenishmentQuantity", skip_serializing_if = "Option::is_none")]
    pub replenishment_quantity: Option<i64>,
    /// Quantity that is reserved for a downstream channel replenishment order that is being prepared for shipment.
    #[serde(rename = "reservedDistributableQuantity", skip_serializing_if = "Option::is_none")]
    pub reserved_distributable_quantity: Option<i64>,
}

impl InventoryDetails {
    /// Additional inventory details. This object is only displayed if the details parameter in the request is set to `SHOW`.
    pub fn new() -> InventoryDetails {
        InventoryDetails {
            available_distributable_quantity: None,
            replenishment_quantity: None,
            reserved_distributable_quantity: None,
        }
    }
}