/*
 * 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 SendInboxMessageRequestContactsInnerName {
    /// Full display name.
    #[serde(rename = "formatted_name")]
    pub formatted_name: String,
    #[serde(rename = "first_name", skip_serializing_if = "Option::is_none")]
    pub first_name: Option<String>,
    #[serde(rename = "last_name", skip_serializing_if = "Option::is_none")]
    pub last_name: Option<String>,
}

impl SendInboxMessageRequestContactsInnerName {
    pub fn new(formatted_name: String) -> SendInboxMessageRequestContactsInnerName {
        SendInboxMessageRequestContactsInnerName {
            formatted_name,
            first_name: None,
            last_name: None,
        }
    }
}
