use crate::gen::manager::models;
use serde::{Deserialize, Serialize};
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct UserCustomerCustomer {
#[serde(rename = "id")]
pub id: uuid::Uuid,
#[serde(rename = "company")]
pub company: String,
#[serde(rename = "phone")]
pub phone: String,
#[serde(rename = "firstName")]
pub first_name: String,
#[serde(rename = "lastName")]
pub last_name: String,
#[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 {
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),
}
}
}