/* Options: Date: 2025-08-04 04:14:37 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: BrowseDirectPlusProcurementData.* //ExcludeTypes: //ExcludeGenericBaseTypes: False //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True //InitializeCollections: True //TreatTypesAsStrings: //DefaultImports: Foundation,ServiceStack */ import Foundation import ServiceStack // @Route("/directplus/procurement", "GET") public class BrowseDirectPlusProcurementData : IReturn, IGet, Codable { public typealias Return = BrowseDirectPlusProcurementDataResponse public var vatNumber:String public var country:String public var dunsNumber:String required public init(){} } public class BrowseDirectPlusProcurementDataResponse : ResponseBase { public var workForceN1:Int? public var workForceN2:Int? public var workForceN3:Int? public var subscribedCapital:Double? public var subscribedCapitalCurrencyId:Int? public var revenueN1:Double? public var revenueN2:Double? public var revenueN3:Double? public var netProfitN1:Double? public var netProfitN2:Double? public var netProfitN3:Double? public var equityN1:Double? public var equityN2:Double? public var equityN3:Double? public var liabilityN1:Double? public var liabilityN2:Double? public var liabilityN3:Double? public var operatingResultN1:Double? public var operatingResultN2:Double? public var operatingResultN3:Double? public var indebtednessN1:Double? public var indebtednessN2:Double? public var indebtednessN3:Double? public var salesProportionateProfitN1:Double? public var salesProportionateProfitN2:Double? public var salesProportionateProfitN3:Double? public var liquidityRatioN1:Double? public var liquidityRatioN2:Double? public var liquidityRatioN3:Double? public var dbFailureScore:Double? required public init(){ super.init() } private enum CodingKeys : String, CodingKey { case workForceN1 case workForceN2 case workForceN3 case subscribedCapital case subscribedCapitalCurrencyId case revenueN1 case revenueN2 case revenueN3 case netProfitN1 case netProfitN2 case netProfitN3 case equityN1 case equityN2 case equityN3 case liabilityN1 case liabilityN2 case liabilityN3 case operatingResultN1 case operatingResultN2 case operatingResultN3 case indebtednessN1 case indebtednessN2 case indebtednessN3 case salesProportionateProfitN1 case salesProportionateProfitN2 case salesProportionateProfitN3 case liquidityRatioN1 case liquidityRatioN2 case liquidityRatioN3 case dbFailureScore } required public init(from decoder: Decoder) throws { try super.init(from: decoder) let container = try decoder.container(keyedBy: CodingKeys.self) workForceN1 = try container.decodeIfPresent(Int.self, forKey: .workForceN1) workForceN2 = try container.decodeIfPresent(Int.self, forKey: .workForceN2) workForceN3 = try container.decodeIfPresent(Int.self, forKey: .workForceN3) subscribedCapital = try container.decodeIfPresent(Double.self, forKey: .subscribedCapital) subscribedCapitalCurrencyId = try container.decodeIfPresent(Int.self, forKey: .subscribedCapitalCurrencyId) revenueN1 = try container.decodeIfPresent(Double.self, forKey: .revenueN1) revenueN2 = try container.decodeIfPresent(Double.self, forKey: .revenueN2) revenueN3 = try container.decodeIfPresent(Double.self, forKey: .revenueN3) netProfitN1 = try container.decodeIfPresent(Double.self, forKey: .netProfitN1) netProfitN2 = try container.decodeIfPresent(Double.self, forKey: .netProfitN2) netProfitN3 = try container.decodeIfPresent(Double.self, forKey: .netProfitN3) equityN1 = try container.decodeIfPresent(Double.self, forKey: .equityN1) equityN2 = try container.decodeIfPresent(Double.self, forKey: .equityN2) equityN3 = try container.decodeIfPresent(Double.self, forKey: .equityN3) liabilityN1 = try container.decodeIfPresent(Double.self, forKey: .liabilityN1) liabilityN2 = try container.decodeIfPresent(Double.self, forKey: .liabilityN2) liabilityN3 = try container.decodeIfPresent(Double.self, forKey: .liabilityN3) operatingResultN1 = try container.decodeIfPresent(Double.self, forKey: .operatingResultN1) operatingResultN2 = try container.decodeIfPresent(Double.self, forKey: .operatingResultN2) operatingResultN3 = try container.decodeIfPresent(Double.self, forKey: .operatingResultN3) indebtednessN1 = try container.decodeIfPresent(Double.self, forKey: .indebtednessN1) indebtednessN2 = try container.decodeIfPresent(Double.self, forKey: .indebtednessN2) indebtednessN3 = try container.decodeIfPresent(Double.self, forKey: .indebtednessN3) salesProportionateProfitN1 = try container.decodeIfPresent(Double.self, forKey: .salesProportionateProfitN1) salesProportionateProfitN2 = try container.decodeIfPresent(Double.self, forKey: .salesProportionateProfitN2) salesProportionateProfitN3 = try container.decodeIfPresent(Double.self, forKey: .salesProportionateProfitN3) liquidityRatioN1 = try container.decodeIfPresent(Double.self, forKey: .liquidityRatioN1) liquidityRatioN2 = try container.decodeIfPresent(Double.self, forKey: .liquidityRatioN2) liquidityRatioN3 = try container.decodeIfPresent(Double.self, forKey: .liquidityRatioN3) dbFailureScore = try container.decodeIfPresent(Double.self, forKey: .dbFailureScore) } public override func encode(to encoder: Encoder) throws { try super.encode(to: encoder) var container = encoder.container(keyedBy: CodingKeys.self) if workForceN1 != nil { try container.encode(workForceN1, forKey: .workForceN1) } if workForceN2 != nil { try container.encode(workForceN2, forKey: .workForceN2) } if workForceN3 != nil { try container.encode(workForceN3, forKey: .workForceN3) } if subscribedCapital != nil { try container.encode(subscribedCapital, forKey: .subscribedCapital) } if subscribedCapitalCurrencyId != nil { try container.encode(subscribedCapitalCurrencyId, forKey: .subscribedCapitalCurrencyId) } if revenueN1 != nil { try container.encode(revenueN1, forKey: .revenueN1) } if revenueN2 != nil { try container.encode(revenueN2, forKey: .revenueN2) } if revenueN3 != nil { try container.encode(revenueN3, forKey: .revenueN3) } if netProfitN1 != nil { try container.encode(netProfitN1, forKey: .netProfitN1) } if netProfitN2 != nil { try container.encode(netProfitN2, forKey: .netProfitN2) } if netProfitN3 != nil { try container.encode(netProfitN3, forKey: .netProfitN3) } if equityN1 != nil { try container.encode(equityN1, forKey: .equityN1) } if equityN2 != nil { try container.encode(equityN2, forKey: .equityN2) } if equityN3 != nil { try container.encode(equityN3, forKey: .equityN3) } if liabilityN1 != nil { try container.encode(liabilityN1, forKey: .liabilityN1) } if liabilityN2 != nil { try container.encode(liabilityN2, forKey: .liabilityN2) } if liabilityN3 != nil { try container.encode(liabilityN3, forKey: .liabilityN3) } if operatingResultN1 != nil { try container.encode(operatingResultN1, forKey: .operatingResultN1) } if operatingResultN2 != nil { try container.encode(operatingResultN2, forKey: .operatingResultN2) } if operatingResultN3 != nil { try container.encode(operatingResultN3, forKey: .operatingResultN3) } if indebtednessN1 != nil { try container.encode(indebtednessN1, forKey: .indebtednessN1) } if indebtednessN2 != nil { try container.encode(indebtednessN2, forKey: .indebtednessN2) } if indebtednessN3 != nil { try container.encode(indebtednessN3, forKey: .indebtednessN3) } if salesProportionateProfitN1 != nil { try container.encode(salesProportionateProfitN1, forKey: .salesProportionateProfitN1) } if salesProportionateProfitN2 != nil { try container.encode(salesProportionateProfitN2, forKey: .salesProportionateProfitN2) } if salesProportionateProfitN3 != nil { try container.encode(salesProportionateProfitN3, forKey: .salesProportionateProfitN3) } if liquidityRatioN1 != nil { try container.encode(liquidityRatioN1, forKey: .liquidityRatioN1) } if liquidityRatioN2 != nil { try container.encode(liquidityRatioN2, forKey: .liquidityRatioN2) } if liquidityRatioN3 != nil { try container.encode(liquidityRatioN3, forKey: .liquidityRatioN3) } if dbFailureScore != nil { try container.encode(dbFailureScore, forKey: .dbFailureScore) } } } public class ResponseBase : Codable { public var responseStatus:ResponseStatus required public init(){} }