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.5 KiB
Swift

//
// CampaignSummary.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct CampaignSummary: Sendable, Codable, ParameterConvertible, Hashable {
/** Budget is the sum of every campaign's budget, in CENTS. */
public var budget: Int64?
/** Campaigns is how many campaigns the org has, in any state. */
public var campaigns: Int64?
/** Channels are the channel kinds this deployment has an executor wired for. A kind absent here is a kind a launch will honestly record as unavailable. */
public var channels: [String]?
/** Live is how many of them are currently live. */
public var live: Int64?
public init(budget: Int64? = nil, campaigns: Int64? = nil, channels: [String]? = nil, live: Int64? = nil) {
self.budget = budget
self.campaigns = campaigns
self.channels = channels
self.live = live
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case budget
case campaigns
case channels
case live
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(budget, forKey: .budget)
try container.encodeIfPresent(campaigns, forKey: .campaigns)
try container.encodeIfPresent(channels, forKey: .channels)
try container.encodeIfPresent(live, forKey: .live)
}
}