Files
psp_api/src/modules/admin/partners/chargeAccountQoutaTransactions/chargeAccountQuotaTransactions.controller.ts
T
ahasani a350ec7990 feat: add consumer accounts and business activities management
- Implemented AccountsService for managing consumer accounts including create, update, delete, and find operations.
- Created DTOs for account creation and updates.
- Developed BusinessActivitiesController and BusinessActivitiesService for handling business activities related to consumers.
- Added complexes management with ComplexesController and ComplexesService.
- Introduced POS management with ComplexPosesController and ComplexPosesService.
- Created necessary DTOs for business activities and POS.
- Established Licenses management with LicensesController and LicensesService.
- Integrated consumer management with PartnerConsumersController and PartnerConsumersService.
- Added Prisma module imports and service connections across modules.
2026-04-23 20:59:39 +03:30

38 lines
1.2 KiB
TypeScript

import { Body, Controller, Get, Param, Post } from '@nestjs/common'
import { ApiTags } from '@nestjs/swagger'
import { PartnerAccountChargeTransactionService } from './chargeAccountQuotaTransactions.service'
import { ChargeAccountQuotaDto } from './dto/chargeAccountQuotaTransactions.dto'
@ApiTags('Admin Partner Account Charge')
@Controller('admin/partners/:partnerId/charge-account-transactions')
export class PartnerAccountChargeTransactionController {
constructor(private readonly service: PartnerAccountChargeTransactionService) {}
@Get()
async findAll(@Param('partnerId') partnerId: string) {
return this.service.findAll(partnerId)
}
@Get(':id')
async findOne(@Param('partnerId') partnerId: string, @Param('id') id: string) {
return this.service.findOne(partnerId, id)
}
@Post()
async create(
@Param('partnerId') partnerId: string,
@Body() data: ChargeAccountQuotaDto,
) {
return this.service.create(partnerId, data)
}
// @Patch(':id')
// async update(
// @Param('partnerId') partnerId: string,
// @Param('id') id: string,
// @Body() data: UpdateLicenseDto,
// ) {
// return this.licensesService.update(partnerId, id, data)
// }
}