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

/// Marketplace : Information about an Amazon marketplace where a seller can list items and customers can view and purchase items.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct Marketplace {
    /// The encrypted marketplace value.
    #[serde(rename = "id")]
    pub id: String,
    /// The marketplace name.
    #[serde(rename = "name")]
    pub name: String,
    /// The ISO 3166-1 alpha-2 format country code of the marketplace.
    #[serde(rename = "countryCode")]
    pub country_code: String,
    /// The ISO 4217 format currency code of the marketplace.
    #[serde(rename = "defaultCurrencyCode")]
    pub default_currency_code: String,
    /// The ISO 639-1 format language code of the marketplace.
    #[serde(rename = "defaultLanguageCode")]
    pub default_language_code: String,
    /// The domain name of the marketplace.
    #[serde(rename = "domainName")]
    pub domain_name: String,
}

impl Marketplace {
    /// Information about an Amazon marketplace where a seller can list items and customers can view and purchase items.
    pub fn new(id: String, name: String, country_code: String, default_currency_code: String, default_language_code: String, domain_name: String) -> Marketplace {
        Marketplace {
            id,
            name,
            country_code,
            default_currency_code,
            default_language_code,
            domain_name,
        }
    }
}