Skip to content

feat(sdk): implement getSubmitterInvoices with pagination - #569

Merged
Levi-Ojukwu merged 1 commit into
Invoice-Liquidity-Network:mainfrom
gotethry:implement-get-submitter-invoices-pagination
Jul 25, 2026
Merged

feat(sdk): implement getSubmitterInvoices with pagination#569
Levi-Ojukwu merged 1 commit into
Invoice-Liquidity-Network:mainfrom
gotethry:implement-get-submitter-invoices-pagination

Conversation

@gotethry

Copy link
Copy Markdown
Contributor

Summary

Implements the getSubmitterInvoices SDK method for querying paginated invoices submitted by a specific submitter address.

Package Affected

  • SDK (@iln/sdk)

Related Issue

Closes #559

Complexity

  • Medium (new feature, bug fix)

Changes Made

  • Added getSubmitterInvoices(submitter, page, pageSize) SDK method in sdk/src/methods/queries.ts
  • Exported the method from sdk/src/index.ts
  • Added comprehensive tests for error handling and default pagination values

Changeset Included

  • No (not needed for this change)

Test Evidence

Tests added for getSubmitterInvoices:

  • Returns empty array when retval is null
  • Throws error on simulation error
  • Uses default pagination values (page 0, pageSize 50)

Breaking Change

  • No

Security Considerations

N/A

Checklist

  • Code follows project conventions (see CONTRIBUTING.md)
  • Tests added/updated and passing
  • Documentation updated (if needed)
  • Commit message follows Conventional Commits
  • No secrets or sensitive data in code
  • Breaking changes documented (if applicable)
  • Changeset added (if needed for release)

Adds a new SDK method getSubmitterInvoices to retrieve paginated invoices
submitted by a specific submitter address. Includes comprehensive tests for
error handling and default pagination values.

Resolves Invoice-Liquidity-Network#559
@drips-wave

drips-wave Bot commented Jul 25, 2026

Copy link
Copy Markdown

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

@Levi-Ojukwu
Levi-Ojukwu merged commit 956fc8c into Invoice-Liquidity-Network:main Jul 25, 2026
4 checks passed
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 SDK method for getSubmitterInvoices with pagination

2 participants