/* Options: Date: 2024-11-21 12:12:43 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: ExportRebateCode.* //ExcludeTypes: //ExcludeGenericBaseTypes: False //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True //InitializeCollections: True //TreatTypesAsStrings: //DefaultImports: Foundation,ServiceStack */ import Foundation import ServiceStack // @Route("/rebatecodes/{RebateCodeId}/reports", "GET") // @ValidateRequest(Validator="IsAuthenticated") public class ExportRebateCode : ICompany, Codable { /** * Id of the rebate code */ // @ApiMember(Description="Id of the rebate code", IsRequired=true, ParameterType="path") public var rebateCodeId:Int /** * 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? public var sendReceiptMethod:SendReceiptMethod required public init(){} } public protocol ICompany { var companyId:String? { get set } } public enum SendReceiptMethod : Int, Codable { case Email = 1 case PdfExport = 2 }