/* Options: Date: 2025-05-10 05:10:37 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: CustomerOrderFulfillmentRequest.* //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 CustomerOrderItem implements IConvertible { // @DataMember int? Id; // @DataMember String? Item; // @DataMember String? Description; // @DataMember double? Price; // @DataMember double? Quantity; // @DataMember double? QuantityPicked; CustomerOrderItem({this.Id,this.Item,this.Description,this.Price,this.Quantity,this.QuantityPicked}); CustomerOrderItem.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Id = json['Id']; Item = json['Item']; Description = json['Description']; Price = JsonConverters.toDouble(json['Price']); Quantity = JsonConverters.toDouble(json['Quantity']); QuantityPicked = JsonConverters.toDouble(json['QuantityPicked']); return this; } Map toJson() => { 'Id': Id, 'Item': Item, 'Description': Description, 'Price': Price, 'Quantity': Quantity, 'QuantityPicked': QuantityPicked }; getTypeName() => "CustomerOrderItem"; TypeContext? context = _ctx; } // @DataContract class CustomerWebOrder implements IConvertible { // @DataMember String? WebOrder; // @DataMember String? CustomerName; // @DataMember DateTime? DateTime; // @DataMember List? Items; CustomerWebOrder({this.WebOrder,this.CustomerName,this.DateTime,this.Items}); CustomerWebOrder.fromJson(Map json) { fromMap(json); } fromMap(Map json) { WebOrder = json['WebOrder']; CustomerName = json['CustomerName']; DateTime = JsonConverters.fromJson(json['DateTime'],'DateTime',context!); Items = JsonConverters.fromJson(json['Items'],'List',context!); return this; } Map toJson() => { 'WebOrder': WebOrder, 'CustomerName': CustomerName, 'DateTime': JsonConverters.toJson(DateTime,'DateTime',context!), 'Items': JsonConverters.toJson(Items,'List',context!) }; getTypeName() => "CustomerWebOrder"; TypeContext? context = _ctx; } // @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 CustomerOrderFulfillmentResponse extends BaseResponse implements IConvertible { // @DataMember String? WebOrder; // @DataMember String? CustomerName; // @DataMember DateTime? DateTime; // @DataMember List? Items; // @DataMember List? Orders; CustomerOrderFulfillmentResponse({this.WebOrder,this.CustomerName,this.DateTime,this.Items,this.Orders}); CustomerOrderFulfillmentResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); WebOrder = json['WebOrder']; CustomerName = json['CustomerName']; DateTime = JsonConverters.fromJson(json['DateTime'],'DateTime',context!); Items = JsonConverters.fromJson(json['Items'],'List',context!); Orders = JsonConverters.fromJson(json['Orders'],'List',context!); return this; } Map toJson() => super.toJson()..addAll({ 'WebOrder': WebOrder, 'CustomerName': CustomerName, 'DateTime': JsonConverters.toJson(DateTime,'DateTime',context!), 'Items': JsonConverters.toJson(Items,'List',context!), 'Orders': JsonConverters.toJson(Orders,'List',context!) }); getTypeName() => "CustomerOrderFulfillmentResponse"; TypeContext? context = _ctx; } /** * CustomerOrderFulfillmentRequires active-e 3rd Party E-Commerce or active-e Vortx E-Commerce. */ // @Route("/CustomerOrderFulfillment", "GET") // @DataContract class CustomerOrderFulfillmentRequest extends BaseSecureRequest implements IReturn, IConvertible, IGet { /** * Pass in if only looking for one weborder. Otherwise do not pass in. */ // @DataMember // @ApiMember(Description="Pass in if only looking for one weborder. Otherwise do not pass in.", Name="WebOrder", ParameterType="query") String? WebOrder; /** * Starting offset for Pagination. Defaults to 0. */ // @DataMember // @ApiMember(Description="Starting offset for Pagination. Defaults to 0.", Name="StartOffset", ParameterType="query") int? StartOffset; /** * Records to be returned. Default to 100. */ // @DataMember // @ApiMember(Description="Records to be returned. Default to 100.", Name="RecordCount", ParameterType="query") int? RecordCount; /** * If sent, fully picked orders will not be returned. */ // @DataMember // @ApiMember(Description="If sent, fully picked orders will not be returned.", Name="ExcludeFullyPickedOrders", ParameterType="query") bool? ExcludeFullyPickedOrders; CustomerOrderFulfillmentRequest({this.WebOrder,this.StartOffset,this.RecordCount,this.ExcludeFullyPickedOrders}); CustomerOrderFulfillmentRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); WebOrder = json['WebOrder']; StartOffset = json['StartOffset']; RecordCount = json['RecordCount']; ExcludeFullyPickedOrders = json['ExcludeFullyPickedOrders']; return this; } Map toJson() => super.toJson()..addAll({ 'WebOrder': WebOrder, 'StartOffset': StartOffset, 'RecordCount': RecordCount, 'ExcludeFullyPickedOrders': ExcludeFullyPickedOrders }); createResponse() => CustomerOrderFulfillmentResponse(); getResponseTypeName() => "CustomerOrderFulfillmentResponse"; getTypeName() => "CustomerOrderFulfillmentRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'active_ewebservice.biz', types: { 'BaseRequest': TypeInfo(TypeOf.Class, create:() => BaseRequest()), 'BaseSecureRequest': TypeInfo(TypeOf.Class, create:() => BaseSecureRequest()), 'CustomerOrderItem': TypeInfo(TypeOf.Class, create:() => CustomerOrderItem()), 'CustomerWebOrder': TypeInfo(TypeOf.Class, create:() => CustomerWebOrder()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'BaseResponse': TypeInfo(TypeOf.Class, create:() => BaseResponse()), 'BaseResponseResult': TypeInfo(TypeOf.Class, create:() => BaseResponseResult()), 'CustomerOrderFulfillmentResponse': TypeInfo(TypeOf.Class, create:() => CustomerOrderFulfillmentResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'CustomerOrderFulfillmentRequest': TypeInfo(TypeOf.Class, create:() => CustomerOrderFulfillmentRequest()), });