Repository navigation
refactor(billing): organize Stripe Connect client operations - #1048
Gajesh2007 wants to merge 5 commits into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
@codex review |
|
Codex Review: Didn't find any major issues. You're on a roll. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|
@codex review Refreshed the parent branch and resolved documentation/source-map conflicts. Existing subsystem implementations and regression tests are preserved. Exact parent composition and independent review pass; all coordinator test packages compile and documentation checks pass. The account-deletion fixture also carries the previously reviewed asynchronous-registration race fix; all seven deletion tests pass under the race detector. |
|
Codex Review: Didn't find any major issues. Can't wait for the next one! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|
Consolidated into #1056 for review and merge after #1094, #1095 and #1096. #1056 contains this branch's exact head ( |
The Stripe Connect client mixed account onboarding, payout scheduling, transfers, event parsing, fees and HTTP error handling in one 930-line file. The operations now live in nine named files in the existing
billingpackage.stripe_connect.gokeeps the shared client state and constructor and maps the files. Stacked on #1038.All 45 Connect declarations preserve their executable code and declaration comments; 41 move. Transport credentials, supplied idempotency keys, account headers, signature verification, mock responses, fee arithmetic and uncertain-failure classification stay the same. The obsolete introductory lifecycle description is replaced with the current source map. Maintained billing and pricing references point to the actual operation files.
flowchart TB subgraph Before B1[Billing HTTP controller] --> B2[stripe_connect.go: accounts, links, transfers, payouts and fees] B2 --> B3[Same file: authenticated HTTP and APIError classification] B3 --> B4[Stripe API] B4 --> B5[Same file: signature verification and event projection] B5 --> B1 end subgraph After A1[Same billing HTTP controller] --> A2[stripe_connect_accounts / links / transfers / payouts / fees] A2 --> A3[stripe_connect_transport.go: do and supplied headers] A3 --> A4[Same Stripe API calls] A3 --> A5[stripe_connect_errors.go: same failure classification] A4 --> A6[stripe_connect_webhooks.go: same signature checks and event fields] A6 --> A1 endValidation: all 210 billing declarations compare identically after file relocation, including semicolon-preserving tokens and declaration comments. All seven existing billing test files retain their exact bytes. Billing and billing-controller race suites pass 152 top-level tests / 181 including subtests, with no skips. Command build, pinned lint (zero issues) and all 281 documentation checks pass. Tests use local HTTP fixtures; no live payment or production action was performed.
Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.