/* Options: Date: 2025-01-18 08:00:05 SwiftVersion: 5.0 Version: 8.23 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.bokamera.se //BaseClass: //AddModelExtensions: True //AddServiceStackTypes: True IncludeTypes: SyncCompanyCustomerMembers.* //ExcludeTypes: //ExcludeGenericBaseTypes: False //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True //InitializeCollections: True //TreatTypesAsStrings: //DefaultImports: Foundation,ServiceStack */ import Foundation import ServiceStack // @Route("/mailchimp/member/company/customer/sync", "PUT") // @ApiResponse(Description="You were unauthorized to call this service", StatusCode=401) public class SyncCompanyCustomerMembers : IReturn, ICompany, Codable { public typealias Return = SyncMembersResponse /** * The company id, if empty will use the company id for the user you are logged in with. */ // @ApiMember(Description="The company id, if empty will use the company id for the user you are logged in with.") public var companyId:String? /** * 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 /** * Should we target only subscribed to newsletter customers. */ // @ApiMember(Description="Should we target only subscribed to newsletter customers.") public var onlySubscribed:Bool /** * Determines if it is a test user */ // @ApiMember(Description="Determines if it is a test user") public var test:Bool required public init(){} } public class SyncMembersResponse : Codable { public var failedSyncedMembers:[MemberResponse] = [] public var successSyncedMembers:[MemberResponse] = [] required public init(){} } public protocol ICompany { var companyId:String? { get set } } 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(){} }