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

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct SendSmsRequest {
    /// One of your SMS-enabled numbers (E.164).
    #[serde(rename = "from")]
    pub from: String,
    /// Recipient number (E.164).
    #[serde(rename = "to")]
    pub to: String,
    #[serde(rename = "text", skip_serializing_if = "Option::is_none")]
    pub text: Option<String>,
    /// Publicly reachable media URLs for MMS (max 10, total < 1MB).
    #[serde(rename = "mediaUrls", skip_serializing_if = "Option::is_none")]
    pub media_urls: Option<Vec<String>>,
}

impl SendSmsRequest {
    pub fn new(from: String, to: String) -> SendSmsRequest {
        SendSmsRequest {
            from,
            to,
            text: None,
            media_urls: None,
        }
    }
}
