amazon-spapi 2.0.3

A Rust client library for Amazon Selling Partner API (SP-API)
Documentation
/*
 * The Selling Partner API for Sellers
 *
 * The [Selling Partner API for Sellers](https://developer-docs.amazon.com/sp-api/docs/sellers-api-v1-reference) (Sellers API) provides essential information about seller accounts, such as:  - The marketplaces a seller can list in - The default language and currency of a marketplace - Whether the seller has suspended listings  Refer to the [Sellers API reference](https://developer-docs.amazon.com/sp-api/docs/sellers-api-v1-reference) for details about this API's operations, data types, and schemas.
 *
 * The version of the OpenAPI document: v1
 * 
 * Generated by: https://openapi-generator.tech
 */

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

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct MarketplaceParticipation {
    #[serde(rename = "marketplace")]
    pub marketplace: Box<models::sellers::Marketplace>,
    #[serde(rename = "participation")]
    pub participation: Box<models::sellers::Participation>,
    /// The name of the seller's store as displayed in the marketplace.
    #[serde(rename = "storeName")]
    pub store_name: String,
}

impl MarketplaceParticipation {
    pub fn new(marketplace: models::sellers::Marketplace, participation: models::sellers::Participation, store_name: String) -> MarketplaceParticipation {
        MarketplaceParticipation {
            marketplace: Box::new(marketplace),
            participation: Box::new(participation),
            store_name,
        }
    }
}