/* Options: Date: 2026-04-01 02:31:13 SwiftVersion: 6.0 Version: 10.05 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.bokamera.se //BaseClass: //AddModelExtensions: True //AddServiceStackTypes: True //MakePropertiesOptional: True IncludeTypes: QuerySummarizedInvoices.* //ExcludeTypes: //ExcludeGenericBaseTypes: False //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True //InitializeCollections: False //TreatTypesAsStrings: //DefaultImports: Foundation,ServiceStack */ import Foundation import ServiceStack // @Route("/eaccounting/summarizedinvoices", "GET") // @ValidateRequest(Validator="IsAuthenticated") public class QuerySummarizedInvoices : IReturn, ICompany, Codable { public typealias Return = QuerySummarizedInvoicesResponse /** * 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.") public var companyId:String? /** * Filter by customer id. */ // @ApiMember(Description="Filter by customer id.") public var customerId:String? /** * Filter by date from. */ // @ApiMember(Description="Filter by date from.") public var dateFrom:Date? /** * Filter by date to. */ // @ApiMember(Description="Filter by date to.") public var dateTo:Date? /** * Filter by status (0=Pending, 1=Processing, 2=Completed, 3=Failed). */ // @ApiMember(Description="Filter by status (0=Pending, 1=Processing, 2=Completed, 3=Failed).") public var status:SummarizedInvoiceStatus? required public init(){} } public class QuerySummarizedInvoicesResponse : Codable { public var results:[SummarizedInvoiceDetailResponse] = [] public var responseStatus:ResponseStatus? required public init(){} } public protocol ICompany { var companyId:String? { get set } } public enum SummarizedInvoiceStatus : String, Codable { case Pending case Processing case Completed case Failed } public class SummarizedInvoiceDetailResponse : Codable { public var id:String? public var companyId:String? public var customerId:String? public var customerName:String? public var eAccountingInvoiceId:String? public var draft:Bool? public var dateFrom:Date? public var dateTo:Date? public var serviceId:Int? public var status:Int? public var statusName:String? public var errorMessage:String? public var bookingIds:[Int] = [] public var createdDate:Date? public var updatedDate:Date? required public init(){} }