/* Options: Date: 2026-10-13 00:47:49 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: CourierDriverPayRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class CourierPayLineView implements IConvertible { int? DispatchLoadID; String? Kind; String? Label; double? Qty; double? Rate; double? Amount; CourierPayLineView({this.DispatchLoadID,this.Kind,this.Label,this.Qty,this.Rate,this.Amount}); CourierPayLineView.fromJson(Map json) { fromMap(json); } fromMap(Map json) { DispatchLoadID = json['DispatchLoadID']; Kind = json['Kind']; Label = json['Label']; Qty = JsonConverters.toDouble(json['Qty']); Rate = JsonConverters.toDouble(json['Rate']); Amount = JsonConverters.toDouble(json['Amount']); return this; } Map toJson() => { 'DispatchLoadID': DispatchLoadID, 'Kind': Kind, 'Label': Label, 'Qty': Qty, 'Rate': Rate, 'Amount': Amount }; getTypeName() => "CourierPayLineView"; TypeContext? context = _ctx; } class CourierDriverPayRow implements IConvertible { int? DispatchLoadID; String? Code; String? Kind; String? OrderCode; String? RunCode; String? QtyText; String? SourceLabel; String? DestinationLabel; String? Status; double? Pay; DateTime? OpenedUtc; DateTime? ClosedUtc; List? Lines = []; CourierDriverPayRow({this.DispatchLoadID,this.Code,this.Kind,this.OrderCode,this.RunCode,this.QtyText,this.SourceLabel,this.DestinationLabel,this.Status,this.Pay,this.OpenedUtc,this.ClosedUtc,this.Lines}); CourierDriverPayRow.fromJson(Map json) { fromMap(json); } fromMap(Map json) { DispatchLoadID = json['DispatchLoadID']; Code = json['Code']; Kind = json['Kind']; OrderCode = json['OrderCode']; RunCode = json['RunCode']; QtyText = json['QtyText']; SourceLabel = json['SourceLabel']; DestinationLabel = json['DestinationLabel']; Status = json['Status']; Pay = JsonConverters.toDouble(json['Pay']); OpenedUtc = JsonConverters.fromJson(json['OpenedUtc'],'DateTime',context!); ClosedUtc = JsonConverters.fromJson(json['ClosedUtc'],'DateTime',context!); Lines = JsonConverters.fromJson(json['Lines'],'List',context!); return this; } Map toJson() => { 'DispatchLoadID': DispatchLoadID, 'Code': Code, 'Kind': Kind, 'OrderCode': OrderCode, 'RunCode': RunCode, 'QtyText': QtyText, 'SourceLabel': SourceLabel, 'DestinationLabel': DestinationLabel, 'Status': Status, 'Pay': Pay, 'OpenedUtc': JsonConverters.toJson(OpenedUtc,'DateTime',context!), 'ClosedUtc': JsonConverters.toJson(ClosedUtc,'DateTime',context!), 'Lines': JsonConverters.toJson(Lines,'List',context!) }; getTypeName() => "CourierDriverPayRow"; TypeContext? context = _ctx; } class CourierDriverPayResponse implements IConvertible { List? Rows = []; double? Total; bool? Available; DateTime? ServerUtc; ResponseStatus? ResponseStatus; CourierDriverPayResponse({this.Rows,this.Total,this.Available,this.ServerUtc,this.ResponseStatus}); CourierDriverPayResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Rows = JsonConverters.fromJson(json['Rows'],'List',context!); Total = JsonConverters.toDouble(json['Total']); Available = json['Available']; ServerUtc = JsonConverters.fromJson(json['ServerUtc'],'DateTime',context!); ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); return this; } Map toJson() => { 'Rows': JsonConverters.toJson(Rows,'List',context!), 'Total': Total, 'Available': Available, 'ServerUtc': JsonConverters.toJson(ServerUtc,'DateTime',context!), 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!) }; getTypeName() => "CourierDriverPayResponse"; TypeContext? context = _ctx; } // @Route("/v1/worker/dispatch/od/pay", "GET,OPTIONS") class CourierDriverPayRequest implements IReturn, IConvertible, IGet { CourierDriverPayRequest(); CourierDriverPayRequest.fromJson(Map json) : super(); fromMap(Map json) { return this; } Map toJson() => {}; createResponse() => CourierDriverPayResponse(); getResponseTypeName() => "CourierDriverPayResponse"; getTypeName() => "CourierDriverPayRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: { 'CourierPayLineView': TypeInfo(TypeOf.Class, create:() => CourierPayLineView()), 'CourierDriverPayRow': TypeInfo(TypeOf.Class, create:() => CourierDriverPayRow()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'CourierDriverPayResponse': TypeInfo(TypeOf.Class, create:() => CourierDriverPayResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'CourierDriverPayRequest': TypeInfo(TypeOf.Class, create:() => CourierDriverPayRequest()), });