/* Options: Date: 2025-04-04 18:05:22 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: CustomAttributeService.GetAttributesRequest.* //ExcludeTypes: //ExcludeGenericBaseTypes: False //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True //InitializeCollections: True //TreatTypesAsStrings: //DefaultImports: Foundation,ServiceStack */ import Foundation import ServiceStack // @Route("/api/CustomAttribute/GetAttributes", "POST,GET") public class GetAttributesRequest : IReturn, Codable { public typealias Return = [CustomAttribute] public var target:CustomAttributeTarget? public var flags:CustomAttributeModeFlags? public var isMemberFacing:Bool? public var groupName:String? public var id:Int? required public init(){} } public enum CustomAttributeTarget : String, Codable { case Member case PaymentMethod case Membership case MembershipReview case PaymentGateway case PaymentGatewayType case User case Booking case Staff } // @Flags() public enum CustomAttributeModeFlags : Int, Codable { case Insert = 1 case Update = 2 case All = 3 case Public = 4 }