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

//
// OrgEarningView.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct OrgEarningView: Sendable, Codable, ParameterConvertible, Hashable {
/** CommissionCents is what the caller earned from that org across ALL periods, in cents. Deliberately the caller's own share and nothing else: that org's spend and the margin on it are not restated here. */
public var commissionCents: Int64?
/** ReferredOrg is the org slug this contribution came from — one the caller referred, directly or up to three levels down. */
public var referredOrg: String?
public init(commissionCents: Int64? = nil, referredOrg: String? = nil) {
self.commissionCents = commissionCents
self.referredOrg = referredOrg
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case commissionCents
case referredOrg
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(commissionCents, forKey: .commissionCents)
try container.encodeIfPresent(referredOrg, forKey: .referredOrg)
}
}