From c633df8d72473c0b01664632e7ea6565000c3503 Mon Sep 17 00:00:00 2001 From: Xavier Abad <77491413+xabg2@users.noreply.github.com> Date: Thu, 10 Sep 2026 11:03:05 +0200 Subject: [PATCH] feat(drive): add mail as user feature --- Sources/InternxtSwiftCore/Types/DriveTypes.swift | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Sources/InternxtSwiftCore/Types/DriveTypes.swift b/Sources/InternxtSwiftCore/Types/DriveTypes.swift index 43a0026..c1e6d64 100644 --- a/Sources/InternxtSwiftCore/Types/DriveTypes.swift +++ b/Sources/InternxtSwiftCore/Types/DriveTypes.swift @@ -727,6 +727,7 @@ public struct GetPaymentInfoResponse: Decodable { public struct FeaturesPerService: Codable { public let antivirus: Bool public let backups: Bool? + public let mail: Bool? } public struct LogoutResponse: Decodable { @@ -766,13 +767,14 @@ public struct FeaturesPerServiceNew: Codable { public let antivirus: Bool public let backups: Bool? public let cleaner: Bool? + public let mail: Bool? private struct FeatureDetail: Codable { let enabled: Bool } private enum CodingKeys: String, CodingKey { - case antivirus, backups, cleaner + case antivirus, backups, cleaner, mail } public init(from decoder: Decoder) throws { @@ -786,6 +788,9 @@ public struct FeaturesPerServiceNew: Codable { let cleanerDetail = try? container.decodeIfPresent(FeatureDetail.self, forKey: .cleaner) self.cleaner = cleanerDetail?.enabled + + let mailDetail = try? container.decodeIfPresent(FeatureDetail.self, forKey: .mail) + self.mail = mailDetail?.enabled } }