Skip to main content

amazon_spapi/models/sellers/
primary_contact.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/// PrimaryContact : Information about the seller's primary contact.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct PrimaryContact {
17    /// The full name of the seller's primary contact.
18    #[serde(rename = "name")]
19    pub name: String,
20    #[serde(rename = "address")]
21    pub address: Box<models::sellers::Address>,
22    /// The non-Latin script version of the primary contact's name, if applicable.
23    #[serde(rename = "nonLatinName", skip_serializing_if = "Option::is_none")]
24    pub non_latin_name: Option<String>,
25}
26
27impl PrimaryContact {
28    /// Information about the seller's primary contact.
29    pub fn new(name: String, address: models::sellers::Address) -> PrimaryContact {
30        PrimaryContact {
31            name,
32            address: Box::new(address),
33            non_latin_name: None,
34        }
35    }
36}
37