amazon_spapi/models/sellers/business.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/// Business : Information about the seller's business. Certain fields may be omitted depending on the seller's `businessType`.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct Business {
17 /// The registered business name.
18 #[serde(rename = "name")]
19 pub name: String,
20 #[serde(rename = "registeredBusinessAddress")]
21 pub registered_business_address: Box<models::sellers::Address>,
22 /// The seller's company registration number, if applicable. This field will be absent for individual sellers and sole proprietorships.
23 #[serde(rename = "companyRegistrationNumber", skip_serializing_if = "Option::is_none")]
24 pub company_registration_number: Option<String>,
25 /// The seller's company tax identification number, if applicable. This field will be present for certain business types only, such as sole proprietorships.
26 #[serde(rename = "companyTaxIdentificationNumber", skip_serializing_if = "Option::is_none")]
27 pub company_tax_identification_number: Option<String>,
28 /// The non-Latin script version of the registered business name, if applicable.
29 #[serde(rename = "nonLatinName", skip_serializing_if = "Option::is_none")]
30 pub non_latin_name: Option<String>,
31}
32
33impl Business {
34 /// Information about the seller's business. Certain fields may be omitted depending on the seller's `businessType`.
35 pub fn new(name: String, registered_business_address: models::sellers::Address) -> Business {
36 Business {
37 name,
38 registered_business_address: Box::new(registered_business_address),
39 company_registration_number: None,
40 company_tax_identification_number: None,
41 non_latin_name: None,
42 }
43 }
44}
45