/* Options: Date: 2025-12-06 09:33:04 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: InvoiceGenerateRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; class InvoiceLineItem implements IConvertible { int? InvoiceLineItemID; int? InvoiceID; String? Type; String? Name; int? Quantity; double? PercentageAdjust; double? AmountAdjust; double? Price; String? Description; String? Notes; bool? IsTaxable; int? DisplayOrder; bool? IsLocked; bool? IsDeleted; bool? IsPaid; DateTime? CreatedDate; DateTime? ModifiedDate; String? CreatedByUID; InvoiceLineItem({this.InvoiceLineItemID,this.InvoiceID,this.Type,this.Name,this.Quantity,this.PercentageAdjust,this.AmountAdjust,this.Price,this.Description,this.Notes,this.IsTaxable,this.DisplayOrder,this.IsLocked,this.IsDeleted,this.IsPaid,this.CreatedDate,this.ModifiedDate,this.CreatedByUID}); InvoiceLineItem.fromJson(Map json) { fromMap(json); } fromMap(Map json) { InvoiceLineItemID = json['InvoiceLineItemID']; InvoiceID = json['InvoiceID']; Type = json['Type']; Name = json['Name']; Quantity = json['Quantity']; PercentageAdjust = JsonConverters.toDouble(json['PercentageAdjust']); AmountAdjust = JsonConverters.toDouble(json['AmountAdjust']); Price = JsonConverters.toDouble(json['Price']); Description = json['Description']; Notes = json['Notes']; IsTaxable = json['IsTaxable']; DisplayOrder = json['DisplayOrder']; IsLocked = json['IsLocked']; IsDeleted = json['IsDeleted']; IsPaid = json['IsPaid']; CreatedDate = JsonConverters.fromJson(json['CreatedDate'],'DateTime',context!); ModifiedDate = JsonConverters.fromJson(json['ModifiedDate'],'DateTime',context!); CreatedByUID = json['CreatedByUID']; return this; } Map toJson() => { 'InvoiceLineItemID': InvoiceLineItemID, 'InvoiceID': InvoiceID, 'Type': Type, 'Name': Name, 'Quantity': Quantity, 'PercentageAdjust': PercentageAdjust, 'AmountAdjust': AmountAdjust, 'Price': Price, 'Description': Description, 'Notes': Notes, 'IsTaxable': IsTaxable, 'DisplayOrder': DisplayOrder, 'IsLocked': IsLocked, 'IsDeleted': IsDeleted, 'IsPaid': IsPaid, 'CreatedDate': JsonConverters.toJson(CreatedDate,'DateTime',context!), 'ModifiedDate': JsonConverters.toJson(ModifiedDate,'DateTime',context!), 'CreatedByUID': CreatedByUID }; getTypeName() => "InvoiceLineItem"; TypeContext? context = _ctx; } class InvoiceGenerateResponse implements IConvertible { ResponseStatus? ResponseStatus; List? ProjectInvoice = []; InvoiceGenerateResponse({this.ResponseStatus,this.ProjectInvoice}); InvoiceGenerateResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); ProjectInvoice = JsonConverters.fromJson(json['ProjectInvoice'],'List',context!); return this; } Map toJson() => { 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!), 'ProjectInvoice': JsonConverters.toJson(ProjectInvoice,'List',context!) }; getTypeName() => "InvoiceGenerateResponse"; TypeContext? context = _ctx; } // @Route("/v1/invoice/generate/{ProjectUID}/{InvoiceStartDate}/{InvoiceEndDate}", "GET,OPTIONS") class InvoiceGenerateRequest implements IReturn, IConvertible, IGet { String? ProjectUID; DateTime? InvoiceStartDate; DateTime? InvoiceEndDate; InvoiceGenerateRequest({this.ProjectUID,this.InvoiceStartDate,this.InvoiceEndDate}); InvoiceGenerateRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ProjectUID = json['ProjectUID']; InvoiceStartDate = JsonConverters.fromJson(json['InvoiceStartDate'],'DateTime',context!); InvoiceEndDate = JsonConverters.fromJson(json['InvoiceEndDate'],'DateTime',context!); return this; } Map toJson() => { 'ProjectUID': ProjectUID, 'InvoiceStartDate': JsonConverters.toJson(InvoiceStartDate,'DateTime',context!), 'InvoiceEndDate': JsonConverters.toJson(InvoiceEndDate,'DateTime',context!) }; createResponse() => InvoiceGenerateResponse(); getResponseTypeName() => "InvoiceGenerateResponse"; getTypeName() => "InvoiceGenerateRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: { 'InvoiceLineItem': TypeInfo(TypeOf.Class, create:() => InvoiceLineItem()), 'InvoiceGenerateResponse': TypeInfo(TypeOf.Class, create:() => InvoiceGenerateResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'InvoiceGenerateRequest': TypeInfo(TypeOf.Class, create:() => InvoiceGenerateRequest()), });