/* Options: Date: 2024-11-24 13:56:26 Version: 6.50 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://clubready.com/api/current //Package: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: CreateClassScheduleRequest.* //ExcludeTypes: //InitializeCollections: True //TreatTypesAsStrings: //DefaultImports: java.math.*,java.util.*,net.servicestack.client.* */ import java.math.* import java.util.* import net.servicestack.client.* @Route(Path="/scheduling/class-schedule", Verbs="POST") open class CreateClassScheduleRequest : CreateClassScheduleRequestDto(), IReturn, IRestrictedApiRequest { /** * Api Key - grants access to resources */ @ApiMember(DataType="string", Description="Api Key - grants access to resources", IsRequired=true, Name="ApiKey", ParameterType="query") var ApiKey:String? = null /** * Store ID */ @ApiMember(DataType="integer", Description="Store ID", IsRequired=true, Name="StoreId", ParameterType="query") var StoreId:Int? = null /** * Class ID */ @ApiMember(DataType="integer", Description="Class ID", IsRequired=true, Name="ClassId", ParameterType="query") var ClassId:Int? = null /** * Date and Time for Class */ @ApiMember(DataType="date-time", Description="Date and Time for Class", IsRequired=true, Name="ClassDateTime", ParameterType="query") var ClassDateTime:Date? = null /** * Trainer ID */ @ApiMember(DataType="integer", Description="Trainer ID", Name="TrainerId", ParameterType="query") var TrainerId:Int? = null /** * Alternate Class Name */ @ApiMember(DataType="string", Description="Alternate Class Name", Name="AlternateClassName", ParameterType="query") var AlternateClassName:String? = null var RestrictedId:Int? = null var RestrictedResourceType:RestrictedResourceType? = null companion object { private val responseType = CreateClassScheduleResponse::class.java } override fun getResponseType(): Any? = CreateClassScheduleRequest.responseType } open class CreateClassScheduleResponse : CreateClassScheduleResponseDto() { var Success:Boolean? = null var ClassScheduleId:Int? = null var Message:String? = null } enum class RestrictedResourceType { Store, Chain, User, Undefined, } open interface IRestrictedApiRequest : IApiKeyEndpoint { var RestrictedId:Int? var RestrictedResourceType:RestrictedResourceType? } open interface IApiKeyEndpoint { var ApiKey:String? } open class CreateClassScheduleRequestDto : ApiDtoBase() { var ClassId:Int? = null var ClassDateTime:Date? = null var TrainerId:Int? = null var AlternateClassName:String? = null } open class ApiDtoBase { var ApiKey:String? = null var StoreId:Int? = null var ChainId:Int? = null } open class CreateClassScheduleResponseDto : ApiResponseBase() { var ClassScheduleId:Int? = null } open class ApiResponseBase { var Success:Boolean? = null var Message:String? = null }