/* Options: Date: 2026-04-01 02:33:21 Version: 10.05 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.bokamera.se //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: GetSummarizedInvoice.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; abstract class ICompany { String? CompanyId; } class SummarizedInvoiceDetailResponse implements IConvertible { String Id = ""; String CompanyId = ""; String CustomerId = ""; String CustomerName = ""; String? EAccountingInvoiceId; bool Draft; DateTime DateFrom = DateTime(0); DateTime DateTo = DateTime(0); int? ServiceId; int Status = 0; String StatusName = ""; String? ErrorMessage; List BookingIds = []; DateTime CreatedDate = DateTime(0); DateTime UpdatedDate = DateTime(0); SummarizedInvoiceDetailResponse({this.Id,this.CompanyId,this.CustomerId,this.CustomerName,this.EAccountingInvoiceId,this.Draft,this.DateFrom,this.DateTo,this.ServiceId,this.Status,this.StatusName,this.ErrorMessage,this.BookingIds,this.CreatedDate,this.UpdatedDate}); SummarizedInvoiceDetailResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Id = json['Id']; CompanyId = json['CompanyId']; CustomerId = json['CustomerId']; CustomerName = json['CustomerName']; EAccountingInvoiceId = json['EAccountingInvoiceId']; Draft = json['Draft']; DateFrom = JsonConverters.fromJson(json['DateFrom'],'DateTime',context!); DateTo = JsonConverters.fromJson(json['DateTo'],'DateTime',context!); ServiceId = json['ServiceId']; Status = json['Status']; StatusName = json['StatusName']; ErrorMessage = json['ErrorMessage']; BookingIds = JsonConverters.fromJson(json['BookingIds'],'List',context!); CreatedDate = JsonConverters.fromJson(json['CreatedDate'],'DateTime',context!); UpdatedDate = JsonConverters.fromJson(json['UpdatedDate'],'DateTime',context!); return this; } Map toJson() => { 'Id': Id, 'CompanyId': CompanyId, 'CustomerId': CustomerId, 'CustomerName': CustomerName, 'EAccountingInvoiceId': EAccountingInvoiceId, 'Draft': Draft, 'DateFrom': JsonConverters.toJson(DateFrom,'DateTime',context!), 'DateTo': JsonConverters.toJson(DateTo,'DateTime',context!), 'ServiceId': ServiceId, 'Status': Status, 'StatusName': StatusName, 'ErrorMessage': ErrorMessage, 'BookingIds': JsonConverters.toJson(BookingIds,'List',context!), 'CreatedDate': JsonConverters.toJson(CreatedDate,'DateTime',context!), 'UpdatedDate': JsonConverters.toJson(UpdatedDate,'DateTime',context!) }; getTypeName() => "SummarizedInvoiceDetailResponse"; TypeContext? context = _ctx; } // @Route("/eaccounting/summarizedinvoice/{Id}", "GET") // @ValidateRequest(Validator="IsAuthenticated") class GetSummarizedInvoice implements IReturn, ICompany, IConvertible, IGet { /** * The summarized invoice id. */ // @ApiMember(Description="The summarized invoice id.", IsRequired=true) String Id = ""; /** * 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; GetSummarizedInvoice({this.Id,this.CompanyId}); GetSummarizedInvoice.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Id = json['Id']; CompanyId = json['CompanyId']; return this; } Map toJson() => { 'Id': Id, 'CompanyId': CompanyId }; createResponse() => SummarizedInvoiceDetailResponse(); getResponseTypeName() => "SummarizedInvoiceDetailResponse"; getTypeName() => "GetSummarizedInvoice"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.bokamera.se', types: { 'ICompany': TypeInfo(TypeOf.Interface), 'SummarizedInvoiceDetailResponse': TypeInfo(TypeOf.Class, create:() => SummarizedInvoiceDetailResponse()), 'GetSummarizedInvoice': TypeInfo(TypeOf.Class, create:() => GetSummarizedInvoice()), });