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

/// AdjustmentEvent : An adjustment to the seller's account.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct AdjustmentEvent {
    /// 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.
    #[serde(rename = "AdjustmentType", skip_serializing_if = "Option::is_none")]
    pub adjustment_type: Option<String>,
    /// Fields with a schema type of date are in ISO 8601 date time format (for example GroupBeginDate).
    #[serde(rename = "PostedDate", skip_serializing_if = "Option::is_none")]
    pub posted_date: Option<String>,
    /// The name of the store where the event occurred.
    #[serde(rename = "StoreName", skip_serializing_if = "Option::is_none")]
    pub store_name: Option<String>,
    #[serde(rename = "AdjustmentAmount", skip_serializing_if = "Option::is_none")]
    pub adjustment_amount: Option<Box<models::finances_v0::Currency>>,
    /// A list of information about items in an adjustment to the seller's account.
    #[serde(rename = "AdjustmentItemList", skip_serializing_if = "Option::is_none")]
    pub adjustment_item_list: Option<Vec<models::finances_v0::AdjustmentItem>>,
}

impl AdjustmentEvent {
    /// An adjustment to the seller's account.
    pub fn new() -> AdjustmentEvent {
        AdjustmentEvent {
            adjustment_type: None,
            posted_date: None,
            store_name: None,
            adjustment_amount: None,
            adjustment_item_list: None,
        }
    }
}