/* Options: Date: 2024-11-24 13:21:27 Version: 6.50 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://clubready.com/api/current //GlobalNamespace: //MakePartial: True //MakeVirtual: True //MakeInternal: False //MakeDataContractsExtensible: False //AddNullableAnnotations: False //AddReturnMarker: True //AddDescriptionAsComments: True //AddDataContractAttributes: False //AddIndexesToDataMembers: False //AddGeneratedCodeAttributes: False //AddResponseStatus: False //AddImplicitVersion: //InitializeCollections: True //ExportValueTypes: False IncludeTypes: CreateGuestPassRequest.* //ExcludeTypes: //AddNamespaces: //AddDefaultXmlNamespace: http://schemas.servicestack.net/types */ using System; using System.Collections; using System.Collections.Generic; using System.Runtime.Serialization; using ServiceStack; using ServiceStack.DataAnnotations; using ClubReady.Web.Api; using ClubReady.Core.Api.Models; using ClubReady.Web.Api.ClubAccess.Model; namespace ClubReady.Core.Api.Models { public partial class ApiDtoBase { public virtual string ApiKey { get; set; } public virtual int? StoreId { get; set; } public virtual int? ChainId { get; set; } } public partial class ApiResponseBase { public virtual bool Success { get; set; } public virtual string Message { get; set; } } public partial class CreateGuestPassRequestDto : ApiDtoBase { public virtual int UserId { get; set; } public virtual int GuestPassTypeId { get; set; } public virtual bool Activated { get; set; } public virtual DateTime? Expires { get; set; } } public partial class CreateGuestPassResponseDto : ApiResponseBase { public virtual int GuestPassId { get; set; } } } namespace ClubReady.Web.Api { public partial interface IApiKeyEndpoint { string ApiKey { get; set; } } public partial interface IRestrictedApiRequest : IApiKeyEndpoint { int? RestrictedId { get; set; } RestrictedResourceType RestrictedResourceType { get; set; } } public enum RestrictedResourceType { Store, Chain, User, Undefined, } } namespace ClubReady.Web.Api.ClubAccess.Model { [Route("/club/guest-pass/create", "POST")] public partial class CreateGuestPassRequest : CreateGuestPassRequestDto, IReturn, IRestrictedApiRequest { /// ///Api Key - grants access to resources /// [ApiMember(DataType="string", Description="Api Key - grants access to resources", IsRequired=true, Name="ApiKey", ParameterType="query")] public virtual string ApiKey { get; set; } /// ///User ID /// [ApiMember(DataType="string", Description="User ID", IsRequired=true, Name="UserId", ParameterType="query")] public virtual int UserId { get; set; } /// ///Store ID /// [ApiMember(DataType="integer", Description="Store ID", IsRequired=true, Name="StoreId", ParameterType="query")] public virtual int? StoreId { get; set; } /// ///Guest pass type to create. /// [ApiMember(DataType="integer", Description="Guest pass type to create.", IsRequired=true, Name="GuestPassTypeId", ParameterType="query")] public virtual int GuestPassTypeId { get; set; } /// ///Activate this Guest Pass immediately? (True or False) /// [ApiMember(DataType="bool", Description="Activate this Guest Pass immediately? (True or False)", IsRequired=true, Name="Activated", ParameterType="query")] public virtual bool Activated { get; set; } /// ///When will this pass expire? (leave blank for never) /// [ApiMember(DataType="datetime", Description="When will this pass expire? (leave blank for never)", Name="Expires", ParameterType="query")] public virtual DateTime? Expires { get; set; } public virtual int? RestrictedId { get; set; } public virtual RestrictedResourceType RestrictedResourceType { get; set; } } public partial class CreateGuestPassResponse : CreateGuestPassResponseDto { public virtual bool Success { get; set; } public virtual int GuestPassId { get; set; } public virtual string Message { get; set; } } }