/* Options: Date: 2024-11-24 14:01:07 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: CreditCheckRequest.* //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/{UserId}/credit-check", Verbs="GET") open class CreditCheckRequest : CreditCheckRequestDto(), 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 User ID */ @ApiMember(DataType="integer", Description="ClubReady User ID", IsRequired=true, Name="UserId", ParameterType="path") var UserId:Int? = null /** * ClubReady Customer Session ID */ @ApiMember(DataType="integer", Description="ClubReady Customer Session ID", IsRequired=true, Name="CustomerSessionId", ParameterType="query") var CustomerSessionId:Int? = null /** * ClubReady Class ID */ @ApiMember(DataType="integer", Description="ClubReady Class ID", Name="ClassId", ParameterType="query") var ClassId:Int? = null /** * ClubReady Session Size ID */ @ApiMember(DataType="integer", Description="ClubReady Session Size ID", Name="SessionSizeId", ParameterType="query") var SessionSizeId:Int? = null var RestrictedId:Int? = null var RestrictedResourceType:RestrictedResourceType? = null companion object { private val responseType = CreditCheckResponse::class.java } override fun getResponseType(): Any? = CreditCheckRequest.responseType } open class CreditCheckResponse : CreditCheckResponseDto() { var Success:Boolean? = null var Message:String? = null var CanUse:Boolean? = 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 ApiDtoBase { var ApiKey:String? = null var StoreId:Int? = null var ChainId:Int? = null } open class CreditCheckRequestDto : ApiDtoBase() { var UserId:Int? = null var CustomerSessionId:Int? = null var ClassId:Int? = null var SessionSizeId:Int? = null } open class CreditCheckResponseDto : ApiResponseBase() { var CanUse:Boolean? = null } open class ApiResponseBase { var Success:Boolean? = null var Message:String? = null }