/* Options:
Date: 2025-12-15 18:43:51
Version: 6.50
Tip: To override a DTO option, remove "//" prefix before updating
BaseUrl: https://www.clubready.com/api
//Package:
//AddServiceStackTypes: True
//AddResponseStatus: False
//AddImplicitVersion:
//AddDescriptionAsComments: True
IncludeTypes: UserFindByLoginRequest.*
//ExcludeTypes:
//InitializeCollections: True
//TreatTypesAsStrings:
//DefaultImports: java.math.*,java.util.*,net.servicestack.client.*
*/
import java.math.*
import java.util.*
import net.servicestack.client.*
@Route(Path="/users/find/login-details", Verbs="GET")
@ApiResponse(Description="
AuthenticationResponse Values
\r\n\r\n| Text | Numerical |
\r\n| An error occurred (-100) | -100 |
\r\n| Account is disabled. | -11 |
\r\n| Account is locked. | -10 |
\r\n| Your password must be of sufficient length and should contain letters, numbers and special characters. | -3 |
\r\n| Invalid confirmation. | -2 |
\r\n| Invalid confirmation. | -1 |
\r\n| An error occurred. | 0 |
\r\n| Your password has expired and must be changed. | 1 |
\r\n| Your must change your password. | 2 |
\\\r\n| Login Successful. Please consider changing your password because it does not meet current complexity requirements | 3 |
\r\n| Login successful. | 10 |
\r\n
", ResponseType=UserFindByLoginResponse.class, StatusCode=200)
open class UserFindByLoginRequest : UserFindByLoginRequestDto(), IReturn, IRestrictedApiRequest
{
/**
* IP address of the end user
*/
@ApiMember(Description="IP address of the end user", Name="X-Forwarded-For", ParameterType="header")
var XForwardedFor:String? = null
/**
* 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
/**
* ClubReady Club ID (StoreID internally)
*/
@ApiMember(DataType="integer", Description="ClubReady Club ID (StoreID internally)", Name="StoreId", ParameterType="query")
var StoreId:Int? = null
/**
* StoreId OR ChainId is required
*/
@ApiMember(DataType="integer", Description="StoreId OR ChainId is required", Name="ChainId", ParameterType="query")
var ChainId:Int? = null
/**
* ClubReady username
*/
@ApiMember(DataType="string", Description="ClubReady username", IsRequired=true, Name="UserName", ParameterType="query")
var UserName:String? = null
/**
* ClubReady password
*/
@ApiMember(DataType="string", Description="ClubReady password", IsRequired=true, Name="Password", ParameterType="query")
var Password:String? = null
var RestrictedId:Int? = null
var RestrictedResourceType:RestrictedResourceType? = null
companion object { private val responseType = UserFindByLoginResponse::class.java }
override fun getResponseType(): Any? = UserFindByLoginRequest.responseType
}
open class UserFindByLoginResponse : UserFindByLoginResponseDto()
{
var AuthenticationResult:AuthenticationResult? = null
var HomeStoreId:Int? = null
var UserId:Int? = null
}
enum class RestrictedResourceType
{
Store,
Chain,
User,
Undefined,
}
open interface IApiDtoBase
{
var ApiKey:String?
var StoreId:Int?
var ChainId:Int?
}
open interface IRestrictedApiRequest : IApiKeyEndpoint
{
var RestrictedId:Int?
var RestrictedResourceType:RestrictedResourceType?
}
open interface IApiKeyEndpoint
{
var ApiKey:String?
}
open class ApiDtoBase : IApiDtoBase
{
var ApiKey:String? = null
var StoreId:Int? = null
var ChainId:Int? = null
}
open class UserFindByLoginRequestDto : ApiDtoBase()
{
var UserId:Int? = null
var UserName:String? = null
var Password:String? = null
}
enum class AuthenticationResult(val value:Int)
{
InvalidPassword(0),
SuccessExpired(11),
SuccessChangePassword(12),
SuccessWeakPassword(21),
Success(31),
CryptographicError(-100),
Disabled(-22),
Locked(-21),
FailedPasswordHistory(-15),
FailedWeakPassword(-12),
InvalidConfirmation(-11),
Error(-1),
}
open class UserFindByLoginResponseDto : ApiResponseBase()
{
var HomeStoreId:Int? = null
var UserId:Int? = null
}
open class ApiResponseBase
{
var Success:Boolean? = null
var Message:String? = null
}