late 0.0.1082

API reference for Zernio. Authenticate with a Bearer API key. Base URL: https://zernio.com/api Versioning and deprecation: all endpoints are versioned in the URL path (current version: /v1). Breaking changes only ship in a new path version; existing versions keep working. Deprecated operations are marked 'deprecated: true' in this spec and announced in the changelog (https://zernio.com/changelog) before removal. Errors: every 4xx/5xx response is application/json with a machine-readable 'code' and a human-readable 'error' message (see the ErrorResponse schema). Request ids: responses carry an X-Request-Id header with the id we log the request under. Quote it when reporting a problem. A valid x-request-id you send is reused as that id.
Documentation
/*
 * Zernio API
 *
 * API reference for Zernio. Authenticate with a Bearer API key. Base URL: https://zernio.com/api  Versioning and deprecation: all endpoints are versioned in the URL path (current version: /v1). Breaking changes only ship in a new path version; existing versions keep working. Deprecated operations are marked 'deprecated: true' in this spec and announced in the changelog (https://zernio.com/changelog) before removal.  Errors: every 4xx/5xx response is application/json with a machine-readable 'code' and a human-readable 'error' message (see the ErrorResponse schema).  Request ids: responses carry an X-Request-Id header with the id we log the request under. Quote it when reporting a problem. A valid x-request-id you send is reused as that id.
 *
 * The version of the OpenAPI document: 1.146.0
 * Contact: support@zernio.com
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct GetAdAccountHierarchy200ResponseRootsInner {
    /// Native Google Ads customer id, digits only.
    #[serde(rename = "customerId", skip_serializing_if = "Option::is_none")]
    pub customer_id: Option<String>,
    #[serde(
        rename = "name",
        default,
        with = "::serde_with::rust::double_option",
        skip_serializing_if = "Option::is_none"
    )]
    pub name: Option<Option<String>>,
    /// ISO 4217 code.
    #[serde(
        rename = "currency",
        default,
        with = "::serde_with::rust::double_option",
        skip_serializing_if = "Option::is_none"
    )]
    pub currency: Option<Option<String>>,
    /// IANA time zone, e.g. Europe/Madrid.
    #[serde(
        rename = "timeZone",
        default,
        with = "::serde_with::rust::double_option",
        skip_serializing_if = "Option::is_none"
    )]
    pub time_zone: Option<Option<String>>,
    /// True for a manager (MCC) account.
    #[serde(rename = "manager", skip_serializing_if = "Option::is_none")]
    pub manager: Option<bool>,
    #[serde(rename = "testAccount", skip_serializing_if = "Option::is_none")]
    pub test_account: Option<bool>,
    /// Google customer status: ENABLED, CANCELED, SUSPENDED or CLOSED.
    #[serde(
        rename = "status",
        default,
        with = "::serde_with::rust::double_option",
        skip_serializing_if = "Option::is_none"
    )]
    pub status: Option<Option<String>>,
    /// Managers linked to this account, ACTIVE or PENDING.
    #[serde(rename = "managerLinks", skip_serializing_if = "Option::is_none")]
    pub manager_links:
        Option<Vec<models::GetAdAccountHierarchy200ResponseRootsInnerManagerLinksInner>>,
    /// Every account under this root at any depth, in Google's order, followed by pending invitations.
    #[serde(rename = "clients", skip_serializing_if = "Option::is_none")]
    pub clients: Option<Vec<models::GoogleAdsHierarchyClient>>,
}

impl GetAdAccountHierarchy200ResponseRootsInner {
    pub fn new() -> GetAdAccountHierarchy200ResponseRootsInner {
        GetAdAccountHierarchy200ResponseRootsInner {
            customer_id: None,
            name: None,
            currency: None,
            time_zone: None,
            manager: None,
            test_account: None,
            status: None,
            manager_links: None,
            clients: None,
        }
    }
}