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

36 lines
1.1 KiB
Swift

//
// LineItem.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct LineItem: Sendable, Codable, ParameterConvertible, Hashable {
/** AmountCents is that line's amount in whole cents. The scanner is instructed to return integer cents rather than a decimal, so no float rounding can enter the ledger through here. */
public var amountCents: Int64?
/** Description is the line as it appears on the document. */
public var description: String?
public init(amountCents: Int64? = nil, description: String? = nil) {
self.amountCents = amountCents
self.description = description
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case amountCents
case description
}
// 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(description, forKey: .description)
}
}