feat: enhance invoice capture with improved Stripe webhook handling#346
Conversation
…pdates - Added handlers for `invoice.updated`, `invoice.voided`, and `charge.refunded` events to process changes in invoice status and details. - Updated the `BillingInvoice` model to include new fields for `invoice_pdf`, `hosted_invoice_url`, and `currency`. - Improved the `list_invoices` function to return additional invoice details from the database. - Refactored invoice creation and update logic to ensure accurate syncing with Stripe data, including handling invoice line items. - Enhanced tests for invoice listing and processing to cover new functionality and ensure reliability.
|
@claude please review this PR |
|
Claude finished @jfrench9's task in 1m 28s —— View job PR Review: Enhanced Invoice Capture with Stripe Webhook HandlingTasks
Review SummaryThis PR implements a solid enhancement to invoice capture and Stripe webhook handling. The changes are well-structured and follow the codebase patterns. I've identified several important issues that should be addressed before merging. Critical Issues1. Missing
|
…pty line items gracefully. Update test to include subscription_id for line items.
Summary
This PR significantly improves the billing system's invoice capture and synchronization capabilities by enhancing Stripe webhook handling and streamlining invoice processing workflows.
Key Accomplishments
Technical Changes
Breaking Changes
None - all changes are backwards compatible and enhance existing functionality.
Testing Notes
Infrastructure Considerations
🤖 Generated with Claude Code
Branch Info:
feature/improve-invoice-capture-stripemainCo-Authored-By: Claude noreply@anthropic.com