/*
 * 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};

/// WebhookPayloadAdStatusChangedStatus : Status info. Branch on `status.raw` to handle each transition.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct WebhookPayloadAdStatusChangedStatus {
    /// Platform-native status string, forwarded verbatim. For Meta this is `status_name` from `in_process_ad_objects` (e.g. `ACTIVE`, `PAUSED`, `PENDING_REVIEW`, `ARCHIVED`, `DELETED`, `DISAPPROVED`), or `WITH_ISSUES` when sourced from `with_issues_ad_objects`. Not constrained by an `enum` — Meta may add new values.
    #[serde(rename = "raw")]
    pub raw: String,
}

impl WebhookPayloadAdStatusChangedStatus {
    /// Status info. Branch on `status.raw` to handle each transition.
    pub fn new(raw: String) -> WebhookPayloadAdStatusChangedStatus {
        WebhookPayloadAdStatusChangedStatus { raw }
    }
}
