fix(payments): use stripe/cjs resource types in reconciliationService#168
fix(payments): use stripe/cjs resource types in reconciliationService#168georgyia wants to merge 1 commit into
Conversation
After Stripe 22 (#159) the default Stripe export no longer exposes the Issuing namespace as typed members. PR #149 added Stripe.Issuing.Card / Stripe.Issuing.Transaction annotations and was merged in parallel, which broke 'npx tsc --noEmit' on main: TS2694: Namespace 'StripeConstructor' has no exported member 'Issuing' Switch to the same 'stripe/cjs/resources/Issuing' type imports already used by cardService.ts, webhookHandler.ts and checkoutSimulator.ts.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe PR refactors type imports in the Stripe reconciliation service. It replaces the default Stripe SDK import with direct type-only imports of ChangesStripe Issuing Type Import Refactoring
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Suggested labels
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
|
Heads up: |
Why
mainfailsnpx tsc --noEmitafter PRs #149 and #159 landed in parallel:#149 added
Stripe.Issuing.Card/Stripe.Issuing.Transactionannotations; #159 (Stripe 16 → 22) removed those namespace exports from the defaultStripeimport. Neither PR conflicted textually, but their semantic combination is broken onmain.What
Switch to the same
stripe/cjs/resources/Issuingresource-type imports thatcardService.ts,webhookHandler.ts, andcheckoutSimulator.tsalready use post-Stripe 22. Drop the now-unused defaultStripeimport.Verification
npx tsc --noEmit→ cleannpx eslint src/payments/providers/stripe/reconciliationService.ts→ cleannpx jest --testPathIgnorePatterns=tests/integration→ 38 suites / 412 tests passNo runtime behaviour change — types only.
Summary by CodeRabbit