Skip to content

feat: monthly invoice generation worker#565

Open
frank0277 wants to merge 1 commit into
CalloraOrg:mainfrom
frank0277:feature/monthly-invoice-job
Open

feat: monthly invoice generation worker#565
frank0277 wants to merge 1 commit into
CalloraOrg:mainfrom
frank0277:feature/monthly-invoice-job

Conversation

@frank0277

Copy link
Copy Markdown

Summary

Implements the foundation for monthly invoice generation by adding a dedicated invoice service, a scheduled monthly worker, invoice database migrations, and invoice creation event support.

Changes

  • Added InvoiceService for monthly invoice generation logic.

  • Added monthlyInvoiceJob worker to generate invoices for closed billing periods.

  • Added database migrations for:

    • invoices
    • invoice_line_items
  • Extended the event system with invoice_created.

  • Added InvoiceCreatedData webhook payload type.

Notes

The implementation is designed to:

  • Generate invoices for completed billing periods.
  • Support idempotent invoice generation using the billing period identifier.
  • Keep invoice creation logic centralized within a dedicated service.
  • Provide an event hook for downstream processing and webhook delivery.

Testing

  • Verified project changes compile locally as far as possible within the current development environment.
  • Manual review of invoice generation flow and event integration.

Checklist

@drips-wave

drips-wave Bot commented Jun 28, 2026

Copy link
Copy Markdown

@frank0277 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@GBOYEE

GBOYEE commented Jun 28, 2026

Copy link
Copy Markdown

@GBOYEE has applied to work on this issue as part of the Stellar Wave Program's 6th wave.

Implement following existing patterns and conventions. Add tests, ensure CI passes, and document any new API surface.

ℹ️ Repo Maintainers: To accept this application, review their application or assign @GBOYEE to this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add a monthly invoice generation job that closes the previous period

2 participants