Skip to main content

amazon_spapi/models/sellers/
get_account_response.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/// GetAccountResponse : The response schema for the `getAccount` operation.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct GetAccountResponse {
17    #[serde(rename = "payload", skip_serializing_if = "Option::is_none")]
18    pub payload: Option<Box<models::sellers::Account>>,
19    /// A list of error responses returned when a request is unsuccessful.
20    #[serde(rename = "errors", skip_serializing_if = "Option::is_none")]
21    pub errors: Option<Vec<models::sellers::Error>>,
22}
23
24impl GetAccountResponse {
25    /// The response schema for the `getAccount` operation.
26    pub fn new() -> GetAccountResponse {
27        GetAccountResponse {
28            payload: None,
29            errors: None,
30        }
31    }
32}
33