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