notif cursor
This commit is contained in:
@@ -24,7 +24,7 @@ export class PaymentsController {
|
||||
constructor(
|
||||
private readonly paymentsService: PaymentsService,
|
||||
private readonly paymentMethodService: PaymentMethodService,
|
||||
) {}
|
||||
) { }
|
||||
|
||||
@UseGuards(AuthGuard)
|
||||
@ApiBearerAuth()
|
||||
@@ -63,40 +63,8 @@ export class PaymentsController {
|
||||
verifyPayment(@Body() verifyPaymentDto: VerifyPaymentDto) {
|
||||
return this.paymentsService.verifyPayment(verifyPaymentDto.authority, verifyPaymentDto.orderId);
|
||||
}
|
||||
// @UseGuards(AdminAuthGuard)
|
||||
// @ApiBearerAuth()
|
||||
// @Get('admin/payments/:id')
|
||||
// @ApiOperation({ summary: 'Get a payment by ID' })
|
||||
// @ApiParam({ name: 'id', type: 'number', description: 'Payment ID' })
|
||||
// @ApiOkResponse({ description: 'Payment found' })
|
||||
// @ApiNotFoundResponse({ description: 'Payment not found' })
|
||||
// findOnePayment(@Param('id') id: string) {
|
||||
// return this.paymentsService.findById(+id);
|
||||
// }
|
||||
// @UseGuards(AdminAuthGuard)
|
||||
// @ApiBearerAuth()
|
||||
// @Patch('admin/payments/:id')
|
||||
// @ApiOperation({ summary: 'Update a payment' })
|
||||
// @ApiParam({ name: 'id', type: 'number', description: 'Payment ID' })
|
||||
// @ApiBody({ type: UpdatePaymentDto })
|
||||
// @ApiOkResponse({ description: 'Payment updated successfully' })
|
||||
// @ApiNotFoundResponse({ description: 'Payment not found' })
|
||||
// updatePayment(@Param('id') id: string, @Body() updatePaymentDto: UpdatePaymentDto) {
|
||||
// return this.paymentsService.update(+id, updatePaymentDto);
|
||||
// }
|
||||
|
||||
// @UseGuards(AdminAuthGuard)
|
||||
// @ApiBearerAuth()
|
||||
// @Delete('admin/payments/:id')
|
||||
// @ApiOperation({ summary: 'Delete a payment' })
|
||||
// @ApiParam({ name: 'id', type: 'number', description: 'Payment ID' })
|
||||
// @ApiOkResponse({ description: 'Payment deleted successfully' })
|
||||
// @ApiNotFoundResponse({ description: 'Payment not found' })
|
||||
// removePayment(@Param('id') id: string) {
|
||||
// return this.paymentsService.remove(+id);
|
||||
// }
|
||||
|
||||
/** payment methods */
|
||||
/** admin routes */
|
||||
@UseGuards(AdminAuthGuard)
|
||||
@ApiBearerAuth()
|
||||
@Get('admin/payments/methods')
|
||||
|
||||
Reference in New Issue
Block a user