/* Options: Date: 2026-05-19 09:52:52 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: GetWarehouseStock.* //ExcludeTypes: //ExcludeGenericBaseTypes: False //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True //InitializeCollections: True //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(){} }