/* Options: Date: 2026-09-05 09:34:59 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: DispatchSettlementStatusRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class DispatchSettlementDeductionView implements IConvertible { int? DeductionId; String? Kind; String? Label; double? Amount; String? Note; DispatchSettlementDeductionView({this.DeductionId,this.Kind,this.Label,this.Amount,this.Note}); DispatchSettlementDeductionView.fromJson(Map json) { fromMap(json); } fromMap(Map json) { DeductionId = json['DeductionId']; Kind = json['Kind']; Label = json['Label']; Amount = JsonConverters.toDouble(json['Amount']); Note = json['Note']; return this; } Map toJson() => { 'DeductionId': DeductionId, 'Kind': Kind, 'Label': Label, 'Amount': Amount, 'Note': Note }; getTypeName() => "DispatchSettlementDeductionView"; TypeContext? context = _ctx; } class DispatchLoadStageView implements IConvertible { String? Stage; DateTime? AtUtc; String? Note; DispatchLoadStageView({this.Stage,this.AtUtc,this.Note}); DispatchLoadStageView.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Stage = json['Stage']; AtUtc = JsonConverters.fromJson(json['AtUtc'],'DateTime',context!); Note = json['Note']; return this; } Map toJson() => { 'Stage': Stage, 'AtUtc': JsonConverters.toJson(AtUtc,'DateTime',context!), 'Note': Note }; getTypeName() => "DispatchLoadStageView"; TypeContext? context = _ctx; } class DispatchLoadView implements IConvertible { int? LoadId; String? Code; String? Module; String? TruckLabel; String? DriverLabel; String? CarrierLabel; String? SourceLabel; String? DestinationLabel; double? Qty; String? Unit; String? QtyText; String? TicketCode; double? RateApplied; String? RateBasis; double? Revenue; String? PayPlanLabel; double? Pay; String? Status; DateTime? OpenedUtc; DateTime? ClosedUtc; int? Photos; List? Stages = []; DispatchLoadView({this.LoadId,this.Code,this.Module,this.TruckLabel,this.DriverLabel,this.CarrierLabel,this.SourceLabel,this.DestinationLabel,this.Qty,this.Unit,this.QtyText,this.TicketCode,this.RateApplied,this.RateBasis,this.Revenue,this.PayPlanLabel,this.Pay,this.Status,this.OpenedUtc,this.ClosedUtc,this.Photos,this.Stages}); DispatchLoadView.fromJson(Map json) { fromMap(json); } fromMap(Map json) { LoadId = json['LoadId']; Code = json['Code']; Module = json['Module']; TruckLabel = json['TruckLabel']; DriverLabel = json['DriverLabel']; CarrierLabel = json['CarrierLabel']; SourceLabel = json['SourceLabel']; DestinationLabel = json['DestinationLabel']; Qty = JsonConverters.toDouble(json['Qty']); Unit = json['Unit']; QtyText = json['QtyText']; TicketCode = json['TicketCode']; RateApplied = JsonConverters.toDouble(json['RateApplied']); RateBasis = json['RateBasis']; Revenue = JsonConverters.toDouble(json['Revenue']); PayPlanLabel = json['PayPlanLabel']; Pay = JsonConverters.toDouble(json['Pay']); Status = json['Status']; OpenedUtc = JsonConverters.fromJson(json['OpenedUtc'],'DateTime',context!); ClosedUtc = JsonConverters.fromJson(json['ClosedUtc'],'DateTime',context!); Photos = json['Photos']; Stages = JsonConverters.fromJson(json['Stages'],'List',context!); return this; } Map toJson() => { 'LoadId': LoadId, 'Code': Code, 'Module': Module, 'TruckLabel': TruckLabel, 'DriverLabel': DriverLabel, 'CarrierLabel': CarrierLabel, 'SourceLabel': SourceLabel, 'DestinationLabel': DestinationLabel, 'Qty': Qty, 'Unit': Unit, 'QtyText': QtyText, 'TicketCode': TicketCode, 'RateApplied': RateApplied, 'RateBasis': RateBasis, 'Revenue': Revenue, 'PayPlanLabel': PayPlanLabel, 'Pay': Pay, 'Status': Status, 'OpenedUtc': JsonConverters.toJson(OpenedUtc,'DateTime',context!), 'ClosedUtc': JsonConverters.toJson(ClosedUtc,'DateTime',context!), 'Photos': Photos, 'Stages': JsonConverters.toJson(Stages,'List',context!) }; getTypeName() => "DispatchLoadView"; TypeContext? context = _ctx; } class DispatchSettlementView implements IConvertible { int? SettlementId; String? Code; int? VendorID; String? VendorName; DateTime? PeriodStart; DateTime? PeriodEnd; int? LoadCount; double? GrossRevenue; double? SplitPct; double? CarrierShare; double? DeductionsTotal; double? Net; String? Status; String? Notes; DateTime? GeneratedUtc; DateTime? SentUtc; DateTime? ApprovedUtc; String? ApprovedBy; DateTime? PaidUtc; String? PaidRef; int? ContactCount; List? Deductions = []; List? Loads = []; DispatchSettlementView({this.SettlementId,this.Code,this.VendorID,this.VendorName,this.PeriodStart,this.PeriodEnd,this.LoadCount,this.GrossRevenue,this.SplitPct,this.CarrierShare,this.DeductionsTotal,this.Net,this.Status,this.Notes,this.GeneratedUtc,this.SentUtc,this.ApprovedUtc,this.ApprovedBy,this.PaidUtc,this.PaidRef,this.ContactCount,this.Deductions,this.Loads}); DispatchSettlementView.fromJson(Map json) { fromMap(json); } fromMap(Map json) { SettlementId = json['SettlementId']; Code = json['Code']; VendorID = json['VendorID']; VendorName = json['VendorName']; PeriodStart = JsonConverters.fromJson(json['PeriodStart'],'DateTime',context!); PeriodEnd = JsonConverters.fromJson(json['PeriodEnd'],'DateTime',context!); LoadCount = json['LoadCount']; GrossRevenue = JsonConverters.toDouble(json['GrossRevenue']); SplitPct = JsonConverters.toDouble(json['SplitPct']); CarrierShare = JsonConverters.toDouble(json['CarrierShare']); DeductionsTotal = JsonConverters.toDouble(json['DeductionsTotal']); Net = JsonConverters.toDouble(json['Net']); Status = json['Status']; Notes = json['Notes']; GeneratedUtc = JsonConverters.fromJson(json['GeneratedUtc'],'DateTime',context!); SentUtc = JsonConverters.fromJson(json['SentUtc'],'DateTime',context!); ApprovedUtc = JsonConverters.fromJson(json['ApprovedUtc'],'DateTime',context!); ApprovedBy = json['ApprovedBy']; PaidUtc = JsonConverters.fromJson(json['PaidUtc'],'DateTime',context!); PaidRef = json['PaidRef']; ContactCount = json['ContactCount']; Deductions = JsonConverters.fromJson(json['Deductions'],'List',context!); Loads = JsonConverters.fromJson(json['Loads'],'List',context!); return this; } Map toJson() => { 'SettlementId': SettlementId, 'Code': Code, 'VendorID': VendorID, 'VendorName': VendorName, 'PeriodStart': JsonConverters.toJson(PeriodStart,'DateTime',context!), 'PeriodEnd': JsonConverters.toJson(PeriodEnd,'DateTime',context!), 'LoadCount': LoadCount, 'GrossRevenue': GrossRevenue, 'SplitPct': SplitPct, 'CarrierShare': CarrierShare, 'DeductionsTotal': DeductionsTotal, 'Net': Net, 'Status': Status, 'Notes': Notes, 'GeneratedUtc': JsonConverters.toJson(GeneratedUtc,'DateTime',context!), 'SentUtc': JsonConverters.toJson(SentUtc,'DateTime',context!), 'ApprovedUtc': JsonConverters.toJson(ApprovedUtc,'DateTime',context!), 'ApprovedBy': ApprovedBy, 'PaidUtc': JsonConverters.toJson(PaidUtc,'DateTime',context!), 'PaidRef': PaidRef, 'ContactCount': ContactCount, 'Deductions': JsonConverters.toJson(Deductions,'List',context!), 'Loads': JsonConverters.toJson(Loads,'List',context!) }; getTypeName() => "DispatchSettlementView"; TypeContext? context = _ctx; } class DispatchSettlementSuggestView implements IConvertible { int? VendorID; String? VendorName; double? SplitPct; String? Terms; bool? W9OnFile; DateTime? CoiExpires; DateTime? PeriodStart; DateTime? PeriodEnd; int? UnsettledLoads; int? UnpricedLoads; double? UnsettledPay; DispatchSettlementSuggestView({this.VendorID,this.VendorName,this.SplitPct,this.Terms,this.W9OnFile,this.CoiExpires,this.PeriodStart,this.PeriodEnd,this.UnsettledLoads,this.UnpricedLoads,this.UnsettledPay}); DispatchSettlementSuggestView.fromJson(Map json) { fromMap(json); } fromMap(Map json) { VendorID = json['VendorID']; VendorName = json['VendorName']; SplitPct = JsonConverters.toDouble(json['SplitPct']); Terms = json['Terms']; W9OnFile = json['W9OnFile']; CoiExpires = JsonConverters.fromJson(json['CoiExpires'],'DateTime',context!); PeriodStart = JsonConverters.fromJson(json['PeriodStart'],'DateTime',context!); PeriodEnd = JsonConverters.fromJson(json['PeriodEnd'],'DateTime',context!); UnsettledLoads = json['UnsettledLoads']; UnpricedLoads = json['UnpricedLoads']; UnsettledPay = JsonConverters.toDouble(json['UnsettledPay']); return this; } Map toJson() => { 'VendorID': VendorID, 'VendorName': VendorName, 'SplitPct': SplitPct, 'Terms': Terms, 'W9OnFile': W9OnFile, 'CoiExpires': JsonConverters.toJson(CoiExpires,'DateTime',context!), 'PeriodStart': JsonConverters.toJson(PeriodStart,'DateTime',context!), 'PeriodEnd': JsonConverters.toJson(PeriodEnd,'DateTime',context!), 'UnsettledLoads': UnsettledLoads, 'UnpricedLoads': UnpricedLoads, 'UnsettledPay': UnsettledPay }; getTypeName() => "DispatchSettlementSuggestView"; TypeContext? context = _ctx; } class DispatchSettlementsResponse implements IConvertible { List? Settlements = []; DispatchSettlementView? Settlement; List? Suggestions = []; ResponseStatus? ResponseStatus; DispatchSettlementsResponse({this.Settlements,this.Settlement,this.Suggestions,this.ResponseStatus}); DispatchSettlementsResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Settlements = JsonConverters.fromJson(json['Settlements'],'List',context!); Settlement = JsonConverters.fromJson(json['Settlement'],'DispatchSettlementView',context!); Suggestions = JsonConverters.fromJson(json['Suggestions'],'List',context!); ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); return this; } Map toJson() => { 'Settlements': JsonConverters.toJson(Settlements,'List',context!), 'Settlement': JsonConverters.toJson(Settlement,'DispatchSettlementView',context!), 'Suggestions': JsonConverters.toJson(Suggestions,'List',context!), 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!) }; getTypeName() => "DispatchSettlementsResponse"; TypeContext? context = _ctx; } // @Route("/v1/dispatch/settlements/{SettlementId}/status", "POST,OPTIONS") class DispatchSettlementStatusRequest implements IReturn, IConvertible, IPost { int? SettlementId; String? Status; String? PaidRef; DispatchSettlementStatusRequest({this.SettlementId,this.Status,this.PaidRef}); DispatchSettlementStatusRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { SettlementId = json['SettlementId']; Status = json['Status']; PaidRef = json['PaidRef']; return this; } Map toJson() => { 'SettlementId': SettlementId, 'Status': Status, 'PaidRef': PaidRef }; createResponse() => DispatchSettlementsResponse(); getResponseTypeName() => "DispatchSettlementsResponse"; getTypeName() => "DispatchSettlementStatusRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: { 'DispatchSettlementDeductionView': TypeInfo(TypeOf.Class, create:() => DispatchSettlementDeductionView()), 'DispatchLoadStageView': TypeInfo(TypeOf.Class, create:() => DispatchLoadStageView()), 'DispatchLoadView': TypeInfo(TypeOf.Class, create:() => DispatchLoadView()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'DispatchSettlementView': TypeInfo(TypeOf.Class, create:() => DispatchSettlementView()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'DispatchSettlementSuggestView': TypeInfo(TypeOf.Class, create:() => DispatchSettlementSuggestView()), 'DispatchSettlementsResponse': TypeInfo(TypeOf.Class, create:() => DispatchSettlementsResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'DispatchSettlementStatusRequest': TypeInfo(TypeOf.Class, create:() => DispatchSettlementStatusRequest()), });