Files
zeekay 0c2f028a8c Generate the Swift client, which this copy did not carry
The forge tree held the package scaffolding and none of the generated sources —
2,435 files of APIs, Models and Infrastructure, including BaseAPI, were simply
absent, so anything depending on this copy had a package that compiled to
nothing usable.

Generated from the current API document rather than reconciled with the other
copy: a client is a function of the spec, so regenerating answers "which history
wins" without anyone having to choose. .spec-lock records which document, so the
next reader can tell.
2026-08-23 10:04:41 -07:00

49 lines
1.6 KiB
Swift

//
// EnrollInput.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct EnrollInput: Sendable, Codable, ParameterConvertible, Hashable {
/** Address is a single recipient, normalized (lower-cased, trimmed) before use. Give this OR audienceId, never both and never neither. */
public var address: String?
/** AudienceID fans the sequence out over a saved audience, resolved live to the org's mailable customers. Email only. */
public var audienceId: String?
/** Channel is the delivery surface; empty means email. An audience resolves mailboxes, so an audience enroll must be email. */
public var channel: String?
/** ID is the sequence id from the path. */
public var id: String?
public init(address: String? = nil, audienceId: String? = nil, channel: String? = nil, id: String? = nil) {
self.address = address
self.audienceId = audienceId
self.channel = channel
self.id = id
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case address
case audienceId
case channel
case id
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(address, forKey: .address)
try container.encodeIfPresent(audienceId, forKey: .audienceId)
try container.encodeIfPresent(channel, forKey: .channel)
try container.encodeIfPresent(id, forKey: .id)
}
}
@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *)
extension EnrollInput: Identifiable {}