amazon_spapi/models/finances_v0/
adjustment_event.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/// AdjustmentEvent : An adjustment to the seller's account.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct AdjustmentEvent {
17    /// The type of adjustment.  Possible values:  * FBAInventoryReimbursement - An FBA inventory reimbursement to a seller's account. This occurs if a seller's inventory is damaged.  * ReserveEvent - A reserve event that is generated at the time of a settlement period closing. This occurs when some money from a seller's account is held back.  * PostageBilling - The amount paid by a seller for shipping labels.  * PostageRefund - The reimbursement of shipping labels purchased for orders that were canceled or refunded.  * LostOrDamagedReimbursement - An Amazon Easy Ship reimbursement to a seller's account for a package that we lost or damaged.  * CanceledButPickedUpReimbursement - An Amazon Easy Ship reimbursement to a seller's account. This occurs when a package is picked up and the order is subsequently canceled. This value is used only in the India marketplace.  * ReimbursementClawback - An Amazon Easy Ship reimbursement clawback from a seller's account. This occurs when a prior reimbursement is reversed. This value is used only in the India marketplace.  * SellerRewards - An award credited to a seller's account for their participation in an offer in the Seller Rewards program. Applies only to the India marketplace.
18    #[serde(rename = "AdjustmentType", skip_serializing_if = "Option::is_none")]
19    pub adjustment_type: Option<String>,
20    /// Fields with a schema type of date are in ISO 8601 date time format (for example GroupBeginDate).
21    #[serde(rename = "PostedDate", skip_serializing_if = "Option::is_none")]
22    pub posted_date: Option<String>,
23    /// The name of the store where the event occurred.
24    #[serde(rename = "StoreName", skip_serializing_if = "Option::is_none")]
25    pub store_name: Option<String>,
26    #[serde(rename = "AdjustmentAmount", skip_serializing_if = "Option::is_none")]
27    pub adjustment_amount: Option<Box<models::finances_v0::Currency>>,
28    /// A list of information about items in an adjustment to the seller's account.
29    #[serde(rename = "AdjustmentItemList", skip_serializing_if = "Option::is_none")]
30    pub adjustment_item_list: Option<Vec<models::finances_v0::AdjustmentItem>>,
31}
32
33impl AdjustmentEvent {
34    /// An adjustment to the seller's account.
35    pub fn new() -> AdjustmentEvent {
36        AdjustmentEvent {
37            adjustment_type: None,
38            posted_date: None,
39            store_name: None,
40            adjustment_amount: None,
41            adjustment_item_list: None,
42        }
43    }
44}
45