/*
 * Pescheck API
 *
 * Official client library for the Pescheck API (v2), generated from the OpenAPI specification. Authenticate with OAuth2 client credentials and use the checks, profiles, screenings, webhooks and divisions endpoints. See https://github.com/pescheckit/pescheck-clients for installation and usage.
 *
 * The version of the OpenAPI document: 2.0.0
 * 
 * Generated by: https://openapi-generator.tech
 */

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

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct PatchedDivisionWrite {
    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
    pub id: Option<uuid::Uuid>,
    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
    #[serde(rename = "city", skip_serializing_if = "Option::is_none")]
    pub city: Option<String>,
    #[serde(rename = "address", skip_serializing_if = "Option::is_none")]
    pub address: Option<String>,
    #[serde(rename = "postal", skip_serializing_if = "Option::is_none")]
    pub postal: Option<String>,
    #[serde(rename = "phone", skip_serializing_if = "Option::is_none")]
    pub phone: Option<String>,
    #[serde(rename = "contact_name", skip_serializing_if = "Option::is_none")]
    pub contact_name: Option<String>,
    #[serde(rename = "contact_email", skip_serializing_if = "Option::is_none")]
    pub contact_email: Option<String>,
    #[serde(rename = "invoice_email", skip_serializing_if = "Option::is_none")]
    pub invoice_email: Option<String>,
    #[serde(rename = "use_parent_on_email", skip_serializing_if = "Option::is_none")]
    pub use_parent_on_email: Option<bool>,
    #[serde(rename = "use_parent_on_billing", skip_serializing_if = "Option::is_none")]
    pub use_parent_on_billing: Option<bool>,
    #[serde(rename = "use_parent_on_report", skip_serializing_if = "Option::is_none")]
    pub use_parent_on_report: Option<bool>,
}

impl PatchedDivisionWrite {
    pub fn new() -> PatchedDivisionWrite {
        PatchedDivisionWrite {
            id: None,
            name: None,
            city: None,
            address: None,
            postal: None,
            phone: None,
            contact_name: None,
            contact_email: None,
            invoice_email: None,
            use_parent_on_email: None,
            use_parent_on_billing: None,
            use_parent_on_report: None,
        }
    }
}

