(* Options: Date: 2025-04-04 17:57:32 Version: 5.140 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.clubmanagercentral.com //GlobalNamespace: //MakeDataContractsExtensible: False //AddReturnMarker: True //AddDescriptionAsComments: True //AddDataContractAttributes: False //AddIndexesToDataMembers: False //AddGeneratedCodeAttributes: False //AddResponseStatus: False //AddImplicitVersion: //ExportValueTypes: False IncludeTypes: Command.AddMembershipCommandRequest.* //ExcludeTypes: //InitializeCollections: True //AddNamespaces: *) namespace ClubManager.Api.Services open System open System.Collections open System.Collections.Generic open System.Runtime.Serialization open ServiceStack open ServiceStack.DataAnnotations [] type CustomAttributeValue() = member val CustomAttributeId:Int32 = new Int32() with get,set member val CustomAttributeValueId:Nullable = new Nullable() with get,set member val InstanceId:Nullable = new Nullable() with get,set member val StoredValue:String = null with get,set member val TypeName:String = null with get,set member val ReadOnly:Boolean = new Boolean() with get,set type PreviousMembershipAction = | Nothing = 0 | Renewal = 1 | Replaces = 2 | Additional = 3 | Delete = 4 type OffsetPeriod = | Day = 0 | Week = 1 | Month = 2 | Year = 3 type PaymentType = | Deposit = 1 | MemberPayment = 2 | Recurring = 3 | Purchase = 4 type PaymentPeriod = | Single = 0 | Recurring = 1 type DirectDebitPeriod = | Daily = 0 | Monthly = 1 | Quarterly = 2 | Yearly = 3 | Weekly = 4 | SixMonthly = 5 | TwoWeekly = 6 | EveryFourWeeks = 7 | None = -1 type PaymentMethod = | Unpaid = 1 | Cash = 2 | Card = 3 | Cheque = 4 | Recurring = 5 | Failed = 6 | Bacs = 7 | Account = 8 [] type MembershipPayment() = member val Name:String = null with get,set member val PaymentType:PaymentType = new PaymentType() with get,set member val Amount:Decimal = new Decimal() with get,set member val PaymentPeriod:PaymentPeriod = new PaymentPeriod() with get,set member val DirectDebitPeriod:DirectDebitPeriod = new DirectDebitPeriod() with get,set member val Recurring:Int32 = new Int32() with get,set member val StartingOffset:Int32 = new Int32() with get,set member val StartingOffsetPeriod:OffsetPeriod = new OffsetPeriod() with get,set member val StartDate:Nullable = new Nullable() with get,set member val PaymentMethod:Nullable = new Nullable() with get,set member val AutoRecur:Nullable = new Nullable() with get,set member val ProRata:Nullable = new Nullable() with get,set member val ProRataAmount:Decimal = new Decimal() with get,set member val ProRataStartDate:DateTime = new DateTime() with get,set member val ProRataPaymentMethod:Nullable = new Nullable() with get,set member val ProRataAddToFirstPayment:Nullable = new Nullable() with get,set member val ChargePerLicense:Boolean = new Boolean() with get,set [] type MembershipType() = member val BranchId:Nullable = new Nullable() with get,set member val StartDate:Nullable = new Nullable() with get,set member val EndDate:Nullable = new Nullable() with get,set member val Length:Int32 = new Int32() with get,set member val LengthPeriod:OffsetPeriod = new OffsetPeriod() with get,set member val Payments:ResizeArray = new ResizeArray() with get,set member val AddToBalance:Nullable = new Nullable() with get,set member val SessionsRemaining:Nullable = new Nullable() with get,set member val ClassesRemaining:Nullable = new Nullable() with get,set member val LicensesRemaining:Nullable = new Nullable() with get,set member val MultiSiteAccess:Boolean = new Boolean() with get,set member val MemberLimit:Int32 = new Int32() with get,set member val Definition:String = null with get,set member val BookingAccessOnly:Boolean = new Boolean() with get,set [] type ICommandResult = interface end [] type AddMembershipResult() = member val MembershipId:Int32 = new Int32() with get,set member val RecurrenceId:Nullable = new Nullable() with get,set member val HasRecurringPayments:Boolean = new Boolean() with get,set [] [] type AddMembershipCommandRequest() = interface IReturn member val MemberId:Int32 = new Int32() with get,set member val UserId:Int32 = new Int32() with get,set member val MembershipTypeId:Int32 = new Int32() with get,set member val StartDate:DateTime = new DateTime() with get,set member val PreviousMembershipAction:PreviousMembershipAction = new PreviousMembershipAction() with get,set member val ExternallyCreated:Boolean = new Boolean() with get,set member val IsOnlineJoining:Boolean = new Boolean() with get,set member val MembershipType:MembershipType = null with get,set member val CreateRecurringPaymentsOnly:Boolean = new Boolean() with get,set member val MembershipReviewAttributes:ResizeArray = new ResizeArray() with get,set member val RegistrationAttributes:ResizeArray = new ResizeArray() with get,set member val FeeRecurrenceDisabled:Boolean = new Boolean() with get,set member val Expired:Boolean = new Boolean() with get,set member val EndDate:Nullable = new Nullable() with get,set member val RefererMemberId:Nullable = new Nullable() with get,set member val PromotionId:Nullable = new Nullable() with get,set member val RecurringAmount:Nullable = new Nullable() with get,set member val RecurringStartDate:Nullable = new Nullable() with get,set member val PaymentMethodId:Nullable = new Nullable() with get,set member val BookingId:Nullable = new Nullable() with get,set