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.
57 lines
1.7 KiB
Swift
57 lines
1.7 KiB
Swift
//
|
|
// FinanceLedgerEntry.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct FinanceLedgerEntry: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
public var account: String?
|
|
public var balanceCents: Int64?
|
|
public var cents: Int64?
|
|
public var currency: String?
|
|
public var date: String?
|
|
public var description: String?
|
|
public var id: String?
|
|
|
|
public init(account: String? = nil, balanceCents: Int64? = nil, cents: Int64? = nil, currency: String? = nil, date: String? = nil, description: String? = nil, id: String? = nil) {
|
|
self.account = account
|
|
self.balanceCents = balanceCents
|
|
self.cents = cents
|
|
self.currency = currency
|
|
self.date = date
|
|
self.description = description
|
|
self.id = id
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case account
|
|
case balanceCents
|
|
case cents
|
|
case currency
|
|
case date
|
|
case description
|
|
case id
|
|
}
|
|
|
|
// 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(balanceCents, forKey: .balanceCents)
|
|
try container.encodeIfPresent(cents, forKey: .cents)
|
|
try container.encodeIfPresent(currency, forKey: .currency)
|
|
try container.encodeIfPresent(date, forKey: .date)
|
|
try container.encodeIfPresent(description, forKey: .description)
|
|
try container.encodeIfPresent(id, forKey: .id)
|
|
}
|
|
}
|
|
|
|
|
|
@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *)
|
|
extension FinanceLedgerEntry: Identifiable {}
|