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

/// RemovalShipmentItemAdjustment : Item-level information for a removal shipment item adjustment.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct RemovalShipmentItemAdjustment {
    /// 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>,
    /// Adjusted quantity of removal shipmentItemAdjustment items.
    #[serde(rename = "AdjustedQuantity", skip_serializing_if = "Option::is_none")]
    pub adjusted_quantity: Option<i32>,
    #[serde(rename = "RevenueAdjustment", skip_serializing_if = "Option::is_none")]
    pub revenue_adjustment: Option<Box<models::finances_v0::Currency>>,
    #[serde(rename = "TaxAmountAdjustment", skip_serializing_if = "Option::is_none")]
    pub tax_amount_adjustment: Option<Box<models::finances_v0::Currency>>,
    #[serde(rename = "TaxWithheldAdjustment", skip_serializing_if = "Option::is_none")]
    pub tax_withheld_adjustment: Option<Box<models::finances_v0::Currency>>,
}

impl RemovalShipmentItemAdjustment {
    /// Item-level information for a removal shipment item adjustment.
    pub fn new() -> RemovalShipmentItemAdjustment {
        RemovalShipmentItemAdjustment {
            removal_shipment_item_id: None,
            tax_collection_model: None,
            fulfillment_network_sku: None,
            adjusted_quantity: None,
            revenue_adjustment: None,
            tax_amount_adjustment: None,
            tax_withheld_adjustment: None,
        }
    }
}