/* Options: Date: 2024-11-24 14:04:59 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: CreditDetailRequest.* //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-detail", Verbs="GET") open class CreditDetailRequest : ApiDtoBase(), 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 /** * Determines if the list of the user's credits are broken out by store ID. */ @ApiMember(DataType="Boolean", Description="Determines if the list of the user's credits are broken out by store ID.", Name="FullDetail", ParameterType="query") var FullDetail:Boolean? = null var RestrictedId:Int? = null var RestrictedResourceType:RestrictedResourceType? = null companion object { private val responseType = CreditDetailResponse::class.java } override fun getResponseType(): Any? = CreditDetailRequest.responseType } open class CreditDetailResponse : CreditDetailResponseDto() { var Success:Boolean? = null var Message:String? = null var TotalPurchased:Int? = null var TotalAvailable:Int? = null var Credits: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 ApiDtoBase { var ApiKey:String? = null var StoreId:Int? = null var ChainId:Int? = null } open class SessionCreditDetail { var ServiceId:Int? = null var SessionSizeId:Int? = null var ClassId:Int? = null var Name:String? = null var Total:Int? = null var Available:Int? = null var StoreId:Int? = null } open class CreditDetailResponseDto : ApiResponseBase() { var TotalPurchased:Int? = null var TotalAvailable:Int? = null var Credits:ArrayList = ArrayList() } open class ApiResponseBase { var Success:Boolean? = null var Message:String? = null }