Skip to content
This repository was archived by the owner on Feb 4, 2025. It is now read-only.

Commit 2a98cf7

Browse files
committed
Add downloadable status
1 parent 242d0b6 commit 2a98cf7

File tree

1 file changed

+8
-2
lines changed
  • plugins/woocommerce/src/main/kotlin/org/wordpress/android/fluxc/store

1 file changed

+8
-2
lines changed

plugins/woocommerce/src/main/kotlin/org/wordpress/android/fluxc/store/WCProductStore.kt

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,15 @@ class WCProductStore @Inject constructor(
102102
* Defines the filter options currently supported in the app
103103
*/
104104
enum class ProductFilterOption {
105-
STOCK_STATUS, STATUS, TYPE, CATEGORY;
105+
STOCK_STATUS, STATUS, TYPE, CATEGORY, DOWNLOADABLE;
106106

107-
override fun toString() = name.toLowerCase(Locale.US)
107+
override fun toString() = name.lowercase(Locale.US)
108+
}
109+
110+
enum class DownloadableOptions {
111+
TRUE, FALSE;
112+
113+
override fun toString() = name.lowercase(Locale.US)
108114
}
109115

110116
enum class SkuSearchOptions {

0 commit comments

Comments
 (0)