/* Options: Date: 2026-08-27 07:11:24 SwiftVersion: 6.0 Version: 10.08 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://dev-api-booster.richemont.com //BaseClass: //AddModelExtensions: True //AddServiceStackTypes: True //MakePropertiesOptional: True IncludeTypes: GetWarehouseStock.* //ExcludeTypes: //ExcludeGenericBaseTypes: False //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True //InitializeCollections: False //TreatTypesAsStrings: //DefaultImports: Foundation,ServiceStack */ import Foundation import ServiceStack // @Route("/warehouseItems/{brand}/{posCode}", "GET") public class GetWarehouseStock : IReturn, IPagedRequest, Codable { public typealias Return = GetWarehouseStockResponse /** * 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") public var articleCodes:[String]? /** * Index of the result set returned */ // @ApiMember(Description="Index of the result set returned") public var page:Int? /** * Size of the result set returned */ // @ApiMember(Description="Size of the result set returned") public var items:Int? /** * Omit precise record count - save on performance */ // @ApiMember(Description="Omit precise record count - save on performance") public var noCount:Bool? /** * Sorting expression */ // @ApiMember(Description="Sorting expression") public var sortBy:String? required public init(){} } public class GetWarehouseStockResponse : Codable { /** * Total Pages */ // @ApiMember(Description="Total Pages", IsRequired=true) public var totalPages:Int? /** * Total Results */ // @ApiMember(Description="Total Results", IsRequired=true) public var totalResults:Int? /** * Index of the result set returned */ // @ApiMember(Description="Index of the result set returned", IsRequired=true) public var page:Int? /** * Size of the result set returned */ // @ApiMember(Description="Size of the result set returned", IsRequired=true) public var items:Int? /** * List of movements */ // @ApiMember(Description="List of movements", IsRequired=true) public var elements:[WarehouseStockElement]? required public init(){} } public protocol IPagedRequest { var page:Int? { get set } var items:Int? { get set } var noCount:Bool? { get set } var sortBy:String? { get set } } public class WarehouseStockElement : Codable { /** * Article Code */ // @ApiMember(Description="Article Code", IsRequired=true) public var articleCode:String? /** * Current Stock Quantity */ // @ApiMember(Description="Current Stock Quantity", IsRequired=true) public var atpQuantity:Int? required public init(){} }