/* Options: Date: 2024-11-23 09:13:10 Version: 8.23 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.bokamera.se //Package: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: CreateRebateCodeTransaction.* //ExcludeTypes: //InitializeCollections: True //TreatTypesAsStrings: //DefaultImports: java.math.*,java.util.*,net.servicestack.client.* */ import java.math.* import java.util.* import net.servicestack.client.* @Route(Path="/rebatecodes/transactions", Verbs="POST") @ApiResponse(Description="You were unauthorized to call this service", StatusCode=401) @ValidateRequest(Validator="IsAuthenticated") open class CreateRebateCodeTransaction : IReturn { /** * */ @ApiMember(Description="", IsRequired=true) var CompanyId:UUID? = null /** * Rebate code id to which you wish to add transaction */ @ApiMember(Description="Rebate code id to which you wish to add transaction", IsRequired=true) var RebateCodeId:Int? = null @ApiMember(IsRequired=true) var Amount:Double? = null @ApiMember(IsRequired=true) var Usage:Int? = null @ApiMember() var BookingId:Int? = null /** * 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) var ChangeType:AmountChangeType? = null companion object { private val responseType = RebateCodeTransactionResponse::class.java } override fun getResponseType(): Any? = CreateRebateCodeTransaction.responseType } open class RebateCodeTransactionResponse { var ResponseStatus:ResponseStatus? = null var RebateCodeTransactionItem:RebateCodeTransactionQueryResponse? = null } open class RebateCodeTransactionQueryResponse { var Id:Int? = null var CompanyId:UUID? = null var Note:String? = null var RebateCodeId:Int? = null var RebateCodeSign:String? = null var RebateCodeTypeId:Int? = null var RebateCodeTypeName:String? = null var Amount:Double? = null var BookingId:Int? = null var UpdatedDate:Date? = null var CreatedDate:Date? = null var Service:RebateCodeServiceResponse? = null var Customer:RebateCodeCustomerResponse? = null var PriceSign:String? = null } enum class AmountChangeType { Increase, Decrease, } open class RebateCodeServiceResponse { var Id:Int? = null var Name:String? = null var Description:String? = null var Active:Boolean? = null } open class RebateCodeCustomerResponse { var Id:UUID? = null var Firstname:String? = null var Lastname:String? = null var Email:String? = null var Phone:String? = null var ImageUrl:String? = null }