/* Options: Date: 2025-12-06 06:17:30 SwiftVersion: 5.0 Version: 8.0 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://1fetch.api.client.prod.86degrees.com //BaseClass: //AddModelExtensions: True //AddServiceStackTypes: True IncludeTypes: GetProofOfDelivery.* //ExcludeTypes: //ExcludeGenericBaseTypes: False //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True //InitializeCollections: True //TreatTypesAsStrings: //DefaultImports: Foundation,ServiceStack */ import Foundation import ServiceStack // @Route("/proofofdelivery", "GET") public class GetProofOfDelivery : ApiServiceRequest, ILogRequest { /** * The ID of the order */ // @ApiMember(Description="The ID of the order") public var orderId:String /** * The 1F waybill for the order */ // @ApiMember(Description="The 1F waybill for the order") public var waybill:String required public init(){ super.init() } private enum CodingKeys : String, CodingKey { case orderId case waybill } required public init(from decoder: Decoder) throws { try super.init(from: decoder) let container = try decoder.container(keyedBy: CodingKeys.self) orderId = try container.decodeIfPresent(String.self, forKey: .orderId) waybill = try container.decodeIfPresent(String.self, forKey: .waybill) } public override func encode(to encoder: Encoder) throws { try super.encode(to: encoder) var container = encoder.container(keyedBy: CodingKeys.self) if orderId != nil { try container.encode(orderId, forKey: .orderId) } if waybill != nil { try container.encode(waybill, forKey: .waybill) } } } public class ApiServiceRequest : IServiceRequest, IHasApiKey, Codable { /** * The API Key required for authentication */ // @ApiMember(DataType="string", Description="The API Key required for authentication", IsRequired=true) public var apiKey:String required public init(){} } public protocol IServiceRequest { } public protocol IHasApiKey { var apiKey:String { get set } } public protocol ILogRequest { }