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

/// SendInboxMessageRequestInteractiveActionOneOf2Parameters : All optional.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct SendInboxMessageRequestInteractiveActionOneOf2Parameters {
    /// Button label. Defaults to \"Call Now\".
    #[serde(rename = "display_text", skip_serializing_if = "Option::is_none")]
    pub display_text: Option<String>,
    /// How long the button stays tappable. Defaults to 10080 (7 days).
    #[serde(rename = "ttl_minutes", skip_serializing_if = "Option::is_none")]
    pub ttl_minutes: Option<i32>,
    /// Arbitrary string echoed back as `cta_payload` on the `calls` webhook (connect/terminate) for attribution.
    #[serde(rename = "payload", skip_serializing_if = "Option::is_none")]
    pub payload: Option<String>,
}

impl SendInboxMessageRequestInteractiveActionOneOf2Parameters {
    /// All optional.
    pub fn new() -> SendInboxMessageRequestInteractiveActionOneOf2Parameters {
        SendInboxMessageRequestInteractiveActionOneOf2Parameters {
            display_text: None,
            ttl_minutes: None,
            payload: None,
        }
    }
}
