/* Options: Date: 2025-08-04 04:16:03 SwiftVersion: 5.0 Version: 6.110 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://szallitoiportal-be.veolia.hu //BaseClass: //AddModelExtensions: True //AddServiceStackTypes: True IncludeTypes: EditTender.* //ExcludeTypes: //ExcludeGenericBaseTypes: False //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True //InitializeCollections: True //TreatTypesAsStrings: //DefaultImports: Foundation,ServiceStack */ import Foundation import ServiceStack // @Route("/tender/{tenderid}", "PUT") public class EditTender : TenderBase, IReturn, IPut { public typealias Return = ModifyEntityResponse public var tenderId:Int required public init(){ super.init() } private enum CodingKeys : String, CodingKey { case tenderId } required public init(from decoder: Decoder) throws { try super.init(from: decoder) let container = try decoder.container(keyedBy: CodingKeys.self) tenderId = try container.decodeIfPresent(Int.self, forKey: .tenderId) } public override func encode(to encoder: Encoder) throws { try super.encode(to: encoder) var container = encoder.container(keyedBy: CodingKeys.self) if tenderId != nil { try container.encode(tenderId, forKey: .tenderId) } } } public class ModifyEntityResponse : ResponseBase { public var id:Int required public init(){ super.init() } private enum CodingKeys : String, CodingKey { case id } required public init(from decoder: Decoder) throws { try super.init(from: decoder) let container = try decoder.container(keyedBy: CodingKeys.self) id = try container.decodeIfPresent(Int.self, forKey: .id) } public override func encode(to encoder: Encoder) throws { try super.encode(to: encoder) var container = encoder.container(keyedBy: CodingKeys.self) if id != nil { try container.encode(id, forKey: .id) } } } public enum TenderType : Int, Codable { case Private = 0 case Public = 1 } public enum TenderStatus : Int, Codable { case FirstRound = 0 case SecondRound = 1 case ThirdRound = 2 case Successful = 3 case UnSuccessful = 4 case Revoked = 5 } public class TenderBase : Codable { public var tenderIdentifier:String public var tenderType:TenderType public var subject:String public var procurementContact:String public var procurementContactEmail:String public var procurementContactPhone:String public var professionalContact:String public var professionalContactEmail:String public var professionalContactPhone:String public var result:String public var status:TenderStatus required public init(){} } public class ResponseBase : Codable { public var responseStatus:ResponseStatus required public init(){} }