/* Options: Date: 2026-05-19 09:54:46 Version: 8.22 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://dev-api-booster.richemont.com //Package: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: GetStockPaginated.* //ExcludeTypes: //InitializeCollections: True //TreatTypesAsStrings: //DefaultImports: java.math.*,java.util.*,net.servicestack.client.*,com.google.gson.annotations.*,com.google.gson.reflect.* */ import java.math.* import java.util.* import net.servicestack.client.* import com.google.gson.annotations.* import com.google.gson.reflect.* @Route(Path="/stock/{brand}/{posCode}", Verbs="GET") open class GetStockPaginated : IReturn, IPagedRequest { /** * Brand */ @ApiMember(Description="Brand", IsRequired=true) var brand:String? = null /** * POS Legacy */ @ApiMember(Description="POS Legacy", IsRequired=true) var posCode:String? = null /** * Search Key (Article or SerialNumber) */ @ApiMember(Description="Search Key (Article or SerialNumber)") var searchKey:String? = null /** * Index of the result set returned */ @ApiMember(Description="Index of the result set returned") var page:Int? = null /** * Size of the result set returned */ @ApiMember(Description="Size of the result set returned") var items:Int? = null /** * Omit precise record count - save on performance */ @ApiMember(Description="Omit precise record count - save on performance") var noCount:Boolean? = null /** * Sorting expression */ @ApiMember(Description="Sorting expression") var sortBy:String? = null /** * Parameter - Include Chain POSes Stock */ @ApiMember(Description="Parameter - Include Chain POSes Stock ") var includeChainPosesStock:Boolean? = null /** * Include Retail Sales Price in the Output, by default: false */ @ApiMember(Description="Include Retail Sales Price in the Output, by default: false") var includeRSP:Boolean? = null companion object { private val responseType = GetStockPaginatedResponse::class.java } override fun getResponseType(): Any? = GetStockPaginated.responseType } open class GetStockPaginatedResponse { /** * Total Pages */ @ApiMember(Description="Total Pages", IsRequired=true) var totalPages:Int? = null /** * Total Results */ @ApiMember(Description="Total Results", IsRequired=true) var totalResults:Int? = null /** * Index of the result set returned */ @ApiMember(Description="Index of the result set returned", IsRequired=true) var page:Int? = null /** * Size of the result set returned */ @ApiMember(Description="Size of the result set returned", IsRequired=true) var items:Int? = null /** * List of movements */ @ApiMember(Description="List of movements", IsRequired=true) var elements:ArrayList = ArrayList() } open interface IPagedRequest { var page:Int? var items:Int? var noCount:Boolean? var sortBy:String? } open class PaginatedStockElement { /** * Pos Code */ @ApiMember(Description="Pos Code", IsRequired=true) var posCode:String? = null /** * Pos Code To Be Displayed */ @ApiMember(Description="Pos Code To Be Displayed", IsRequired=true) var posCodeToBeDisplayed:String? = null /** * Article Code */ @ApiMember(Description="Article Code", IsRequired=true) var articleCode:String? = null /** * Serial Number */ @ApiMember(Description="Serial Number") var serialNumber:String? = null /** * Current Stock Quantity */ @ApiMember(Description="Current Stock Quantity", IsRequired=true) var quantity:Int? = null /** * Type e.g. consignment or standard */ @ApiMember(Description="Type e.g. consignment or standard", IsRequired=true) @SerializedName("type") var Type:String? = null /** * Is Consignment Sellable */ @ApiMember(Description="Is Consignment Sellable ", IsRequired=true) var isConsignmentSellable:Boolean? = null /** * Retail Sales Price */ @ApiMember(Description="Retail Sales Price", IsRequired=true) var retailSalesPrice:RetailSalesPrice? = null } open class RetailSalesPrice { /** * Currency Iso Code */ @ApiMember(Description="Currency Iso Code", IsRequired=true) var currencyIsoCode:String? = null /** * Value */ @ApiMember(Description="Value", IsRequired=true) var value:BigDecimal? = null }