deny cash payment

This commit is contained in:
2026-01-19 11:37:58 +03:30
parent 26d2d0e053
commit 013b543503
2 changed files with 44 additions and 7 deletions
@@ -3,6 +3,7 @@ import {
Param,
UseGuards,
Query,
Delete,
} from '@nestjs/common';
import { PaymentService } from '../services/payments.service';
import {
@@ -52,8 +53,16 @@ export class PaymentController {
@UseGuards(AuthGuard)
@ApiBearerAuth()
@ApiOperation({ summary: 'Verify cash payment' })
verifyPayment(@Param('paymentId') paymentId: string) {
return this.paymentsService.verifyCashPayment(paymentId);
confirmPayment(@Param('paymentId') paymentId: string) {
return this.paymentsService.confirmCashPayment(paymentId);
}
@Delete('admin/payments/:paymentId/verify/cash')
@UseGuards(AuthGuard)
@ApiBearerAuth()
@ApiOperation({ summary: 'Deny cash payment' })
denyPayment(@Param('paymentId') paymentId: string) {
return this.paymentsService.denyCashPayment(paymentId);
}
// @UseGuards(AdminAuthGuard)