/* Options: Date: 2024-11-24 13:44: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: ClassRosterRequest.* //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-roster", Verbs="GET") open class ClassRosterRequest : ClassRosterRequestDto(), 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 or Chain Id is required */ @ApiMember(DataType="integer", Description="Store Id or Chain Id is required", Name="StoreId", ParameterType="query") var StoreId:Int? = null /** * Store Id or Chain Id is required */ @ApiMember(DataType="integer", Description="Store Id or Chain Id is required", Name="ChainId", ParameterType="query") var ChainId:Int? = null /** * Class Schedule ID */ @ApiMember(DataType="integer", Description="Class Schedule ID", IsRequired=true, Name="ClassScheduleId", ParameterType="query") var ClassScheduleId:Int? = null var RestrictedId:Int? = null var RestrictedResourceType:RestrictedResourceType? = null companion object { private val responseType = ClassRosterResponse::class.java } override fun getResponseType(): Any? = ClassRosterRequest.responseType } open class ClassRosterResponse : ClassRosterResponseDto() { var Success:Boolean? = null var Message:String? = null var ClassDate:Date? = null var FreeSpots:Int? = null var MaxSpots:Int? = null var TotalBooked:Int? = null var LocationType:String? = null var VirtualLink:String? = null var ClassRoster:ArrayList = ArrayList() var WaitList:ArrayList = ArrayList() } 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 ClassRosterRequestDto : ApiDtoBase() { var ClassScheduleId:Int? = null } open class ApiDtoBase { var ApiKey:String? = null var StoreId:Int? = null var ChainId:Int? = null } open class ClassRosterItem { var BookingId:Int? = null var UserId:Int? = null var FirstName:String? = null var LastName:String? = null var Email:String? = null var Phone:String? = null var BookingMade:Date? = null var FirstTimeBooking:Boolean? = null var PackageName:String? = null var PackageId:Int? = null var LeadTypeName:String? = null var LeadTypeId:Int? = null var IsMember:Boolean? = null var MemberExpiration:Date? = null var CreditType:ClassRosterCreditType? = null var CreditsRemaining:Int? = null var NextCreditExpiration:Date? = null var BookingStatusId:Short? = null var BookingStatusDescription:String? = null } open class ClassRosterResponseDto : ApiResponseBase() { var ClassRoster:ArrayList = ArrayList() var WaitList:ArrayList = ArrayList() } open class ApiResponseBase { var Success:Boolean? = null var Message:String? = null } enum class ClassRosterCreditType(val value:Int) { Uninitialized(0), PaidCredit(1), FreeCredit(2), AmenityCredit(3), MembershipTypeCredit(4), ClassPassCredit(5), Error(-1), }