/* Options: Date: 2026-05-19 10:46:15 SwiftVersion: 5.0 Version: 8.22 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://dev-api-booster.richemont.com //BaseClass: //AddModelExtensions: True //AddServiceStackTypes: True IncludeTypes: GetPrice.* //ExcludeTypes: //ExcludeGenericBaseTypes: False //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True //InitializeCollections: True //TreatTypesAsStrings: //DefaultImports: Foundation,ServiceStack */ import Foundation import ServiceStack // @Route("/price/{brand}", "GET") public class GetPrice : IReturn, Codable { public typealias Return = GetPriceResponse /** * Brand */ // @ApiMember(Description="Brand", IsRequired=true) public var brand:String /** * POS Legacy */ // @ApiMember(Description="POS Legacy", IsRequired=true) public var posCode:String /** * List of Article Codes */ // @ApiMember(Description="List of Article Codes", IsRequired=true) public var articleCodes:[String] = [] /** * Include Dealer Cost Price in the response */ // @ApiMember(Description="Include Dealer Cost Price in the response", IsRequired=true) public var includeDealerCostPrice:Bool required public init(){} } public class GetPriceResponse : List { required public init(){ super.init() } required public init(from decoder: Decoder) throws { try super.init(from: decoder) } public override func encode(to encoder: Encoder) throws { try super.encode(to: encoder) } } public class Price : Codable { /** * Reference Code of the item */ // @ApiMember(Description="Reference Code of the item", IsRequired=true) public var articleCode:String /** * Currency of the price */ // @ApiMember(Description="Currency of the price", IsRequired=true) public var currency:String /** * Retail price of the item */ // @ApiMember(Description="Retail price of the item") public var retailSalePrice:Double /** * Code of currency applied */ // @ApiMember(Description="Code of currency applied", IsRequired=true) public var priceListCode:String /** * Dealer Cost Price */ // @ApiMember(Description="Dealer Cost Price") public var dealerCostPrice:DealerCostPrice required public init(){} } public class DealerCostPrice : Codable { /** * Currency of the Dealer Cost Price */ // @ApiMember(Description="Currency of the Dealer Cost Price", IsRequired=true) public var currency:String /** * Dealer Cost Price of the item */ // @ApiMember(Description="Dealer Cost Price of the item", IsRequired=true) public var price:Double? required public init(){} }