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

46 lines
1.4 KiB
Swift

//
// ProductRow.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct ProductRow: Sendable, Codable, ParameterConvertible, Hashable {
/** Orders is how many order_completed events carried it. */
public var orders: Int64?
/** ProductID is the product the order events named. */
public var productId: String?
/** Revenue is the total they carried, in the events' own currency unit. */
public var revenue: Double?
/** Units is the summed quantity sold. */
public var units: Int64?
public init(orders: Int64? = nil, productId: String? = nil, revenue: Double? = nil, units: Int64? = nil) {
self.orders = orders
self.productId = productId
self.revenue = revenue
self.units = units
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case orders
case productId
case revenue
case units
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(orders, forKey: .orders)
try container.encodeIfPresent(productId, forKey: .productId)
try container.encodeIfPresent(revenue, forKey: .revenue)
try container.encodeIfPresent(units, forKey: .units)
}
}