Skip to main content
IntentLang
← All examples

BillingService

examples/BillingService.intent

BillingService.intent
1# BillingService.intent
2# Draft IntentLang (v0). Architecture as code. Illustrative only.
3
4service BillingService
5
6why
7 Billing owns money movement, so its boundaries and ownership must be explicit.
8
9owns
10 Invoice
11 PaymentAttempt
12
13consumes
14 OrderApproved
15
16publishes
17 InvoiceCreated
18
19database
20 Postgres
21
22dependencies
23 PaymentGateway
24 NotificationService
25
26owner
27 Finance Platform Team
28
29guarantees
30 invoices are only created from approved orders
31 payment is never captured twice
32
33verify
34 architecture boundary check
35 contract check
Draft syntax. This file is illustrative and does not run yet.