/* Options: Date: 2024-06-29 12:34:57 Version: 8.23 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://testapi.bokamera.se //Package: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: GetPricesAfterRebateCode.* //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/prices", Verbs="POST") @ApiResponse(Description="You were unauthorized to call this service", StatusCode=401) @ValidateRequest(Validator="IsAuthenticated") open class GetPricesAfterRebateCode : IReturn { /** * */ @ApiMember(Description="", IsRequired=true) var CompanyId:UUID? = null /** * The service you want to get the prices with rebates on */ @ApiMember(Description="The service you want to get the prices with rebates on") var ServiceId:Int? = null /** * 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") var RebateCodeIds:ArrayList = ArrayList() /** * 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") var RebateCodeSigns:ArrayList = ArrayList() /** * 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) var DateFrom:Date? = null companion object { private val responseType = RebateCodePriceResponse::class.java } override fun getResponseType(): Any? = GetPricesAfterRebateCode.responseType } open class RebateCodePriceResponse { var RebateCodePrices:ArrayList = ArrayList() var ResponseStatus:ResponseStatus? = null } open class RebateCodeTypeItem { var Id:Int? = null var Name:String? = null var Description:String? = null } open class RebateCodePrice { /** * Price Id */ @ApiMember(Description="Price Id") var PriceId:Int? = null var PriceText:String? = null var PriceBeforeRebate:Double? = null var Price:Double? = null var VAT:BigDecimal? = null var AppliedCodes:ArrayList = ArrayList() } open class AppliedRebateCodesResponse { var RebateCodeSign:String? = null var RebateCodeValue:Int? = null var RebateCodeType:RebateCodeTypeItem? = null var RebateCodeId:Int? = null var RebateAmount:Double? = null }