' Options: 'Date: 2025-04-04 17:51:06 'Version: 5.140 'Tip: To override a DTO option, remove "''" prefix before updating 'BaseUrl: https://api.clubmanagercentral.com ' '''GlobalNamespace: '''MakePartial: True '''MakeVirtual: True '''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 Imports System Imports System.Collections Imports System.Collections.Generic Imports System.Runtime.Serialization Imports ServiceStack Imports ServiceStack.DataAnnotations Imports ClubManager.Interfaces.Models.CustomAttribute Imports ClubManager.Interfaces.Models.Membership Imports ClubManager.Interfaces.Models.MembershipType Imports ClubManager.Interfaces.CommandProcessor.Command Imports ClubManager.Interfaces.Models.Payment Imports ClubManager.Api.Services Imports ClubManager.Interfaces.Commands.Membership Namespace Global Namespace ClubManager.Interfaces.CommandProcessor.Command Public Interface ICommandResult End Interface End Namespace Namespace ClubManager.Interfaces.Commands.Membership Public Partial Class AddMembershipResult Implements ICommandResult Public Overridable Property MembershipId As Integer Public Overridable Property RecurrenceId As Nullable(Of Integer) Public Overridable Property HasRecurringPayments As Boolean End Class End Namespace Namespace ClubManager.Interfaces.Models.CustomAttribute Public Partial Class CustomAttributeValue Public Overridable Property CustomAttributeId As Integer Public Overridable Property CustomAttributeValueId As Nullable(Of Integer) Public Overridable Property InstanceId As Nullable(Of Integer) Public Overridable Property StoredValue As String Public Overridable Property TypeName As String Public Overridable Property ReadOnly As Boolean End Class End Namespace Namespace ClubManager.Interfaces.Models.Membership Public Enum PreviousMembershipAction Nothing Renewal Replaces Additional Delete End Enum End Namespace 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 End Enum Public Partial Class MembershipPayment Public Overridable Property Name As String Public Overridable Property PaymentType As PaymentType Public Overridable Property Amount As Decimal Public Overridable Property PaymentPeriod As PaymentPeriod Public Overridable Property DirectDebitPeriod As DirectDebitPeriod Public Overridable Property Recurring As Integer Public Overridable Property StartingOffset As Integer Public Overridable Property StartingOffsetPeriod As OffsetPeriod Public Overridable Property StartDate As Nullable(Of Date) Public Overridable Property PaymentMethod As Nullable(Of PaymentMethod) Public Overridable Property AutoRecur As Nullable(Of Boolean) Public Overridable Property ProRata As Nullable(Of Boolean) Public Overridable Property ProRataAmount As Decimal Public Overridable Property ProRataStartDate As Date Public Overridable Property ProRataPaymentMethod As Nullable(Of PaymentMethod) Public Overridable Property ProRataAddToFirstPayment As Nullable(Of Boolean) Public Overridable Property ChargePerLicense As Boolean End Class Public Partial Class MembershipType Public Sub New() Payments = New List(Of MembershipPayment) End Sub Public Overridable Property BranchId As Nullable(Of Integer) Public Overridable Property StartDate As Nullable(Of Date) Public Overridable Property EndDate As Nullable(Of Date) Public Overridable Property Length As Integer Public Overridable Property LengthPeriod As OffsetPeriod Public Overridable Property Payments As List(Of MembershipPayment) Public Overridable Property AddToBalance As Nullable(Of Decimal) Public Overridable Property SessionsRemaining As Nullable(Of Integer) Public Overridable Property ClassesRemaining As Nullable(Of Integer) Public Overridable Property LicensesRemaining As Nullable(Of Integer) Public Overridable Property MultiSiteAccess As Boolean Public Overridable Property MemberLimit As Integer Public Overridable Property Definition As String Public Overridable Property BookingAccessOnly As Boolean End Class Public Enum OffsetPeriod Day Week Month Year End Enum Public Enum PaymentPeriod Single Recurring End Enum End Namespace Namespace ClubManager.Interfaces.Models.Payment Public Enum PaymentMethod Unpaid = 1 Cash = 2 Card = 3 Cheque = 4 Recurring = 5 Failed = 6 Bacs = 7 Account = 8 End Enum Public Enum PaymentType Deposit = 1 MemberPayment = 2 Recurring = 3 Purchase = 4 End Enum End Namespace End Namespace