Skip to main content

hanzo_client/models/
captable_note.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 CaptableNote {
16    /// Capital is the principal the investor lent.
17    #[serde(rename = "capital", skip_serializing_if = "Option::is_none")]
18    pub capital: Option<f64>,
19    /// ConversionCap is the valuation cap on conversion, if any.
20    #[serde(rename = "conversionCap", skip_serializing_if = "Option::is_none")]
21    pub conversion_cap: Option<f64>,
22    /// DiscountRate is the discount to the next round's price, if any.
23    #[serde(rename = "discountRate", skip_serializing_if = "Option::is_none")]
24    pub discount_rate: Option<f64>,
25    /// ID is the note id.
26    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
27    pub id: Option<String>,
28    /// InterestRate is the annual interest rate, if any.
29    #[serde(rename = "interestRate", skip_serializing_if = "Option::is_none")]
30    pub interest_rate: Option<f64>,
31    /// IssueDate is the ISO date the note was signed.
32    #[serde(rename = "issueDate", skip_serializing_if = "Option::is_none")]
33    pub issue_date: Option<String>,
34    /// PublicID is the note's shareable identifier, unique within the company.
35    #[serde(rename = "publicId", skip_serializing_if = "Option::is_none")]
36    pub public_id: Option<String>,
37    /// StakeholderID is the investor.
38    #[serde(rename = "stakeholderId", skip_serializing_if = "Option::is_none")]
39    pub stakeholder_id: Option<String>,
40    /// StakeholderName is that investor's name.
41    #[serde(rename = "stakeholderName", skip_serializing_if = "Option::is_none")]
42    pub stakeholder_name: Option<String>,
43    /// Status is the note's state, e.g. DRAFT or ACTIVE.
44    #[serde(rename = "status", skip_serializing_if = "Option::is_none")]
45    pub status: Option<String>,
46    /// Type is the instrument kind, e.g. NOTE.
47    #[serde(rename = "type", skip_serializing_if = "Option::is_none")]
48    pub r#type: Option<String>,
49}
50
51impl CaptableNote {
52    pub fn new() -> CaptableNote {
53        CaptableNote {
54            capital: None,
55            conversion_cap: None,
56            discount_rate: None,
57            id: None,
58            interest_rate: None,
59            issue_date: None,
60            public_id: None,
61            stakeholder_id: None,
62            stakeholder_name: None,
63            status: None,
64            r#type: None,
65        }
66    }
67}
68