Skip to content
Merged
Show file tree
Hide file tree
Changes from 7 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

This file was deleted.

This file was deleted.

This file was deleted.

6 changes: 0 additions & 6 deletions Modules/Sources/Networking/Model/Site.swift
Original file line number Diff line number Diff line change
Expand Up @@ -240,12 +240,6 @@ public extension Site {
var isSimpleSite: Bool {
plan == WooConstants.freePlanSlug
}

/// Whether the site is running a free trial WooExpress plan
///
var isFreeTrialSite: Bool {
plan == WooConstants.freeTrialPlanSlug
}
}

/// Defines all of the Site CodingKeys.
Expand Down
3 changes: 0 additions & 3 deletions Modules/Sources/Networking/Remote/FeatureFlagRemote.swift
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,12 @@ public class FeatureFlagRemote: Remote, FeatureFlagRemoteProtocol {

public enum RemoteFeatureFlag: Decodable {
case storeCreationCompleteNotification
case hardcodedPlanUpgradeDetailsMilestone1AreAccurate
case pointOfSale

init?(rawValue: String) {
switch rawValue {
case "woo_notification_store_creation_ready":
self = .storeCreationCompleteNotification
case "woo_hardcoded_plan_upgrade_details_milestone_1_are_accurate":
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We'll also have to clean the flag from https://public-api.wordpress.com/wpcom/v2/mobile/feature-flags. I haven't tackled this as part of the PR.

self = .hardcodedPlanUpgradeDetailsMilestone1AreAccurate
case "woo_pos":
self = .pointOfSale
default:
Expand Down
169 changes: 0 additions & 169 deletions Modules/Sources/Networking/Remote/InAppPurchasesRemote.swift

This file was deleted.

2 changes: 2 additions & 0 deletions Modules/Sources/Networking/Remote/PaymentRemote.swift
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ public protocol PaymentRemoteProtocol {

/// WPCOM Payment Endpoints
///
// periphery:ignore
Copy link
Contributor Author

@iamgabrielma iamgabrielma Sep 15, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Temporary periphery ignores so I don't have to update PaymentRemote, is possible that we can remove these as well as part of 12401-gh continuation, since are related to domain purchases.

public class PaymentRemote: Remote, PaymentRemoteProtocol {
public func loadPlan(thatMatchesID productID: Int64) async throws -> WPComPlan {
let path = Path.products
Expand Down Expand Up @@ -103,6 +104,7 @@ public struct WPComPlan: Decodable, Equatable {
}

/// Contains necessary data for a site's WPCOM plan.
// periphery:ignore
public struct WPComSitePlan: Equatable {
/// ID of the WPCOM plan.
///
Expand Down
2 changes: 0 additions & 2 deletions Modules/Sources/NetworkingCore/Settings/WooConstants.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,4 @@ public enum WooConstants {
/// Slug of the free plan
public static let freePlanSlug = "free_plan"

/// Slug of the free trial WooExpress plan
public static let freeTrialPlanSlug = "ecommerce-trial-bundle-monthly"
}
11 changes: 0 additions & 11 deletions Modules/Sources/Yosemite/Actions/InAppPurchaseAction.swift

This file was deleted.

Loading
Loading