Skip to content

Enhance refund service with automated eligibility checks and audit trail #287

Description

@gelluisaac

Description

Upgrade the refund service to automatically determine refund eligibility based on fare rules, timing, and booking status while maintaining a comprehensive audit trail.

Scope

  • packages/backend/src/services/refundService.ts
  • packages/backend/src/services/refundAuditService.ts
  • packages/backend/src/api/routes/refunds.ts
  • packages/client/app/refunds/

Acceptance Criteria

  • Automated eligibility engine evaluates fare rules, cancellation window, and ticket type
  • Refund amount calculated dynamically based on airline policy and timing
  • Comprehensive audit trail logs all refund decisions with timestamps
  • Admin override capability with mandatory justification field
  • Partial refund support for unused segments
  • Refund status webhook integration with airline systems
  • Dashboard shows refund analytics and common rejection reasons

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions