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
57
58
59
60
/*
* 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 TrialBalanceRow {
/// Account is the chart-of-accounts NUMBER this line reports on (\"1000\", \"4000\") — the stable posting key, not a display label.
#[serde(rename = "account", skip_serializing_if = "Option::is_none")]
pub account: Option<String>,
/// ClosingCredit is that closing balance in cents when it is a credit balance.
#[serde(rename = "closingCredit", skip_serializing_if = "Option::is_none")]
pub closing_credit: Option<i32>,
/// ClosingDebit is the balance at the end of the window, in cents, when it is a debit balance. This is the column the report's totals are summed from.
#[serde(rename = "closingDebit", skip_serializing_if = "Option::is_none")]
pub closing_debit: Option<i32>,
/// Credit is the same window movement in cents when it was net credit.
#[serde(rename = "credit", skip_serializing_if = "Option::is_none")]
pub credit: Option<i32>,
/// Debit is the account's MOVEMENT within the window — closing minus opening, not the closing balance — in cents, when that movement was net debit. Zero when the account moved net credit.
#[serde(rename = "debit", skip_serializing_if = "Option::is_none")]
pub debit: Option<i32>,
/// Name is that account's human name from the fixed chart.
#[serde(rename = "name", skip_serializing_if = "Option::is_none")]
pub name: Option<String>,
/// OpeningCredit is the same opening balance in cents when it fell on the credit side. Zero when the balance was a debit one.
#[serde(rename = "openingCredit", skip_serializing_if = "Option::is_none")]
pub opening_credit: Option<i32>,
/// OpeningDebit is the account's balance before the window began, in whole cents, when that balance was on the debit side. Zero when the balance was a credit one — the pair is exclusive, never two halves of one number.
#[serde(rename = "openingDebit", skip_serializing_if = "Option::is_none")]
pub opening_debit: Option<i32>,
/// Type is the account's fundamental class — asset, liability, income, expense or equity — which is also its normal balance side. It is carried for presentation and does NOT decide which column an amount lands in: placement follows the sign of the real net, so a contra balance shows up as one.
#[serde(rename = "type", skip_serializing_if = "Option::is_none")]
pub r#type: Option<String>,
}
impl TrialBalanceRow {
pub fn new() -> TrialBalanceRow {
TrialBalanceRow {
account: None,
closing_credit: None,
closing_debit: None,
credit: None,
debit: None,
name: None,
opening_credit: None,
opening_debit: None,
r#type: None,
}
}
}