amazon_spapi/models/fulfillment_inbound_2024_03_20/
packing_configuration.rs

1/*
2 * The Selling Partner API for FBA inbound operations.
3 *
4 * The Selling Partner API for Fulfillment By Amazon (FBA) Inbound. The FBA Inbound API enables building inbound workflows to create, manage, and send shipments into Amazon's fulfillment network. The API has interoperability with the Send-to-Amazon user interface.
5 *
6 * The version of the OpenAPI document: 2024-03-20
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// PackingConfiguration : A way to configure this packing option. Some box content information sources might not be allowed. Non-standard minimum and maximum box weights might be enforced.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct PackingConfiguration {
17    /// The box content information sources that are allowed.
18    #[serde(rename = "boxPackingMethods", skip_serializing_if = "Option::is_none")]
19    pub box_packing_methods: Option<Vec<models::fulfillment_inbound_2024_03_20::BoxContentInformationSource>>,
20    #[serde(rename = "boxRequirements", skip_serializing_if = "Option::is_none")]
21    pub box_requirements: Option<Box<models::fulfillment_inbound_2024_03_20::BoxRequirements>>,
22    /// A list of supported shipping requirements for this packing configuration.
23    #[serde(rename = "shippingRequirements", skip_serializing_if = "Option::is_none")]
24    pub shipping_requirements: Option<Vec<models::fulfillment_inbound_2024_03_20::ShippingRequirements>>,
25}
26
27impl PackingConfiguration {
28    /// A way to configure this packing option. Some box content information sources might not be allowed. Non-standard minimum and maximum box weights might be enforced.
29    pub fn new() -> PackingConfiguration {
30        PackingConfiguration {
31            box_packing_methods: None,
32            box_requirements: None,
33            shipping_requirements: None,
34        }
35    }
36}
37