Initial import of zapier-docs-master from zapier monorepo
This commit is contained in:
commit
af459a6cb0
61 changed files with 635 additions and 0 deletions
12
modules/zappier-account-balance/NATS.md
Normal file
12
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`.
|
||||
Loading…
Add table
Add a link
Reference in a new issue