/* Options: Date: 2026-10-12 03:21:31 Version: 8.80 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.dev.dynamics.trendsic.com //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: CourierItemUnbindRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class CourierItemView implements IConvertible { int? CourierItemID; int? DispatchOdRequestID; int? Seq; String? TagCode; String? Custody; bool? IsOpen; bool? IsMissing; String? MissingReason; bool? IsManual; bool? ReTagFlag; bool? Scanned; CourierItemView({this.CourierItemID,this.DispatchOdRequestID,this.Seq,this.TagCode,this.Custody,this.IsOpen,this.IsMissing,this.MissingReason,this.IsManual,this.ReTagFlag,this.Scanned}); CourierItemView.fromJson(Map json) { fromMap(json); } fromMap(Map json) { CourierItemID = json['CourierItemID']; DispatchOdRequestID = json['DispatchOdRequestID']; Seq = json['Seq']; TagCode = json['TagCode']; Custody = json['Custody']; IsOpen = json['IsOpen']; IsMissing = json['IsMissing']; MissingReason = json['MissingReason']; IsManual = json['IsManual']; ReTagFlag = json['ReTagFlag']; Scanned = json['Scanned']; return this; } Map toJson() => { 'CourierItemID': CourierItemID, 'DispatchOdRequestID': DispatchOdRequestID, 'Seq': Seq, 'TagCode': TagCode, 'Custody': Custody, 'IsOpen': IsOpen, 'IsMissing': IsMissing, 'MissingReason': MissingReason, 'IsManual': IsManual, 'ReTagFlag': ReTagFlag, 'Scanned': Scanned }; getTypeName() => "CourierItemView"; TypeContext? context = _ctx; } class CourierStopView implements IConvertible { int? Sequence; String? Status; int? DispatchOdRequestID; String? Code; String? CourierStep; String? Address; String? Unit; String? City; String? Zip; double? Lat; double? Lng; String? CustomerName; String? CustomerPhone; String? Handoff; String? GateCode; String? Instructions; int? Units; String? DueText; String? Note; List? Needs = []; List? Items = []; CourierStopView({this.Sequence,this.Status,this.DispatchOdRequestID,this.Code,this.CourierStep,this.Address,this.Unit,this.City,this.Zip,this.Lat,this.Lng,this.CustomerName,this.CustomerPhone,this.Handoff,this.GateCode,this.Instructions,this.Units,this.DueText,this.Note,this.Needs,this.Items}); CourierStopView.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Sequence = json['Sequence']; Status = json['Status']; DispatchOdRequestID = json['DispatchOdRequestID']; Code = json['Code']; CourierStep = json['CourierStep']; Address = json['Address']; Unit = json['Unit']; City = json['City']; Zip = json['Zip']; Lat = JsonConverters.toDouble(json['Lat']); Lng = JsonConverters.toDouble(json['Lng']); CustomerName = json['CustomerName']; CustomerPhone = json['CustomerPhone']; Handoff = json['Handoff']; GateCode = json['GateCode']; Instructions = json['Instructions']; Units = json['Units']; DueText = json['DueText']; Note = json['Note']; Needs = JsonConverters.fromJson(json['Needs'],'List',context!); Items = JsonConverters.fromJson(json['Items'],'List',context!); return this; } Map toJson() => { 'Sequence': Sequence, 'Status': Status, 'DispatchOdRequestID': DispatchOdRequestID, 'Code': Code, 'CourierStep': CourierStep, 'Address': Address, 'Unit': Unit, 'City': City, 'Zip': Zip, 'Lat': Lat, 'Lng': Lng, 'CustomerName': CustomerName, 'CustomerPhone': CustomerPhone, 'Handoff': Handoff, 'GateCode': GateCode, 'Instructions': Instructions, 'Units': Units, 'DueText': DueText, 'Note': Note, 'Needs': JsonConverters.toJson(Needs,'List',context!), 'Items': JsonConverters.toJson(Items,'List',context!) }; getTypeName() => "CourierStopView"; TypeContext? context = _ctx; } class CourierRunView implements IConvertible { int? CourierRunID; String? Code; String? Status; int? CourierProfileId; String? ProfileName; int? CourierFacilityId; String? FacilityName; String? FacilityAddress; int? DriverContactId; String? DriverName; int? EquipmentID; String? VehicleUnit; String? UnitOne; String? UnitMany; int? Units; int? StopCount; int? StopsDone; double? Pay; DateTime? BuiltUtc; DateTime? StartedUtc; DateTime? CompletedUtc; int? ToLoad; int? ToReturn; List? Stops = []; CourierRunView({this.CourierRunID,this.Code,this.Status,this.CourierProfileId,this.ProfileName,this.CourierFacilityId,this.FacilityName,this.FacilityAddress,this.DriverContactId,this.DriverName,this.EquipmentID,this.VehicleUnit,this.UnitOne,this.UnitMany,this.Units,this.StopCount,this.StopsDone,this.Pay,this.BuiltUtc,this.StartedUtc,this.CompletedUtc,this.ToLoad,this.ToReturn,this.Stops}); CourierRunView.fromJson(Map json) { fromMap(json); } fromMap(Map json) { CourierRunID = json['CourierRunID']; Code = json['Code']; Status = json['Status']; CourierProfileId = json['CourierProfileId']; ProfileName = json['ProfileName']; CourierFacilityId = json['CourierFacilityId']; FacilityName = json['FacilityName']; FacilityAddress = json['FacilityAddress']; DriverContactId = json['DriverContactId']; DriverName = json['DriverName']; EquipmentID = json['EquipmentID']; VehicleUnit = json['VehicleUnit']; UnitOne = json['UnitOne']; UnitMany = json['UnitMany']; Units = json['Units']; StopCount = json['StopCount']; StopsDone = json['StopsDone']; Pay = JsonConverters.toDouble(json['Pay']); BuiltUtc = JsonConverters.fromJson(json['BuiltUtc'],'DateTime',context!); StartedUtc = JsonConverters.fromJson(json['StartedUtc'],'DateTime',context!); CompletedUtc = JsonConverters.fromJson(json['CompletedUtc'],'DateTime',context!); ToLoad = json['ToLoad']; ToReturn = json['ToReturn']; Stops = JsonConverters.fromJson(json['Stops'],'List',context!); return this; } Map toJson() => { 'CourierRunID': CourierRunID, 'Code': Code, 'Status': Status, 'CourierProfileId': CourierProfileId, 'ProfileName': ProfileName, 'CourierFacilityId': CourierFacilityId, 'FacilityName': FacilityName, 'FacilityAddress': FacilityAddress, 'DriverContactId': DriverContactId, 'DriverName': DriverName, 'EquipmentID': EquipmentID, 'VehicleUnit': VehicleUnit, 'UnitOne': UnitOne, 'UnitMany': UnitMany, 'Units': Units, 'StopCount': StopCount, 'StopsDone': StopsDone, 'Pay': Pay, 'BuiltUtc': JsonConverters.toJson(BuiltUtc,'DateTime',context!), 'StartedUtc': JsonConverters.toJson(StartedUtc,'DateTime',context!), 'CompletedUtc': JsonConverters.toJson(CompletedUtc,'DateTime',context!), 'ToLoad': ToLoad, 'ToReturn': ToReturn, 'Stops': JsonConverters.toJson(Stops,'List',context!) }; getTypeName() => "CourierRunView"; TypeContext? context = _ctx; } class CourierVanView implements IConvertible { String? State; DateTime? LeaveByUtc; String? LeaveByText; int? SlackMin; int? InVan; int? Committed; double? Cap; String? CapUnit; String? VehicleUnit; String? CriticalCode; int? DriveMin; String? FacilityName; String? SendNote; CourierVanView({this.State,this.LeaveByUtc,this.LeaveByText,this.SlackMin,this.InVan,this.Committed,this.Cap,this.CapUnit,this.VehicleUnit,this.CriticalCode,this.DriveMin,this.FacilityName,this.SendNote}); CourierVanView.fromJson(Map json) { fromMap(json); } fromMap(Map json) { State = json['State']; LeaveByUtc = JsonConverters.fromJson(json['LeaveByUtc'],'DateTime',context!); LeaveByText = json['LeaveByText']; SlackMin = json['SlackMin']; InVan = json['InVan']; Committed = json['Committed']; Cap = JsonConverters.toDouble(json['Cap']); CapUnit = json['CapUnit']; VehicleUnit = json['VehicleUnit']; CriticalCode = json['CriticalCode']; DriveMin = json['DriveMin']; FacilityName = json['FacilityName']; SendNote = json['SendNote']; return this; } Map toJson() => { 'State': State, 'LeaveByUtc': JsonConverters.toJson(LeaveByUtc,'DateTime',context!), 'LeaveByText': LeaveByText, 'SlackMin': SlackMin, 'InVan': InVan, 'Committed': Committed, 'Cap': Cap, 'CapUnit': CapUnit, 'VehicleUnit': VehicleUnit, 'CriticalCode': CriticalCode, 'DriveMin': DriveMin, 'FacilityName': FacilityName, 'SendNote': SendNote }; getTypeName() => "CourierVanView"; TypeContext? context = _ctx; } class CourierDriverOrder implements IConvertible { String? Code; String? CourierStep; String? RouteShape; String? ProfileName; String? UnitOne; String? UnitMany; String? FacilityNoun; String? FacilityName; String? LevelName; DateTime? DueUtc; String? DueText; int? Units; int? UnitsFound; String? Area; int? Minutes; String? Address; String? Unit; String? City; double? Lat; double? Lng; String? CustomerName; String? CustomerPhone; String? Handoff; String? GateCode; String? Instructions; String? DropoffAddress; String? DropoffContactName; double? DropLat; double? DropLng; DateTime? ArrivedUtc; List? Tags = []; Map? Proof = {}; Map? Photos = {}; List? Needs = []; int? MissedWaitMin; bool? MissedRequireContact; bool? MissedRequirePhoto; double? MissedFee; CourierDriverOrder({this.Code,this.CourierStep,this.RouteShape,this.ProfileName,this.UnitOne,this.UnitMany,this.FacilityNoun,this.FacilityName,this.LevelName,this.DueUtc,this.DueText,this.Units,this.UnitsFound,this.Area,this.Minutes,this.Address,this.Unit,this.City,this.Lat,this.Lng,this.CustomerName,this.CustomerPhone,this.Handoff,this.GateCode,this.Instructions,this.DropoffAddress,this.DropoffContactName,this.DropLat,this.DropLng,this.ArrivedUtc,this.Tags,this.Proof,this.Photos,this.Needs,this.MissedWaitMin,this.MissedRequireContact,this.MissedRequirePhoto,this.MissedFee}); CourierDriverOrder.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Code = json['Code']; CourierStep = json['CourierStep']; RouteShape = json['RouteShape']; ProfileName = json['ProfileName']; UnitOne = json['UnitOne']; UnitMany = json['UnitMany']; FacilityNoun = json['FacilityNoun']; FacilityName = json['FacilityName']; LevelName = json['LevelName']; DueUtc = JsonConverters.fromJson(json['DueUtc'],'DateTime',context!); DueText = json['DueText']; Units = json['Units']; UnitsFound = json['UnitsFound']; Area = json['Area']; Minutes = json['Minutes']; Address = json['Address']; Unit = json['Unit']; City = json['City']; Lat = JsonConverters.toDouble(json['Lat']); Lng = JsonConverters.toDouble(json['Lng']); CustomerName = json['CustomerName']; CustomerPhone = json['CustomerPhone']; Handoff = json['Handoff']; GateCode = json['GateCode']; Instructions = json['Instructions']; DropoffAddress = json['DropoffAddress']; DropoffContactName = json['DropoffContactName']; DropLat = JsonConverters.toDouble(json['DropLat']); DropLng = JsonConverters.toDouble(json['DropLng']); ArrivedUtc = JsonConverters.fromJson(json['ArrivedUtc'],'DateTime',context!); Tags = JsonConverters.fromJson(json['Tags'],'List',context!); Proof = JsonConverters.toStringMap(json['Proof']); Photos = JsonConverters.fromJson(json['Photos'],'Map',context!); Needs = JsonConverters.fromJson(json['Needs'],'List',context!); MissedWaitMin = json['MissedWaitMin']; MissedRequireContact = json['MissedRequireContact']; MissedRequirePhoto = json['MissedRequirePhoto']; MissedFee = JsonConverters.toDouble(json['MissedFee']); return this; } Map toJson() => { 'Code': Code, 'CourierStep': CourierStep, 'RouteShape': RouteShape, 'ProfileName': ProfileName, 'UnitOne': UnitOne, 'UnitMany': UnitMany, 'FacilityNoun': FacilityNoun, 'FacilityName': FacilityName, 'LevelName': LevelName, 'DueUtc': JsonConverters.toJson(DueUtc,'DateTime',context!), 'DueText': DueText, 'Units': Units, 'UnitsFound': UnitsFound, 'Area': Area, 'Minutes': Minutes, 'Address': Address, 'Unit': Unit, 'City': City, 'Lat': Lat, 'Lng': Lng, 'CustomerName': CustomerName, 'CustomerPhone': CustomerPhone, 'Handoff': Handoff, 'GateCode': GateCode, 'Instructions': Instructions, 'DropoffAddress': DropoffAddress, 'DropoffContactName': DropoffContactName, 'DropLat': DropLat, 'DropLng': DropLng, 'ArrivedUtc': JsonConverters.toJson(ArrivedUtc,'DateTime',context!), 'Tags': JsonConverters.toJson(Tags,'List',context!), 'Proof': Proof, 'Photos': JsonConverters.toJson(Photos,'Map',context!), 'Needs': JsonConverters.toJson(Needs,'List',context!), 'MissedWaitMin': MissedWaitMin, 'MissedRequireContact': MissedRequireContact, 'MissedRequirePhoto': MissedRequirePhoto, 'MissedFee': MissedFee }; getTypeName() => "CourierDriverOrder"; TypeContext? context = _ctx; } class CourierDriverView implements IConvertible { String? DriverCode; String? Name; bool? Online; bool? OnRoster; CourierVanView? Van; CourierDriverOrder? Current; List? Queue = []; List? Aboard = []; List? Runs = []; CourierDriverOrder? UpNext; CourierDriverView({this.DriverCode,this.Name,this.Online,this.OnRoster,this.Van,this.Current,this.Queue,this.Aboard,this.Runs,this.UpNext}); CourierDriverView.fromJson(Map json) { fromMap(json); } fromMap(Map json) { DriverCode = json['DriverCode']; Name = json['Name']; Online = json['Online']; OnRoster = json['OnRoster']; Van = JsonConverters.fromJson(json['Van'],'CourierVanView',context!); Current = JsonConverters.fromJson(json['Current'],'CourierDriverOrder',context!); Queue = JsonConverters.fromJson(json['Queue'],'List',context!); Aboard = JsonConverters.fromJson(json['Aboard'],'List',context!); Runs = JsonConverters.fromJson(json['Runs'],'List',context!); UpNext = JsonConverters.fromJson(json['UpNext'],'CourierDriverOrder',context!); return this; } Map toJson() => { 'DriverCode': DriverCode, 'Name': Name, 'Online': Online, 'OnRoster': OnRoster, 'Van': JsonConverters.toJson(Van,'CourierVanView',context!), 'Current': JsonConverters.toJson(Current,'CourierDriverOrder',context!), 'Queue': JsonConverters.toJson(Queue,'List',context!), 'Aboard': JsonConverters.toJson(Aboard,'List',context!), 'Runs': JsonConverters.toJson(Runs,'List',context!), 'UpNext': JsonConverters.toJson(UpNext,'CourierDriverOrder',context!) }; getTypeName() => "CourierDriverView"; TypeContext? context = _ctx; } class CourierDriverResponse implements IConvertible { CourierDriverView? Courier; String? Result; String? Detail; String? Message; ResponseStatus? ResponseStatus; CourierDriverResponse({this.Courier,this.Result,this.Detail,this.Message,this.ResponseStatus}); CourierDriverResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Courier = JsonConverters.fromJson(json['Courier'],'CourierDriverView',context!); Result = json['Result']; Detail = json['Detail']; Message = json['Message']; ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); return this; } Map toJson() => { 'Courier': JsonConverters.toJson(Courier,'CourierDriverView',context!), 'Result': Result, 'Detail': Detail, 'Message': Message, 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!) }; getTypeName() => "CourierDriverResponse"; TypeContext? context = _ctx; } // @Route("/v1/worker/dispatch/od/{Code}/items/{TagCode}", "DELETE,OPTIONS") class CourierItemUnbindRequest implements IReturn, IConvertible, IDelete { String? Code; String? TagCode; CourierItemUnbindRequest({this.Code,this.TagCode}); CourierItemUnbindRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Code = json['Code']; TagCode = json['TagCode']; return this; } Map toJson() => { 'Code': Code, 'TagCode': TagCode }; createResponse() => CourierDriverResponse(); getResponseTypeName() => "CourierDriverResponse"; getTypeName() => "CourierItemUnbindRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: { 'CourierItemView': TypeInfo(TypeOf.Class, create:() => CourierItemView()), 'CourierStopView': TypeInfo(TypeOf.Class, create:() => CourierStopView()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'CourierRunView': TypeInfo(TypeOf.Class, create:() => CourierRunView()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'CourierVanView': TypeInfo(TypeOf.Class, create:() => CourierVanView()), 'CourierDriverOrder': TypeInfo(TypeOf.Class, create:() => CourierDriverOrder()), 'Map': TypeInfo(TypeOf.Class, create:() => Map()), 'CourierDriverView': TypeInfo(TypeOf.Class, create:() => CourierDriverView()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'CourierDriverResponse': TypeInfo(TypeOf.Class, create:() => CourierDriverResponse()), 'CourierItemUnbindRequest': TypeInfo(TypeOf.Class, create:() => CourierItemUnbindRequest()), });