/* Options: Date: 2026-06-22 20:51:26 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: QboPendingRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class QboPendingInvoice implements IConvertible { int? InvoiceID; String? InvoiceUID; String? InvoiceNumber; DateTime? InvoiceDate; double? Total; String? CustomerName; bool? IsPaid; String? SyncStatus; String? ExternalRef; QboPendingInvoice({this.InvoiceID,this.InvoiceUID,this.InvoiceNumber,this.InvoiceDate,this.Total,this.CustomerName,this.IsPaid,this.SyncStatus,this.ExternalRef}); QboPendingInvoice.fromJson(Map json) { fromMap(json); } fromMap(Map json) { InvoiceID = json['InvoiceID']; InvoiceUID = json['InvoiceUID']; InvoiceNumber = json['InvoiceNumber']; InvoiceDate = JsonConverters.fromJson(json['InvoiceDate'],'DateTime',context!); Total = JsonConverters.toDouble(json['Total']); CustomerName = json['CustomerName']; IsPaid = json['IsPaid']; SyncStatus = json['SyncStatus']; ExternalRef = json['ExternalRef']; return this; } Map toJson() => { 'InvoiceID': InvoiceID, 'InvoiceUID': InvoiceUID, 'InvoiceNumber': InvoiceNumber, 'InvoiceDate': JsonConverters.toJson(InvoiceDate,'DateTime',context!), 'Total': Total, 'CustomerName': CustomerName, 'IsPaid': IsPaid, 'SyncStatus': SyncStatus, 'ExternalRef': ExternalRef }; getTypeName() => "QboPendingInvoice"; TypeContext? context = _ctx; } class QboPendingResponse implements IConvertible { List? Invoices = []; ResponseStatus? ResponseStatus; QboPendingResponse({this.Invoices,this.ResponseStatus}); QboPendingResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Invoices = JsonConverters.fromJson(json['Invoices'],'List',context!); ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); return this; } Map toJson() => { 'Invoices': JsonConverters.toJson(Invoices,'List',context!), 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!) }; getTypeName() => "QboPendingResponse"; TypeContext? context = _ctx; } // @Route("/v1/qbo/pending", "GET,OPTIONS") class QboPendingRequest implements IReturn, IConvertible, IGet { QboPendingRequest(); QboPendingRequest.fromJson(Map json) : super(); fromMap(Map json) { return this; } Map toJson() => {}; createResponse() => QboPendingResponse(); getResponseTypeName() => "QboPendingResponse"; getTypeName() => "QboPendingRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: { 'QboPendingInvoice': TypeInfo(TypeOf.Class, create:() => QboPendingInvoice()), 'QboPendingResponse': TypeInfo(TypeOf.Class, create:() => QboPendingResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'QboPendingRequest': TypeInfo(TypeOf.Class, create:() => QboPendingRequest()), });