/* Options: Date: 2026-10-06 07:23:51 Version: 10.08 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: GetBuyInPaginated.* //ExcludeTypes: //InitializeCollections: False //TreatTypesAsStrings: //DefaultImports: java.math.*,java.util.*,java.io.InputStream,net.servicestack.client.* */ import java.math.* import java.util.* import java.io.InputStream import net.servicestack.client.* @Route(Path="/buyin/{brand}", Verbs="GET") open class GetBuyInPaginated : IReturn { /** * Richemont Brand ID */ @ApiMember(Description="Richemont Brand ID") open var brand:String? = null /** * Richemont POS code */ @ApiMember(Description="Richemont POS code", IsRequired=true) open var posCode:String? = null /** * Richemont Reference Code of the item */ @ApiMember(Description="Richemont Reference Code of the item") open var articleCode:String? = null /** * Serial Number of the item */ @ApiMember(Description="Serial Number of the item") open var serialNumber:String? = null /** * Buy-in order status code */ @ApiMember(Description="Buy-in order status code") open var buyInStatusId:String? = null /** * True is the buy-in’s piece is in stock, False otherwise */ @ApiMember(Description="True is the buy-in’s piece is in stock, False otherwise") open var isInStock:Boolean? = null /** * Index of the result set returned */ @ApiMember(Description="Index of the result set returned", IsRequired=true) open var page:Int? = null /** * Size of the result set returned */ @ApiMember(Description="Size of the result set returned", IsRequired=true) open var items:Int? = null /** * Omit precise record count - save on performance */ @ApiMember(Description="Omit precise record count - save on performance") open var noCount:Boolean? = null /** * Sort Expression, Possible values: 'SaleDetailIdDESC', 'DocumentDate'. */ @ApiMember(Description="Sort Expression, Possible values: 'SaleDetailIdDESC', 'DocumentDate'.") open var sortBy:String? = null companion object { private val responseType = GetBuyInPaginatedResponse::class.java } override fun getResponseType(): Any? = GetBuyInPaginated.responseType } open class GetBuyInPaginatedResponse { /** * Index of the result set returnedr */ @ApiMember(Description="Index of the result set returnedr", IsRequired=true) open var page:Int? = null /** * Size of the result set returned */ @ApiMember(Description="Size of the result set returned", IsRequired=true) open var items:Int? = null /** * Total amount of pages / result sets */ @ApiMember(Description="Total amount of pages / result sets", IsRequired=true) open var totalPages:Int? = null /** * Total amount of results */ @ApiMember(Description="Total amount of results", IsRequired=true) open var totalResults:Int? = null /** * List of Sale Details */ @ApiMember(Description="List of Sale Details", IsRequired=true) open var elements:ArrayList? = null } open class BuyIn { /** * Brand Trigram, e.g. CAR, IWC; compulsory only if articleCode is not provided */ @ApiMember(Description="Brand Trigram, e.g. CAR, IWC; compulsory only if articleCode is not provided", IsRequired=true) open var brand:String? = null /** * Code of BuyIn */ @ApiMember(Description="Code of BuyIn", IsRequired=true) open var buyInOrderId:Int? = null /** * Richemont POS code */ @ApiMember(Description="Richemont POS code", IsRequired=true) open var posCode:String? = null /** * Richemont Reference Code of the item */ @ApiMember(Description="Richemont Reference Code of the item", IsRequired=true) open var articleCode:String? = null /** * Serial Number of the item */ @ApiMember(Description="Serial Number of the item") open var serialNumber:String? = null /** * Buy-in order status code */ @ApiMember(Description="Buy-in order status code") open var buyInStatusId:String? = null /** * Buy-in creation date */ @ApiMember(Description="Buy-in creation date") open var buyInDate:Date? = null /** * Emails of Sale Representatives */ @ApiMember(Description="Emails of Sale Representatives") open var saleRepresentativeEmails:ArrayList = ArrayList() /** * True is the buy-in’s piece is in stock, False otherwise */ @ApiMember(Description="True is the buy-in’s piece is in stock, False otherwise") open var isInStock:Boolean? = null }