Files
zeekay 1df3ddf6bd Regenerate against the document the deployment answers for
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.
2026-09-05 18:55:38 -07:00

54 lines
1.8 KiB
Swift

//
// AutoRecharge.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct AutoRecharge: Sendable, Codable, ParameterConvertible, Hashable {
public var amountCents: Int64?
public var currency: String?
public var enabled: Bool?
public var lastRechargedAt: String?
public var stored: Bool?
public var subject: String?
public var thresholdCents: Int64?
public init(amountCents: Int64? = nil, currency: String? = nil, enabled: Bool? = nil, lastRechargedAt: String? = nil, stored: Bool? = nil, subject: String? = nil, thresholdCents: Int64? = nil) {
self.amountCents = amountCents
self.currency = currency
self.enabled = enabled
self.lastRechargedAt = lastRechargedAt
self.stored = stored
self.subject = subject
self.thresholdCents = thresholdCents
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case amountCents
case currency
case enabled
case lastRechargedAt
case stored
case subject
case thresholdCents
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(amountCents, forKey: .amountCents)
try container.encodeIfPresent(currency, forKey: .currency)
try container.encodeIfPresent(enabled, forKey: .enabled)
try container.encodeIfPresent(lastRechargedAt, forKey: .lastRechargedAt)
try container.encodeIfPresent(stored, forKey: .stored)
try container.encodeIfPresent(subject, forKey: .subject)
try container.encodeIfPresent(thresholdCents, forKey: .thresholdCents)
}
}