/* Options: Date: 2026-10-22 05:42:44 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: PatchSellout.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class SaleItem implements IConvertible { /** * Unique Identifier of the Sell-out item created in Booster */ // @ApiMember(Description="Unique Identifier of the Sell-out item created in Booster", IsRequired=true) int saleDetailId = 0; /** * Sold Price to the end-client */ // @ApiMember(Description="Sold Price to the end-client") double? unitPrice; /** * Currency of the sold price to the end-client */ // @ApiMember(Description="Currency of the sold price to the end-client") String? currencyCode; SaleItem({this.saleDetailId=0,this.unitPrice,this.currencyCode}); SaleItem.fromJson(Map json) { fromMap(json); } fromMap(Map json) { saleDetailId = json['saleDetailId'] ?? 0; unitPrice = JsonConverters.toDouble(json['unitPrice']); currencyCode = json['currencyCode']; return this; } Map toJson() => { 'saleDetailId': saleDetailId, 'unitPrice': unitPrice, 'currencyCode': currencyCode }; getTypeName() => "SaleItem"; TypeContext? context = _ctx; } class PatchSelloutResponse implements IConvertible { PatchSelloutResponse(); PatchSelloutResponse.fromJson(Map json) : super(); fromMap(Map json) { return this; } Map toJson() => {}; getTypeName() => "PatchSelloutResponse"; TypeContext? context = _ctx; } // @Route("/warranty/{saleId}", "PATCH") class PatchSellout implements IReturn, IConvertible, IPatch { /** * Unique Identifier of the Sell-out created in Booster */ // @ApiMember(Description="Unique Identifier of the Sell-out created in Booster", IsRequired=true) int saleId = 0; /** * Emails of Sale Representatives */ // @ApiMember(Description="Emails of Sale Representatives") List? saleRepresentativeEmails; /** * Promoter Type ID */ // @ApiMember(Description="Promoter Type ID") String? promoterTypeId; /** * Items list of the sale */ // @ApiMember(Description="Items list of the sale") List? saleItems; PatchSellout({this.saleId=0,this.saleRepresentativeEmails,this.promoterTypeId,this.saleItems}); PatchSellout.fromJson(Map json) { fromMap(json); } fromMap(Map json) { saleId = json['saleId'] ?? 0; saleRepresentativeEmails = JsonConverters.fromJson(json['saleRepresentativeEmails'],'List',context!); promoterTypeId = json['promoterTypeId']; saleItems = JsonConverters.fromJson(json['saleItems'],'List',context!); return this; } Map toJson() => { 'saleId': saleId, 'saleRepresentativeEmails': JsonConverters.toJson(saleRepresentativeEmails,'List',context!), 'promoterTypeId': promoterTypeId, 'saleItems': JsonConverters.toJson(saleItems,'List',context!) }; createResponse() => PatchSelloutResponse(); getResponseTypeName() => "PatchSelloutResponse"; getTypeName() => "PatchSellout"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'dev_api_booster.richemont.com', types: { 'SaleItem': TypeInfo(TypeOf.Class, create:() => SaleItem()), 'PatchSelloutResponse': TypeInfo(TypeOf.Class, create:() => PatchSelloutResponse()), 'PatchSellout': TypeInfo(TypeOf.Class, create:() => PatchSellout()), 'List': TypeInfo(TypeOf.Class, create:() => []), });