/* Options: Date: 2025-07-19 18:43:01 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: AgreementAddEndpoint.* //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 { public partial class AddResponse : ApiResponse2Base { public virtual string incompleteAgreementToken { get; set; } public virtual int? contractId { get; set; } } [Route("/sales/agreement/add", "POST")] [ApiResponse(Description="", ResponseType=typeof(ClubReady.Web.Api.Sales.Agreement.AddResponse), StatusCode=200)] public partial class AgreementAddEndpoint : IReturn, IAddEndpoint, 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; } public virtual int? ChainId { 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; } /// ///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; } } public partial interface IAddEndpoint : 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; } } }