/* Options: Date: 2025-06-08 16:51:33 SwiftVersion: 5.0 Version: 8.23 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.bokamera.se //BaseClass: //AddModelExtensions: True //AddServiceStackTypes: True IncludeTypes: ExportPayableEntityReport.* //ExcludeTypes: //ExcludeGenericBaseTypes: False //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True //InitializeCollections: True //TreatTypesAsStrings: //DefaultImports: Foundation,ServiceStack */ import Foundation import ServiceStack // @Route("/articles/{InternalReferenceId}/reports", "GET") // @ValidateRequest(Validator="IsAuthenticated") public class ExportPayableEntityReport : ICompany, Codable { /** * 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? /** * Id of the internal reference (booking, rebate code, etc) */ // @ApiMember(Description="Id of the internal reference (booking, rebate code, etc)", IsRequired=true, ParameterType="path") public var internalReferenceId:String public var sendReceiptMethod:SendReceiptMethod /** * Article type (Could be Service, rebate code types, etc.. */ // @ApiMember(Description="Article type (Could be Service, rebate code types, etc..", IsRequired=true) public var articleTypeId:Int required public init(){} } public protocol ICompany { var companyId:String? { get set } } public enum SendReceiptMethod : Int, Codable { case Email = 1 case PdfExport = 2 }