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

/// TaxDetails : Information used to determine the tax compliance.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct TaxDetails {
    #[serde(rename = "declaredValue", skip_serializing_if = "Option::is_none")]
    pub declared_value: Option<Box<models::fulfillment_inbound_2024_03_20::Currency>>,
    /// Harmonized System of Nomenclature code.
    #[serde(rename = "hsnCode", skip_serializing_if = "Option::is_none")]
    pub hsn_code: Option<String>,
    /// List of tax rates.
    #[serde(rename = "taxRates", skip_serializing_if = "Option::is_none")]
    pub tax_rates: Option<Vec<models::fulfillment_inbound_2024_03_20::TaxRate>>,
}

impl TaxDetails {
    /// Information used to determine the tax compliance.
    pub fn new() -> TaxDetails {
        TaxDetails {
            declared_value: None,
            hsn_code: None,
            tax_rates: None,
        }
    }
}