/* Options: Date: 2024-06-29 12:16:57 SwiftVersion: 5.0 Version: 8.23 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://testapi.bokamera.se //BaseClass: //AddModelExtensions: True //AddServiceStackTypes: True IncludeTypes: GetPricesAfterRebateCode.* //ExcludeTypes: //ExcludeGenericBaseTypes: False //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True //InitializeCollections: True //TreatTypesAsStrings: //DefaultImports: Foundation,ServiceStack */ import Foundation import ServiceStack // @Route("/rebatecodes/prices", "POST") // @ApiResponse(Description="You were unauthorized to call this service", StatusCode=401) // @ValidateRequest(Validator="IsAuthenticated") public class GetPricesAfterRebateCode : IReturn, Codable { public typealias Return = RebateCodePriceResponse /** * */ // @ApiMember(Description="", IsRequired=true) public var companyId:String /** * The service you want to get the prices with rebates on */ // @ApiMember(Description="The service you want to get the prices with rebates on") public var serviceId:Int? /** * Provide this if you like to the prices with rebate code ids */ // @ApiMember(Description="Provide this if you like to the prices with rebate code ids") public var rebateCodeIds:[Int] = [] /** * Provide this if you like to the prices with rebate code signs instead of ids */ // @ApiMember(Description="Provide this if you like to the prices with rebate code signs instead of ids") public var rebateCodeSigns:[String] = [] /** * Provide this if you like to calculate the prices with the provided datetime */ // @ApiMember(Description="Provide this if you like to calculate the prices with the provided datetime", IsRequired=true) public var dateFrom:Date required public init(){} } public class RebateCodePriceResponse : Codable { public var rebateCodePrices:[RebateCodePrice] = [] public var responseStatus:ResponseStatus required public init(){} } public class RebateCodeTypeItem : Codable { public var id:Int public var name:String public var Description:String required public init(){} } public class RebateCodePrice : Codable { /** * Price Id */ // @ApiMember(Description="Price Id") public var priceId:Int? public var priceText:String public var priceBeforeRebate:Double? public var price:Double? public var vat:Double? public var appliedCodes:[AppliedRebateCodesResponse] = [] required public init(){} } public class AppliedRebateCodesResponse : Codable { public var rebateCodeSign:String public var rebateCodeValue:Int public var rebateCodeType:RebateCodeTypeItem public var rebateCodeId:Int public var rebateAmount:Double required public init(){} }