/* Options: Date: 2025-04-04 17:55:27 Version: 5.140 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.clubmanagercentral.com //GlobalNamespace: //MakePartial: True //MakeVirtual: True //MakeInternal: False //MakeDataContractsExtensible: False //AddReturnMarker: True //AddDescriptionAsComments: True //AddDataContractAttributes: False //AddIndexesToDataMembers: False //AddGeneratedCodeAttributes: False //AddResponseStatus: False //AddImplicitVersion: //InitializeCollections: True //ExportValueTypes: False IncludeTypes: Command.AddMembershipCommandRequest.* //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 ClubManager.Interfaces.Models.CustomAttribute; using ClubManager.Interfaces.Models.Membership; using ClubManager.Interfaces.Models.MembershipType; using ClubManager.Interfaces.CommandProcessor.Command; using ClubManager.Interfaces.Models.Payment; using ClubManager.Api.Services; using ClubManager.Interfaces.Commands.Membership; namespace ClubManager.Interfaces.CommandProcessor.Command { public partial interface ICommandResult { } } namespace ClubManager.Interfaces.Commands.Membership { public partial class AddMembershipResult : ICommandResult { public virtual int MembershipId { get; set; } public virtual int? RecurrenceId { get; set; } public virtual bool HasRecurringPayments { get; set; } } } namespace ClubManager.Interfaces.Models.CustomAttribute { public partial class CustomAttributeValue { public virtual int CustomAttributeId { get; set; } public virtual int? CustomAttributeValueId { get; set; } public virtual int? InstanceId { get; set; } public virtual string StoredValue { get; set; } public virtual string TypeName { get; set; } public virtual bool ReadOnly { get; set; } } } namespace ClubManager.Interfaces.Models.Membership { public enum PreviousMembershipAction { Nothing, Renewal, Replaces, Additional, Delete, } } namespace ClubManager.Interfaces.Models.MembershipType { public enum DirectDebitPeriod { Daily = 0, Monthly = 1, Quarterly = 2, Yearly = 3, Weekly = 4, SixMonthly = 5, TwoWeekly = 6, EveryFourWeeks = 7, None = -1, } public partial class MembershipPayment { public virtual string Name { get; set; } public virtual PaymentType PaymentType { get; set; } public virtual decimal Amount { get; set; } public virtual PaymentPeriod PaymentPeriod { get; set; } public virtual DirectDebitPeriod DirectDebitPeriod { get; set; } public virtual int Recurring { get; set; } public virtual int StartingOffset { get; set; } public virtual OffsetPeriod StartingOffsetPeriod { get; set; } public virtual DateTime? StartDate { get; set; } public virtual PaymentMethod? PaymentMethod { get; set; } public virtual bool? AutoRecur { get; set; } public virtual bool? ProRata { get; set; } public virtual decimal ProRataAmount { get; set; } public virtual DateTime ProRataStartDate { get; set; } public virtual PaymentMethod? ProRataPaymentMethod { get; set; } public virtual bool? ProRataAddToFirstPayment { get; set; } public virtual bool ChargePerLicense { get; set; } } public partial class MembershipType { public MembershipType() { Payments = new List{}; } public virtual int? BranchId { get; set; } public virtual DateTime? StartDate { get; set; } public virtual DateTime? EndDate { get; set; } public virtual int Length { get; set; } public virtual OffsetPeriod LengthPeriod { get; set; } public virtual List Payments { get; set; } public virtual decimal? AddToBalance { get; set; } public virtual int? SessionsRemaining { get; set; } public virtual int? ClassesRemaining { get; set; } public virtual int? LicensesRemaining { get; set; } public virtual bool MultiSiteAccess { get; set; } public virtual int MemberLimit { get; set; } public virtual string Definition { get; set; } public virtual bool BookingAccessOnly { get; set; } } public enum OffsetPeriod { Day, Week, Month, Year, } public enum PaymentPeriod { Single, Recurring, } } namespace ClubManager.Interfaces.Models.Payment { public enum PaymentMethod { Unpaid = 1, Cash = 2, Card = 3, Cheque = 4, Recurring = 5, Failed = 6, Bacs = 7, Account = 8, } public enum PaymentType { Deposit = 1, MemberPayment = 2, Recurring = 3, Purchase = 4, } }