/* Options: Date: 2025-01-18 07:50:06 SwiftVersion: 5.0 Version: 8.23 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://testapi.bokamera.se //BaseClass: //AddModelExtensions: True //AddServiceStackTypes: True IncludeTypes: SyncCompanyMembers.* //ExcludeTypes: //ExcludeGenericBaseTypes: False //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True //InitializeCollections: True //TreatTypesAsStrings: //DefaultImports: Foundation,ServiceStack */ import Foundation import ServiceStack // @Route("/mailchimp/member/company/sync", "PUT") // @ApiResponse(Description="You were unauthorized to call this service", StatusCode=401) public class SyncCompanyMembers : IReturn, Codable { public typealias Return = SyncMembersResponse /** * Should we delete emails that do not exist in BokaMera. */ // @ApiMember(Description="Should we delete emails that do not exist in BokaMera.") public var deleteNonExisting:Bool /** * Determines if it is a test user */ // @ApiMember(Description="Determines if it is a test user") public var test:Bool /** * The company id of member of which members you want to sync. */ // @ApiMember(Description="The company id of member of which members you want to sync.") public var memberCompanyId:String? required public init(){} } public class SyncMembersResponse : Codable { public var failedSyncedMembers:[MemberResponse] = [] public var successSyncedMembers:[MemberResponse] = [] required public init(){} } public class MemberResponse : Codable { public var emailAddress:String public var fullName:String public var tags:[MemberTag] = [] required public init(){} } public class MemberTag : Codable { public var id:Int public var name:String public var dateAdded:Date? public var status:String required public init(){} }