/*
 * 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.1
 * 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 DuplicateAdCampaign200Response {
    /// Platform ID of the new campaign
    #[serde(rename = "copiedCampaignId", skip_serializing_if = "Option::is_none")]
    pub copied_campaign_id: Option<String>,
    #[serde(rename = "discovery", skip_serializing_if = "Option::is_none")]
    pub discovery: Option<Discovery>,
    /// Platform-native response from the copy endpoint (Meta includes ad_object_ids for child copies)
    #[serde(rename = "raw", skip_serializing_if = "Option::is_none")]
    pub raw: Option<serde_json::Value>,
}

impl DuplicateAdCampaign200Response {
    pub fn new() -> DuplicateAdCampaign200Response {
        DuplicateAdCampaign200Response {
            copied_campaign_id: None,
            discovery: None,
            raw: None,
        }
    }
}
///
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum Discovery {
    #[serde(rename = "triggered")]
    Triggered,
    #[serde(rename = "skipped")]
    Skipped,
    #[serde(rename = "failed")]
    Failed,
}

impl Default for Discovery {
    fn default() -> Discovery {
        Self::Triggered
    }
}
