Skip to content

feat(billing): Configure Seer wallet auto top-up - #511

Draft
volokluev wants to merge 6 commits into
mainfrom
agent/seer-wallet-initial-top-up
Draft

volokluev wants to merge 6 commits into
mainfrom
agent/seer-wallet-initial-top-up

Conversation

@volokluev

Copy link
Copy Markdown
Member

Summary

  • define the wallet-service request and response for replacing auto top-up settings
  • return the immediate refill outcome only when the request turns auto top-up on
  • carry failed-charge and 3D Secure details from the existing refill operation

Testing

  • make build-py

Stacked on the proto branch used by getsentry/getsentry#23035.

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.
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.
…ervice

Define the service boundary that saves wallet settings and reports the immediate refill result when a customer turns auto top-up on. Include payment failure and 3D Secure details so callers can complete an unsuccessful synchronous charge.

Constraint: Keep the recurring auto-top-up invoice flow as the single billing implementation
Confidence: high
Scope-risk: narrow
@github-actions

github-actions Bot commented Nov 9, 2026 •

Copy link
Copy Markdown

The latest Buf updates on your PR. Results from workflow ci / buf-checks (pull_request).

BuildFormatLintBreakingUpdated (UTC)
✅ passed✅ passed✅ passed❌ failed (7)Nov 9, 2026, 8:20 PM

@volokluev
volokluev changed the base branch from volo/seer-wallet-auto-top-up-job to main November 9, 2026 20:51

This branch has not been deployed

No deployments
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.

1 participant