late 0.0.1264

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.370.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 CreatedGoogleAdAccount {
    #[serde(rename = "platform")]
    pub platform: Platform,
    /// New Google Ads customer id for subsequent ads calls.
    #[serde(rename = "adAccountId")]
    pub ad_account_id: String,
    /// Manager the account was created under.
    #[serde(rename = "managerCustomerId")]
    pub manager_customer_id: String,
    /// Whether the customer was added to the connection and discovery was scheduled. When false the account exists: reconnect Google Ads instead of creating it again.
    #[serde(rename = "connectionUpdated")]
    pub connection_updated: bool,
    /// Recovery instructions if the account could not be attached to the connection.
    #[serde(rename = "warnings")]
    pub warnings: Vec<String>,
    /// Always true. The account has no billing until it is set up in Google Ads.
    #[serde(rename = "paymentMethodRequired")]
    pub payment_method_required: bool,
    /// Billing setup instructions for the user.
    #[serde(rename = "nextSteps")]
    pub next_steps: String,
    /// Always false on a 201.
    #[serde(rename = "validateOnly")]
    pub validate_only: bool,
}

impl CreatedGoogleAdAccount {
    pub fn new(
        platform: Platform,
        ad_account_id: String,
        manager_customer_id: String,
        connection_updated: bool,
        warnings: Vec<String>,
        payment_method_required: bool,
        next_steps: String,
        validate_only: bool,
    ) -> CreatedGoogleAdAccount {
        CreatedGoogleAdAccount {
            platform,
            ad_account_id,
            manager_customer_id,
            connection_updated,
            warnings,
            payment_method_required,
            next_steps,
            validate_only,
        }
    }
}
///
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum Platform {
    #[serde(rename = "google")]
    Google,
}

impl Default for Platform {
    fn default() -> Platform {
        Self::Google
    }
}