/* Options: Date: 2025-06-28 10:23:47 Version: 8.23 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.bookmore.com //Package: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: CreateIncentiveAction.* //ExcludeTypes: //InitializeCollections: True //TreatTypesAsStrings: //DefaultImports: java.math.*,java.util.*,net.servicestack.client.* */ import java.math.* import java.util.* import net.servicestack.client.* @Route(Path="/superadmin/incentives/action", Verbs="POST") @ValidateRequest(Validator="IsAuthenticated") @ApiResponse(Description="You were unauthorized to call this service", StatusCode=401) open class CreateIncentiveAction : IReturn { var Id:Int? = null var ActionType:IncentiveActionType? = null var Description:String? = null var Page:String? = null var Segment:String? = null var Element:String? = null var LicenseTypeId:Int? = null companion object { private val responseType = IncentiveActionResponse::class.java } override fun getResponseType(): Any? = CreateIncentiveAction.responseType } open class IncentiveActionResponse { var Id:Int? = null var Description:String? = null var ActionType:IncentiveActionType? = null var Page:String? = null var Segment:String? = null var Element:String? = null var LicenseTypeId:Int? = null var SuggestedLicenseToUpgrade:LicenseTypeQueryResponse? = null } open class Country : BaseModel() { @References(Currency.class) var CurrencyId:String? = null var CurrencyInfo:Currency? = null @Required() var Name:String? = null var Culture:String? = null var TimeZone:String? = null var ModifiedDate:Date? = null @Required() var Id:String? = null } open class Currency : BaseModel() { @Required() var Name:String? = null @Required() var CurrencySign:String? = null @Required() var Active:Boolean? = null var ModifiedDate:Date? = null @Required() var Id:String? = null } enum class IncentiveActionType(val value:Int) { Upgrade(1), AddOn(2), Information(3), } open class LicenseTypeQueryResponse { /** * The license type id */ @ApiMember(Description="The license type id") var Id:Int? = null /** * The license type name */ @ApiMember(Description="The license type name") var Name:String? = null /** * The license type description */ @ApiMember(Description="The license type description") var Description:String? = null /** * If the license type is not a standard license but instead an extra license option. An example would be sending new letter license. */ @ApiMember(Description="If the license type is not a standard license but instead an extra license option. An example would be sending new letter license.") var IsExtraLicenseOption:Boolean? = null /** * The period of notice for the license in days. */ @ApiMember(Description="The period of notice for the license in days.") var PeriodOfNoticeDays:Int? = null /** * The license items for the license type */ @ApiMember(Description="The license items for the license type") var Items:ArrayList = ArrayList() /** * The license prices in each country for the license type */ @ApiMember(Description="The license prices in each country for the license type") var Prices:ArrayList = ArrayList() } open class BaseModel { } open class LicensePrice : BaseModel() { @Ignore() var Country:Country? = null @Ignore() var MonthlyPayment:Boolean? = null @Required() var LicenseTypeId:Int? = null @Required() var CountryId:String? = null @Required() var Price:Int? = null var ModifiedDate:Date? = null } open class LicenseItemsResponse { var Id:Int? = null var Name:String? = null var AllowedItems:Int? = null } enum class Currency(val value:Int) { Sek(1), Eur(2), }