Skip to content

Commit

Permalink
Update Subscription URLs (#662)
Browse files Browse the repository at this point in the history
* Update Subscription URLs
* Remove obsolete folder in hierarchy
  • Loading branch information
miasma13 authored Feb 14, 2024
1 parent ff4cd59 commit 328ce45
Show file tree
Hide file tree
Showing 15 changed files with 10 additions and 6 deletions.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,12 @@ import Foundation

public extension URL {

static var purchaseSubscription: URL {
URL(string: "https://abrown.duckduckgo.com/subscriptions/welcome")!
static var subscriptionBaseURL: URL {
URL(string: "https://abrown.duckduckgo.com/subscriptions")!
}

static var subscriptionPurchase: URL {
subscriptionBaseURL.appendingPathComponent("welcome")
}

static var subscriptionFAQ: URL {
Expand All @@ -30,15 +34,15 @@ public extension URL {

// MARK: - Subscription Email
static var activateSubscriptionViaEmail: URL {
URL(string: "https://abrown.duckduckgo.com/subscriptions/activate")!
subscriptionBaseURL.appendingPathComponent("activate")
}

static var addEmailToSubscription: URL {
URL(string: "https://abrown.duckduckgo.com/subscriptions/add-email")!
subscriptionBaseURL.appendingPathComponent("add-email")
}

static var manageSubscriptionEmail: URL {
URL(string: "https://abrown.duckduckgo.com/subscriptions/manage")!
subscriptionBaseURL.appendingPathComponent("manage")
}

// MARK: - App Store app manage subscription URL
Expand All @@ -47,7 +51,7 @@ public extension URL {
URL(string: "macappstores://apps.apple.com/account/subscriptions")!
}

// MARK: - Identity Theft Restoration
// MARK: - Identity Theft Restoration

static var identityTheftRestoration: URL {
URL(string: "https://abrown.duckduckgo.com/identity-theft-restoration")!
Expand Down

0 comments on commit 328ce45

Please sign in to comment.