Skip to content

Commit 7037fc3

Browse files
committed
Remove isEligibleForPointOfSaleReceipts
1 parent c1fdc2b commit 7037fc3

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

WooCommerce/Classes/ViewModels/Order Details/Receipts/ReceiptEligibilityUseCase.swift

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -34,17 +34,6 @@ final class ReceiptEligibilityUseCase: ReceiptEligibilityUseCaseProtocol {
3434
}
3535
}
3636

37-
/// Returns true if Point of Sale allows sending successful payment email receipts via the API.
38-
/// WooCommerce 9.5 allows to attach a customer email after payment is made and send email receipt via the API.
39-
///
40-
func isEligibleForPointOfSaleReceipts(onCompletion: @escaping (Bool) -> Void) {
41-
Task { @MainActor in
42-
let isWooCommerceSupported = await isPluginSupported(.wooCommerce,
43-
minimumVersion: Constants.PointOfSaleReceipts.wcPluginMinimumVersion)
44-
onCompletion(isWooCommerceSupported)
45-
}
46-
}
47-
4837
/// Returns true if In Person Payments allows sending successful payment email receipts via the API.
4938
/// WooCommerce 9.5 allows to attach a customer email after payment is made and send email receipt via the API.
5039
///

0 commit comments

Comments
 (0)