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.
61 lines
2.3 KiB
Swift
61 lines
2.3 KiB
Swift
//
|
|
// Tariff.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct Tariff: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
/** Currency is the ISO code every amount on this quote is denominated in. */
|
|
public var currency: String?
|
|
/** DueNowCents is what is charged to begin: every non-recurring line. */
|
|
public var dueNowCents: Int64?
|
|
/** Jurisdiction is the state of formation the filing fee belongs to. */
|
|
public var jurisdiction: String?
|
|
/** Lines are the charges, in the order a reader should see them. */
|
|
public var lines: [Charge]?
|
|
/** Recurring is how often RecurringCents repeats — \"yearly\" for an agent of record. Empty when nothing on this quote recurs. */
|
|
public var recurring: String?
|
|
/** RecurringCents is what repeats, and Recurring says how often. */
|
|
public var recurringCents: Int64?
|
|
/** Structure is the entity this prices: c-corp, llc or dao-llc. */
|
|
public var structure: String?
|
|
|
|
public init(currency: String? = nil, dueNowCents: Int64? = nil, jurisdiction: String? = nil, lines: [Charge]? = nil, recurring: String? = nil, recurringCents: Int64? = nil, structure: String? = nil) {
|
|
self.currency = currency
|
|
self.dueNowCents = dueNowCents
|
|
self.jurisdiction = jurisdiction
|
|
self.lines = lines
|
|
self.recurring = recurring
|
|
self.recurringCents = recurringCents
|
|
self.structure = structure
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case currency
|
|
case dueNowCents
|
|
case jurisdiction
|
|
case lines
|
|
case recurring
|
|
case recurringCents
|
|
case structure
|
|
}
|
|
|
|
// Encodable protocol methods
|
|
|
|
public func encode(to encoder: Encoder) throws {
|
|
var container = encoder.container(keyedBy: CodingKeys.self)
|
|
try container.encodeIfPresent(currency, forKey: .currency)
|
|
try container.encodeIfPresent(dueNowCents, forKey: .dueNowCents)
|
|
try container.encodeIfPresent(jurisdiction, forKey: .jurisdiction)
|
|
try container.encodeIfPresent(lines, forKey: .lines)
|
|
try container.encodeIfPresent(recurring, forKey: .recurring)
|
|
try container.encodeIfPresent(recurringCents, forKey: .recurringCents)
|
|
try container.encodeIfPresent(structure, forKey: .structure)
|
|
}
|
|
}
|
|
|