/*
 * Zernio API
 *
 * API reference for Zernio. Authenticate with a Bearer API key. Base URL: https://zernio.com/api
 *
 * The version of the OpenAPI document: 1.0.4
 * 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 AdjustConversions200Response {
    #[serde(rename = "platform", skip_serializing_if = "Option::is_none")]
    pub platform: Option<Platform>,
    /// Adjustments accepted by Google.
    #[serde(
        rename = "adjustmentsReceived",
        skip_serializing_if = "Option::is_none"
    )]
    pub adjustments_received: Option<i32>,
    /// Adjustments rejected (see failures).
    #[serde(rename = "adjustmentsFailed", skip_serializing_if = "Option::is_none")]
    pub adjustments_failed: Option<i32>,
    #[serde(rename = "failures", skip_serializing_if = "Option::is_none")]
    pub failures: Option<Vec<models::AdjustConversions200ResponseFailuresInner>>,
    #[serde(rename = "traceId", skip_serializing_if = "Option::is_none")]
    pub trace_id: Option<String>,
}

impl AdjustConversions200Response {
    pub fn new() -> AdjustConversions200Response {
        AdjustConversions200Response {
            platform: None,
            adjustments_received: None,
            adjustments_failed: None,
            failures: None,
            trace_id: None,
        }
    }
}
///
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum Platform {
    #[serde(rename = "googleads")]
    Googleads,
}

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