/* Options: Date: 2026-05-19 10:46:10 Version: 8.22 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: GetPrice.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class DealerCostPrice implements IConvertible { /** * Currency of the Dealer Cost Price */ // @ApiMember(Description="Currency of the Dealer Cost Price", IsRequired=true) String? currency; /** * Dealer Cost Price of the item */ // @ApiMember(Description="Dealer Cost Price of the item", IsRequired=true) double? price; DealerCostPrice({this.currency,this.price}); DealerCostPrice.fromJson(Map json) { fromMap(json); } fromMap(Map json) { currency = json['currency']; price = JsonConverters.toDouble(json['price']); return this; } Map toJson() => { 'currency': currency, 'price': price }; getTypeName() => "DealerCostPrice"; TypeContext? context = _ctx; } class Price implements IConvertible { /** * Reference Code of the item */ // @ApiMember(Description="Reference Code of the item", IsRequired=true) String? articleCode; /** * Currency of the price */ // @ApiMember(Description="Currency of the price", IsRequired=true) String? currency; /** * Retail price of the item */ // @ApiMember(Description="Retail price of the item") double? retailSalePrice; /** * Code of currency applied */ // @ApiMember(Description="Code of currency applied", IsRequired=true) String? priceListCode; /** * Dealer Cost Price */ // @ApiMember(Description="Dealer Cost Price") DealerCostPrice? dealerCostPrice; Price({this.articleCode,this.currency,this.retailSalePrice,this.priceListCode,this.dealerCostPrice}); Price.fromJson(Map json) { fromMap(json); } fromMap(Map json) { articleCode = json['articleCode']; currency = json['currency']; retailSalePrice = JsonConverters.toDouble(json['retailSalePrice']); priceListCode = json['priceListCode']; dealerCostPrice = JsonConverters.fromJson(json['dealerCostPrice'],'DealerCostPrice',context!); return this; } Map toJson() => { 'articleCode': articleCode, 'currency': currency, 'retailSalePrice': retailSalePrice, 'priceListCode': priceListCode, 'dealerCostPrice': JsonConverters.toJson(dealerCostPrice,'DealerCostPrice',context!) }; getTypeName() => "Price"; TypeContext? context = _ctx; } class GetPriceResponse extends ListBase implements IConvertible { final List l = []; set length(int newLength) { l.length = newLength; } int get length => l.length; Price operator [](int index) => l[index]; void operator []=(int index, Price value) { l[index] = value; } GetPriceResponse(); GetPriceResponse.fromJson(Map json) : super(); fromMap(Map json) { return this; } Map toJson() => {}; getTypeName() => "GetPriceResponse"; TypeContext? context = _ctx; } // @Route("/price/{brand}", "GET") class GetPrice implements IReturn, IConvertible, IGet { /** * Brand */ // @ApiMember(Description="Brand", IsRequired=true) String? brand; /** * POS Legacy */ // @ApiMember(Description="POS Legacy", IsRequired=true) String? posCode; /** * List of Article Codes */ // @ApiMember(Description="List of Article Codes", IsRequired=true) List? articleCodes; /** * Include Dealer Cost Price in the response */ // @ApiMember(Description="Include Dealer Cost Price in the response", IsRequired=true) bool? includeDealerCostPrice; GetPrice({this.brand,this.posCode,this.articleCodes,this.includeDealerCostPrice}); GetPrice.fromJson(Map json) { fromMap(json); } fromMap(Map json) { brand = json['brand']; posCode = json['posCode']; articleCodes = JsonConverters.fromJson(json['articleCodes'],'List',context!); includeDealerCostPrice = json['includeDealerCostPrice']; return this; } Map toJson() => { 'brand': brand, 'posCode': posCode, 'articleCodes': JsonConverters.toJson(articleCodes,'List',context!), 'includeDealerCostPrice': includeDealerCostPrice }; createResponse() => GetPriceResponse(); getResponseTypeName() => "GetPriceResponse"; getTypeName() => "GetPrice"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'dev_api_booster.richemont.com', types: { 'DealerCostPrice': TypeInfo(TypeOf.Class, create:() => DealerCostPrice()), 'Price': TypeInfo(TypeOf.Class, create:() => Price()), 'GetPriceResponse': TypeInfo(TypeOf.Class, create:() => GetPriceResponse()), 'GetPrice': TypeInfo(TypeOf.Class, create:() => GetPrice()), });