/* Options: Date: 2024-12-03 17:58:23 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: SubscribeToNewsletter.* //ExcludeTypes: //InitializeCollections: True //TreatTypesAsStrings: //DefaultImports: java.math.*,java.util.*,net.servicestack.client.*,com.google.gson.annotations.*,com.google.gson.reflect.* */ import java.math.* import java.util.* import net.servicestack.client.* import com.google.gson.annotations.* import com.google.gson.reflect.* @Route(Path="/newsletter/subscribe", Verbs="PUT") @ApiResponse(Description="You were unauthorized to call this service", StatusCode=401) open class SubscribeToNewsletter : IReturn>, ICompany { /** * The company id, if empty will use the company id for the user you are logged in with. */ @ApiMember(Description="The company id, if empty will use the company id for the user you are logged in with.") var CompanyId:UUID? = null /** * Companies for which user is subscribed. */ @ApiMember(Description="Companies for which user is subscribed.", IsRequired=true) var SubscribedCompanies:ArrayList = ArrayList() companion object { private val responseType = object : TypeToken>(){}.type } override fun getResponseType(): Any? = SubscribeToNewsletter.responseType } open interface ICompany { var CompanyId:UUID? } open class SubscribedUserResponse { var Subscribed:Boolean? = null var CompanyId:UUID? = null }