/* Options: Date: 2026-08-27 08:00:49 Version: 10.08 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://dev-api-booster.richemont.com //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: GetStockLookup.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class Pos implements IConvertible { /** * POS Code */ // @ApiMember(Description="POS Code", IsRequired=true) String posCode = ""; /** * Name of the POS */ // @ApiMember(Description="Name of the POS", IsRequired=true) String name = ""; /** * City of the POS */ // @ApiMember(Description="City of the POS", IsRequired=true) String city = ""; /** * Address of the POS */ // @ApiMember(Description="Address of the POS", IsRequired=true) String address = ""; /** * Country of the POS */ // @ApiMember(Description="Country of the POS", IsRequired=true) String country = ""; /** * Brand of the POS */ // @ApiMember(Description="Brand of the POS", IsRequired=true) String brand = ""; Pos({this.posCode="",this.name="",this.city="",this.address="",this.country="",this.brand=""}); Pos.fromJson(Map json) { fromMap(json); } fromMap(Map json) { posCode = json['posCode'] ?? ""; name = json['name'] ?? ""; city = json['city'] ?? ""; address = json['address'] ?? ""; country = json['country'] ?? ""; brand = json['brand'] ?? ""; return this; } Map toJson() => { 'posCode': posCode, 'name': name, 'city': city, 'address': address, 'country': country, 'brand': brand }; getTypeName() => "Pos"; TypeContext? context = _ctx; } class Pos implements IConvertible { /** * Name of the POS */ // @ApiMember(Description="Name of the POS", IsRequired=true) String name = ""; /** * POS Code */ // @ApiMember(Description="POS Code", IsRequired=true) String posCode = ""; /** * Pos Code To Be Displayed */ // @ApiMember(Description="Pos Code To Be Displayed", IsRequired=true) String posCodeToBeDisplayed = ""; /** * Country of the POS */ // @ApiMember(Description="Country of the POS", IsRequired=true) String country = ""; /** * City of the POS */ // @ApiMember(Description="City of the POS", IsRequired=true) String city = ""; /** * Postal Code */ // @ApiMember(Description="Postal Code", IsRequired=true) String postalCode = ""; /** * State */ // @ApiMember(Description="State", IsRequired=true) String state = ""; /** * Street */ // @ApiMember(Description="Street", IsRequired=true) String street = ""; Pos({this.name="",this.posCode="",this.posCodeToBeDisplayed="",this.country="",this.city="",this.postalCode="",this.state="",this.street=""}); Pos.fromJson(Map json) { fromMap(json); } fromMap(Map json) { name = json['name'] ?? ""; posCode = json['posCode'] ?? ""; posCodeToBeDisplayed = json['posCodeToBeDisplayed'] ?? ""; country = json['country'] ?? ""; city = json['city'] ?? ""; postalCode = json['postalCode'] ?? ""; state = json['state'] ?? ""; street = json['street'] ?? ""; return this; } Map toJson() => { 'name': name, 'posCode': posCode, 'posCodeToBeDisplayed': posCodeToBeDisplayed, 'country': country, 'city': city, 'postalCode': postalCode, 'state': state, 'street': street }; getTypeName() => "Pos"; TypeContext? context = _ctx; } class GetStockLookupResponse implements IConvertible { /** * Exists in Stock? */ // @ApiMember(Description="Exists in Stock?", IsRequired=true) bool? existsInStock; /** * Stock Locations / POSes */ // @ApiMember(Description="Stock Locations / POSes", IsRequired=true) Pos? stockLocation; GetStockLookupResponse({this.existsInStock,this.stockLocation}); GetStockLookupResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { existsInStock = json['existsInStock']; stockLocation = JsonConverters.fromJson(json['stockLocation'],'Pos',context!); return this; } Map toJson() => { 'existsInStock': existsInStock, 'stockLocation': JsonConverters.toJson(stockLocation,'Pos',context!) }; getTypeName() => "GetStockLookupResponse"; TypeContext? context = _ctx; } // @Route("/stock/{brand}/lookup", "GET") class GetStockLookup implements IReturn, IConvertible, IGet { /** * Brand */ // @ApiMember(Description="Brand", IsRequired=true) String brand = ""; /** * Article Code */ // @ApiMember(Description="Article Code", IsRequired=true) String articleCode = ""; /** * Serial Number */ // @ApiMember(Description="Serial Number", IsRequired=true) String serialNumber = ""; /** * Storage Location Identifier e.g. CPO, NEW, REP */ // @ApiMember(Description="Storage Location Identifier e.g. CPO, NEW, REP") String? storageLocationId; /** * Inventory segment e.g. CPO or null */ // @ApiMember(Description="Inventory segment e.g. CPO or null") String? inventorySegment; GetStockLookup({this.brand="",this.articleCode="",this.serialNumber="",this.storageLocationId,this.inventorySegment}); GetStockLookup.fromJson(Map json) { fromMap(json); } fromMap(Map json) { brand = json['brand'] ?? ""; articleCode = json['articleCode'] ?? ""; serialNumber = json['serialNumber'] ?? ""; storageLocationId = json['storageLocationId']; inventorySegment = json['inventorySegment']; return this; } Map toJson() => { 'brand': brand, 'articleCode': articleCode, 'serialNumber': serialNumber, 'storageLocationId': storageLocationId, 'inventorySegment': inventorySegment }; createResponse() => GetStockLookupResponse(); getResponseTypeName() => "GetStockLookupResponse"; getTypeName() => "GetStockLookup"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'dev_api_booster.richemont.com', types: { 'Pos': TypeInfo(TypeOf.Class, create:() => Pos()), 'GetStockLookupResponse': TypeInfo(TypeOf.Class, create:() => GetStockLookupResponse()), 'GetStockLookup': TypeInfo(TypeOf.Class, create:() => GetStockLookup()), });