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
|
|
@ -1,10 +1,15 @@
|
|||
# NATS — zappier-edge
|
||||
|
||||
This process **does not subscribe or publish** on NATS.
|
||||
Zapier cloud still never connects to NATS. The edge process **does** publish and request on the private billing bus.
|
||||
|
||||
| Direction | Address | Peer | Body |
|
||||
|-----------|---------|------|------|
|
||||
| IN HTTPS | `/v1/*` | Zapier Platform app | JSON + `x-api-key` |
|
||||
| OUT HTTPS | middleware `/zapier/v1/*` | verae-middleware | same tenant request |
|
||||
| OUT NATS | `verae.billing.usage.recorded` | account-balance | meter event |
|
||||
| OUT NATS | `verae.billing.payment.recorded` | account-balance / others | portal reload |
|
||||
| OUT NATS | `verae.billing.credit.applied` | account-balance / others | admin/CS credit |
|
||||
| OUT NATS | `verae.billing.statement.get` | account-balance | portal/admin review |
|
||||
| OUT NATS | `verae.billing.balance.adjust` | account-balance | prepaid mutation |
|
||||
|
||||
NATS is private to middleware workers and archives.
|
||||
Jobs, archive, and webhooks stay on middleware workers.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue