Refactor invoice validation using reusable modifiers#94
Refactor invoice validation using reusable modifiers#94Sana9058 wants to merge 1 commit intoStabilityNexus:mainfrom
Conversation
📝 WalkthroughWalkthroughFour new modifiers were introduced to centralize access-control and invoice validation checks. Three functions were refactored to use these modifiers: Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches🧪 Generate unit tests (beta)
Tip 🧪 Unit Test Generation v2 is now available!We have significantly improved our unit test generation capabilities. To enable: Add this to your reviews:
finishing_touches:
unit_tests:
enabled: trueTry it out by using the Have feedback? Share your thoughts on our Discord thread! 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 |
What this PR does
This PR refactors repeated
requirechecks in:payInvoicecancelInvoicegetPaymentStatusby extracting them into reusable modifiers:
validInvoiceinvoiceActiveonlyCreatoronlyPayerWhy
Scope
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.