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 FinancialPackage {
/// BalanceSheet is struck as of the period END, not the start.
#[serde(rename = "balanceSheet", skip_serializing_if = "Option::is_none")]
pub balance_sheet: Option<Box<models::BalanceSheet>>,
/// From opens the reporting period. Absent means from the beginning of the ledger.
#[serde(rename = "from", skip_serializing_if = "Option::is_none")]
pub from: Option<String>,
/// GeneratedAt is when the bundle was assembled — the moment the statements were struck, which is what makes two exports of the same period comparable.
#[serde(rename = "generatedAt", skip_serializing_if = "Option::is_none")]
pub generated_at: Option<String>,
/// GL is the newest slice of ledger detail, as the audit trail behind the statements. It is CAPPED, so on a busy ledger it is a sample rather than the full support for the figures above.
#[serde(rename = "gl", skip_serializing_if = "Option::is_none")]
pub gl: Option<Vec<models::GlRow>>,
/// Org is the organisation whose books these are — the validated caller's own, stamped so a downloaded bundle still says whose it is.
#[serde(rename = "org", skip_serializing_if = "Option::is_none")]
pub org: Option<String>,
/// PnL is the income statement for the period, on an accrual basis.
#[serde(rename = "pnl", skip_serializing_if = "Option::is_none")]
pub pnl: Option<Box<models::PnL>>,
/// To closes it. Absent means up to now.
#[serde(rename = "to", skip_serializing_if = "Option::is_none")]
pub to: Option<String>,
/// TrialBalance is the proof the ledger balances over the period.
#[serde(rename = "trialBalance", skip_serializing_if = "Option::is_none")]
pub trial_balance: Option<Box<models::TrialBalance>>,
}
impl FinancialPackage {
pub fn new() -> FinancialPackage {
FinancialPackage {
balance_sheet: None,
from: None,
generated_at: None,
gl: None,
org: None,
pnl: None,
to: None,
trial_balance: None,
}
}
}