/* Options: Date: 2024-11-24 13:38:54 Version: 6.50 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://clubready.com/api/current //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: CancelWaitListRequest.* //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 CancelWaitListResponse implements IConvertible { bool? Success; String? Message; CancelWaitListResponse({this.Success,this.Message}); CancelWaitListResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Success = json['Success']; Message = json['Message']; return this; } Map toJson() => { 'Success': Success, 'Message': Message }; getTypeName() => "CancelWaitListResponse"; TypeContext? context = _ctx; } // @Route("/scheduling/{UserId}/cancel-wait-list", "POST") class CancelWaitListRequest 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; /** * Store ID or Chain ID is required */ // @ApiMember(DataType="integer", Description="Store ID or Chain ID is required", Name="StoreId", ParameterType="query") int? StoreId; /** * Store ID or Chain ID is required */ // @ApiMember(DataType="integer", Description="Store ID or Chain ID is required", Name="ChainId", ParameterType="query") int? ChainId; /** * ClubReady User ID */ // @ApiMember(DataType="integer", Description="ClubReady User ID", IsRequired=true, Name="UserId", ParameterType="path") int? UserId; /** * Class Schedule ID */ // @ApiMember(DataType="integer", Description="Class Schedule ID", IsRequired=true, Name="ClassScheduleId", ParameterType="query") int? ClassScheduleId; int? RestrictedId; RestrictedResourceType? RestrictedResourceType; CancelWaitListRequest({this.ApiKey,this.StoreId,this.ChainId,this.UserId,this.ClassScheduleId,this.RestrictedId,this.RestrictedResourceType}); CancelWaitListRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ApiKey = json['ApiKey']; StoreId = json['StoreId']; ChainId = json['ChainId']; UserId = json['UserId']; ClassScheduleId = json['ClassScheduleId']; RestrictedId = json['RestrictedId']; RestrictedResourceType = JsonConverters.fromJson(json['RestrictedResourceType'],'RestrictedResourceType',context!); return this; } Map toJson() => { 'ApiKey': ApiKey, 'StoreId': StoreId, 'ChainId': ChainId, 'UserId': UserId, 'ClassScheduleId': ClassScheduleId, 'RestrictedId': RestrictedId, 'RestrictedResourceType': JsonConverters.toJson(RestrictedResourceType,'RestrictedResourceType',context!) }; createResponse() => CancelWaitListResponse(); getResponseTypeName() => "CancelWaitListResponse"; getTypeName() => "CancelWaitListRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'clubready.com', types: { 'RestrictedResourceType': TypeInfo(TypeOf.Enum, enumValues:RestrictedResourceType.values), 'IRestrictedApiRequest': TypeInfo(TypeOf.Interface), 'IApiKeyEndpoint': TypeInfo(TypeOf.Interface), 'CancelWaitListResponse': TypeInfo(TypeOf.Class, create:() => CancelWaitListResponse()), 'CancelWaitListRequest': TypeInfo(TypeOf.Class, create:() => CancelWaitListRequest()), });