/* Options: Date: 2026-02-14 10:19:13 Version: 10.04 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://stf-api-uat.data-xchange.co.za //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: GetInvoiceByType.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class PagedQueryResult implements IConvertible { int startIndex = 0; int endIndex = 0; int numberOfRecordsReturned = 0; int totalNumberOfPages = 0; int totalNumberOfRecords = 0; List results = []; PagedQueryResult({this.startIndex,this.endIndex,this.numberOfRecordsReturned,this.totalNumberOfPages,this.totalNumberOfRecords,this.results}); PagedQueryResult.fromJson(Map json) { fromMap(json); } fromMap(Map json) { startIndex = json['startIndex']; endIndex = json['endIndex']; numberOfRecordsReturned = json['numberOfRecordsReturned']; totalNumberOfPages = json['totalNumberOfPages']; totalNumberOfRecords = json['totalNumberOfRecords']; results = JsonConverters.fromJson(json['results'],'List<${runtimeGenericTypeDefs(this,[0]).join(",")}>',context!); return this; } Map toJson() => { 'startIndex': startIndex, 'endIndex': endIndex, 'numberOfRecordsReturned': numberOfRecordsReturned, 'totalNumberOfPages': totalNumberOfPages, 'totalNumberOfRecords': totalNumberOfRecords, 'results': JsonConverters.toJson(results,'List',context!) }; getTypeName() => "PagedQueryResult<$T>"; TypeContext? context = _ctx; } /** * Invoice */ // @Route("/invoice/type/{Type}", "GET") // @Api(Description="Invoice") // @ApiResponse(Description="Paged invoice response by type", IsDefaultResponse=true, StatusCode=200) class GetInvoiceByType implements IReturn>>, IConvertible, IGet { /** * Not used */ // @ApiMember(Description="Not used") String searchTerm = ""; /** * Requested page number, starting at 1 */ // @ApiMember(Description="Requested page number, starting at 1") int requestedPage = 0; /** * Number of records to return on a page */ // @ApiMember(Description="Number of records to return on a page") int numberOfRecordsPerPage = 0; /** * Invoice type to be returned */ // @ApiMember(Description="Invoice type to be returned", ExcludeInSchema=true, ParameterType="path") String type = ""; GetInvoiceByType({this.searchTerm,this.requestedPage,this.numberOfRecordsPerPage,this.type}); GetInvoiceByType.fromJson(Map json) { fromMap(json); } fromMap(Map json) { searchTerm = json['searchTerm']; requestedPage = json['requestedPage']; numberOfRecordsPerPage = json['numberOfRecordsPerPage']; type = json['type']; return this; } Map toJson() => { 'searchTerm': searchTerm, 'requestedPage': requestedPage, 'numberOfRecordsPerPage': numberOfRecordsPerPage, 'type': type }; createResponse() => PagedQueryResult>(); getResponseTypeName() => "PagedQueryResult>"; getTypeName() => "GetInvoiceByType"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'stf_api_uat.data_xchange.co.za', types: { 'PagedQueryResult': TypeInfo(TypeOf.GenericDef,create:() => PagedQueryResult()), 'PagedQueryResult>': TypeInfo(TypeOf.Class, create:() => PagedQueryResult>()), 'ResultItem': TypeInfo(TypeOf.Class, create:() => ResultItem()), 'InvoiceMessage': TypeInfo(TypeOf.Class, create:() => InvoiceMessage()), 'GetInvoiceByType': TypeInfo(TypeOf.Class, create:() => GetInvoiceByType()), });