Skip to content

feat: implement invoice automation workflows - #1004

Merged
Kingsman-99 merged 1 commit into
Stellar-split:mainfrom
mercyJJ:feat/invoice-automation-workflows-974
Sep 30, 2026
Merged

Kingsman-99 merged 1 commit into
Stellar-split:mainfrom
mercyJJ:feat/invoice-automation-workflows-974

Conversation

@mercyJJ

@mercyJJ mercyJJ commented Sep 30, 2026

Copy link
Copy Markdown
Contributor

Closes #974

Summary

Implements InvoiceAutomationEngine — a composable workflow engine for automating invoice lifecycle events.

Changes

  • src/invoiceAutomation.ts: Core implementation
  • test/invoiceAutomation.test.ts: Comprehensive test suite

Features

  • runWorkflow — runs a sequence of workflow steps with context threading, per-step timeouts, conditional execution, and continueOnError support
  • InvoiceAutomationEngine — register/remove/trigger automation rules with event emission
  • Trigger types: manual, deadline, payment_received, approval_count
  • Lifecycle events: workflow:started, workflow:completed, workflow:failed

Acceptance Criteria

  • Feature implemented
  • All tests pass
  • TypeScript compiles with zero errors
  • ESLint passes

@drips-wave

drips-wave Bot commented Sep 30, 2026

Copy link
Copy Markdown

@mercyJJ 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

@Kingsman-99
Kingsman-99 merged commit bec0fe8 into Stellar-split:main Sep 30, 2026
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.

Implement invoice automation workflows

2 participants