/*
 * 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 BulkUpdateAdCampaignStatusRequest {
    #[serde(rename = "status")]
    pub status: Status,
    #[serde(rename = "campaigns")]
    pub campaigns: Vec<models::BulkUpdateAdCampaignStatusRequestCampaignsInner>,
}

impl BulkUpdateAdCampaignStatusRequest {
    pub fn new(
        status: Status,
        campaigns: Vec<models::BulkUpdateAdCampaignStatusRequestCampaignsInner>,
    ) -> BulkUpdateAdCampaignStatusRequest {
        BulkUpdateAdCampaignStatusRequest { status, campaigns }
    }
}
///
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum Status {
    #[serde(rename = "active")]
    Active,
    #[serde(rename = "paused")]
    Paused,
}

impl Default for Status {
    fn default() -> Status {
        Self::Active
    }
}
