/* Options: Date: 2024-11-24 13:42:52 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: BookingStatusUpdateRequest.* //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 BookingStatusUpdateRequestDto extends ApiDtoBase implements IConvertible { int? UserId; int? StatusId; int? BookingId; BookingStatusUpdateRequestDto({this.UserId,this.StatusId,this.BookingId}); BookingStatusUpdateRequestDto.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); UserId = json['UserId']; StatusId = json['StatusId']; BookingId = json['BookingId']; return this; } Map toJson() => super.toJson()..addAll({ 'UserId': UserId, 'StatusId': StatusId, 'BookingId': BookingId }); getTypeName() => "BookingStatusUpdateRequestDto"; TypeContext? context = _ctx; } class BookingStatusUpdateResponseDto implements IConvertible { bool? Success; String? Message; BookingStatusUpdateResponseDto({this.Success,this.Message}); BookingStatusUpdateResponseDto.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Success = json['Success']; Message = json['Message']; return this; } Map toJson() => { 'Success': Success, 'Message': Message }; getTypeName() => "BookingStatusUpdateResponseDto"; TypeContext? context = _ctx; } class BookingStatusUpdateResponse extends BookingStatusUpdateResponseDto implements IConvertible { bool? Success; String? Message; BookingStatusUpdateResponse({this.Success,this.Message}); BookingStatusUpdateResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); Success = json['Success']; Message = json['Message']; return this; } Map toJson() => super.toJson()..addAll({ 'Success': Success, 'Message': Message }); getTypeName() => "BookingStatusUpdateResponse"; TypeContext? context = _ctx; } // @Route("/scheduling/booking-status-update", "POST") class BookingStatusUpdateRequest extends BookingStatusUpdateRequestDto 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; /** * StoreId */ // @ApiMember(DataType="string", Description="StoreId", IsRequired=true, Name="StoreId", ParameterType="query") int? StoreId; /** * UserID */ // @ApiMember(DataType="string", Description="UserID", IsRequired=true, Name="UserId", ParameterType="query") int? UserId; /** * Status ID */ // @ApiMember(DataType="integer", Description="Status ID", IsRequired=true, Name="StatusId", ParameterType="query") int? StatusId; /** * Booking ID */ // @ApiMember(DataType="integer", Description="Booking ID", IsRequired=true, Name="BookingId", ParameterType="query") int? BookingId; int? RestrictedId; RestrictedResourceType? RestrictedResourceType; BookingStatusUpdateRequest({this.ApiKey,this.StoreId,this.UserId,this.StatusId,this.BookingId,this.RestrictedId,this.RestrictedResourceType}); BookingStatusUpdateRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); ApiKey = json['ApiKey']; StoreId = json['StoreId']; UserId = json['UserId']; StatusId = json['StatusId']; BookingId = json['BookingId']; RestrictedId = json['RestrictedId']; RestrictedResourceType = JsonConverters.fromJson(json['RestrictedResourceType'],'RestrictedResourceType',context!); return this; } Map toJson() => super.toJson()..addAll({ 'ApiKey': ApiKey, 'StoreId': StoreId, 'UserId': UserId, 'StatusId': StatusId, 'BookingId': BookingId, 'RestrictedId': RestrictedId, 'RestrictedResourceType': JsonConverters.toJson(RestrictedResourceType,'RestrictedResourceType',context!) }); createResponse() => BookingStatusUpdateResponse(); getResponseTypeName() => "BookingStatusUpdateResponse"; getTypeName() => "BookingStatusUpdateRequest"; 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), 'ApiDtoBase': TypeInfo(TypeOf.Class, create:() => ApiDtoBase()), 'BookingStatusUpdateRequestDto': TypeInfo(TypeOf.Class, create:() => BookingStatusUpdateRequestDto()), 'BookingStatusUpdateResponseDto': TypeInfo(TypeOf.Class, create:() => BookingStatusUpdateResponseDto()), 'BookingStatusUpdateResponse': TypeInfo(TypeOf.Class, create:() => BookingStatusUpdateResponse()), 'BookingStatusUpdateRequest': TypeInfo(TypeOf.Class, create:() => BookingStatusUpdateRequest()), });