Skip to main content

hanzo_client/models/
captable_round.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 CaptableRound {
16    /// CloseDate is the ISO date the round closed, once it has.
17    #[serde(rename = "closeDate", skip_serializing_if = "Option::is_none")]
18    pub close_date: Option<String>,
19    /// CreatedAt is when the round was recorded, in unix milliseconds.
20    #[serde(rename = "createdAt", skip_serializing_if = "Option::is_none")]
21    pub created_at: Option<i32>,
22    /// ID is the round id.
23    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
24    pub id: Option<String>,
25    /// Name is the round name, e.g. \"Series A\".
26    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
27    pub name: Option<String>,
28    /// PreMoneyValuation is the pre-money valuation, for a priced round.
29    #[serde(rename = "preMoneyValuation", skip_serializing_if = "Option::is_none")]
30    pub pre_money_valuation: Option<f64>,
31    /// PricePerShare is the price per share, for a priced round.
32    #[serde(rename = "pricePerShare", skip_serializing_if = "Option::is_none")]
33    pub price_per_share: Option<f64>,
34    /// RaisedAmount is how much has been invested so far.
35    #[serde(rename = "raisedAmount", skip_serializing_if = "Option::is_none")]
36    pub raised_amount: Option<f64>,
37    /// RoundType is PRICED, SAFE or CONVERTIBLE_NOTE.
38    #[serde(rename = "roundType", skip_serializing_if = "Option::is_none")]
39    pub round_type: Option<String>,
40    /// ShareClassID is the class a priced round issues into.
41    #[serde(rename = "shareClassId", skip_serializing_if = "Option::is_none")]
42    pub share_class_id: Option<String>,
43    /// Status is OPEN or CLOSED.
44    #[serde(rename = "status", skip_serializing_if = "Option::is_none")]
45    pub status: Option<String>,
46    /// TargetAmount is how much the round set out to raise.
47    #[serde(rename = "targetAmount", skip_serializing_if = "Option::is_none")]
48    pub target_amount: Option<f64>,
49}
50
51impl CaptableRound {
52    pub fn new() -> CaptableRound {
53        CaptableRound {
54            close_date: None,
55            created_at: None,
56            id: None,
57            name: None,
58            pre_money_valuation: None,
59            price_per_share: None,
60            raised_amount: None,
61            round_type: None,
62            share_class_id: None,
63            status: None,
64            target_amount: None,
65        }
66    }
67}
68