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

81 lines
2.9 KiB
Swift

//
// Payout.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct Payout: Sendable, Codable, ParameterConvertible, Hashable {
public var amount: Int64?
public var arrivalDate: String?
public var created: String?
public var currency: String?
public var description: String?
public var destinationId: String?
public var destinationType: String?
public var failureCode: String?
public var failureMessage: String?
public var id: String?
public var metadata: JSONValue?
public var providerRef: String?
public var status: String?
public init(amount: Int64? = nil, arrivalDate: String? = nil, created: String? = nil, currency: String? = nil, description: String? = nil, destinationId: String? = nil, destinationType: String? = nil, failureCode: String? = nil, failureMessage: String? = nil, id: String? = nil, metadata: JSONValue? = nil, providerRef: String? = nil, status: String? = nil) {
self.amount = amount
self.arrivalDate = arrivalDate
self.created = created
self.currency = currency
self.description = description
self.destinationId = destinationId
self.destinationType = destinationType
self.failureCode = failureCode
self.failureMessage = failureMessage
self.id = id
self.metadata = metadata
self.providerRef = providerRef
self.status = status
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case amount
case arrivalDate
case created
case currency
case description
case destinationId
case destinationType
case failureCode
case failureMessage
case id
case metadata
case providerRef
case status
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(amount, forKey: .amount)
try container.encodeIfPresent(arrivalDate, forKey: .arrivalDate)
try container.encodeIfPresent(created, forKey: .created)
try container.encodeIfPresent(currency, forKey: .currency)
try container.encodeIfPresent(description, forKey: .description)
try container.encodeIfPresent(destinationId, forKey: .destinationId)
try container.encodeIfPresent(destinationType, forKey: .destinationType)
try container.encodeIfPresent(failureCode, forKey: .failureCode)
try container.encodeIfPresent(failureMessage, forKey: .failureMessage)
try container.encodeIfPresent(id, forKey: .id)
try container.encodeIfPresent(metadata, forKey: .metadata)
try container.encodeIfPresent(providerRef, forKey: .providerRef)
try container.encodeIfPresent(status, forKey: .status)
}
}
@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *)
extension Payout: Identifiable {}