deny cash payment
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user