/* Options: Date: 2025-12-08 00:21:54 Version: 8.80 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://testapi.bokamera.se //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: GetVossCustomerInvoiceBalance.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; enum SortDirectionEnum { Ascending, Descending, } class VossPagination implements IConvertible { String? SearchText; int? PageIndex; int? PageSize; String? SortField; SortDirectionEnum? SortDirection; VossPagination({this.SearchText,this.PageIndex,this.PageSize,this.SortField,this.SortDirection}); VossPagination.fromJson(Map json) { fromMap(json); } fromMap(Map json) { SearchText = json['SearchText']; PageIndex = json['PageIndex']; PageSize = json['PageSize']; SortField = json['SortField']; SortDirection = JsonConverters.fromJson(json['SortDirection'],'SortDirectionEnum',context!); return this; } Map toJson() => { 'SearchText': SearchText, 'PageIndex': PageIndex, 'PageSize': PageSize, 'SortField': SortField, 'SortDirection': JsonConverters.toJson(SortDirection,'SortDirectionEnum',context!) }; getTypeName() => "VossPagination"; TypeContext? context = _ctx; } // @Route("/voss/invoice/balance", "GET") // @ApiResponse(Description="You were unauthorized to call this service", StatusCode=401) class GetVossCustomerInvoiceBalance extends VossPagination implements IConvertible, IGet { /** * The company id, if empty will use the company id for the user you are logged in with. */ // @ApiMember(Description="The company id, if empty will use the company id for the user you are logged in with.") String? CompanyId; /** * Controls up to which point of time transactions are included in invoice, can be set to any date, if not provided current UTC time will be used instead */ // @ApiMember(Description="Controls up to which point of time transactions are included in invoice, can be set to any date, if not provided current UTC time will be used instead") DateTime? InvoiceDate; /** * If present the operation will start only after this date */ // @ApiMember(Description="If present the operation will start only after this date") DateTime? ScheduledStartTime; /** * Optional CRON expression for recurring operations. */ // @ApiMember(Description="Optional CRON expression for recurring operations.") String? RecurringSchedule; GetVossCustomerInvoiceBalance({this.CompanyId,this.InvoiceDate,this.ScheduledStartTime,this.RecurringSchedule}); GetVossCustomerInvoiceBalance.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); CompanyId = json['CompanyId']; InvoiceDate = JsonConverters.fromJson(json['InvoiceDate'],'DateTime',context!); ScheduledStartTime = JsonConverters.fromJson(json['ScheduledStartTime'],'DateTime',context!); RecurringSchedule = json['RecurringSchedule']; return this; } Map toJson() => super.toJson()..addAll({ 'CompanyId': CompanyId, 'InvoiceDate': JsonConverters.toJson(InvoiceDate,'DateTime',context!), 'ScheduledStartTime': JsonConverters.toJson(ScheduledStartTime,'DateTime',context!), 'RecurringSchedule': RecurringSchedule }); getTypeName() => "GetVossCustomerInvoiceBalance"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'testapi.bokamera.se', types: { 'SortDirectionEnum': TypeInfo(TypeOf.Enum, enumValues:SortDirectionEnum.values), 'VossPagination': TypeInfo(TypeOf.Class, create:() => VossPagination()), 'GetVossCustomerInvoiceBalance': TypeInfo(TypeOf.Class, create:() => GetVossCustomerInvoiceBalance()), });