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

71 lines
3.4 KiB
Swift

//
// TrialBalanceRow.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct TrialBalanceRow: Sendable, Codable, ParameterConvertible, Hashable {
/** Account is the chart-of-accounts NUMBER this line reports on (\"1000\", \"4000\") — the stable posting key, not a display label. */
public var account: String?
/** ClosingCredit is that closing balance in cents when it is a credit balance. */
public var closingCredit: Int64?
/** 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. */
public var closingDebit: Int64?
/** Credit is the same window movement in cents when it was net credit. */
public var credit: Int64?
/** 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. */
public var debit: Int64?
/** Name is that account's human name from the fixed chart. */
public var name: String?
/** OpeningCredit is the same opening balance in cents when it fell on the credit side. Zero when the balance was a debit one. */
public var openingCredit: Int64?
/** 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. */
public var openingDebit: Int64?
/** 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. */
public var type: String?
public init(account: String? = nil, closingCredit: Int64? = nil, closingDebit: Int64? = nil, credit: Int64? = nil, debit: Int64? = nil, name: String? = nil, openingCredit: Int64? = nil, openingDebit: Int64? = nil, type: String? = nil) {
self.account = account
self.closingCredit = closingCredit
self.closingDebit = closingDebit
self.credit = credit
self.debit = debit
self.name = name
self.openingCredit = openingCredit
self.openingDebit = openingDebit
self.type = type
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case account
case closingCredit
case closingDebit
case credit
case debit
case name
case openingCredit
case openingDebit
case type
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(account, forKey: .account)
try container.encodeIfPresent(closingCredit, forKey: .closingCredit)
try container.encodeIfPresent(closingDebit, forKey: .closingDebit)
try container.encodeIfPresent(credit, forKey: .credit)
try container.encodeIfPresent(debit, forKey: .debit)
try container.encodeIfPresent(name, forKey: .name)
try container.encodeIfPresent(openingCredit, forKey: .openingCredit)
try container.encodeIfPresent(openingDebit, forKey: .openingDebit)
try container.encodeIfPresent(type, forKey: .type)
}
}