mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-29 19:58:11 +00:00
refactor(bookings): replace RFQ/quotation flow with submit, staff review, approval routing, and payment stubs
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
import { Body, Controller, Post } from '@nestjs/common';
|
||||
import { ApiOperation, ApiTags } from '@nestjs/swagger';
|
||||
|
||||
import { BookingPaymentService } from './booking-payment.service';
|
||||
import { BankCallbackDto } from './dto/request-changes.dto';
|
||||
|
||||
@ApiTags('payments')
|
||||
@Controller('webhooks/payments')
|
||||
export class PaymentsWebhookController {
|
||||
constructor(private readonly paymentService: BookingPaymentService) {}
|
||||
|
||||
@Post('bank')
|
||||
@ApiOperation({ summary: 'Bank payment callback (stub)' })
|
||||
bankCallback(@Body() dto: BankCallbackDto) {
|
||||
return this.paymentService.handleBankCallback(dto.pnrCode);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user