/* Options: Date: 2025-09-17 07:24:31 SwiftVersion: 6.0 Version: 8.80 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.bokamera.se //BaseClass: //AddModelExtensions: True //AddServiceStackTypes: True //MakePropertiesOptional: True IncludeTypes: CreateRebateCodeTransaction.* //ExcludeTypes: //ExcludeGenericBaseTypes: False //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True //InitializeCollections: False //TreatTypesAsStrings: //DefaultImports: Foundation,ServiceStack */ import Foundation import ServiceStack // @Route("/rebatecodes/transactions", "POST") // @ApiResponse(Description="You were unauthorized to call this service", StatusCode=401) // @ValidateRequest(Validator="IsAuthenticated") public class CreateRebateCodeTransaction : IReturn, Codable { public typealias Return = RebateCodeTransactionResponse /** * */ // @ApiMember(Description="", IsRequired=true) public var companyId:String? /** * Rebate code id to which you wish to add transaction */ // @ApiMember(Description="Rebate code id to which you wish to add transaction", IsRequired=true) public var rebateCodeId:Int? // @ApiMember(IsRequired=true) public var amount:Double? // @ApiMember(IsRequired=true) public var usage:Int? // @ApiMember() public var bookingId:Int? /** * If you want to Increase = 0 or Decrease = 1 the value */ // @ApiMember(Description="If you want to Increase = 0 or Decrease = 1 the value", IsRequired=true) public var changeType:AmountChangeType? required public init(){} } public class RebateCodeTransactionResponse : Codable { public var responseStatus:ResponseStatus? public var rebateCodeTransactionItem:RebateCodeTransactionQueryResponse? required public init(){} } public class RebateCodeTransactionQueryResponse : Codable { public var id:Int? public var companyId:String? public var note:String? public var rebateCodeId:Int? public var rebateCodeSign:String? public var rebateCodeTypeId:Int? public var rebateCodeTypeName:String? public var amount:Double? public var usage:String? public var bookingId:Int? public var updatedDate:Date? public var createdDate:Date? public var service:RebateCodeServiceResponse? public var customer:RebateCodeCustomerResponse? public var priceSign:String? required public init(){} } public enum AmountChangeType : String, Codable { case Increase case Decrease } public class RebateCodeServiceResponse : Codable { public var id:Int? public var name:String? public var Description:String? public var active:Bool? required public init(){} } public class RebateCodeCustomerResponse : Codable { public var id:String? public var firstname:String? public var lastname:String? public var email:String? public var phone:String? public var imageUrl:String? required public init(){} }