/*
 * 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 UpdateSequenceRequest {
    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
    #[serde(rename = "description", skip_serializing_if = "Option::is_none")]
    pub description: Option<String>,
    /// Replace the full step list. Only allowed while the sequence is draft or paused.
    #[serde(rename = "steps", skip_serializing_if = "Option::is_none")]
    pub steps: Option<Vec<models::UpdateSequenceRequestStepsInner>>,
    #[serde(rename = "exitOnReply", skip_serializing_if = "Option::is_none")]
    pub exit_on_reply: Option<bool>,
    #[serde(rename = "exitOnUnsubscribe", skip_serializing_if = "Option::is_none")]
    pub exit_on_unsubscribe: Option<bool>,
}

impl UpdateSequenceRequest {
    pub fn new() -> UpdateSequenceRequest {
        UpdateSequenceRequest {
            name: None,
            description: None,
            steps: None,
            exit_on_reply: None,
            exit_on_unsubscribe: None,
        }
    }
}
