Files
zeekay 1df3ddf6bd Regenerate against the document the deployment answers for
The projection these were generated from predated the compute migration, so
they described /v1/visor — which the API serves at zero paths now.

No /v1/visor path survives here.
2026-09-05 18:55:38 -07:00

56 lines
2.3 KiB
Swift

//
// TrialBalance.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct TrialBalance: Sendable, Codable, ParameterConvertible, Hashable {
/** 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. */
public var balanced: 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. */
public var from: 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. */
public var rows: [TrialBalanceRow]?
/** To is the posting time the window closes at, inclusive. Absent means \"up to now\" — every posting the ledger holds. */
public var to: String?
/** TotalCredit is the sum of every row's closing credit column, in cents. */
public var totalCredit: Int64?
/** TotalDebit is the sum of every row's CLOSING debit column, in cents. */
public var totalDebit: Int64?
public init(balanced: Bool? = nil, from: String? = nil, rows: [TrialBalanceRow]? = nil, to: String? = nil, totalCredit: Int64? = nil, totalDebit: Int64? = nil) {
self.balanced = balanced
self.from = from
self.rows = rows
self.to = to
self.totalCredit = totalCredit
self.totalDebit = totalDebit
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case balanced
case from
case rows
case to
case totalCredit
case totalDebit
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(balanced, forKey: .balanced)
try container.encodeIfPresent(from, forKey: .from)
try container.encodeIfPresent(rows, forKey: .rows)
try container.encodeIfPresent(to, forKey: .to)
try container.encodeIfPresent(totalCredit, forKey: .totalCredit)
try container.encodeIfPresent(totalDebit, forKey: .totalDebit)
}
}