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

/// Participation : Information that is specific to a seller in a marketplace.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct Participation {
    /// If `true`, the seller participates in the marketplace. Otherwise `false`.
    #[serde(rename = "isParticipating")]
    pub is_participating: bool,
    /// Specifies if the seller has suspended listings. `true` if the seller Listing Status is set to Inactive, otherwise `false`.
    #[serde(rename = "hasSuspendedListings")]
    pub has_suspended_listings: bool,
}

impl Participation {
    /// Information that is specific to a seller in a marketplace.
    pub fn new(is_participating: bool, has_suspended_listings: bool) -> Participation {
        Participation {
            is_participating,
            has_suspended_listings,
        }
    }
}