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

/// SendInboxMessageRequestInteractiveActionOneOf2 : Flow action. `type` on the parent must be `flow`.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct SendInboxMessageRequestInteractiveActionOneOf2 {
    #[serde(rename = "name")]
    pub name: Name,
    #[serde(rename = "parameters")]
    pub parameters: Box<models::SendInboxMessageRequestInteractiveActionOneOf2Parameters>,
}

impl SendInboxMessageRequestInteractiveActionOneOf2 {
    /// Flow action. `type` on the parent must be `flow`.
    pub fn new(
        name: Name,
        parameters: models::SendInboxMessageRequestInteractiveActionOneOf2Parameters,
    ) -> SendInboxMessageRequestInteractiveActionOneOf2 {
        SendInboxMessageRequestInteractiveActionOneOf2 {
            name,
            parameters: Box::new(parameters),
        }
    }
}
///
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum Name {
    #[serde(rename = "flow")]
    Flow,
}

impl Default for Name {
    fn default() -> Name {
        Self::Flow
    }
}
