Commit Graph

12 Commits

Author SHA1 Message Date
Алекс d1f793b1e3 feat: rol de terceros, webhook mejorado y fix pagos
Terceros:
- ClientResponse: campo fournisseur añadido
- CreateClientDto: campo Role (client/supplier/both)
- ClientDto / ClientDetailDto: campo Role devuelto en respuesta
- ClientMapper: ResolveRole() calcula rol desde client+fournisseur de Dolibarr
- ClientService: CreateClientAsync mapea Role a client/fournisseur en Dolibarr

Webhook:
- WebhookSettings: persistencia en archivo data/webhook_url.txt (volumen Docker)
- WebhookNotificationService: fire-and-forget, Adaptive Card 1.2, timeout 8s
- SettingsController: usa UpdateUrl(), endpoint test añadido
- Program.cs: HttpClient Webhook con timeout de 8s
- InvoiceService: notificación también al registrar pago (AddInvoicePaymentAsync)
  + datepaye enviado como Unix timestamp (fix 400 de Dolibarr)
- SupplierInvoiceService: notificación webhook en cambios de estado,
  pago vía payments endpoint con Unix timestamp

compose.yaml: volumen bff_data para persistir webhook_url.txt entre rebuilds

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-29 16:35:17 +02:00
Алекс 62bc070115 añadir cosas, apis y ajustes 2026-05-17 00:01:26 +02:00
Алекс f2030977ff feat: módulo banco completo (GET/POST/PUT cuentas y movimientos), campos TotalHt/TotalTax en facturas 2026-05-15 21:50:16 +02:00
JavMB 32028e21e1 feat: add DTOs, Dolibarr response types and mappers for Contacts, Clients, Setup and invoice lines
- New command DTOs: CreateClientDto, UpdateClientDto, CreateContactDto,
  UpdateContactDto, UpdateInvoiceLineDto
- New query DTOs: ClientDetailDto, ContactDetailDto, Setup dictionaries
  (PaymentTypeDto, CountryDto, CivilityDto, ContactTypeDto,
  PaymentTermDto, CompanyDto)
- New Dolibarr response types for setup endpoints
- SetupMapper for all dictionary transforms
- Extended ClientResponse and ContactResponse with additional fields
  (address, town, zip, country_code, note_public, note_private, etc.)
- ClientMapper: added MapToClientDetailDto for GET /Clients/{id}
- ContactMapper: added MapToContactDetailDto for GET /Contacts/{id}
2026-05-15 18:58:26 +02:00
JM 0e7bee7e43 empiezo el servicio para descarga de pdfs 2026-04-15 16:29:05 +02:00
javiermengual 0b098376c5 feat : Agrego endpoint Post para Payments 2026-02-06 15:24:47 +01:00
javiermengual 9e888ee985 fix: formateo y eliminar estado invalido cancelled 2026-02-03 17:19:53 +01:00
javiermengual 60a9a7f7db feat: Patch para el status que no dejaba por Update 2026-02-02 11:01:40 +01:00
javiermengual a80d41feab feat: Primera parte de la implementacion de autentificacion, para obtener la DOLIAPIKEY del cliente la cual cachearemos asociada a un Id que devolveremos en el JWT de nuestro servidor. 2026-01-03 18:12:40 +01:00
javiermengual a06ac2bdd9 feat: Implementar endpoint PUT para actualizar facturas draft, limitado a campos permitidos por Dolibarr (ref, notas, estado, fecha expiración) y unificar campo 'number' para consistencia 2026-01-02 20:20:58 +01:00
javiermengual 1fd331ac17 feat: Implemento completamente el POST de facturas , usando un objeto anonimo para la request, y devuelvo el id creado. 2026-01-02 19:01:04 +01:00
javiermengual daded56582 feat: Creo los DTOS para el POST de facturas , tambien organizo un poco en command y query los DTOS 2026-01-02 18:15:41 +01:00