/* Options: Date: 2025-07-19 11:36:13 Version: 6.50 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://www.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: AddNewUserEndpoint.* //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; using ClubReady.Web.Api.Sales.Agreement; namespace ClubReady.Core.Api { public partial interface IApiDtoBase { string ApiKey { get; set; } int? StoreId { get; set; } int? ChainId { get; set; } } } namespace ClubReady.Web.Api { public partial class ApiResponse2Base { public virtual bool success { get; set; } public virtual string message { get; set; } } 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.Sales.Agreement { [Route("/sales/agreement/addNewUser", "POST")] [ApiResponse(Description="", ResponseType=typeof(ClubReady.Web.Api.Sales.Agreement.AddNewUserResponse), StatusCode=200)] public partial class AddNewUserEndpoint : IReturn, IAddNewUserEndpoint, IRestrictedApiRequest { /// ///IP address of the end user /// [ApiMember(Description="IP address of the end user", IsRequired=true, Name="X-Forwarded-For", ParameterType="header")] public virtual string XForwardedFor { get; set; } /// ///Api Authentication Key /// [ApiMember(Description="Api Authentication Key", IsRequired=true, ParameterType="query")] public virtual string ApiKey { get; set; } /// ///Member Id of the user buying the Package /// [ApiMember(Description="Member Id of the user buying the Package", IsRequired=true, ParameterType="query")] public virtual int MemberId { get; set; } /// ///Id of the store for the user /// [ApiMember(Description="Id of the store for the user", IsRequired=true)] public virtual int? StoreId { get; set; } public virtual int? ChainId { get; set; } /// ///Package Id number of the package being purchased /// [ApiMember(Description="Package Id number of the package being purchased", IsRequired=true)] public virtual int PackageId { get; set; } /// ///Installment Plan Id being purchased. If empty, the default package will be selected. /// [ApiMember(Description="Installment Plan Id being purchased. If empty, the default package will be selected.")] public virtual int? InstallmentId { get; set; } /// ///Date contract takes affect /// [ApiMember(Description="Date contract takes affect")] public virtual DateTime? StartDate { get; set; } /// ///Promo code to apply a discount. /// [ApiMember(Description="Promo code to apply a discount.")] public virtual string PromoCode { get; set; } /// ///Staff Id of salesperson who sold the agreement. /// [ApiMember(Description="Staff Id of salesperson who sold the agreement.")] public virtual int? StaffId { get; set; } public virtual int? RestrictedId { get; set; } public virtual RestrictedResourceType RestrictedResourceType { get; set; } /// ///First Name /// [ApiMember(Description="First Name", IsRequired=true)] public virtual string FirstName { get; set; } /// ///Last Name /// [ApiMember(Description="Last Name", IsRequired=true)] public virtual string LastName { get; set; } /// ///Email Address /// [ApiMember(Description="Email Address", IsRequired=true)] public virtual string Email { get; set; } /// ///Gender /// [ApiMember(Description="Gender")] public virtual string Gender { get; set; } /// ///Address /// [ApiMember(Description="Address")] public virtual string Address { get; set; } /// ///City /// [ApiMember(Description="City")] public virtual string City { get; set; } /// ///State /// [ApiMember(Description="State")] public virtual string State { get; set; } /// ///Zip Code /// [ApiMember(Description="Zip Code")] public virtual string Zip { get; set; } /// ///Home phone /// [ApiMember(Description="Home phone")] public virtual string Phone { get; set; } /// ///Work phone /// [ApiMember(Description="Work phone")] public virtual string WorkPhone { get; set; } /// ///Date of Birth /// [ApiMember(Description="Date of Birth")] public virtual DateTime? DateOfBirth { get; set; } /// ///Cell phone /// [ApiMember(Description="Cell phone")] public virtual string CellPhone { get; set; } /// ///Add an internal note for the new prospect /// [ApiMember(Description="Add an internal note for the new prospect")] public virtual string Note { get; set; } /// ///Unique Id for the user from your system. We store internally as ExternalUserId /// [ApiMember(Description="Unique Id for the user from your system. We store internally as ExternalUserId")] public virtual string ExternalId { get; set; } /// ///Username should be between 4 and 255 characters long /// [ApiMember(Description="Username should be between 4 and 255 characters long")] public virtual string Username { get; set; } /// ///ReferralTypeId /// [ApiMember(Description="ReferralTypeId")] public virtual int? ReferralTypeId { get; set; } /// ///Emergency contact name /// [ApiMember(Description="Emergency contact name")] public virtual string EmergencyContactName { get; set; } /// ///Emergency contact phone number /// [ApiMember(Description="Emergency contact phone number")] public virtual string EmergencyContactPhone { get; set; } /// ///Emergency contact relationship /// [ApiMember(Description="Emergency contact relationship")] public virtual string EmergencyContactType { get; set; } } public partial class AddNewUserResponse : ApiResponse2Base { public virtual string incompleteAgreementToken { get; set; } public virtual int? memberId { get; set; } public virtual int? contractId { get; set; } } public partial interface IAddNewUserEndpoint : IApiDtoBase { int MemberId { get; set; } int PackageId { get; set; } int? InstallmentId { get; set; } DateTime? StartDate { get; set; } string PromoCode { get; set; } int? StaffId { get; set; } string FirstName { get; set; } string LastName { get; set; } string Address { get; set; } string City { get; set; } string State { get; set; } string Zip { get; set; } string Email { get; set; } string Gender { get; set; } string Phone { get; set; } string WorkPhone { get; set; } DateTime? DateOfBirth { get; set; } string CellPhone { get; set; } string Note { get; set; } string ExternalId { get; set; } string Username { get; set; } int? ReferralTypeId { get; set; } string EmergencyContactName { get; set; } string EmergencyContactPhone { get; set; } string EmergencyContactType { get; set; } } }