← All examples
InvoiceCreated
examples/InvoiceCreated.intent
InvoiceCreated.intent
1# InvoiceCreated.intent2# Draft IntentLang (v0). Event intent. Illustrative only.34event InvoiceCreated56why7 Downstream services react to new invoices, so the contract must be stable.89publishedBy10 BillingService1112consumedBy13 NotificationService14 ReportingService1516payload17 invoiceId: InvoiceId18 customerId: CustomerId19 total: Money2021guarantees22 event is idempotent23 event contains no payment secrets2425guarantee event contains no payment secrets26 because event streams are widely readable across the platform27 verify security scan2829never30 include payment token in payload3132verify33 contract check34 security scanDraft syntax. This file is illustrative and does not run yet.
More examples