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

86 lines
2.8 KiB
Swift

//
// Registrant.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct Registrant: Sendable, Codable, ParameterConvertible, Hashable {
/** street address */
public var address1: String?
/** second address line */
public var address2: String?
/** city or locality */
public var city: String?
/** the organisation the contact acts for */
public var companyName: String?
/** ISO-3166 alpha-2, e.g. \"US\" */
public var country: String?
/** where WHOIS correspondence is sent */
public var email: String?
/** fax number, in the same form as phone */
public var fax: String?
/** the contact's given name */
public var firstName: String?
/** the contact's family name */
public var lastName: String?
/** +NN.NNNNNNN */
public var phone: String?
/** state, province or region */
public var state: String?
/** postal code */
public var zip: String?
public init(address1: String? = nil, address2: String? = nil, city: String? = nil, companyName: String? = nil, country: String? = nil, email: String? = nil, fax: String? = nil, firstName: String? = nil, lastName: String? = nil, phone: String? = nil, state: String? = nil, zip: String? = nil) {
self.address1 = address1
self.address2 = address2
self.city = city
self.companyName = companyName
self.country = country
self.email = email
self.fax = fax
self.firstName = firstName
self.lastName = lastName
self.phone = phone
self.state = state
self.zip = zip
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case address1
case address2
case city
case companyName
case country
case email
case fax
case firstName
case lastName
case phone
case state
case zip
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(address1, forKey: .address1)
try container.encodeIfPresent(address2, forKey: .address2)
try container.encodeIfPresent(city, forKey: .city)
try container.encodeIfPresent(companyName, forKey: .companyName)
try container.encodeIfPresent(country, forKey: .country)
try container.encodeIfPresent(email, forKey: .email)
try container.encodeIfPresent(fax, forKey: .fax)
try container.encodeIfPresent(firstName, forKey: .firstName)
try container.encodeIfPresent(lastName, forKey: .lastName)
try container.encodeIfPresent(phone, forKey: .phone)
try container.encodeIfPresent(state, forKey: .state)
try container.encodeIfPresent(zip, forKey: .zip)
}
}