-
Notifications
You must be signed in to change notification settings - Fork 16
BKG 2.0: SD-2712: Clear the bookingCancellationStatus #596
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
||||||||||||||||||||||||||
PR Code Suggestions ✨Explore these optional code suggestions:
|
|||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR updates API documentation to clarify the lifecycle of bookingCancellationStatus, specifically documenting when this status field is cleared during the booking amendment and re-confirmation processes.
Changes:
- Documented that
bookingCancellationStatusis cleared when providers re-confirm bookings or consumers request amendments - Updated polling endpoint description to include
bookingCancellationStatusas a monitored field - Added explanation of when cancellation status is accessible vs. cleared
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| If `amendedContent=true` is requested but no amendment has yet been provided by the consumer **or** the state of the "original" `Booking` is `PENDING_AMENDMENT`, then a `404` (Not Found) is returned. | ||
| The status of a cancellation of the Booking is included in both payloads as `bookingCancellationStatus` in case an attempt to cancel the booking has been made. It is only available after the provider has approved the `Booking` via **UseCase 5: Confirm Booking request** and until: | ||
| - the provider requests for a new amendment (**UseCase 6: Request to amend confirmed Booking**) in which case the "old status" is no longer accessible. |
Copilot
AI
Jan 24, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The phrase 'requests for a new amendment' contains awkward phrasing. It should be 'requests a new amendment' for clarity.
| The status of a cancellation of the Booking is included in both payloads as `bookingCancellationStatus` in case an attempt to cancel the booking has been made. It is only available after the provider has approved the `Booking` via **UseCase 5: Confirm Booking request** and until: | ||
| - the provider requests for a new amendment (**UseCase 6: Request to amend confirmed Booking**) in which case the "old status" is no longer accessible. | ||
| - the provider re-confirms the `Booking` (**UseCase 5: Confirm booking request**) in which case the "old status" is not "carried over" and will no longer be accessible. |
Copilot
AI
Jan 24, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The reference 'UseCase 5: Confirm booking request' uses inconsistent capitalization compared to 'UseCase 6: Request to amend confirmed Booking' on line 1136. For consistency, it should be 'Confirm Booking request' to match the pattern established in the other use case references.
User description
SD-27129: Update GET endPoint (and any other place) to make it clear the bookingCancellationStatus is ALSO cleared
PR Type
Documentation
Description
Clarifies
bookingCancellationStatuslifecycle in GET endpoint documentationDocuments when cancellation status is cleared during amendments and re-confirmations
Updates polling description to include
bookingCancellationStatusmonitoringExplains provider's ability to decline booking cancellations
Diagram Walkthrough
File Walkthrough
BKG_v2.0.4.yaml
Document bookingCancellationStatus lifecycle and clearingbkg/v2/BKG_v2.0.4.yaml
bookingCancellationStatusis includedin both payloads when cancellation is attempted
re-confirms booking or consumer requests amendment
bookingCancellationStatusas a detectable changebookingCancellationStatus