/*
 * 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 UpdateLeadFormRequest {
    #[serde(rename = "accountId")]
    pub account_id: String,
    #[serde(rename = "status")]
    pub status: Status,
}

impl UpdateLeadFormRequest {
    pub fn new(account_id: String, status: Status) -> UpdateLeadFormRequest {
        UpdateLeadFormRequest { account_id, status }
    }
}
///
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum Status {
    #[serde(rename = "ACTIVE")]
    Active,
    #[serde(rename = "ARCHIVED")]
    Archived,
    #[serde(rename = "DRAFT")]
    Draft,
}

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