amazon_spapi/models/finances_v0/
adjustment_item.rs

1/*
2 * Selling Partner API for Finances
3 *
4 * 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.
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/// AdjustmentItem : An item in an adjustment to the seller's account.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct AdjustmentItem {
17    /// Represents the number of units in the seller's inventory when the AdustmentType is FBAInventoryReimbursement.
18    #[serde(rename = "Quantity", skip_serializing_if = "Option::is_none")]
19    pub quantity: Option<String>,
20    #[serde(rename = "PerUnitAmount", skip_serializing_if = "Option::is_none")]
21    pub per_unit_amount: Option<Box<models::finances_v0::Currency>>,
22    #[serde(rename = "TotalAmount", skip_serializing_if = "Option::is_none")]
23    pub total_amount: Option<Box<models::finances_v0::Currency>>,
24    /// The seller SKU of the item. The seller SKU is qualified by the seller's seller ID, which is included with every call to the Selling Partner API.
25    #[serde(rename = "SellerSKU", skip_serializing_if = "Option::is_none")]
26    pub seller_sku: Option<String>,
27    /// A unique identifier assigned to products stored in and fulfilled from a fulfillment center.
28    #[serde(rename = "FnSKU", skip_serializing_if = "Option::is_none")]
29    pub fn_sku: Option<String>,
30    /// A short description of the item.
31    #[serde(rename = "ProductDescription", skip_serializing_if = "Option::is_none")]
32    pub product_description: Option<String>,
33    /// The Amazon Standard Identification Number (ASIN) of the item.
34    #[serde(rename = "ASIN", skip_serializing_if = "Option::is_none")]
35    pub asin: Option<String>,
36    /// The transaction number that is related to the adjustment.
37    #[serde(rename = "TransactionNumber", skip_serializing_if = "Option::is_none")]
38    pub transaction_number: Option<String>,
39}
40
41impl AdjustmentItem {
42    /// An item in an adjustment to the seller's account.
43    pub fn new() -> AdjustmentItem {
44        AdjustmentItem {
45            quantity: None,
46            per_unit_amount: None,
47            total_amount: None,
48            seller_sku: None,
49            fn_sku: None,
50            product_description: None,
51            asin: None,
52            transaction_number: None,
53        }
54    }
55}
56