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.
36 lines
919 B
Swift
36 lines
919 B
Swift
//
|
|
// SyncTally.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct SyncTally: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
/** Live is the number of vouchers newly posted to the live ledger. */
|
|
public var live: Int64?
|
|
/** Sandbox is the number newly posted to the sandbox ledger. */
|
|
public var sandbox: Int64?
|
|
|
|
public init(live: Int64? = nil, sandbox: Int64? = nil) {
|
|
self.live = live
|
|
self.sandbox = sandbox
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case live
|
|
case sandbox
|
|
}
|
|
|
|
// Encodable protocol methods
|
|
|
|
public func encode(to encoder: Encoder) throws {
|
|
var container = encoder.container(keyedBy: CodingKeys.self)
|
|
try container.encodeIfPresent(live, forKey: .live)
|
|
try container.encodeIfPresent(sandbox, forKey: .sandbox)
|
|
}
|
|
}
|
|
|