/* Options: Date: 2025-07-01 19:59:02 Version: 8.23 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://testapi.bokamera.se //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: CreateVossInvoice.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; // @Route("/voss/invoice", "POST") // @ApiResponse(Description="You were unauthorized to call this service", StatusCode=401) class CreateVossInvoice implements IConvertible, IPost { /** * Company ids to create invoice. If none added invoice for all will be created */ // @ApiMember(Description="Company ids to create invoice. If none added invoice for all will be created") List? CompanyIds; /** * 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; /** * Only usage. */ // @ApiMember(Description="Only usage.") bool? OnlyUsage; CreateVossInvoice({this.CompanyIds,this.InvoiceDate,this.ScheduledStartTime,this.RecurringSchedule,this.OnlyUsage}); CreateVossInvoice.fromJson(Map json) { fromMap(json); } fromMap(Map json) { CompanyIds = JsonConverters.fromJson(json['CompanyIds'],'List',context!); InvoiceDate = JsonConverters.fromJson(json['InvoiceDate'],'DateTime',context!); ScheduledStartTime = JsonConverters.fromJson(json['ScheduledStartTime'],'DateTime',context!); RecurringSchedule = json['RecurringSchedule']; OnlyUsage = json['OnlyUsage']; return this; } Map toJson() => { 'CompanyIds': JsonConverters.toJson(CompanyIds,'List',context!), 'InvoiceDate': JsonConverters.toJson(InvoiceDate,'DateTime',context!), 'ScheduledStartTime': JsonConverters.toJson(ScheduledStartTime,'DateTime',context!), 'RecurringSchedule': RecurringSchedule, 'OnlyUsage': OnlyUsage }; getTypeName() => "CreateVossInvoice"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'testapi.bokamera.se', types: { 'CreateVossInvoice': TypeInfo(TypeOf.Class, create:() => CreateVossInvoice()), });