summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAndrej Mihajlov <and@mullvad.net>2021-10-04 12:26:59 +0200
committerAndrej Mihajlov <and@mullvad.net>2021-10-05 10:01:55 +0200
commitd9b4f0b8c8716433174d83d2c578853432eada46 (patch)
treef9207b9144f19e49f02b4f40c46e164d25ddd099
parent0057396006512b373f5c9f7275260e938f028f13 (diff)
downloadmullvadvpn-d9b4f0b8c8716433174d83d2c578853432eada46.tar.xz
mullvadvpn-d9b4f0b8c8716433174d83d2c578853432eada46.zip
Account: adapt to new REST types
-rw-r--r--ios/MullvadVPN/AccountViewController.swift8
1 files changed, 4 insertions, 4 deletions
diff --git a/ios/MullvadVPN/AccountViewController.swift b/ios/MullvadVPN/AccountViewController.swift
index d8b47b7eaf..0724d6d220 100644
--- a/ios/MullvadVPN/AccountViewController.swift
+++ b/ios/MullvadVPN/AccountViewController.swift
@@ -206,8 +206,8 @@ class AccountViewController: UIViewController, AppStorePaymentObserver, AccountO
}
private func showTimeAddedConfirmationAlert(
- with response: CreateApplePaymentResponse,
- context: CreateApplePaymentResponse.Context)
+ with response: REST.CreateApplePaymentResponse,
+ context: REST.CreateApplePaymentResponse.Context)
{
let alertController = UIAlertController(
title: response.alertTitle(context: context),
@@ -461,7 +461,7 @@ class AccountViewController: UIViewController, AppStorePaymentObserver, AccountO
}
-private extension CreateApplePaymentResponse {
+private extension REST.CreateApplePaymentResponse {
enum Context {
case purchase
@@ -515,7 +515,7 @@ private extension CreateApplePaymentResponse {
value: "%@ have been added to your account",
comment: "Message displayed upon successful restoration of existing purchases, containing the time duration credited to user account. Use %@ placeholder to position the localized text with duration added (i.e '30 days')"
),
- self.formattedTimeAdded ?? ""
+ formattedTimeAdded ?? ""
)
}
}