(* Options:
Date: 2025-12-15 15:43:51
Version: 6.50
Tip: To override a DTO option, remove "//" prefix before updating
BaseUrl: https://www.clubready.com/api/current
//GlobalNamespace:
//MakeDataContractsExtensible: False
//AddReturnMarker: True
//AddDescriptionAsComments: True
//AddDataContractAttributes: False
//AddIndexesToDataMembers: False
//AddGeneratedCodeAttributes: False
//AddResponseStatus: False
//AddImplicitVersion:
//ExportValueTypes: False
IncludeTypes: UserFindByLoginRequest.*
//ExcludeTypes:
//InitializeCollections: True
//AddNamespaces:
*)
namespace ClubReady.Core.Api
open System
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations
type RestrictedResourceType =
| Store = 0
| Chain = 1
| User = 2
| Undefined = 3
[]
type IApiDtoBase =
abstract ApiKey:String with get,set
abstract StoreId:Nullable with get,set
abstract ChainId:Nullable with get,set
[]
type IRestrictedApiRequest =
abstract RestrictedId:Nullable with get,set
abstract RestrictedResourceType:RestrictedResourceType with get,set
[]
type IApiKeyEndpoint =
abstract ApiKey:String with get,set
[]
type ApiDtoBase() =
member val ApiKey:String = null with get,set
member val StoreId:Nullable = new Nullable() with get,set
member val ChainId:Nullable = new Nullable() with get,set
[]
type UserFindByLoginRequestDto() =
inherit ApiDtoBase()
member val UserId:Int32 = new Int32() with get,set
member val UserName:String = null with get,set
member val Password:String = null with get,set
type AuthenticationResult =
| InvalidPassword = 0
| SuccessExpired = 11
| SuccessChangePassword = 12
| SuccessWeakPassword = 21
| Success = 31
| CryptographicError = -100
| Disabled = -22
| Locked = -21
| FailedPasswordHistory = -15
| FailedWeakPassword = -12
| InvalidConfirmation = -11
| Error = -1
[]
type ApiResponseBase() =
member val Success:Boolean = new Boolean() with get,set
member val Message:String = null with get,set
[]
type UserFindByLoginResponseDto() =
inherit ApiResponseBase()
member val HomeStoreId:Nullable = new Nullable() with get,set
member val UserId:Int32 = new Int32() with get,set
[]
type UserFindByLoginResponse() =
inherit UserFindByLoginResponseDto()
member val AuthenticationResult:AuthenticationResult = new AuthenticationResult() with get,set
member val HomeStoreId:Nullable = new Nullable() with get,set
member val UserId:Int32 = new Int32() with get,set
[]
[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=typeof, StatusCode=200)>]
[]
type UserFindByLoginRequest() =
inherit UserFindByLoginRequestDto()
interface IReturn
///
///IP address of the end user
///
[]
member val XForwardedFor:String = null with get,set
///
///Api Key - grants access to resources
///
[]
member val ApiKey:String = null with get,set
///
///ClubReady Club ID (StoreID internally)
///
[]
member val StoreId:Nullable = new Nullable() with get,set
///
///StoreId OR ChainId is required
///
[]
member val ChainId:Nullable = new Nullable() with get,set
///
///ClubReady username
///
[]
member val UserName:String = null with get,set
///
///ClubReady password
///
[]
member val Password:String = null with get,set
member val RestrictedId:Nullable = new Nullable() with get,set
member val RestrictedResourceType:RestrictedResourceType = new RestrictedResourceType() with get,set