Skip to content

seer wallet autotop up configuration - #509

Merged
volokluev merged 4 commits into
mainfrom
volo/seer-wallet-config
Nov 9, 2026
Merged

volokluev merged 4 commits into
mainfrom
volo/seer-wallet-config

Conversation

@volokluev

Copy link
Copy Markdown
Member

No description provided.

volokluev and others added 3 commits November 6, 2026 11:22
The auto top-up config mixed two settings: when to buy more Seer credit,
and a daily cap on spending. SeerWalletConfig keeps them as separate
AutoTopUpConfig and SpendConfig messages behind one upsert endpoint. A
section the upsert request leaves unset keeps its stored value, so either
can be saved without touching the other.

The spend cap is in cents before tax rather than credits. The Wallet enum
is dropped because the service only covers the Seer wallet.
Each section of the config is stored on its own, so there is no single
config row for an id to name.
* feat(billing): Add protos for the Seer wallet auto top-up job

The job lists organizations with auto top-up enabled, then asks
SeerWalletService to top up each one whose balance is below its
threshold. It skips an organization whose last top-up invoice is still
unpaid, which needs ListInvoices to filter by client_id.

* docs(billing): Say a failed top-up blocks auto top-up until paid
@volokluev
volokluev requested a review from a team as a code owner November 9, 2026 17:45
Co-Authored-By: Volo Kluev <volo.kluev@sentry.io>

# Conflicts:
#	Cargo.lock
#	rust/src/sentry_protos.billing.v1.services.seer_wallet_config.v1.rs
@volokluev volokluev changed the title seer wallet configuration seer wallet autotop up configuration Nov 9, 2026
@volokluev
volokluev merged commit a5ed5bb into main Nov 9, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants