Skip to main content

hanzo_client/models/
formation.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 Formation {
16    /// AlreadyIncorporated declares an org that already has a legal entity, which takes the import path (structure → import → company) instead of forming one.
17    #[serde(rename = "alreadyIncorporated", skip_serializing_if = "Option::is_none")]
18    pub already_incorporated: Option<bool>,
19    /// CapTableImported reports whether the existing company's cap table has been imported onto the canonical cap table.
20    #[serde(rename = "capTableImported", skip_serializing_if = "Option::is_none")]
21    pub cap_table_imported: Option<bool>,
22    /// CreatedAt is the unix second the formation was opened.
23    #[serde(rename = "createdAt", skip_serializing_if = "Option::is_none")]
24    pub created_at: Option<i32>,
25    /// DocumentIDs are the data room ids of the GENERATED formation documents.
26    #[serde(rename = "documentIds", skip_serializing_if = "Option::is_none")]
27    pub document_ids: Option<Vec<String>>,
28    /// EsignRef is the e-signature provider's reference for the signature request.
29    #[serde(rename = "esignRef", skip_serializing_if = "Option::is_none")]
30    pub esign_ref: Option<String>,
31    /// Filing is the state-of-incorporation filing record, once documents exist.
32    #[serde(rename = "filing", skip_serializing_if = "Option::is_none")]
33    pub filing: Option<Box<models::Filing>>,
34    /// Founders is every founding stakeholder, with its equity split and KYC state.
35    #[serde(rename = "founders", skip_serializing_if = "Option::is_none")]
36    pub founders: Option<Vec<models::Founder>>,
37    /// Genesis is the cap-table equity genesis, once recorded.
38    #[serde(rename = "genesis", skip_serializing_if = "Option::is_none")]
39    pub genesis: Option<Box<models::Genesis>>,
40    /// Imported reports whether the existing company's corporate documents have been ingested into the org's data room.
41    #[serde(rename = "imported", skip_serializing_if = "Option::is_none")]
42    pub imported: Option<bool>,
43    /// ImportedDocs are the data room ids of the documents ingested from Drive.
44    #[serde(rename = "importedDocs", skip_serializing_if = "Option::is_none")]
45    pub imported_docs: Option<Vec<String>>,
46    /// Jurisdiction is the state of formation: DE or WY.
47    #[serde(rename = "jurisdiction", skip_serializing_if = "Option::is_none")]
48    pub jurisdiction: Option<String>,
49    /// Name is the company name the entity is being formed under.
50    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
51    pub name: Option<String>,
52    /// Org is the owning org — the tenant key, and the reason there is exactly one formation per org.
53    #[serde(rename = "org", skip_serializing_if = "Option::is_none")]
54    pub org: Option<String>,
55    /// Paid reports whether the one-time formation fee has been charged.
56    #[serde(rename = "paid", skip_serializing_if = "Option::is_none")]
57    pub paid: Option<bool>,
58    /// PaymentRef is the billing reference recorded for the charged formation fee on the org's own ledger.
59    #[serde(rename = "paymentRef", skip_serializing_if = "Option::is_none")]
60    pub payment_ref: Option<String>,
61    /// Signed reports whether the formation documents have come back signed — the e-signature provider's answer, which a real provider's webhook drives.
62    #[serde(rename = "signed", skip_serializing_if = "Option::is_none")]
63    pub signed: Option<bool>,
64    /// Stage is the machine's current state: structure, founders, payment, documents, esign or genesis on the formation path, import on the skip path, and company at the terminal.
65    #[serde(rename = "stage", skip_serializing_if = "Option::is_none")]
66    pub stage: Option<String>,
67    /// Structure is the legal entity being formed: c-corp, llc or dao-llc.
68    #[serde(rename = "structure", skip_serializing_if = "Option::is_none")]
69    pub structure: Option<String>,
70    /// UpdatedAt is the unix second of the most recent write to the formation.
71    #[serde(rename = "updatedAt", skip_serializing_if = "Option::is_none")]
72    pub updated_at: Option<i32>,
73}
74
75impl Formation {
76    pub fn new() -> Formation {
77        Formation {
78            already_incorporated: None,
79            cap_table_imported: None,
80            created_at: None,
81            document_ids: None,
82            esign_ref: None,
83            filing: None,
84            founders: None,
85            genesis: None,
86            imported: None,
87            imported_docs: None,
88            jurisdiction: None,
89            name: None,
90            org: None,
91            paid: None,
92            payment_ref: None,
93            signed: None,
94            stage: None,
95            structure: None,
96            updated_at: None,
97        }
98    }
99}
100