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.
38 lines
1.1 KiB
Swift
38 lines
1.1 KiB
Swift
//
|
|
// RollupBalance.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct RollupBalance: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
public var availableCents: Int64?
|
|
public var balanceCents: Int64?
|
|
public var holdsCents: Int64?
|
|
|
|
public init(availableCents: Int64? = nil, balanceCents: Int64? = nil, holdsCents: Int64? = nil) {
|
|
self.availableCents = availableCents
|
|
self.balanceCents = balanceCents
|
|
self.holdsCents = holdsCents
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case availableCents
|
|
case balanceCents
|
|
case holdsCents
|
|
}
|
|
|
|
// Encodable protocol methods
|
|
|
|
public func encode(to encoder: Encoder) throws {
|
|
var container = encoder.container(keyedBy: CodingKeys.self)
|
|
try container.encodeIfPresent(availableCents, forKey: .availableCents)
|
|
try container.encodeIfPresent(balanceCents, forKey: .balanceCents)
|
|
try container.encodeIfPresent(holdsCents, forKey: .holdsCents)
|
|
}
|
|
}
|
|
|