mirror of
https://github.com/hanzoai/swift-sdk.git
synced 2026-10-30 18:20:19 +00:00
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.
56 lines
1.8 KiB
Swift
56 lines
1.8 KiB
Swift
//
|
|
// BankTally.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct BankTally: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
/** transactions seen */
|
|
public var ingested: Int64?
|
|
/** vouchers newly posted (outflow + reconciled) */
|
|
public var posted: Int64?
|
|
/** unmatched inflows that raised a question */
|
|
public var questions: Int64?
|
|
/** inflows cleared against Square-clearing */
|
|
public var reconciled: Int64?
|
|
/** already-processed idempotent no-ops */
|
|
public var skipped: Int64?
|
|
/** own-account moves recorded (no P&L) */
|
|
public var transfers: Int64?
|
|
|
|
public init(ingested: Int64? = nil, posted: Int64? = nil, questions: Int64? = nil, reconciled: Int64? = nil, skipped: Int64? = nil, transfers: Int64? = nil) {
|
|
self.ingested = ingested
|
|
self.posted = posted
|
|
self.questions = questions
|
|
self.reconciled = reconciled
|
|
self.skipped = skipped
|
|
self.transfers = transfers
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case ingested
|
|
case posted
|
|
case questions
|
|
case reconciled
|
|
case skipped
|
|
case transfers
|
|
}
|
|
|
|
// Encodable protocol methods
|
|
|
|
public func encode(to encoder: Encoder) throws {
|
|
var container = encoder.container(keyedBy: CodingKeys.self)
|
|
try container.encodeIfPresent(ingested, forKey: .ingested)
|
|
try container.encodeIfPresent(posted, forKey: .posted)
|
|
try container.encodeIfPresent(questions, forKey: .questions)
|
|
try container.encodeIfPresent(reconciled, forKey: .reconciled)
|
|
try container.encodeIfPresent(skipped, forKey: .skipped)
|
|
try container.encodeIfPresent(transfers, forKey: .transfers)
|
|
}
|
|
}
|
|
|