amazon_spapi/models/fulfillment_inbound_v0/
box_contents_fee_details.rs

1/*
2 * Selling Partner API for Fulfillment Inbound
3 *
4 * The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network.
5 *
6 * The version of the OpenAPI document: v0
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// BoxContentsFeeDetails : The manual processing fee per unit and total fee for a shipment.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct BoxContentsFeeDetails {
17    /// The item quantity.
18    #[serde(rename = "TotalUnits", skip_serializing_if = "Option::is_none")]
19    pub total_units: Option<i32>,
20    #[serde(rename = "FeePerUnit", skip_serializing_if = "Option::is_none")]
21    pub fee_per_unit: Option<Box<models::fulfillment_inbound_v0::Amount>>,
22    #[serde(rename = "TotalFee", skip_serializing_if = "Option::is_none")]
23    pub total_fee: Option<Box<models::fulfillment_inbound_v0::Amount>>,
24}
25
26impl BoxContentsFeeDetails {
27    /// The manual processing fee per unit and total fee for a shipment.
28    pub fn new() -> BoxContentsFeeDetails {
29        BoxContentsFeeDetails {
30            total_units: None,
31            fee_per_unit: None,
32            total_fee: None,
33        }
34    }
35}
36