hanzo-client 8.5.156

Generated client for the Hanzo API — every service, one crate.
Documentation
/*
 * Hanzo Cloud API
 *
 * The Hanzo Cloud API as a customer calls it: every operation under /v1/ except the operator's admin product, relay routes, legacy spellings and capabilities still reached by flag. Tagged by product: the first path segment after /v1/.
 *
 * The version of the OpenAPI document: v1
 * 
 * Generated by: https://openapi-generator.tech
 */

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

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct CaptableStakeholder {
    /// City is the stakeholder's city, if recorded.
    #[serde(rename = "city", skip_serializing_if = "Option::is_none")]
    pub city: Option<String>,
    /// CompanyName is the name of the company whose cap table this is.
    #[serde(rename = "companyName", skip_serializing_if = "Option::is_none")]
    pub company_name: Option<String>,
    /// Country is the stakeholder's two-letter country code.
    #[serde(rename = "country", skip_serializing_if = "Option::is_none")]
    pub country: Option<String>,
    /// CreatedAt is when the stakeholder was added, in unix milliseconds.
    #[serde(rename = "createdAt", skip_serializing_if = "Option::is_none")]
    pub created_at: Option<i32>,
    /// CurrentRelationship is how the stakeholder relates to the company, e.g. FOUNDER, INVESTOR or EMPLOYEE.
    #[serde(rename = "currentRelationship", skip_serializing_if = "Option::is_none")]
    pub current_relationship: Option<String>,
    /// Email is the stakeholder's email, unique within the company.
    #[serde(rename = "email", skip_serializing_if = "Option::is_none")]
    pub email: Option<String>,
    /// ID is the stakeholder id.
    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
    pub id: Option<String>,
    /// InstitutionName names the institution, when the stakeholder is one.
    #[serde(rename = "institutionName", skip_serializing_if = "Option::is_none")]
    pub institution_name: Option<String>,
    /// Name is the stakeholder's full name.
    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
    /// StakeholderType is INDIVIDUAL or INSTITUTION.
    #[serde(rename = "stakeholderType", skip_serializing_if = "Option::is_none")]
    pub stakeholder_type: Option<String>,
    /// State is the stakeholder's state or province, if recorded.
    #[serde(rename = "state", skip_serializing_if = "Option::is_none")]
    pub state: Option<String>,
    /// StreetAddress is the stakeholder's street address, if recorded.
    #[serde(rename = "streetAddress", skip_serializing_if = "Option::is_none")]
    pub street_address: Option<String>,
    /// TaxID is the stakeholder's tax identifier, if recorded.
    #[serde(rename = "taxId", skip_serializing_if = "Option::is_none")]
    pub tax_id: Option<String>,
    /// Zipcode is the stakeholder's postal code, if recorded.
    #[serde(rename = "zipcode", skip_serializing_if = "Option::is_none")]
    pub zipcode: Option<String>,
}

impl CaptableStakeholder {
    pub fn new() -> CaptableStakeholder {
        CaptableStakeholder {
            city: None,
            company_name: None,
            country: None,
            created_at: None,
            current_relationship: None,
            email: None,
            id: None,
            institution_name: None,
            name: None,
            stakeholder_type: None,
            state: None,
            street_address: None,
            tax_id: None,
            zipcode: None,
        }
    }
}