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.
54 lines
1.6 KiB
Swift
54 lines
1.6 KiB
Swift
//
|
|
// CategoryIn.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct CategoryIn: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
/** Brands are the brands whose console shows it. Omit for every brand. */
|
|
public var brands: [String]?
|
|
/** ID is the category slug to write, from the path. */
|
|
public var id: String?
|
|
/** Label is the display name. Required. */
|
|
public var label: String?
|
|
/** Order is where the category sits among its siblings, ascending. */
|
|
public var order: Int64?
|
|
/** Summary is the one line describing what the category groups. */
|
|
public var summary: String?
|
|
|
|
public init(brands: [String]? = nil, id: String? = nil, label: String? = nil, order: Int64? = nil, summary: String? = nil) {
|
|
self.brands = brands
|
|
self.id = id
|
|
self.label = label
|
|
self.order = order
|
|
self.summary = summary
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case brands
|
|
case id
|
|
case label
|
|
case order
|
|
case summary
|
|
}
|
|
|
|
// Encodable protocol methods
|
|
|
|
public func encode(to encoder: Encoder) throws {
|
|
var container = encoder.container(keyedBy: CodingKeys.self)
|
|
try container.encodeIfPresent(brands, forKey: .brands)
|
|
try container.encodeIfPresent(id, forKey: .id)
|
|
try container.encodeIfPresent(label, forKey: .label)
|
|
try container.encodeIfPresent(order, forKey: .order)
|
|
try container.encodeIfPresent(summary, forKey: .summary)
|
|
}
|
|
}
|
|
|
|
|
|
@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *)
|
|
extension CategoryIn: Identifiable {}
|