/*
 * 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 ListPhoneNumbers200Response {
    #[serde(rename = "numbers", skip_serializing_if = "Option::is_none")]
    pub numbers: Option<Vec<models::ListPhoneNumbers200ResponseNumbersInner>>,
    /// Connected (bring-your-own) WhatsApp numbers — your own WABA numbers linked via Embedded Signup. Not provisioned or billed by Zernio, so they are not in `numbers`; `accountId` is the social-account id used by the messaging and inbox endpoints. Included only on the default and `status=active` views.
    #[serde(rename = "connected", skip_serializing_if = "Option::is_none")]
    pub connected: Option<Vec<models::ListPhoneNumbers200ResponseConnectedInner>>,
    #[serde(rename = "sandbox", skip_serializing_if = "Option::is_none")]
    pub sandbox: Option<Box<models::ListPhoneNumbers200ResponseSandbox>>,
}

impl ListPhoneNumbers200Response {
    pub fn new() -> ListPhoneNumbers200Response {
        ListPhoneNumbers200Response {
            numbers: None,
            connected: None,
            sandbox: None,
        }
    }
}
