mirror of
https://github.com/hanzoai/swift-sdk.git
synced 2026-10-30 18:20:19 +00:00
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.
79 lines
3.4 KiB
Swift
79 lines
3.4 KiB
Swift
//
|
|
// EsignRecipient.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct EsignRecipient: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
/** Email is where this recipient's signing link is meant to go, lower-cased. */
|
|
public var email: String?
|
|
/** ID is the recipient id, which is what a field is placed against. */
|
|
public var id: String?
|
|
/** Name is the recipient's display name, empty when none was given. */
|
|
public var name: String?
|
|
/** ReadStatus is NOT_OPENED until they first open their link, then OPENED. */
|
|
public var readStatus: String?
|
|
/** RejectionReason is why they declined, null unless they did. */
|
|
public var rejectionReason: String?
|
|
/** Role is SIGNER, CC, VIEWER, APPROVER or ASSISTANT. A document waits only for its SIGNERs and APPROVERs before it can seal. */
|
|
public var role: String?
|
|
/** SendStatus is NOT_SENT until the document goes out, then SENT. A CC recipient is SENT from the moment they are added. */
|
|
public var sendStatus: String?
|
|
/** SignedAt is when they finished or declined, in unix milliseconds; null while neither has happened. */
|
|
public var signedAt: Int64?
|
|
/** SigningOrder is their position in a SEQUENTIAL document, null when they were added without one. A PARALLEL document ignores it. */
|
|
public var signingOrder: Double?
|
|
/** SigningStatus is NOT_SIGNED, SIGNED or REJECTED. A CC recipient is SIGNED from the moment they are added, because they are never asked. */
|
|
public var signingStatus: String?
|
|
|
|
public init(email: String? = nil, id: String? = nil, name: String? = nil, readStatus: String? = nil, rejectionReason: String? = nil, role: String? = nil, sendStatus: String? = nil, signedAt: Int64? = nil, signingOrder: Double? = nil, signingStatus: String? = nil) {
|
|
self.email = email
|
|
self.id = id
|
|
self.name = name
|
|
self.readStatus = readStatus
|
|
self.rejectionReason = rejectionReason
|
|
self.role = role
|
|
self.sendStatus = sendStatus
|
|
self.signedAt = signedAt
|
|
self.signingOrder = signingOrder
|
|
self.signingStatus = signingStatus
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case email
|
|
case id
|
|
case name
|
|
case readStatus
|
|
case rejectionReason
|
|
case role
|
|
case sendStatus
|
|
case signedAt
|
|
case signingOrder
|
|
case signingStatus
|
|
}
|
|
|
|
// Encodable protocol methods
|
|
|
|
public func encode(to encoder: Encoder) throws {
|
|
var container = encoder.container(keyedBy: CodingKeys.self)
|
|
try container.encodeIfPresent(email, forKey: .email)
|
|
try container.encodeIfPresent(id, forKey: .id)
|
|
try container.encodeIfPresent(name, forKey: .name)
|
|
try container.encodeIfPresent(readStatus, forKey: .readStatus)
|
|
try container.encodeIfPresent(rejectionReason, forKey: .rejectionReason)
|
|
try container.encodeIfPresent(role, forKey: .role)
|
|
try container.encodeIfPresent(sendStatus, forKey: .sendStatus)
|
|
try container.encodeIfPresent(signedAt, forKey: .signedAt)
|
|
try container.encodeIfPresent(signingOrder, forKey: .signingOrder)
|
|
try container.encodeIfPresent(signingStatus, forKey: .signingStatus)
|
|
}
|
|
}
|
|
|
|
|
|
@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *)
|
|
extension EsignRecipient: Identifiable {}
|