/* Options: Date: 2026-08-01 03:15:37 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: RunBillingSystemRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class RunBillingSystemTenantResult implements IConvertible { String? TenantId; int? BillingRunID; bool? Started; String? Message; RunBillingSystemTenantResult({this.TenantId,this.BillingRunID,this.Started,this.Message}); RunBillingSystemTenantResult.fromJson(Map json) { fromMap(json); } fromMap(Map json) { TenantId = json['TenantId']; BillingRunID = json['BillingRunID']; Started = json['Started']; Message = json['Message']; return this; } Map toJson() => { 'TenantId': TenantId, 'BillingRunID': BillingRunID, 'Started': Started, 'Message': Message }; getTypeName() => "RunBillingSystemTenantResult"; TypeContext? context = _ctx; } class RunBillingSystemResponse implements IConvertible { ResponseStatus? ResponseStatus; int? TenantsSwept; int? RunsStarted; int? Reclaimed; List? Results = []; RunBillingSystemResponse({this.ResponseStatus,this.TenantsSwept,this.RunsStarted,this.Reclaimed,this.Results}); RunBillingSystemResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); TenantsSwept = json['TenantsSwept']; RunsStarted = json['RunsStarted']; Reclaimed = json['Reclaimed']; Results = JsonConverters.fromJson(json['Results'],'List',context!); return this; } Map toJson() => { 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!), 'TenantsSwept': TenantsSwept, 'RunsStarted': RunsStarted, 'Reclaimed': Reclaimed, 'Results': JsonConverters.toJson(Results,'List',context!) }; getTypeName() => "RunBillingSystemResponse"; TypeContext? context = _ctx; } // @Route("/v1/billing/run/system", "POST") class RunBillingSystemRequest implements IReturn, IConvertible, IPost { String? RunType; String? PeriodKey; String? TenantId; int? ReclaimStaleMinutes; RunBillingSystemRequest({this.RunType,this.PeriodKey,this.TenantId,this.ReclaimStaleMinutes}); RunBillingSystemRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { RunType = json['RunType']; PeriodKey = json['PeriodKey']; TenantId = json['TenantId']; ReclaimStaleMinutes = json['ReclaimStaleMinutes']; return this; } Map toJson() => { 'RunType': RunType, 'PeriodKey': PeriodKey, 'TenantId': TenantId, 'ReclaimStaleMinutes': ReclaimStaleMinutes }; createResponse() => RunBillingSystemResponse(); getResponseTypeName() => "RunBillingSystemResponse"; getTypeName() => "RunBillingSystemRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: { 'RunBillingSystemTenantResult': TypeInfo(TypeOf.Class, create:() => RunBillingSystemTenantResult()), 'RunBillingSystemResponse': TypeInfo(TypeOf.Class, create:() => RunBillingSystemResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'RunBillingSystemRequest': TypeInfo(TypeOf.Class, create:() => RunBillingSystemRequest()), });