/* Options: Date: 2026-06-22 20:30:28 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: BillingRunStatusRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class BillingRun implements IConvertible { int? BillingRunID; String? TenantId; String? BranchId; String? BranchName; String? RunType; String? PeriodKey; String? Status; int? InvoicesCreated; int? CreditsApplied; String? Error; String? CreatedBy; DateTime? StartedAt; DateTime? CompletedAt; BillingRun({this.BillingRunID,this.TenantId,this.BranchId,this.BranchName,this.RunType,this.PeriodKey,this.Status,this.InvoicesCreated,this.CreditsApplied,this.Error,this.CreatedBy,this.StartedAt,this.CompletedAt}); BillingRun.fromJson(Map json) { fromMap(json); } fromMap(Map json) { BillingRunID = json['BillingRunID']; TenantId = json['TenantId']; BranchId = json['BranchId']; BranchName = json['BranchName']; RunType = json['RunType']; PeriodKey = json['PeriodKey']; Status = json['Status']; InvoicesCreated = json['InvoicesCreated']; CreditsApplied = json['CreditsApplied']; Error = json['Error']; CreatedBy = json['CreatedBy']; StartedAt = JsonConverters.fromJson(json['StartedAt'],'DateTime',context!); CompletedAt = JsonConverters.fromJson(json['CompletedAt'],'DateTime',context!); return this; } Map toJson() => { 'BillingRunID': BillingRunID, 'TenantId': TenantId, 'BranchId': BranchId, 'BranchName': BranchName, 'RunType': RunType, 'PeriodKey': PeriodKey, 'Status': Status, 'InvoicesCreated': InvoicesCreated, 'CreditsApplied': CreditsApplied, 'Error': Error, 'CreatedBy': CreatedBy, 'StartedAt': JsonConverters.toJson(StartedAt,'DateTime',context!), 'CompletedAt': JsonConverters.toJson(CompletedAt,'DateTime',context!) }; getTypeName() => "BillingRun"; TypeContext? context = _ctx; } class BillingRunStatusResponse implements IConvertible { ResponseStatus? ResponseStatus; BillingRun? BillingRun; BillingRunStatusResponse({this.ResponseStatus,this.BillingRun}); BillingRunStatusResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); BillingRun = JsonConverters.fromJson(json['BillingRun'],'BillingRun',context!); return this; } Map toJson() => { 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!), 'BillingRun': JsonConverters.toJson(BillingRun,'BillingRun',context!) }; getTypeName() => "BillingRunStatusResponse"; TypeContext? context = _ctx; } // @Route("/v1/billing/run/{BillingRunID}", "GET,OPTIONS") class BillingRunStatusRequest implements IReturn, IConvertible, IGet { int? BillingRunID; BillingRunStatusRequest({this.BillingRunID}); BillingRunStatusRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { BillingRunID = json['BillingRunID']; return this; } Map toJson() => { 'BillingRunID': BillingRunID }; createResponse() => BillingRunStatusResponse(); getResponseTypeName() => "BillingRunStatusResponse"; getTypeName() => "BillingRunStatusRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: { 'BillingRun': TypeInfo(TypeOf.Class, create:() => BillingRun()), 'BillingRunStatusResponse': TypeInfo(TypeOf.Class, create:() => BillingRunStatusResponse()), 'BillingRunStatusRequest': TypeInfo(TypeOf.Class, create:() => BillingRunStatusRequest()), });