/* Options:
Date: 2024-11-24 13:52:29
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: UserAccountRequest.*
//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.Members.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 UserAccountRequestDto
: ApiDtoBase
{
public virtual int UserId { get; set; }
public virtual string FirstName { get; set; }
public virtual string LastName { get; set; }
public virtual string HomePhone { get; set; }
public virtual string CellPhone { get; set; }
public virtual string Address1 { get; set; }
public virtual string City { get; set; }
public virtual string State { get; set; }
public virtual string Zip { get; set; }
public virtual string Email { get; set; }
public virtual string Gender { get; set; }
public virtual DateTime? DateOfBirth { get; set; }
public virtual string Username { get; set; }
public virtual string ExternalId { get; set; }
public virtual string EmergencyContactName { get; set; }
public virtual string EmergencyContactPhone { get; set; }
public virtual string EmergencyContactType { get; set; }
public virtual int? ProspectTypeId { 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.Members.Model
{
[Route("/users/{UserId}", "PUT")]
public partial class UserAccountRequest
: UserAccountRequestDto, 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; }
///
///
///
[ApiMember(DataType="integer", Description="", IsRequired=true, Name="UserId", ParameterType="query")]
public virtual int UserId { get; set; }
///
///StoreId OR ChainId is required
///
[ApiMember(DataType="integer", Description="StoreId OR ChainId is required", Name="StoreId", ParameterType="query")]
public virtual int? StoreId { get; set; }
///
///StoreId OR ChainId is required
///
[ApiMember(DataType="integer", Description="StoreId OR ChainId is required", Name="ChainId", ParameterType="query")]
public virtual int? ChainId { get; set; }
///
///
///
[ApiMember(DataType="string", Description="", Name="FirstName", ParameterType="query")]
public virtual string FirstName { get; set; }
///
///
///
[ApiMember(DataType="string", Description="", Name="LastName", ParameterType="query")]
public virtual string LastName { get; set; }
///
///
///
[ApiMember(DataType="string", Description="", Name="HomePhone", ParameterType="query")]
public virtual string HomePhone { get; set; }
///
///
///
[ApiMember(DataType="string", Description="", Name="CellPhone", ParameterType="query")]
public virtual string CellPhone { get; set; }
///
///
///
[ApiMember(DataType="string", Description="", Name="Address1", ParameterType="query")]
public virtual string Address1 { get; set; }
///
///
///
[ApiMember(DataType="string", Description="", Name="City", ParameterType="query")]
public virtual string City { get; set; }
///
///(Format:2 characters; Example:'MO')
///
[ApiMember(DataType="string", Description="(Format:2 characters; Example:'MO')", Name="State", ParameterType="query")]
public virtual string State { get; set; }
///
///
///
[ApiMember(DataType="string", Description="", Name="Zip", ParameterType="query")]
public virtual string Zip { get; set; }
///
///
///
[ApiMember(DataType="string", Description="", Name="Email", ParameterType="query")]
public virtual string Email { get; set; }
///
///Gender (Format:'M'|'F')
///
[ApiMember(DataType="string", Description="Gender (Format:'M'|'F')", Name="Gender", ParameterType="query")]
public virtual string Gender { get; set; }
///
///Date of Birth (Format:YYYY-MM-DD)
///
[ApiMember(DataType="date", Description="Date of Birth (Format:YYYY-MM-DD)", Name="DateOfBirth", ParameterType="query")]
public virtual DateTime? DateOfBirth { get; set; }
///
///Username should be between 4 and 255 characters long
///
[ApiMember(DataType="string", Description="Username should be between 4 and 255 characters long", Name="Username", ParameterType="query")]
public virtual string Username { get; set; }
///
///Unique ID for the user from your system. We store internally as ExternalUserId
///
[ApiMember(DataType="string", Description="Unique ID for the user from your system. We store internally as ExternalUserId", Name="ExternalId", ParameterType="query")]
public virtual string ExternalId { get; set; }
///
///Emergency contact name
///
[ApiMember(DataType="string", Description="Emergency contact name", Name="EmergencyContactName", ParameterType="query")]
public virtual string EmergencyContactName { get; set; }
///
///Emergency contact phone number
///
[ApiMember(DataType="string", Description="Emergency contact phone number", Name="EmergencyContactPhone", ParameterType="query")]
public virtual string EmergencyContactPhone { get; set; }
///
///Emergency contact relationship
///
[ApiMember(DataType="string", Description="Emergency contact relationship", Name="EmergencyContactType", ParameterType="query")]
public virtual string EmergencyContactType { get; set; }
///
///Prospect Type Id
///
[ApiMember(DataType="integer", Description="Prospect Type Id", Name="ProspectTypeId", ParameterType="query")]
public virtual int? ProspectTypeId { get; set; }
public virtual int? RestrictedId { get; set; }
public virtual RestrictedResourceType RestrictedResourceType { get; set; }
}
}