/* Options: Date: 2026-08-27 08:00:29 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: ImportRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class ImportRequestResponse implements IConvertible { /** * Unique Identifier of the Import Sell-Out and Customer request created */ // @ApiMember(Description="Unique Identifier of the Import Sell-Out and Customer request created", IsRequired=true) String asyncTaskId = ""; ImportRequestResponse({this.asyncTaskId=""}); ImportRequestResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { asyncTaskId = json['asyncTaskId'] ?? ""; return this; } Map toJson() => { 'asyncTaskId': asyncTaskId }; getTypeName() => "ImportRequestResponse"; TypeContext? context = _ctx; } // @Route("/tasks/{brand}/importrequest", "POST") class ImportRequest implements IReturn, IConvertible, IPost { /** * Brand Trigram, e.g. CAR, IWC */ // @ApiMember(Description="Brand Trigram, e.g. CAR, IWC", IsRequired=true) String brand = ""; /** * Public key of the file in cloud server */ // @ApiMember(Description="Public key of the file in cloud server", IsRequired=true) String externalFileId = ""; /** * Type of import e.g. 'SelloutAndCustomer', 'Sellout' */ // @ApiMember(Description="Type of import e.g. 'SelloutAndCustomer', 'Sellout'", IsRequired=true) String type = ""; /** * B2 document reference to link the file with the Salesforce record */ // @ApiMember(Description="B2 document reference to link the file with the Salesforce record") String? downloadRequestId; ImportRequest({this.brand="",this.externalFileId="",this.type="",this.downloadRequestId}); ImportRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { brand = json['brand'] ?? ""; externalFileId = json['externalFileId'] ?? ""; type = json['type'] ?? ""; downloadRequestId = json['downloadRequestId']; return this; } Map toJson() => { 'brand': brand, 'externalFileId': externalFileId, 'type': type, 'downloadRequestId': downloadRequestId }; createResponse() => ImportRequestResponse(); getResponseTypeName() => "ImportRequestResponse"; getTypeName() => "ImportRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'dev_api_booster.richemont.com', types: { 'ImportRequestResponse': TypeInfo(TypeOf.Class, create:() => ImportRequestResponse()), 'ImportRequest': TypeInfo(TypeOf.Class, create:() => ImportRequest()), });