/* Options: Date: 2024-11-13 01:21:10 Version: 8.40 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://active-ewebservice.biz/aeservices30/api //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: ScanForImportRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; // @DataContract class BaseRequest implements IConvertible { /** * This is your AIM API Key provided by Tri-Tech */ // @DataMember // @ApiMember(DataType="string", Description="This is your AIM API Key provided by Tri-Tech", IsRequired=true, Name="ApiKey", ParameterType="header") String? ApiKey; // @DataMember // @ApiMember(DataType="string", Name="OAuthToken", ParameterType="header") String? OAuthToken; BaseRequest({this.ApiKey,this.OAuthToken}); BaseRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ApiKey = json['ApiKey']; OAuthToken = json['OAuthToken']; return this; } Map toJson() => { 'ApiKey': ApiKey, 'OAuthToken': OAuthToken }; getTypeName() => "BaseRequest"; TypeContext? context = _ctx; } // @DataContract class BaseSecureRequest extends BaseRequest implements IConvertible { /** * */ // @DataMember // @ApiMember(DataType="string", Description="", Name="Token", ParameterType="Header") String? Token; /** * */ // @DataMember // @ApiMember(DataType="string", Description="", Name="DeviceId", ParameterType="Header") String? DeviceId; /** * */ // @DataMember // @ApiMember(DataType="string", Description="", IsRequired=true, Name="AppId", ParameterType="Header") String? AppId; BaseSecureRequest({this.Token,this.DeviceId,this.AppId}); BaseSecureRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); Token = json['Token']; DeviceId = json['DeviceId']; AppId = json['AppId']; return this; } Map toJson() => super.toJson()..addAll({ 'Token': Token, 'DeviceId': DeviceId, 'AppId': AppId }); getTypeName() => "BaseSecureRequest"; TypeContext? context = _ctx; } // @DataContract class ExceptionInfo implements IConvertible { // @DataMember String? Barcode; // @DataMember String? Description; // @DataMember String? Base64Image; // @DataMember int? Category; // @DataMember int? SubCategory; ExceptionInfo({this.Barcode,this.Description,this.Base64Image,this.Category,this.SubCategory}); ExceptionInfo.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Barcode = json['Barcode']; Description = json['Description']; Base64Image = json['Base64Image']; Category = json['Category']; SubCategory = json['SubCategory']; return this; } Map toJson() => { 'Barcode': Barcode, 'Description': Description, 'Base64Image': Base64Image, 'Category': Category, 'SubCategory': SubCategory }; getTypeName() => "ExceptionInfo"; TypeContext? context = _ctx; } // @DataContract class ScanItem implements IScanItem, IConvertible { // @DataMember int? SkuPk; // @DataMember int? SasPk; // @DataMember String? Sku; // @DataMember String? Serial; // @DataMember double? Quantity; // @DataMember ExceptionInfo? ExceptionInfo; ScanItem({this.SkuPk,this.SasPk,this.Sku,this.Serial,this.Quantity,this.ExceptionInfo}); ScanItem.fromJson(Map json) { fromMap(json); } fromMap(Map json) { SkuPk = json['SkuPk']; SasPk = json['SasPk']; Sku = json['Sku']; Serial = json['Serial']; Quantity = JsonConverters.toDouble(json['Quantity']); ExceptionInfo = JsonConverters.fromJson(json['ExceptionInfo'],'ExceptionInfo',context!); return this; } Map toJson() => { 'SkuPk': SkuPk, 'SasPk': SasPk, 'Sku': Sku, 'Serial': Serial, 'Quantity': Quantity, 'ExceptionInfo': JsonConverters.toJson(ExceptionInfo,'ExceptionInfo',context!) }; getTypeName() => "ScanItem"; TypeContext? context = _ctx; } // @DataContract class ScanErrorItem implements IScanItem, IConvertible { // @DataMember int? SkuPk; // @DataMember int? SasPk; // @DataMember String? Sku; // @DataMember String? Serial; // @DataMember double? Quantity; // @DataMember ExceptionInfo? ExceptionInfo; // @DataMember String? ErrorMessage; ScanErrorItem({this.SkuPk,this.SasPk,this.Sku,this.Serial,this.Quantity,this.ExceptionInfo,this.ErrorMessage}); ScanErrorItem.fromJson(Map json) { fromMap(json); } fromMap(Map json) { SkuPk = json['SkuPk']; SasPk = json['SasPk']; Sku = json['Sku']; Serial = json['Serial']; Quantity = JsonConverters.toDouble(json['Quantity']); ExceptionInfo = JsonConverters.fromJson(json['ExceptionInfo'],'ExceptionInfo',context!); ErrorMessage = json['ErrorMessage']; return this; } Map toJson() => { 'SkuPk': SkuPk, 'SasPk': SasPk, 'Sku': Sku, 'Serial': Serial, 'Quantity': Quantity, 'ExceptionInfo': JsonConverters.toJson(ExceptionInfo,'ExceptionInfo',context!), 'ErrorMessage': ErrorMessage }; getTypeName() => "ScanErrorItem"; TypeContext? context = _ctx; } abstract class IScanItem { int? SkuPk; int? SasPk; String? Sku; String? Serial; double? Quantity; ExceptionInfo? ExceptionInfo; } // @DataContract class BaseResponse implements IConvertible { /** * */ // @DataMember // @ApiMember(DataType="BaseResponseResult", Description="", Name="Status", ParameterType="body") BaseResponseResult? Status; BaseResponse({this.Status}); BaseResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Status = JsonConverters.fromJson(json['Status'],'BaseResponseResult',context!); return this; } Map toJson() => { 'Status': JsonConverters.toJson(Status,'BaseResponseResult',context!) }; getTypeName() => "BaseResponse"; TypeContext? context = _ctx; } // @DataContract class ScanForImportResponse extends BaseResponse implements IConvertible { // @DataMember List? ErrorItems; ScanForImportResponse({this.ErrorItems}); ScanForImportResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); ErrorItems = JsonConverters.fromJson(json['ErrorItems'],'List',context!); return this; } Map toJson() => super.toJson()..addAll({ 'ErrorItems': JsonConverters.toJson(ErrorItems,'List',context!) }); getTypeName() => "ScanForImportResponse"; TypeContext? context = _ctx; } /** * ScanForImportRequires active-e Inventory Service */ // @Route("/ScanForImport", "POST") // @DataContract class ScanForImportRequest extends BaseSecureRequest implements IReturn, IConvertible, IPost { // @DataMember String? Description; // @DataMember List? Items; // @DataMember bool? ReceiveInventoryMode; // @DataMember bool? AppendMode; ScanForImportRequest({this.Description,this.Items,this.ReceiveInventoryMode,this.AppendMode}); ScanForImportRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); Description = json['Description']; Items = JsonConverters.fromJson(json['Items'],'List',context!); ReceiveInventoryMode = json['ReceiveInventoryMode']; AppendMode = json['AppendMode']; return this; } Map toJson() => super.toJson()..addAll({ 'Description': Description, 'Items': JsonConverters.toJson(Items,'List',context!), 'ReceiveInventoryMode': ReceiveInventoryMode, 'AppendMode': AppendMode }); createResponse() => ScanForImportResponse(); getResponseTypeName() => "ScanForImportResponse"; getTypeName() => "ScanForImportRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'active_ewebservice.biz', types: { 'BaseRequest': TypeInfo(TypeOf.Class, create:() => BaseRequest()), 'BaseSecureRequest': TypeInfo(TypeOf.Class, create:() => BaseSecureRequest()), 'ExceptionInfo': TypeInfo(TypeOf.Class, create:() => ExceptionInfo()), 'ScanItem': TypeInfo(TypeOf.Class, create:() => ScanItem()), 'ScanErrorItem': TypeInfo(TypeOf.Class, create:() => ScanErrorItem()), 'IScanItem': TypeInfo(TypeOf.Interface), 'BaseResponse': TypeInfo(TypeOf.Class, create:() => BaseResponse()), 'BaseResponseResult': TypeInfo(TypeOf.Class, create:() => BaseResponseResult()), 'ScanForImportResponse': TypeInfo(TypeOf.Class, create:() => ScanForImportResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'ScanForImportRequest': TypeInfo(TypeOf.Class, create:() => ScanForImportRequest()), 'List': TypeInfo(TypeOf.Class, create:() => []), });