1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
/*
* 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 BalanceSheet {
/// AsOf is the posting time the statement is taken at, inclusive. A balance sheet is a snapshot, not a window, so there is no From. Absent means as of now.
#[serde(rename = "asOf", skip_serializing_if = "Option::is_none")]
pub as_of: Option<String>,
/// Assets are what the org OWNS at that instant, one line per account that has a balance. Cash, receivables, funds captured but not yet settled.
#[serde(rename = "assets", skip_serializing_if = "Option::is_none")]
pub assets: Option<Vec<models::BalanceLine>>,
/// Balanced is whether assets equal liabilities plus equity — the accounting equation, computed from the totals above rather than assumed. False means the ledger is broken, not that the statement is.
#[serde(rename = "balanced", skip_serializing_if = "Option::is_none")]
pub balanced: Option<bool>,
/// Equity is what is left over for the owners. It carries a DERIVED retained earnings line holding cumulative income minus expense, because this ledger has no period close that sweeps the P&L into equity — without that line the equation would not close.
#[serde(rename = "equity", skip_serializing_if = "Option::is_none")]
pub equity: Option<Vec<models::BalanceLine>>,
/// Liabilities are what the org OWES — including customers' unspent prepaid credit, which is their money until it is consumed and so is carried here rather than counted as revenue.
#[serde(rename = "liabilities", skip_serializing_if = "Option::is_none")]
pub liabilities: Option<Vec<models::BalanceLine>>,
/// TotalAssets is the sum of the asset lines, in cents.
#[serde(rename = "totalAssets", skip_serializing_if = "Option::is_none")]
pub total_assets: Option<i32>,
/// TotalEquity is the sum of the equity lines including retained earnings, in cents.
#[serde(rename = "totalEquity", skip_serializing_if = "Option::is_none")]
pub total_equity: Option<i32>,
/// TotalLiabilities is the sum of the liability lines, in cents.
#[serde(rename = "totalLiabilities", skip_serializing_if = "Option::is_none")]
pub total_liabilities: Option<i32>,
}
impl BalanceSheet {
pub fn new() -> BalanceSheet {
BalanceSheet {
as_of: None,
assets: None,
balanced: None,
equity: None,
liabilities: None,
total_assets: None,
total_equity: None,
total_liabilities: None,
}
}
}