Commit 6d5d2e43 authored by Jose Blaya's avatar Jose Blaya
Browse files

Added new subscription product ids

parent fd4ad65b
......@@ -11,17 +11,23 @@ import Foundation
/// The available subscription plans.
public enum Plan: String {
/// Plan expires/renews after one month.
/// Subscription expires/renews after one month.
case monthly
/// Plan expires/renews after one year.
/// Subscription expires/renews after one year.
case yearly
/// Plan expires/renews after one month (price before 2019).
/// Plan expires/renews after one month (price inApp 2019).
case legacyMonthly
/// Plan expires/renews after one year (price before 2019).
/// Plan expires/renews after one year (price inApp 2019).
case legacyYearly
/// Plan expires/renews after one month (price before 2019).
case oldLegacyMonthly
/// Plan expires/renews after one year (price before 2019).
case oldLegacyYearly
/// It's a trial plan.
case trial
......
......@@ -475,7 +475,11 @@ class DefaultAccountProvider: AccountProvider, ConfigurationAccess, DatabaseAcce
case .legacyMonthly:
callback?([.legacyMonthly], nil)
case .legacyYearly:
callback?([.yearly], nil)
callback?([.legacyYearly], nil)
case .oldLegacyMonthly:
callback?([.oldLegacyMonthly], nil)
case .oldLegacyYearly:
callback?([.oldLegacyYearly], nil)
case .other:
callback?(nil, ClientError.renewingNonRenewable)
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment