/* Options: Date: 2024-05-11 01:13:39 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: CheckBookingStatusRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; enum RestrictedResourceType { Store, Chain, User, Undefined, } abstract class IRestrictedApiRequest extends IApiKeyEndpoint { int? RestrictedId; RestrictedResourceType? RestrictedResourceType; } abstract class IApiKeyEndpoint { String? ApiKey; } class ApiDtoBase implements 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 CheckClassBookingStatusRequestDto extends ApiDtoBase implements IConvertible { int? ClassScheduleId; int? UserId; CheckClassBookingStatusRequestDto({this.ClassScheduleId,this.UserId}); CheckClassBookingStatusRequestDto.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); ClassScheduleId = json['ClassScheduleId']; UserId = json['UserId']; return this; } Map toJson() => super.toJson()..addAll({ 'ClassScheduleId': ClassScheduleId, 'UserId': UserId }); getTypeName() => "CheckClassBookingStatusRequestDto"; TypeContext? context = _ctx; } 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 CheckBookingStatusResponseDto extends ApiResponseBase implements IConvertible { bool? CanBook; bool? ConsumesCredit; String? Source; int? AvailableCredits; bool? IsBooked; bool? IsWaitListed; int? CancelHours; int? LeadTime; int? MaxLeadTime; CheckBookingStatusResponseDto({this.CanBook,this.ConsumesCredit,this.Source,this.AvailableCredits,this.IsBooked,this.IsWaitListed,this.CancelHours,this.LeadTime,this.MaxLeadTime}); CheckBookingStatusResponseDto.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); CanBook = json['CanBook']; ConsumesCredit = json['ConsumesCredit']; Source = json['Source']; AvailableCredits = json['AvailableCredits']; IsBooked = json['IsBooked']; IsWaitListed = json['IsWaitListed']; CancelHours = json['CancelHours']; LeadTime = json['LeadTime']; MaxLeadTime = json['MaxLeadTime']; return this; } Map toJson() => super.toJson()..addAll({ 'CanBook': CanBook, 'ConsumesCredit': ConsumesCredit, 'Source': Source, 'AvailableCredits': AvailableCredits, 'IsBooked': IsBooked, 'IsWaitListed': IsWaitListed, 'CancelHours': CancelHours, 'LeadTime': LeadTime, 'MaxLeadTime': MaxLeadTime }); getTypeName() => "CheckBookingStatusResponseDto"; TypeContext? context = _ctx; } class CheckBookingStatusResponse extends CheckBookingStatusResponseDto implements IConvertible { bool? Success; String? Message; bool? CanBook; bool? ConsumesCredit; String? Source; int? AvailableCredits; bool? IsBooked; bool? IsWaitListed; int? CancelHours; int? LeadTime; int? MaxLeadTime; CheckBookingStatusResponse({this.Success,this.Message,this.CanBook,this.ConsumesCredit,this.Source,this.AvailableCredits,this.IsBooked,this.IsWaitListed,this.CancelHours,this.LeadTime,this.MaxLeadTime}); CheckBookingStatusResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); Success = json['Success']; Message = json['Message']; CanBook = json['CanBook']; ConsumesCredit = json['ConsumesCredit']; Source = json['Source']; AvailableCredits = json['AvailableCredits']; IsBooked = json['IsBooked']; IsWaitListed = json['IsWaitListed']; CancelHours = json['CancelHours']; LeadTime = json['LeadTime']; MaxLeadTime = json['MaxLeadTime']; return this; } Map toJson() => super.toJson()..addAll({ 'Success': Success, 'Message': Message, 'CanBook': CanBook, 'ConsumesCredit': ConsumesCredit, 'Source': Source, 'AvailableCredits': AvailableCredits, 'IsBooked': IsBooked, 'IsWaitListed': IsWaitListed, 'CancelHours': CancelHours, 'LeadTime': LeadTime, 'MaxLeadTime': MaxLeadTime }); getTypeName() => "CheckBookingStatusResponse"; TypeContext? context = _ctx; } // @Route("/scheduling/booking-status-check", "GET") class CheckBookingStatusRequest extends CheckClassBookingStatusRequestDto implements IReturn, IRestrictedApiRequest, IConvertible { /** * Api Key - grants access to resources */ // @ApiMember(DataType="string", Description="Api Key - grants access to resources", IsRequired=true, Name="ApiKey", ParameterType="query") String? ApiKey; /** * Chain ID */ // @ApiMember(DataType="integer", Description="Chain ID", Name="ChainId", ParameterType="query") int? ChainId; /** * Store ID */ // @ApiMember(DataType="integer", Description="Store ID", Name="StoreId", ParameterType="query") int? StoreId; /** * ClubReady Class Schedule ID */ // @ApiMember(DataType="integer", Description="ClubReady Class Schedule ID", IsRequired=true, Name="ClassScheduleId", ParameterType="query") int? ClassScheduleId; /** * ClubReady User ID */ // @ApiMember(DataType="integer", Description="ClubReady User ID", IsRequired=true, Name="UserId", ParameterType="query") int? UserId; int? RestrictedId; RestrictedResourceType? RestrictedResourceType; CheckBookingStatusRequest({this.ApiKey,this.ChainId,this.StoreId,this.ClassScheduleId,this.UserId,this.RestrictedId,this.RestrictedResourceType}); CheckBookingStatusRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); ApiKey = json['ApiKey']; ChainId = json['ChainId']; StoreId = json['StoreId']; ClassScheduleId = json['ClassScheduleId']; UserId = json['UserId']; RestrictedId = json['RestrictedId']; RestrictedResourceType = JsonConverters.fromJson(json['RestrictedResourceType'],'RestrictedResourceType',context!); return this; } Map toJson() => super.toJson()..addAll({ 'ApiKey': ApiKey, 'ChainId': ChainId, 'StoreId': StoreId, 'ClassScheduleId': ClassScheduleId, 'UserId': UserId, 'RestrictedId': RestrictedId, 'RestrictedResourceType': JsonConverters.toJson(RestrictedResourceType,'RestrictedResourceType',context!) }); createResponse() => CheckBookingStatusResponse(); getResponseTypeName() => "CheckBookingStatusResponse"; getTypeName() => "CheckBookingStatusRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'www.clubready.com', types: { 'RestrictedResourceType': TypeInfo(TypeOf.Enum, enumValues:RestrictedResourceType.values), 'IRestrictedApiRequest': TypeInfo(TypeOf.Interface), 'IApiKeyEndpoint': TypeInfo(TypeOf.Interface), 'ApiDtoBase': TypeInfo(TypeOf.Class, create:() => ApiDtoBase()), 'CheckClassBookingStatusRequestDto': TypeInfo(TypeOf.Class, create:() => CheckClassBookingStatusRequestDto()), 'ApiResponseBase': TypeInfo(TypeOf.Class, create:() => ApiResponseBase()), 'CheckBookingStatusResponseDto': TypeInfo(TypeOf.Class, create:() => CheckBookingStatusResponseDto()), 'CheckBookingStatusResponse': TypeInfo(TypeOf.Class, create:() => CheckBookingStatusResponse()), 'CheckBookingStatusRequest': TypeInfo(TypeOf.Class, create:() => CheckBookingStatusRequest()), });