-
Notifications
You must be signed in to change notification settings - Fork 137
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13275 from woocommerce/task/add-partial-success-f…
…or-bulk-update-order [Bulk Update Orders] Better handling for partial success and other results from updating
- Loading branch information
Showing
6 changed files
with
180 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
WooCommerce/src/main/kotlin/com/woocommerce/android/ui/orders/list/BulkUpdateOrderResult.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package com.woocommerce.android.ui.orders.list | ||
|
||
sealed class BulkUpdateOrderResult { | ||
data class PartialSuccess( | ||
val successCount: Int, | ||
val failureCount: Int | ||
) : BulkUpdateOrderResult() | ||
|
||
data object AllSuccess : BulkUpdateOrderResult() | ||
|
||
data object AllFailed : BulkUpdateOrderResult() | ||
|
||
data object NoOrdersUpdated : BulkUpdateOrderResult() | ||
|
||
data class Error(val exception: Exception) : BulkUpdateOrderResult() | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters