Add NATS account-balance SoT and statement review for customers, CS, and sales
Some checks are pending
offline / test (push) Waiting to run
Some checks are pending
offline / test (push) Waiting to run
Internal billing now uses verae.billing.* request-reply and pubs. zappier-account-balance tracks prepaid, credits, usage, and payments. Portal, admin, CS, and sales all review the same statement. Independent Forgejo repos stay split via push-module-repos.
This commit is contained in:
parent
a1a5b957fd
commit
ac38676645
135 changed files with 3078 additions and 130 deletions
12
packages/docs-master/modules/zappier-account-balance/NATS.md
Normal file
12
packages/docs-master/modules/zappier-account-balance/NATS.md
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
# NATS — zappier-account-balance
|
||||
|
||||
Queue group `account-balance`. This process is the source of truth for prepaid cents.
|
||||
|
||||
| Direction | Address | Kind | Body |
|
||||
|-----------|---------|------|------|
|
||||
| IN | `verae.billing.statement.get` | request-reply | `{ customerId }` → statement |
|
||||
| IN | `verae.billing.balance.get` | request-reply | `{ customerId }` → statement |
|
||||
| IN | `verae.billing.balance.adjust` | request-reply | `{ customerId, cents, reason, agent, kind }` |
|
||||
| IN | `verae.billing.usage.recorded` | pub | `{ customerId, endpointId, cents, at }` (debits prepaid) |
|
||||
|
||||
`payment.recorded` and `credit.applied` are fan-out events from publishers; prepaid mutations go through `balance.adjust`.
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
# zappier-account-balance
|
||||
|
||||
NATS source of truth for prepaid balances, credits, usage events, and payments.
|
||||
Loading…
Add table
Add a link
Reference in a new issue