amazon-spapi 2.0.3

A Rust client library for Amazon Selling Partner API (SP-API)
Documentation
/*
 * The 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 or date range without having to wait until a statement period closes.
 *
 * The version of the OpenAPI document: 2024-06-19
 * 
 * Generated by: https://openapi-generator.tech
 */

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

/// SellingPartnerMetadata : Metadata describing the seller.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct SellingPartnerMetadata {
    /// Unique seller identifier.
    #[serde(rename = "sellingPartnerId", skip_serializing_if = "Option::is_none")]
    pub selling_partner_id: Option<String>,
    /// Account type of transaction.
    #[serde(rename = "accountType", skip_serializing_if = "Option::is_none")]
    pub account_type: Option<String>,
    /// The identifier of the marketplace where the transaction occurred. The marketplace ID is the globally unique identifier of a marketplace. To find the ID for your marketplace, refer to [Marketplace IDs](https://developer-docs.amazon.com/sp-api/docs/marketplace-ids).
    #[serde(rename = "marketplaceId", skip_serializing_if = "Option::is_none")]
    pub marketplace_id: Option<String>,
}

impl SellingPartnerMetadata {
    /// Metadata describing the seller.
    pub fn new() -> SellingPartnerMetadata {
        SellingPartnerMetadata {
            selling_partner_id: None,
            account_type: None,
            marketplace_id: None,
        }
    }
}