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

49 lines
1.8 KiB
Swift

//
// Attribution.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct Attribution: Sendable, Codable, ParameterConvertible, Hashable {
/** Code is the affiliate code the edge was recorded under, normalized to lower case. On a re-post it is the code of the STANDING edge, which may differ from the one just sent — first touch wins. */
public var code: String?
/** Created says whether THIS call made the edge. false means the caller org was already attributed and nothing moved. The HTTP status says the same: 201 when true, 200 when false. */
public var created: Bool?
/** CreatedAt is when the edge was FIRST recorded, Unix seconds UTC. On a re-post it is the original time, not now. */
public var createdAt: Int64?
/** ID is the attribution edge's server-minted handle, \"afr_\"-prefixed. */
public var id: String?
public init(code: String? = nil, created: Bool? = nil, createdAt: Int64? = nil, id: String? = nil) {
self.code = code
self.created = created
self.createdAt = createdAt
self.id = id
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case code
case created
case createdAt
case id
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(code, forKey: .code)
try container.encodeIfPresent(created, forKey: .created)
try container.encodeIfPresent(createdAt, forKey: .createdAt)
try container.encodeIfPresent(id, forKey: .id)
}
}
@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *)
extension Attribution: Identifiable {}