blob: 93322e7e62c178628ad62708e6d0000d4bfca42e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
//
// PaymentState.swift
// MullvadVPN
//
// Created by pronebird on 26/10/2022.
// Copyright © 2025 Mullvad VPN AB. All rights reserved.
//
import Foundation
import StoreKit
enum PaymentState: Equatable {
case none
case makingPayment(SKPayment)
case makingStoreKit2Purchase
case makingStoreKit2Refund
case restoringPurchases
var allowsViewInteraction: Bool {
switch self {
case .none:
return true
case .restoringPurchases, .makingPayment, .makingStoreKit2Purchase, .makingStoreKit2Refund:
return false
}
}
}
|