1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51
/*
* Selling Partner API for Sellers
*
* The Selling Partner API for Sellers lets you retrieve information on behalf of sellers about their seller account, such as the marketplaces they participate in. Along with listing the marketplaces that a seller can sell in, the API also provides additional information about the marketplace such as the default language and the default currency. The API also provides seller-specific information such as whether the seller has suspended listings in that marketplace.
*
* The version of the OpenAPI document: v1
*
* Generated by: https://openapi-generator.tech
*/
/// Marketplace : Detailed information about an Amazon market where a seller can list items for sale and customers can view and purchase items.
#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct Marketplace {
/// The encrypted marketplace value.
#[serde(default, rename = "id")]
pub id: String,
/// Marketplace name.
#[serde(default, rename = "name")]
pub name: String,
/// The ISO 3166-1 alpha-2 format country code of the marketplace.
#[serde(default, rename = "countryCode")]
pub country_code: String,
/// The ISO 4217 format currency code of the marketplace.
#[serde(default, rename = "defaultCurrencyCode")]
pub default_currency_code: String,
/// The ISO 639-1 format language code of the marketplace.
#[serde(default, rename = "defaultLanguageCode")]
pub default_language_code: String,
/// The domain name of the marketplace.
#[serde(default, rename = "domainName")]
pub domain_name: String,
}
impl Marketplace {
/// Detailed information about an Amazon market where a seller can list items for sale 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,
}
}
}