/* Options: Date: 2025-04-04 17:53:16 SwiftVersion: 5.0 Version: 5.140 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.clubmanagercentral.com //BaseClass: //AddModelExtensions: True //AddServiceStackTypes: True IncludeTypes: BranchService.GetBranchByKeyRequest.* //ExcludeTypes: //ExcludeGenericBaseTypes: False //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True //InitializeCollections: True //TreatTypesAsStrings: //DefaultImports: Foundation,ServiceStack */ import Foundation import ServiceStack // @Route("/api/Branch/GetBranchByKey", "POST,GET") public class GetBranchByKeyRequest : IReturn, Codable { public typealias Return = Branch public var branchKey:String? required public init(){} } public class Branch : Codable { public var branchId:Int? public var branchType:BranchType? public var name:String? public var `prefix`:String? public var companyName:String? public var companyAddress:String? public var companyOfficialName:String? public var directDebitReference:String? public var fastDDReference:String? public var fastDDPlatinumRef:String? public var style:String? public var publicKey:String? public var privateKey:String? public var trialStart:Date? public var trialEnd:Date? public var paymentStartDate:Date? public var inTrial:Bool? public var useFreeText:Bool? public var freeTextTitle:String? public var useMembershipTypes:Bool? public var ddUserName:String? public var ddPassword:String? public var ddServiceUser:String? public var dfcUserName:String? public var dfcPassword:String? public var dfcClubNumber:String? public var companyEmail:String? public var smsOriginator:String? public var languageId:Int? public var vatRate:Double? public var swipeAction:Int? public var modules:Module? public var useCreditBalance:Bool? public var allowNegativeBalance:Bool? public var defaultCreditLimit:Double? public var applicationType:ApplicationType? public var externalProviderWarning:String? public var domain:String? public var mobileDomain:String? public var onlineBookingTimetableLimit:Int? public var onlineBookingCancellationLimit:Int? public var onlineBookingLimit:Int? public var feature:Feature? public var timeZone:String? public var culture:String? public var country:String? public var iso3166Country:Iso3166Country? public var currencyCulture:String? public var showGoCardlessAd:Bool? public var goCardlessSaving:Double? public var sroAddress:String? public var mcaClubNo:String? public var mcaClubRef:String? public var twilioNumber:String? public var telephone:String? public var transferred:Bool? public var onlineBookingAllowNonActives:Bool? public var memberLimit:Int? public var sortCode:String? public var accountNumber:String? public var website:String? public var sendSMSAppointmentRemindersDefault:Bool? public var sendSMSBookingReminders:Bool? public var giftAid:Bool? @TimeSpan public var globalBookingStartTime:TimeInterval? @TimeSpan public var globalBookingEndTime:TimeInterval? public var bookingMinuteIncrements:Int? public var cancelReason:String? public var cancelFurther:String? public var cancelDate:Date? public var directDebitFee:Double? public var creditCardFee:Double? public var smsPriceAdjustment:Double? public var bookingsPayLinkOnTrack:Bool? public var accessControlTimeLimit:Int? public var minimiser:BranchMinimiser? public var autoGenerateLicenses:Bool? public var terms:String? public var fingerprintThreshold:Int? public var fingerprintMatcherThreshold:Int? public var autoShutoff:Bool? public var primaryColors:String? public var hasColors:Bool? public var primaryColor:String? public var secondaryColor:String? public var backgroundColor:String? public var headerTopColor:String? public var headerBottomColor:String? public var sideLeftColor:String? public var sideRightColor:String? public var sideFontColor:String? public var sideFontActiveColor:String? public var extWebBackgroundColor:String? public var extWebTextColor:String? public var extWebTintBackColor:String? public var extWebHighlightBackColor:String? public var extWebTabBackColor:String? public var headingColor:String? public var reportFormat:ReportFormat? public var fixPayments:Bool? public var fixPaymentSchedle:String? public var appFeature:AppFeature? public var signInScreenFeature:SignInScreenFeature? public var appOptions:String? public var companyDescription:String? public var capacity:Int? public var monthlySalesTarget:Int? public var bookingAccessTimeLimit:Int? public var facebook:String? public var twitter:String? public var instagram:String? public var youTube:String? public var tikTok:String? public var shopify:String? public var minimumMemberAge:Int? public var termsAndConditionsVersionDate:Date? public var termsAndConditionsAcceptedDate:Date? public var termsAndConditionsAccepted:Bool? public var siteUrl:String? public var isUsingSmartDebit:Bool? public var isUsingDfc:Bool? public var isSouthAfrica:Bool? public var smartDebitConfigured:Bool? public var dfcConfigured:Bool? public var usingPaymentMethods:Bool? public var smsPrefix:String? public var logo:String? public var logoThumbnail:String? public var logoHash:String? public var sendMarketingInviteWhenMemberAdded:Bool? public var sendMarketingInviteWhenMemberJoinedOnline:Bool? public var marketingComplianceManagedExternally:Bool? public var onlineBookingAllowWaitingList:Bool? public var onlineMultiSiteEnabled:Bool? public var canBookOnline:Bool? public var publicMembershipTypes:Int? public var trustedBranches:Int? public var isAddingProspects:Bool? public var isSellingMemberships:Bool? public var isCreatingTasks:Bool? public var isCreatingAppointments:Bool? public var isBookingClasses:Bool? public var isRegisteringAttendance:Bool? public var isSellingProducts:Bool? public var isSendingEmails:Bool? public var isSendingSMS:Bool? public var isUsingAutomation:Bool? public var deductSessionsOnBooking:Bool? public var showTrustedBranchBookings:Bool? public var score:Int? public var applicationId:String? public var iOSAppLink:String? public var androidAppLink:String? required public init(){} } public enum BranchType : String, Codable { case DebitFinance case SmartDebit case Standard case Root case Reseller case Referrer } // @Flags() public enum Module : Int, Codable { case Standard = 0 case Bookings = 1 } public enum ApplicationType : Int, Codable { case Gym = 1 case Golf = 2 case Dance = 3 case Soccer = 4 case Vanilla = 5 case Association = 6 case MartialArts = 7 case Gymnastics = 8 case Swimming = 9 case Nurseries = 10 case Racquet = 11 case SubscriptionBox = 12 case Clinic = 13 case Wellness = 14 case HealthAndBeauty = 15 case Climbing = 16 case AfterSchoolClub = 17 case PersonalTrainer = 18 } // @Flags() public enum Feature : Int, Codable { case None = 0 case Standard = 1 case Bookings = 2 case Rota = 4 case GoCardless = 8 case HomeScreen = 16 case EPos = 32 case Attendance = 64 case Sales = 128 case PaymentCollections = 256 case MailChimp = 512 case MultiSite = 1024 case AccountingDashboard = 2048 case OtherDashboards = 4096 case Reports = 8192 case AdvancedAccounting = 16384 case MemberLicenseDates = 32768 case FaceRecognition = 65536 case MemberAccountCreation = 131072 case Automation = 262144 case FacebookMarketing = 524288 case Grades = 1048576 case ZoomIntegration = 2097152 case SalesTargetChart = 4194304 case CustomApp = 8388608 case CustomAttributesOnPortal = 16777216 case NoExport = 33554432 case EnterpriseClubPerformanceDashboards = 67108864 } public class Iso3166Country : Codable { public var name:String? public var twoLetterCode:String? public var threeLetterCode:String? public var numericCode:Int? public var phonePrefix:[String] = [] required public init(){} } public enum BranchMinimiser : String, Codable { case None case CMGo case BasicPortal } public enum ReportFormat : Int, Codable { case PDF = 1 case Word = 2 case Excel = 3 case PNG = 4 case XPS = 5 case CSV = 6 case Html5 = 7 } // @Flags() public enum AppFeature : Int, Codable { case None = 0 case JoinOnline = 1 case TodaysClasses = 2 case RegistrationForm = 4 case ForthcomingBookings = 8 case WeeklyTimetable = 16 case SessionTimetable = 32 case FacilityTimetable = 64 case TasterSessions = 128 case HowToFindUs = 256 case AttendanceLeaderboard = 512 case MemberMessages = 1024 case AchievementGallery = 2048 case FreeText = 4096 case QRCode = 8192 case ShareAndInviteAFriend = 16384 case RenewalPrompt = 32768 case CurrentCapacity = 65536 case JoinFriend = 131072 case MemberPoints = 262144 case PromoMembership = 524288 case Shop = 1048576 case ShowFacebook = 2097152 case ShowTwitter = 4194304 case ShowInstagram = 8388608 case ShowYouTube = 16777216 case ShowTikTok = 33554432 case ShowShopify = 67108864 case AttendanceStreak = 134217728 case BookingCategories = 268435456 case ShowSessionsRemaining = 536870912 } // @Flags() public enum SignInScreenFeature : Int, Codable { case None = 0 case SignInNumPad = 1 }