Commit Graph

5 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
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
javiermengual 45e4af5b39 feat: Añado mas campos utiles para los terceros 2026-02-05 14:25:13 +01:00
javiermengual 9e888ee985 fix: formateo y eliminar estado invalido cancelled 2026-02-03 17:19:53 +01:00
javiermengual e729388981 feat : Añado endpoint Get para Clients de dolibar. 2026-01-30 16:34:23 +01:00