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

/// DistributionPackageQuantity : Represents a distribution package with its respective quantity.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct DistributionPackageQuantity {
    /// Number of cases or pallets with the same package configuration.
    #[serde(rename = "count")]
    pub count: i32,
    #[serde(rename = "distributionPackage")]
    pub distribution_package: Box<models::awd_2024_05_09::DistributionPackage>,
}

impl DistributionPackageQuantity {
    /// Represents a distribution package with its respective quantity.
    pub fn new(count: i32, distribution_package: models::awd_2024_05_09::DistributionPackage) -> DistributionPackageQuantity {
        DistributionPackageQuantity {
            count,
            distribution_package: Box::new(distribution_package),
        }
    }
}