/* Options: Date: 2025-09-15 02:07:26 SwiftVersion: 6.0 Version: 8.80 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.bookmore.com //BaseClass: //AddModelExtensions: True //AddServiceStackTypes: True //MakePropertiesOptional: True IncludeTypes: GetPricesAfterRebateCode.* //ExcludeTypes: //ExcludeGenericBaseTypes: False //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True //InitializeCollections: False //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 RebateCodeTypeResponse : 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:RebateCodeTypeResponse? public var rebateCodeId:Int? public var rebateAmount:Double? required public init(){} }