diff --git a/bruno/00-Auth/02 Login.bru b/bruno/00-Auth/02 Login.bru index e6cace7..7c36721 100644 --- a/bruno/00-Auth/02 Login.bru +++ b/bruno/00-Auth/02 Login.bru @@ -16,6 +16,7 @@ body:json { "password": "{{password}}" } + } script:post-response { diff --git a/bruno/03-Clients/04 Create.bru b/bruno/03-Clients/04 Create.bru index 7a9df54..0ec13be 100644 --- a/bruno/03-Clients/04 Create.bru +++ b/bruno/03-Clients/04 Create.bru @@ -12,11 +12,11 @@ post { body:json { { - "name": "Boulangerie Martin SARL", - "email": "compta@martin.fr", - "phone": "06 12 34 56 78", - "siret": "12345678901234", - "notes": "Bon payeur historique" + "name": "Boulangerie2 Martin SARL", + "email": "compta@martin2.fr", + "phone": "06 12 34 56 72", + "siret": "12345678901232", + "notes": "Bon payeur historique2" } } diff --git a/bruno/05-Invoices/04 Create.bru b/bruno/05-Invoices/04 Create.bru index 7e444aa..bf8be77 100644 --- a/bruno/05-Invoices/04 Create.bru +++ b/bruno/05-Invoices/04 Create.bru @@ -14,12 +14,16 @@ body:json { { "clientId": "{{clientId}}", "clientName": "Boulangerie Martin SARL", - "numero": "F-2026-0042", + "numero": "F-2026-0047", "amountTtcCents": 124000, "issueDate": "2026-04-20T09:00:00.000Z", - "dueDate": "2026-05-20T09:00:00.000Z" + "dueDate": "2026-04-01T09:00:00.000Z" } + + + + } script:post-response { @@ -50,15 +54,15 @@ docs { `client_email_required` Bonus +1 rubis à la création (gamification). - + Si `planId` est fourni : programme automatiquement les RelanceTasks BullMQ pour chaque step du plan (sendAt = dueDate + offsetDays). Les jobs scheduled sont visibles via : `docker exec rubis-redis redis-cli zrange bull:relances:delayed 0 -1` - + Pour tester l'envoi immédiat : passer une `dueDate` dans le passé → la première RelanceTask est programmée à `now + 1min`. Mailpit http://localhost:8025 affichera le mail capté ~1min plus tard. - + Capture `invoiceId` dans l'env pour les requêtes suivantes. }