amazon-spapi 2.0.3

A Rust client library for Amazon Selling Partner API (SP-API)
Documentation
/*
 * Selling Partner API for Finances
 *
 * The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range.
 *
 * The version of the OpenAPI document: v0
 * 
 * Generated by: https://openapi-generator.tech
 */

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

/// RemovalShipmentItem : Item-level information for a removal shipment.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct RemovalShipmentItem {
    /// An identifier for an item in a removal shipment.
    #[serde(rename = "RemovalShipmentItemId", skip_serializing_if = "Option::is_none")]
    pub removal_shipment_item_id: Option<String>,
    /// The tax collection model applied to the item.  Possible values:  * MarketplaceFacilitator - Tax is withheld and remitted to the taxing authority by Amazon on behalf of the seller.  * Standard - Tax is paid to the seller and not remitted to the taxing authority by Amazon.
    #[serde(rename = "TaxCollectionModel", skip_serializing_if = "Option::is_none")]
    pub tax_collection_model: Option<String>,
    /// The Amazon fulfillment network SKU for the item.
    #[serde(rename = "FulfillmentNetworkSKU", skip_serializing_if = "Option::is_none")]
    pub fulfillment_network_sku: Option<String>,
    /// The quantity of the item.
    #[serde(rename = "Quantity", skip_serializing_if = "Option::is_none")]
    pub quantity: Option<i32>,
    #[serde(rename = "Revenue", skip_serializing_if = "Option::is_none")]
    pub revenue: Option<Box<models::finances_v0::Currency>>,
    #[serde(rename = "FeeAmount", skip_serializing_if = "Option::is_none")]
    pub fee_amount: Option<Box<models::finances_v0::Currency>>,
    #[serde(rename = "TaxAmount", skip_serializing_if = "Option::is_none")]
    pub tax_amount: Option<Box<models::finances_v0::Currency>>,
    #[serde(rename = "TaxWithheld", skip_serializing_if = "Option::is_none")]
    pub tax_withheld: Option<Box<models::finances_v0::Currency>>,
}

impl RemovalShipmentItem {
    /// Item-level information for a removal shipment.
    pub fn new() -> RemovalShipmentItem {
        RemovalShipmentItem {
            removal_shipment_item_id: None,
            tax_collection_model: None,
            fulfillment_network_sku: None,
            quantity: None,
            revenue: None,
            fee_amount: None,
            tax_amount: None,
            tax_withheld: None,
        }
    }
}