/* Options: Date: 2025-12-15 18:21:28 Version: 6.50 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://www.clubready.com/api/current //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: UserFindByLoginRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; enum RestrictedResourceType { Store, Chain, User, Undefined, } abstract class IApiDtoBase { String? ApiKey; int? StoreId; int? ChainId; } abstract class IRestrictedApiRequest extends IApiKeyEndpoint { int? RestrictedId; RestrictedResourceType? RestrictedResourceType; } abstract class IApiKeyEndpoint { String? ApiKey; } class ApiDtoBase implements IApiDtoBase, IConvertible { String? ApiKey; int? StoreId; int? ChainId; ApiDtoBase({this.ApiKey,this.StoreId,this.ChainId}); ApiDtoBase.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ApiKey = json['ApiKey']; StoreId = json['StoreId']; ChainId = json['ChainId']; return this; } Map toJson() => { 'ApiKey': ApiKey, 'StoreId': StoreId, 'ChainId': ChainId }; getTypeName() => "ApiDtoBase"; TypeContext? context = _ctx; } class UserFindByLoginRequestDto extends ApiDtoBase implements IConvertible { int? UserId; String? UserName; String? Password; UserFindByLoginRequestDto({this.UserId,this.UserName,this.Password}); UserFindByLoginRequestDto.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); UserId = json['UserId']; UserName = json['UserName']; Password = json['Password']; return this; } Map toJson() => super.toJson()..addAll({ 'UserId': UserId, 'UserName': UserName, 'Password': Password }); getTypeName() => "UserFindByLoginRequestDto"; TypeContext? context = _ctx; } enum AuthenticationResult { InvalidPassword, SuccessExpired, SuccessChangePassword, SuccessWeakPassword, Success, CryptographicError, Disabled, Locked, FailedPasswordHistory, FailedWeakPassword, InvalidConfirmation, Error, } class ApiResponseBase implements IConvertible { bool? Success; String? Message; ApiResponseBase({this.Success,this.Message}); ApiResponseBase.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Success = json['Success']; Message = json['Message']; return this; } Map toJson() => { 'Success': Success, 'Message': Message }; getTypeName() => "ApiResponseBase"; TypeContext? context = _ctx; } class UserFindByLoginResponseDto extends ApiResponseBase implements IConvertible { int? HomeStoreId; int? UserId; UserFindByLoginResponseDto({this.HomeStoreId,this.UserId}); UserFindByLoginResponseDto.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); HomeStoreId = json['HomeStoreId']; UserId = json['UserId']; return this; } Map toJson() => super.toJson()..addAll({ 'HomeStoreId': HomeStoreId, 'UserId': UserId }); getTypeName() => "UserFindByLoginResponseDto"; TypeContext? context = _ctx; } class UserFindByLoginResponse extends UserFindByLoginResponseDto implements IConvertible { AuthenticationResult? AuthenticationResult; int? HomeStoreId; int? UserId; UserFindByLoginResponse({this.AuthenticationResult,this.HomeStoreId,this.UserId}); UserFindByLoginResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); AuthenticationResult = JsonConverters.fromJson(json['AuthenticationResult'],'AuthenticationResult',context!); HomeStoreId = json['HomeStoreId']; UserId = json['UserId']; return this; } Map toJson() => super.toJson()..addAll({ 'AuthenticationResult': JsonConverters.toJson(AuthenticationResult,'AuthenticationResult',context!), 'HomeStoreId': HomeStoreId, 'UserId': UserId }); getTypeName() => "UserFindByLoginResponse"; TypeContext? context = _ctx; } // @Route("/users/find/login-details", "GET") // @ApiResponse(Description="

AuthenticationResponse Values

\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\\\r\n\r\n\r\n
TextNumerical
An error occurred (-100)-100
Account is disabled.-11
Account is locked.-10
Your password must be of sufficient length and should contain letters, numbers and special characters.-3
Invalid confirmation.-2
Invalid confirmation.-1
An error occurred.0
Your password has expired and must be changed.1
Your must change your password.2
Login Successful. Please consider changing your password because it does not meet current complexity requirements3
Login successful.10
", ResponseType=typeof(UserFindByLoginResponse), StatusCode=200) class UserFindByLoginRequest extends UserFindByLoginRequestDto implements IReturn, IRestrictedApiRequest, IConvertible { /** * IP address of the end user */ // @ApiMember(Description="IP address of the end user", Name="X-Forwarded-For", ParameterType="header") String? XForwardedFor; /** * Api Key - grants access to resources */ // @ApiMember(DataType="string", Description="Api Key - grants access to resources", IsRequired=true, Name="ApiKey", ParameterType="query") String? ApiKey; /** * ClubReady Club ID (StoreID internally) */ // @ApiMember(DataType="integer", Description="ClubReady Club ID (StoreID internally)", Name="StoreId", ParameterType="query") int? StoreId; /** * StoreId OR ChainId is required */ // @ApiMember(DataType="integer", Description="StoreId OR ChainId is required", Name="ChainId", ParameterType="query") int? ChainId; /** * ClubReady username */ // @ApiMember(DataType="string", Description="ClubReady username", IsRequired=true, Name="UserName", ParameterType="query") String? UserName; /** * ClubReady password */ // @ApiMember(DataType="string", Description="ClubReady password", IsRequired=true, Name="Password", ParameterType="query") String? Password; int? RestrictedId; RestrictedResourceType? RestrictedResourceType; UserFindByLoginRequest({this.XForwardedFor,this.ApiKey,this.StoreId,this.ChainId,this.UserName,this.Password,this.RestrictedId,this.RestrictedResourceType}); UserFindByLoginRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); XForwardedFor = json['XForwardedFor']; ApiKey = json['ApiKey']; StoreId = json['StoreId']; ChainId = json['ChainId']; UserName = json['UserName']; Password = json['Password']; RestrictedId = json['RestrictedId']; RestrictedResourceType = JsonConverters.fromJson(json['RestrictedResourceType'],'RestrictedResourceType',context!); return this; } Map toJson() => super.toJson()..addAll({ 'XForwardedFor': XForwardedFor, 'ApiKey': ApiKey, 'StoreId': StoreId, 'ChainId': ChainId, 'UserName': UserName, 'Password': Password, 'RestrictedId': RestrictedId, 'RestrictedResourceType': JsonConverters.toJson(RestrictedResourceType,'RestrictedResourceType',context!) }); createResponse() => UserFindByLoginResponse(); getResponseTypeName() => "UserFindByLoginResponse"; getTypeName() => "UserFindByLoginRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'www.clubready.com', types: { 'RestrictedResourceType': TypeInfo(TypeOf.Enum, enumValues:RestrictedResourceType.values), 'IApiDtoBase': TypeInfo(TypeOf.Interface), 'IRestrictedApiRequest': TypeInfo(TypeOf.Interface), 'IApiKeyEndpoint': TypeInfo(TypeOf.Interface), 'ApiDtoBase': TypeInfo(TypeOf.Class, create:() => ApiDtoBase()), 'UserFindByLoginRequestDto': TypeInfo(TypeOf.Class, create:() => UserFindByLoginRequestDto()), 'AuthenticationResult': TypeInfo(TypeOf.Enum, enumValues:AuthenticationResult.values), 'ApiResponseBase': TypeInfo(TypeOf.Class, create:() => ApiResponseBase()), 'UserFindByLoginResponseDto': TypeInfo(TypeOf.Class, create:() => UserFindByLoginResponseDto()), 'UserFindByLoginResponse': TypeInfo(TypeOf.Class, create:() => UserFindByLoginResponse()), 'UserFindByLoginRequest': TypeInfo(TypeOf.Class, create:() => UserFindByLoginRequest()), });