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
/*
* 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 TrialBalance {
/// Balanced is the proof this report exists to give: whether total debits equal total credits. It is computed from the rows above, never assumed, and false means the ledger itself is broken rather than that the report is wrong.
#[serde(rename = "balanced", skip_serializing_if = "Option::is_none")]
pub balanced: Option<bool>,
/// From is the posting time the window opens at, as it was asked for. Absent means the report runs from the beginning of the ledger.
#[serde(rename = "from", skip_serializing_if = "Option::is_none")]
pub from: Option<String>,
/// Rows are the accounts that MOVED in one of the windows. An account that never moved is omitted rather than listed at zero, so this is shorter than the chart.
#[serde(rename = "rows", skip_serializing_if = "Option::is_none")]
pub rows: Option<Vec<models::TrialBalanceRow>>,
/// To is the posting time the window closes at, inclusive. Absent means \"up to now\" — every posting the ledger holds.
#[serde(rename = "to", skip_serializing_if = "Option::is_none")]
pub to: Option<String>,
/// TotalCredit is the sum of every row's closing credit column, in cents.
#[serde(rename = "totalCredit", skip_serializing_if = "Option::is_none")]
pub total_credit: Option<i32>,
/// TotalDebit is the sum of every row's CLOSING debit column, in cents.
#[serde(rename = "totalDebit", skip_serializing_if = "Option::is_none")]
pub total_debit: Option<i32>,
}
impl TrialBalance {
pub fn new() -> TrialBalance {
TrialBalance {
balanced: None,
from: None,
rows: None,
to: None,
total_credit: None,
total_debit: None,
}
}
}