fix: Make BOOKING_CANCELLED` webhook payload consistent for regular cancellation and request-reschedule flow#11
fix: Make BOOKING_CANCELLED` webhook payload consistent for regular cancellation and request-reschedule flow#11tomerqodo wants to merge 3 commits into
Conversation
📝 WalkthroughWalkthroughThis pull request extends booking cancellation webhook payloads to include a Changes
Sequence DiagramsequenceDiagram
participant Client
participant BookingService as Booking Service
participant WebhookFactory as Webhook Factory
participant WebhookService as Webhook Service
participant WebhookEndpoint as External Webhook
Client->>BookingService: Cancel booking / Request reschedule
BookingService->>BookingService: Check ENABLE_WEBHOOKS setting
alt Webhooks enabled
BookingService->>WebhookFactory: Create cancelled event payload<br/>(with eventTypeId, length, iCalSequence, eventTitle)
WebhookFactory->>WebhookFactory: Set requestReschedule flag<br/>(true for reschedule, false for direct cancel)
WebhookFactory->>WebhookService: Build webhook payload with new fields
WebhookService->>WebhookEndpoint: POST webhook event<br/>(includes requestReschedule & iCalSequence)
WebhookEndpoint-->>WebhookService: ACK
else Webhooks disabled
BookingService->>BookingService: Skip webhook execution
end
Estimated Code Review Effort🎯 3 (Moderate) | ⏱️ ~25 minutes Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
@coderabbitai review |
✅ Actions performedReview triggered.
|
|
@coderabbitai review |
✅ Actions performedReview triggered.
|
|
@coderabbitai review |
✅ Actions performedReview triggered.
|
|
@coderabbitai review |
✅ Actions performedReview triggered.
|
|
@coderabbitai review |
✅ Actions performedReview triggered.
|
Benchmark PR from agentic-review-benchmarks#11
Summary by CodeRabbit
New Features
Documentation
Tests