amazon-spapi 2.0.3

A Rust client library for Amazon Selling Partner API (SP-API)
Documentation
/*
 * The Selling Partner API for FBA inbound operations.
 *
 * 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.
 *
 * The version of the OpenAPI document: 2024-03-20
 * 
 * Generated by: https://openapi-generator.tech
 */

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

/// FreightInformation : Freight information describes the skus being transported. Freight carrier options and quotes will only be returned if the freight information is provided.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct FreightInformation {
    #[serde(rename = "declaredValue", skip_serializing_if = "Option::is_none")]
    pub declared_value: Option<Box<models::fulfillment_inbound_2024_03_20::Currency>>,
    /// Freight class.  Possible values: `NONE`, `FC_50`, `FC_55`, `FC_60`, `FC_65`, `FC_70`, `FC_77_5`, `FC_85`, `FC_92_5`, `FC_100`, `FC_110`, `FC_125`, `FC_150`, `FC_175`, `FC_200`, `FC_250`, `FC_300`, `FC_400`, `FC_500`.
    #[serde(rename = "freightClass", skip_serializing_if = "Option::is_none")]
    pub freight_class: Option<String>,
}

impl FreightInformation {
    /// Freight information describes the skus being transported. Freight carrier options and quotes will only be returned if the freight information is provided.
    pub fn new() -> FreightInformation {
        FreightInformation {
            declared_value: None,
            freight_class: None,
        }
    }
}