mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-09-06 17:05:02 +00:00
Generate ticket, dashboard, excess luggage rate updates
This commit is contained in:
@@ -9,6 +9,19 @@ import { PassengerAdmin } from '../../common/passenger-guards';
|
||||
export class TicketsController {
|
||||
constructor(private service: TicketsService) {}
|
||||
|
||||
@Post('smart-assign/:bookingId')
|
||||
@PassengerAdmin()
|
||||
@ApiBearerAuth('IAM-auth')
|
||||
@ApiOperation({
|
||||
summary: 'Smart seat assignment + ticket generation',
|
||||
description:
|
||||
'Keeps original seats if still free, auto-reassigns to an available seat of the same coach type if taken, ' +
|
||||
'or throws 409 if the schedule is fully booked in that class.',
|
||||
})
|
||||
smartAssignAndGenerate(@Param('bookingId') bookingId: string) {
|
||||
return this.service.smartAssignAndGenerate(bookingId);
|
||||
}
|
||||
|
||||
@Post('generate/:bookingId')
|
||||
@PassengerAdmin()
|
||||
@ApiBearerAuth('IAM-auth')
|
||||
|
||||
Reference in New Issue
Block a user