Skip to main content

amazon_spapi/models/sellers/
participation.rs

1/*
2 * The Selling Partner API for Sellers
3 *
4 * 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.
5 *
6 * The version of the OpenAPI document: v1
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// Participation : Information that is specific to a seller in a marketplace.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct Participation {
17    /// If `true`, the seller participates in the marketplace. Otherwise `false`.
18    #[serde(rename = "isParticipating")]
19    pub is_participating: bool,
20    /// Specifies if the seller has suspended listings. `true` if the seller Listing Status is set to Inactive, otherwise `false`.
21    #[serde(rename = "hasSuspendedListings")]
22    pub has_suspended_listings: bool,
23}
24
25impl Participation {
26    /// Information that is specific to a seller in a marketplace.
27    pub fn new(is_participating: bool, has_suspended_listings: bool) -> Participation {
28        Participation {
29            is_participating,
30            has_suspended_listings,
31        }
32    }
33}
34