v0.9.0
Balance system: credits, charging and balance checks
Credits
Supports account balance, trial credits and expiring credit lots
Credits with the earliest expiry are consumed first
Request billing
Available balance is checked before a request is sent
Insufficient balance returns a 402 with a top-up URL
Charges are based on completed usage; upstream failures are not billed