erp-core-backend-v2/src/modules/payment-terminals/controllers
Adrian Flores Cortes fd8a0a508e [TASK-2026-01-25-ERP-INTEGRACIONES] feat: Add payment terminals + AI role-based access
Payment Terminals (MercadoPago + Clip):
- TenantTerminalConfig, TerminalPayment, TerminalWebhookEvent entities
- MercadoPagoService: payments, refunds, links, webhooks
- ClipService: payments, refunds, links, webhooks
- Controllers for authenticated and webhook endpoints
- Retry with exponential backoff
- Multi-tenant credential management

AI Role-Based Access:
- ERPRole config: ADMIN, SUPERVISOR, OPERATOR, CUSTOMER
- 70+ tools mapped to roles
- System prompts per role (admin, supervisor, operator, customer)
- RoleBasedAIService with tool filtering
- OpenRouter integration
- Rate limiting per role

Based on: michangarrito INT-004, INT-005, MCH-012, MCH-013

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-25 01:32:32 -06:00
..
clip-webhook.controller.ts [TASK-2026-01-25-ERP-INTEGRACIONES] feat: Add payment terminals + AI role-based access 2026-01-25 01:32:32 -06:00
clip.controller.ts [TASK-2026-01-25-ERP-INTEGRACIONES] feat: Add payment terminals + AI role-based access 2026-01-25 01:32:32 -06:00
index.ts [TASK-2026-01-25-ERP-INTEGRACIONES] feat: Add payment terminals + AI role-based access 2026-01-25 01:32:32 -06:00
mercadopago-webhook.controller.ts [TASK-2026-01-25-ERP-INTEGRACIONES] feat: Add payment terminals + AI role-based access 2026-01-25 01:32:32 -06:00
mercadopago.controller.ts [TASK-2026-01-25-ERP-INTEGRACIONES] feat: Add payment terminals + AI role-based access 2026-01-25 01:32:32 -06:00
terminals.controller.ts feat: Add complete module structure for ERP backend 2026-01-16 00:40:54 -06:00
transactions.controller.ts feat: Add complete module structure for ERP backend 2026-01-16 00:40:54 -06:00