fix: remove subscription's settlement mode default value - #4521
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (6)
💤 Files with no reviewable changes (1)
📝 WalkthroughWalkthroughThis PR consolidates subscription type handling by removing implicit ChangesSubscription Type Consolidation
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Greptile SummaryRemoves the
Confidence Score: 5/5Safe to merge. The change is a clean, fully-propagated removal of a server-side default; all generated artifacts are consistent with the TypeSpec source. The single-line TypeSpec change cascades correctly through every generated layer: OpenAPI schema, zod schemas, TypeScript types, request-body aliases, and barrel exports. The removal of the five Input divergence-variant interfaces is logically correct — they existed solely because the defaulted field created an input/output shape difference, which no longer exists. No files require special attention. The most consumer-visible change is the deletion of five publicly exported Input types from index.ts; teams using the JS SDK directly should be aware this is a breaking export removal. Important Files Changed
Reviews (1): Last reviewed commit: "fix: remove subscription's settlement mo..." | Re-trigger Greptile |
With this fix, the subscription's settlement mode can be inherited from the plan.
Summary by CodeRabbit
SubscriptionCreateInput,SubscriptionInput,SubscriptionChangeInput,SubscriptionPagePaginatedResponseInput,SubscriptionChangeResponseInput) from the JavaScript client package.settlement_modefield in subscription operations is now optional without a default value. Previously, it defaulted tocredit_then_invoicewhen omitted.