/* Options: Date: 2026-08-27 07:10: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: TransferStock.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class TransferStockResponse implements IConvertible { /** * Status of Stock Transfer: 1 means done, 2 means might take a while because consignment transfers need to be approved by SAP */ // @ApiMember(Description="Status of Stock Transfer: 1 means done, 2 means might take a while because consignment transfers need to be approved by SAP", IsRequired=true) int stockTransferStatusId = 0; TransferStockResponse({this.stockTransferStatusId=0}); TransferStockResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { stockTransferStatusId = json['stockTransferStatusId'] ?? 0; return this; } Map toJson() => { 'stockTransferStatusId': stockTransferStatusId }; getTypeName() => "TransferStockResponse"; TypeContext? context = _ctx; } // @Route("/stock/{brand}/transfer", "POST") class TransferStock implements IReturn, IConvertible, IPost { /** * Brand Trigram */ // @ApiMember(Description="Brand Trigram", IsRequired=true) String brand = ""; /** * POS of the stock origin */ // @ApiMember(Description="POS of the stock origin", IsRequired=true) String posCodeOrigin = ""; /** * POS of the stock destination */ // @ApiMember(Description="POS of the stock destination", IsRequired=true) String posCodeDestination = ""; /** * Article Code of the item to be transferred */ // @ApiMember(Description="Article Code of the item to be transferred", IsRequired=true) String articleCode = ""; /** * Quantity of the the item to be transferred */ // @ApiMember(Description="Quantity of the the item to be transferred", IsRequired=true) int quantity = 0; /** * Serial Numbers of the item to be transferred */ // @ApiMember(Description="Serial Numbers of the item to be transferred") List? serialNumbers; TransferStock({this.brand="",this.posCodeOrigin="",this.posCodeDestination="",this.articleCode="",this.quantity=0,this.serialNumbers}); TransferStock.fromJson(Map json) { fromMap(json); } fromMap(Map json) { brand = json['brand'] ?? ""; posCodeOrigin = json['posCodeOrigin'] ?? ""; posCodeDestination = json['posCodeDestination'] ?? ""; articleCode = json['articleCode'] ?? ""; quantity = json['quantity'] ?? 0; serialNumbers = JsonConverters.fromJson(json['serialNumbers'],'List',context!); return this; } Map toJson() => { 'brand': brand, 'posCodeOrigin': posCodeOrigin, 'posCodeDestination': posCodeDestination, 'articleCode': articleCode, 'quantity': quantity, 'serialNumbers': JsonConverters.toJson(serialNumbers,'List',context!) }; createResponse() => TransferStockResponse(); getResponseTypeName() => "TransferStockResponse"; getTypeName() => "TransferStock"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'dev_api_booster.richemont.com', types: { 'TransferStockResponse': TypeInfo(TypeOf.Class, create:() => TransferStockResponse()), 'TransferStock': TypeInfo(TypeOf.Class, create:() => TransferStock()), });