Description
Cancellation penalty should use the booked nightly rate, not a hardcoded value or the current rate.
Status
Resolved — nightlyRate field added to ModificationInput. The caller passes the booked rate from the booking record.
File
packages/agents/lodging/src/hotel-modification/index.ts
Remaining work
- Add test case that verifies penalty is calculated against the booked rate, not the current rate
- Add test case that verifies the fallback behavior when
nightlyRate is omitted
Description
Cancellation penalty should use the booked nightly rate, not a hardcoded value or the current rate.
Status
Resolved —
nightlyRatefield added toModificationInput. The caller passes the booked rate from the booking record.File
packages/agents/lodging/src/hotel-modification/index.tsRemaining work
nightlyRateis omitted