Skip to main content

hanzo_client/models/
captable_share.rs

1/*
2 * Hanzo Cloud API
3 *
4 * 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/.
5 *
6 * The version of the OpenAPI document: v1
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct CaptableShare {
16    /// CapitalContribution is the cash paid for the certificate, if recorded.
17    #[serde(rename = "capitalContribution", skip_serializing_if = "Option::is_none")]
18    pub capital_contribution: Option<f64>,
19    /// CertificateID is the certificate number, unique within the company.
20    #[serde(rename = "certificateId", skip_serializing_if = "Option::is_none")]
21    pub certificate_id: Option<String>,
22    /// CompanyLegends are the restrictive legends printed on the certificate.
23    #[serde(rename = "companyLegends", skip_serializing_if = "Option::is_none")]
24    pub company_legends: Option<Vec<String>>,
25    /// ID is the share id.
26    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
27    pub id: Option<String>,
28    /// IssueDate is the ISO date the certificate was issued.
29    #[serde(rename = "issueDate", skip_serializing_if = "Option::is_none")]
30    pub issue_date: Option<String>,
31    /// PricePerShare is the price paid per share, if recorded.
32    #[serde(rename = "pricePerShare", skip_serializing_if = "Option::is_none")]
33    pub price_per_share: Option<f64>,
34    /// Quantity is how many shares the certificate covers.
35    #[serde(rename = "quantity", skip_serializing_if = "Option::is_none")]
36    pub quantity: Option<i32>,
37    /// ShareClassID is the class the shares belong to.
38    #[serde(rename = "shareClassId", skip_serializing_if = "Option::is_none")]
39    pub share_class_id: Option<String>,
40    /// ShareClassName is that class's name.
41    #[serde(rename = "shareClassName", skip_serializing_if = "Option::is_none")]
42    pub share_class_name: Option<String>,
43    /// ShareClassType is that class's type, COMMON or PREFERRED.
44    #[serde(rename = "shareClassType", skip_serializing_if = "Option::is_none")]
45    pub share_class_type: Option<String>,
46    /// StakeholderID is the holder of the certificate.
47    #[serde(rename = "stakeholderId", skip_serializing_if = "Option::is_none")]
48    pub stakeholder_id: Option<String>,
49    /// StakeholderName is that holder's name.
50    #[serde(rename = "stakeholderName", skip_serializing_if = "Option::is_none")]
51    pub stakeholder_name: Option<String>,
52    /// Status is ACTIVE or DRAFT.
53    #[serde(rename = "status", skip_serializing_if = "Option::is_none")]
54    pub status: Option<String>,
55}
56
57impl CaptableShare {
58    pub fn new() -> CaptableShare {
59        CaptableShare {
60            capital_contribution: None,
61            certificate_id: None,
62            company_legends: None,
63            id: None,
64            issue_date: None,
65            price_per_share: None,
66            quantity: None,
67            share_class_id: None,
68            share_class_name: None,
69            share_class_type: None,
70            stakeholder_id: None,
71            stakeholder_name: None,
72            status: None,
73        }
74    }
75}
76