From 2a98cf75ec82e18b4555387c86d015436b7ac554 Mon Sep 17 00:00:00 2001 From: AnirudhBhat Date: Tue, 24 Dec 2024 10:14:04 +0530 Subject: [PATCH] Add downloadable status --- .../wordpress/android/fluxc/store/WCProductStore.kt | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/plugins/woocommerce/src/main/kotlin/org/wordpress/android/fluxc/store/WCProductStore.kt b/plugins/woocommerce/src/main/kotlin/org/wordpress/android/fluxc/store/WCProductStore.kt index f6241302b2..c49b8b0505 100644 --- a/plugins/woocommerce/src/main/kotlin/org/wordpress/android/fluxc/store/WCProductStore.kt +++ b/plugins/woocommerce/src/main/kotlin/org/wordpress/android/fluxc/store/WCProductStore.kt @@ -102,9 +102,15 @@ class WCProductStore @Inject constructor( * Defines the filter options currently supported in the app */ enum class ProductFilterOption { - STOCK_STATUS, STATUS, TYPE, CATEGORY; + STOCK_STATUS, STATUS, TYPE, CATEGORY, DOWNLOADABLE; - override fun toString() = name.toLowerCase(Locale.US) + override fun toString() = name.lowercase(Locale.US) + } + + enum class DownloadableOptions { + TRUE, FALSE; + + override fun toString() = name.lowercase(Locale.US) } enum class SkuSearchOptions {