Skip to content

Build forward invoice chain helper #291

Description

@Kingsman-99

Labels: complexity: high

Add getForwardChain(invoiceId) that resolves the forward_invoice_id chain for an invoice, returning the full list of invoices that leftover funds would cascade through at release.

Acceptance criteria:

  • Returns { id, status, forwardTo }[] in cascade order
  • Detects and errors on circular forward chains
  • Returns single-element array when no forwarding is configured
  • Max chain depth of 10 before throwing ForwardChainTooDeepError

Metadata

Metadata

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions