Skip to content

Resolve DOMAIN_QUESTION — nightly rate source for penalty calculation #19

@telivity-otaip

Description

@telivity-otaip

Description

Cancellation penalty should use the booked nightly rate, not a hardcoded value or the current rate.

Status

ResolvednightlyRate 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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions