wallet charge request

This commit is contained in:
2026-07-04 11:11:49 +03:30
parent 9f8d39938c
commit 92e97fa9d2
6 changed files with 87 additions and 9 deletions
@@ -25,6 +25,7 @@ import { CacheResponse } from 'src/common/decorators/cache-response.decorator';
import { CacheKeyPrefixes } from 'src/common/constants/cache-keys.constant';
import { UpdateRestaurantBgDto } from '../dto/update-restaurant-bg.dto';
import { ChargeRequestDto } from '../dto/charge-request.dto';
import { FinishChargeRequestDto } from '../dto/finish-charge-request.dto';
@ApiTags('restaurants')
@Controller()
@@ -167,6 +168,15 @@ export class RestaurantsController {
return this.restaurantsService.upgradeSubscription(subscriptionId, upgradeSubscriptionDto);
}
@UseGuards(SuperAdminAuthGuard)
@ApiBearerAuth()
@ApiOperation({ summary: 'Finalize wallet charge after invoice payment' })
@ApiBody({ type: FinishChargeRequestDto })
@Post('super-admin/restaurants/charge-request/finish')
finishChargeRequest(@Body() dto: FinishChargeRequestDto) {
return this.restaurantsService.finishChargeRequest(dto);
}
@UseGuards(SuperAdminAuthGuard)
@ApiBearerAuth()
@ApiOperation({ summary: 'Hard delete a restaurant and all related data' })