wallet charge request
This commit is contained in:
@@ -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' })
|
||||
|
||||
Reference in New Issue
Block a user