Skip to content

1. Booking Creation, Update, and Management Endpoints #82

@devark28

Description

@devark28

Booking Creation Process:

  • Create an endpoint that allows customers to add services to their cart (Booking table)
  • Use the BookingService junction table to link multiple services to a single booking
  • Validate that selected services exist and are available
  • Calculate total pricing and estimated duration
  • Store booking with "pending" or "cart" status initially

Booking Update Process:

  • Allow customers to add/remove services from their cart before confirmation
  • Update quantities, service selections, or delivery address
  • Recalculate totals when changes are made

Booking Management:

  • Create endpoints to convert cart to confirmed order (creates OrderBooking records) (what if we flip a status field only!)
  • Implement booking cancellation logic with business rules
  • Add endpoints for admins to view and manage all bookings
  • Handle booking modifications after confirmation (with restrictions)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

Backlog

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions