/* Options: Date: 2024-11-24 13:53:06 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: CheckBookingStatusRequest.* //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/booking-status-check", Verbs="GET") open class CheckBookingStatusRequest : CheckClassBookingStatusRequestDto(), 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 /** * Chain ID */ @ApiMember(DataType="integer", Description="Chain ID", Name="ChainId", ParameterType="query") var ChainId:Int? = null /** * Store ID */ @ApiMember(DataType="integer", Description="Store ID", Name="StoreId", ParameterType="query") var StoreId:Int? = null /** * ClubReady Class Schedule ID */ @ApiMember(DataType="integer", Description="ClubReady Class Schedule ID", IsRequired=true, Name="ClassScheduleId", ParameterType="query") var ClassScheduleId:Int? = null /** * ClubReady User ID */ @ApiMember(DataType="integer", Description="ClubReady User ID", IsRequired=true, Name="UserId", ParameterType="query") var UserId:Int? = null var RestrictedId:Int? = null var RestrictedResourceType:RestrictedResourceType? = null companion object { private val responseType = CheckBookingStatusResponse::class.java } override fun getResponseType(): Any? = CheckBookingStatusRequest.responseType } open class CheckBookingStatusResponse : CheckBookingStatusResponseDto() { var Success:Boolean? = null var Message:String? = null var CanBook:Boolean? = null var ConsumesCredit:Boolean? = null var Source:String? = null var AvailableCredits:Int? = null var IsBooked:Boolean? = null var IsWaitListed:Boolean? = null var CancelHours:Int? = null var LeadTime:Int? = null var MaxLeadTime:Int? = 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 CheckClassBookingStatusRequestDto : ApiDtoBase() { var ClassScheduleId:Int? = null var UserId:Int? = null } open class ApiDtoBase { var ApiKey:String? = null var StoreId:Int? = null var ChainId:Int? = null } open class CheckBookingStatusResponseDto : ApiResponseBase() { var CanBook:Boolean? = null var ConsumesCredit:Boolean? = null var Source:String? = null var AvailableCredits:Int? = null var IsBooked:Boolean? = null var IsWaitListed:Boolean? = null var CancelHours:Int? = null var LeadTime:Int? = null var MaxLeadTime:Int? = null } open class ApiResponseBase { var Success:Boolean? = null var Message:String? = null }