Skip to main content
IntentLang
← All examples

InvoiceCreated

examples/InvoiceCreated.intent

InvoiceCreated.intent
1# InvoiceCreated.intent
2# Draft IntentLang (v0). Event intent. Illustrative only.
3
4event InvoiceCreated
5
6why
7 Downstream services react to new invoices, so the contract must be stable.
8
9publishedBy
10 BillingService
11
12consumedBy
13 NotificationService
14 ReportingService
15
16payload
17 invoiceId: InvoiceId
18 customerId: CustomerId
19 total: Money
20
21guarantees
22 event is idempotent
23 event contains no payment secrets
24
25guarantee event contains no payment secrets
26 because event streams are widely readable across the platform
27 verify security scan
28
29never
30 include payment token in payload
31
32verify
33 contract check
34 security scan
Draft syntax. This file is illustrative and does not run yet.