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