Skip to main content

amazon_spapi/models/awd_2024_05_09/
distribution_package_quantity.rs

1/*
2 * The Selling Partner API for Amazon Warehousing and Distribution
3 *
4 * The Selling Partner API for Amazon Warehousing and Distribution (AWD) provides programmatic access to information about AWD shipments and inventory.
5 *
6 * The version of the OpenAPI document: 2024-05-09
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// DistributionPackageQuantity : Represents a distribution package with its respective quantity.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct DistributionPackageQuantity {
17    /// Number of cases or pallets with the same package configuration.
18    #[serde(rename = "count")]
19    pub count: i32,
20    #[serde(rename = "distributionPackage")]
21    pub distribution_package: Box<models::awd_2024_05_09::DistributionPackage>,
22}
23
24impl DistributionPackageQuantity {
25    /// Represents a distribution package with its respective quantity.
26    pub fn new(count: i32, distribution_package: models::awd_2024_05_09::DistributionPackage) -> DistributionPackageQuantity {
27        DistributionPackageQuantity {
28            count,
29            distribution_package: Box::new(distribution_package),
30        }
31    }
32}
33