From f2b8ca962eb8af0c05b8f7c0d082dbf53ecb1499 Mon Sep 17 00:00:00 2001 From: Federico Cappelli Date: Mon, 2 Dec 2024 16:09:34 +0000 Subject: [PATCH] lint --- .../APIs/SubscriptionEndpointServiceMock.swift | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/Sources/SubscriptionTestingUtilities/APIs/SubscriptionEndpointServiceMock.swift b/Sources/SubscriptionTestingUtilities/APIs/SubscriptionEndpointServiceMock.swift index bfdaca6b8..601b17a5c 100644 --- a/Sources/SubscriptionTestingUtilities/APIs/SubscriptionEndpointServiceMock.swift +++ b/Sources/SubscriptionTestingUtilities/APIs/SubscriptionEndpointServiceMock.swift @@ -21,21 +21,21 @@ import Subscription import Networking public final class SubscriptionEndpointServiceMock: SubscriptionEndpointService { - + public var onSignOut: (() -> Void)? public var signOutCalled: Bool = false - + public init() { } - + public var updateCacheWithSubscriptionCalled: Bool = false public var onUpdateCache: ((PrivacyProSubscription) -> Void)? public func updateCache(with subscription: Subscription.PrivacyProSubscription) { onUpdateCache?(subscription) updateCacheWithSubscriptionCalled = true } - + public func clearSubscription() {} - + public var getProductsResult: Result<[GetProductsItem], APIRequestV2.Error>? public func getProducts() async throws -> [Subscription.GetProductsItem] { switch getProductsResult! { @@ -43,7 +43,7 @@ public final class SubscriptionEndpointServiceMock: SubscriptionEndpointService case .failure(let error): throw error } } - + public var getSubscriptionCalled: Bool = false public var onGetSubscription: ((String, SubscriptionCachePolicy) -> Void)? public var getSubscriptionResult: Result? @@ -55,7 +55,7 @@ public final class SubscriptionEndpointServiceMock: SubscriptionEndpointService case .failure(let error): throw error } } - + public var getCustomerPortalURLResult: Result? public func getCustomerPortalURL(accessToken: String, externalID: String) async throws -> Subscription.GetCustomerPortalURLResponse { switch getCustomerPortalURLResult! { @@ -63,7 +63,7 @@ public final class SubscriptionEndpointServiceMock: SubscriptionEndpointService case .failure(let error): throw error } } - + public var confirmPurchaseResult: Result? public func confirmPurchase(accessToken: String, signature: String) async throws -> Subscription.ConfirmPurchaseResponse { switch confirmPurchaseResult! { @@ -71,7 +71,7 @@ public final class SubscriptionEndpointServiceMock: SubscriptionEndpointService case .failure(let error): throw error } } - + public var getSubscriptionFeaturesResult: Result? public func getSubscriptionFeatures(for subscriptionID: String) async throws -> Subscription.GetSubscriptionFeaturesResponse { switch getSubscriptionFeaturesResult! {