/* Options: Date: 2026-10-12 04:07:20 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: CourierRecurrencesRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class CourierRecurrenceView implements IConvertible { int? CourierRecurrenceID; int? CourierProfileId; String? ProfileName; int? CourierFacilityId; int? CustomerContactId; String? CustomerName; String? CustomerPhone; String? Address; String? Unit; String? City; String? Zip; String? Zone; double? Lat; double? Lng; int? Weekday; String? WindowStart; String? WindowEnd; String? Cadence; String? AnchorDate; String? ServiceLevelCode; int? UnitsExpected; String? Handoff; String? Instructions; String? PayMode; String? AccountCode; bool? Paused; String? LastMaterializedDate; String? NextDate; List? SkipDates = []; CourierRecurrenceView({this.CourierRecurrenceID,this.CourierProfileId,this.ProfileName,this.CourierFacilityId,this.CustomerContactId,this.CustomerName,this.CustomerPhone,this.Address,this.Unit,this.City,this.Zip,this.Zone,this.Lat,this.Lng,this.Weekday,this.WindowStart,this.WindowEnd,this.Cadence,this.AnchorDate,this.ServiceLevelCode,this.UnitsExpected,this.Handoff,this.Instructions,this.PayMode,this.AccountCode,this.Paused,this.LastMaterializedDate,this.NextDate,this.SkipDates}); CourierRecurrenceView.fromJson(Map json) { fromMap(json); } fromMap(Map json) { CourierRecurrenceID = json['CourierRecurrenceID']; CourierProfileId = json['CourierProfileId']; ProfileName = json['ProfileName']; CourierFacilityId = json['CourierFacilityId']; CustomerContactId = json['CustomerContactId']; CustomerName = json['CustomerName']; CustomerPhone = json['CustomerPhone']; Address = json['Address']; Unit = json['Unit']; City = json['City']; Zip = json['Zip']; Zone = json['Zone']; Lat = JsonConverters.toDouble(json['Lat']); Lng = JsonConverters.toDouble(json['Lng']); Weekday = json['Weekday']; WindowStart = json['WindowStart']; WindowEnd = json['WindowEnd']; Cadence = json['Cadence']; AnchorDate = json['AnchorDate']; ServiceLevelCode = json['ServiceLevelCode']; UnitsExpected = json['UnitsExpected']; Handoff = json['Handoff']; Instructions = json['Instructions']; PayMode = json['PayMode']; AccountCode = json['AccountCode']; Paused = json['Paused']; LastMaterializedDate = json['LastMaterializedDate']; NextDate = json['NextDate']; SkipDates = JsonConverters.fromJson(json['SkipDates'],'List',context!); return this; } Map toJson() => { 'CourierRecurrenceID': CourierRecurrenceID, 'CourierProfileId': CourierProfileId, 'ProfileName': ProfileName, 'CourierFacilityId': CourierFacilityId, 'CustomerContactId': CustomerContactId, 'CustomerName': CustomerName, 'CustomerPhone': CustomerPhone, 'Address': Address, 'Unit': Unit, 'City': City, 'Zip': Zip, 'Zone': Zone, 'Lat': Lat, 'Lng': Lng, 'Weekday': Weekday, 'WindowStart': WindowStart, 'WindowEnd': WindowEnd, 'Cadence': Cadence, 'AnchorDate': AnchorDate, 'ServiceLevelCode': ServiceLevelCode, 'UnitsExpected': UnitsExpected, 'Handoff': Handoff, 'Instructions': Instructions, 'PayMode': PayMode, 'AccountCode': AccountCode, 'Paused': Paused, 'LastMaterializedDate': LastMaterializedDate, 'NextDate': NextDate, 'SkipDates': JsonConverters.toJson(SkipDates,'List',context!) }; getTypeName() => "CourierRecurrenceView"; TypeContext? context = _ctx; } class CourierRecurrenceResponse implements IConvertible { List? Recurrences = []; String? Message; ResponseStatus? ResponseStatus; CourierRecurrenceResponse({this.Recurrences,this.Message,this.ResponseStatus}); CourierRecurrenceResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Recurrences = JsonConverters.fromJson(json['Recurrences'],'List',context!); Message = json['Message']; ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); return this; } Map toJson() => { 'Recurrences': JsonConverters.toJson(Recurrences,'List',context!), 'Message': Message, 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!) }; getTypeName() => "CourierRecurrenceResponse"; TypeContext? context = _ctx; } // @Route("/v1/dispatch/courier/recurrences", "GET,OPTIONS") class CourierRecurrencesRequest implements IReturn, IConvertible, IGet { int? ProfileId; CourierRecurrencesRequest({this.ProfileId}); CourierRecurrencesRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ProfileId = json['ProfileId']; return this; } Map toJson() => { 'ProfileId': ProfileId }; createResponse() => CourierRecurrenceResponse(); getResponseTypeName() => "CourierRecurrenceResponse"; getTypeName() => "CourierRecurrencesRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: { 'CourierRecurrenceView': TypeInfo(TypeOf.Class, create:() => CourierRecurrenceView()), 'CourierRecurrenceResponse': TypeInfo(TypeOf.Class, create:() => CourierRecurrenceResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'CourierRecurrencesRequest': TypeInfo(TypeOf.Class, create:() => CourierRecurrencesRequest()), });