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.
94 lines
4.2 KiB
Swift
94 lines
4.2 KiB
Swift
//
|
|
// EsignDocument.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct EsignDocument: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
/** CompletedAt is when the document sealed, in unix milliseconds; null until it does. */
|
|
public var completedAt: Int64?
|
|
/** CreatedAt is when the document was uploaded, in unix milliseconds. */
|
|
public var createdAt: Int64?
|
|
/** ExternalID is the caller's own identifier for this document, echoed back as it was given; null when none was. */
|
|
public var externalId: String?
|
|
/** Fields is every field on the document, ordered by page and then by when it was placed. */
|
|
public var fields: [EsignField]?
|
|
/** ID is the document id. */
|
|
public var id: String?
|
|
/** Message is the covering message stored with the document; null when none was given. Nothing in this surface sends it. */
|
|
public var message: String?
|
|
/** Recipients is everyone on the document, ordered by signing order and then by when they were added — which is also the order a SEQUENTIAL document enforces. */
|
|
public var recipients: [EsignRecipient]?
|
|
/** SigningOrder is PARALLEL or SEQUENTIAL, fixed when the document was created. */
|
|
public var signingOrder: String?
|
|
/** Source is how the document came to exist. It is DOCUMENT for everything this surface creates. */
|
|
public var source: String?
|
|
/** Status is DRAFT while recipients and fields may still be added, PENDING once it has gone out, then COMPLETED when every signer has finished or REJECTED if any one of them declined. */
|
|
public var status: String?
|
|
/** Subject is the covering subject line stored with the document; null when none was given. */
|
|
public var subject: String?
|
|
/** Title is the document's name, and the stem of the download filename. */
|
|
public var title: String?
|
|
/** UpdatedAt is when the document last changed, in unix milliseconds. */
|
|
public var updatedAt: Int64?
|
|
|
|
public init(completedAt: Int64? = nil, createdAt: Int64? = nil, externalId: String? = nil, fields: [EsignField]? = nil, id: String? = nil, message: String? = nil, recipients: [EsignRecipient]? = nil, signingOrder: String? = nil, source: String? = nil, status: String? = nil, subject: String? = nil, title: String? = nil, updatedAt: Int64? = nil) {
|
|
self.completedAt = completedAt
|
|
self.createdAt = createdAt
|
|
self.externalId = externalId
|
|
self.fields = fields
|
|
self.id = id
|
|
self.message = message
|
|
self.recipients = recipients
|
|
self.signingOrder = signingOrder
|
|
self.source = source
|
|
self.status = status
|
|
self.subject = subject
|
|
self.title = title
|
|
self.updatedAt = updatedAt
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case completedAt
|
|
case createdAt
|
|
case externalId
|
|
case fields
|
|
case id
|
|
case message
|
|
case recipients
|
|
case signingOrder
|
|
case source
|
|
case status
|
|
case subject
|
|
case title
|
|
case updatedAt
|
|
}
|
|
|
|
// Encodable protocol methods
|
|
|
|
public func encode(to encoder: Encoder) throws {
|
|
var container = encoder.container(keyedBy: CodingKeys.self)
|
|
try container.encodeIfPresent(completedAt, forKey: .completedAt)
|
|
try container.encodeIfPresent(createdAt, forKey: .createdAt)
|
|
try container.encodeIfPresent(externalId, forKey: .externalId)
|
|
try container.encodeIfPresent(fields, forKey: .fields)
|
|
try container.encodeIfPresent(id, forKey: .id)
|
|
try container.encodeIfPresent(message, forKey: .message)
|
|
try container.encodeIfPresent(recipients, forKey: .recipients)
|
|
try container.encodeIfPresent(signingOrder, forKey: .signingOrder)
|
|
try container.encodeIfPresent(source, forKey: .source)
|
|
try container.encodeIfPresent(status, forKey: .status)
|
|
try container.encodeIfPresent(subject, forKey: .subject)
|
|
try container.encodeIfPresent(title, forKey: .title)
|
|
try container.encodeIfPresent(updatedAt, forKey: .updatedAt)
|
|
}
|
|
}
|
|
|
|
|
|
@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *)
|
|
extension EsignDocument: Identifiable {}
|