/* Options: Date: 2025-04-05 02:07:34 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: DeleteInactiveCompaniesRequest.* //ExcludeTypes: //ExcludeGenericBaseTypes: False //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True //InitializeCollections: True //TreatTypesAsStrings: //DefaultImports: Foundation,ServiceStack */ import Foundation import ServiceStack // @Route("/superadmin/company/inactive", "POST") public class DeleteInactiveCompaniesRequest : IReturn, Codable { public typealias Return = InactiveCompaniesResponse /** * Number of companies to process for deletion or notification in each run. */ // @ApiMember(Description="Number of companies to process for deletion or notification in each run.", IsRequired=true) public var batchLimit:Int? required public init(){} } public class InactiveCompaniesResponse : Codable { public var processedCompanies:[InactiveCompanyResult] = [] required public init(){} } public class InactiveCompanyResult : Codable { public var companyId:String public var lastActivityDate:Date public var lastActivityNotificationDate:Date public var deletionTime:Date public var action:InactivityAction required public init(){} } public enum InactivityAction : String, Codable { case ActivityReminder case FinalWarning case Delete }