babelforce-manager-sdk 0.42.3

Rust SDK for the babelforce manager APIs — auth, user & agent management, call reporting, metrics, and task automations.
Documentation
/*
 * babelforce User API
 *
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 0.0.0-dev
 * Contact: support@babelforce.com
 * Generated by: https://openapi-generator.tech
 */

use crate::gen::user::models;
use serde::{Deserialize, Serialize};

/// UserCustomerCustomer : A user's customer account details
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct UserCustomerCustomer {
    /// The unique Identifier (UUID) of the object
    #[serde(rename = "id")]
    pub id: uuid::Uuid,
    /// The name of the company associated with the user
    #[serde(rename = "company")]
    pub company: String,
    /// The contact number for the user's customer account
    #[serde(rename = "phone")]
    pub phone: String,
    /// Customer account owner's first name
    #[serde(rename = "firstName")]
    pub first_name: String,
    /// Customer account owner's last name
    #[serde(rename = "lastName")]
    pub last_name: String,
    /// Customer account owner's email
    #[serde(rename = "email")]
    pub email: String,
    #[serde(rename = "dateCreated")]
    pub date_created: chrono::DateTime<chrono::FixedOffset>,
    #[serde(rename = "settings")]
    pub settings: Box<models::UserCustomerCustomerSettings>,
    #[serde(rename = "apis")]
    pub apis: Box<models::UserCustomerCustomerApis>,
}

impl UserCustomerCustomer {
    /// A user's customer account details
    pub fn new(
        id: uuid::Uuid,
        company: String,
        phone: String,
        first_name: String,
        last_name: String,
        email: String,
        date_created: chrono::DateTime<chrono::FixedOffset>,
        settings: models::UserCustomerCustomerSettings,
        apis: models::UserCustomerCustomerApis,
    ) -> UserCustomerCustomer {
        UserCustomerCustomer {
            id,
            company,
            phone,
            first_name,
            last_name,
            email,
            date_created,
            settings: Box::new(settings),
            apis: Box::new(apis),
        }
    }
}