/* Options: Date: 2024-11-24 13:43:31 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: CreateProspectRequestV2.* //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 CreateProspectRequestV2Dto : ApiDtoBase { public virtual string FirstName { get; set; } public virtual string LastName { get; set; } public virtual string Address { 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 int? AddPackageId { get; set; } public virtual int? ProspectTypeId { get; set; } public virtual int? ReferralTypeId { get; set; } public virtual bool SendEmail { get; set; } public virtual string Phone { get; set; } public virtual string WorkPhone { get; set; } public virtual DateTime? DateOfBirth { get; set; } public virtual string CellPhone { get; set; } public virtual string Coupon { get; set; } public virtual string Note { get; set; } public virtual int? EmailTemplateId { 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("/v2/{ApiKey}/club/{StoreId}/prospect", "POST")] public partial class CreateProspectRequestV2 : CreateProspectRequestV2Dto, 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; } /// ///ClubReady Club ID (StoreID internally) /// [ApiMember(DataType="integer", Description="ClubReady Club ID (StoreID internally)", IsRequired=true, Name="StoreId", ParameterType="query")] public virtual int? StoreId { get; set; } /// ///First Name /// [ApiMember(DataType="string", Description="First Name", IsRequired=true, Name="FirstName", ParameterType="query")] public virtual string FirstName { get; set; } /// ///Last Name /// [ApiMember(DataType="string", Description="Last Name", IsRequired=true, Name="LastName", ParameterType="query")] public virtual string LastName { get; set; } /// ///Email Address /// [ApiMember(DataType="string", Description="Email Address", IsRequired=true, Name="Email", ParameterType="query")] public virtual string Email { get; set; } /// ///Gender /// [ApiMember(DataType="string", Description="Gender", Name="Gender", ParameterType="query")] public virtual string Gender { get; set; } /// ///Address /// [ApiMember(DataType="string", Description="Address", Name="Address", ParameterType="query")] public virtual string Address { get; set; } /// ///City /// [ApiMember(DataType="string", Description="City", Name="City", ParameterType="query")] public virtual string City { get; set; } [ApiMember(DataType="string", Name="State", ParameterType="query")] public virtual string State { get; set; } [ApiMember(DataType="string", Name="Zip", ParameterType="query")] public virtual string Zip { get; set; } public virtual string Phone { get; set; } public virtual string WorkPhone { get; set; } public virtual DateTime? DateOfBirth { get; set; } public virtual string CellPhone { get; set; } /// ///Specify a Package to apply to the new prospect /// [ApiMember(DataType="integer", Description="Specify a Package to apply to the new prospect", Name="AddPackageId", ParameterType="query")] public virtual int? AddPackageId { get; set; } /// ///Specify a specific Prospect Type for the new prospect /// [ApiMember(DataType="integer", Description="Specify a specific Prospect Type for the new prospect", Name="ProspectTypeId", ParameterType="query")] public virtual int? ProspectTypeId { get; set; } /// ///Specify a specific Referral Type for the new prospect /// [ApiMember(DataType="integer", Description="Specify a specific Referral Type for the new prospect", Name="ReferralTypeId", ParameterType="query")] public virtual int? ReferralTypeId { get; set; } /// ///Send a Welcome email to the new prospect /// [ApiMember(DataType="boolean", Description="Send a Welcome email to the new prospect", IsRequired=true, Name="SendEmail", ParameterType="query")] public virtual bool SendEmail { get; set; } /// ///Only used if SendEmail = True /// [ApiMember(DataType="integer", Description="Only used if SendEmail = True", Name="EmailTemplateId", ParameterType="query")] public virtual int? EmailTemplateId { get; set; } /// /// /// [ApiMember(DataType="string", Description="", Name="Coupon", ParameterType="query")] public virtual string Coupon { get; set; } /// ///Add an internal note for the new prospect /// [ApiMember(DataType="string", Description="Add an internal note for the new prospect", Name="Note", ParameterType="query")] public virtual string Note { get; set; } public virtual int? RestrictedId { get; set; } public virtual RestrictedResourceType RestrictedResourceType { get; set; } } }