Bookings: Update payment status filter #16339
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.

Part of WOOMOB-1650
Description
It has been decided recently that there will be new user-facing payment statuses for bookings (ref: p1762342134384409-slack-C09224W4HAA). So we'll need to display the new statuses in filter and booking list.
This PR adds a new enum for payment statuses and updates the payment status filter to use the new statuses instead of booking statuses. I'm including only statuses on the Figma design and not some that was mentioned in the above discussion (
failed,partially refunded), so there might be an update needed in the future.Under the hood, I'm still keeping the old booking status for filtering as the new status is not available in the API yet. In a future PR, we'll need to update the predicate for loading bookings to use the new payment status instead of booking status and update the param used for filtering payment status once the support is available in the API.
Test Steps
l) and is now at the end of the list.Screenshots
RELEASE-NOTES.txtif necessary.