Skip to content

feat: break down billing totals#177

Merged
mikewheeleer merged 1 commit into
Agentpay-Org:mainfrom
alan-provable:issue-160-billing-total-breakdown
Jun 29, 2026
Merged

feat: break down billing totals#177
mikewheeleer merged 1 commit into
Agentpay-Org:mainfrom
alan-provable:issue-160-billing-total-breakdown

Conversation

@alan-provable

Copy link
Copy Markdown
Contributor

Closes #160

Summary

  • Adds disabledStroops and unpricedRequests to the protocol billing total response.
  • Preserves totalStroops as the aggregate for priced usage so existing dashboards keep their current meaning.
  • Documents the breakdown fields in README.md.
  • Adds focused regression tests for empty usage, all-enabled usage, disabled service usage, and unregistered service usage.

Validation

  • npm run build
  • npm run lint
  • npm test
    • Passed after allowing local test listeners: 78 tests, 7 suites, 0 failures.
    • A sandboxed first run failed with listen EPERM: operation not permitted 0.0.0.0 because the test suite uses Supertest local HTTP listeners.
  • git diff --check origin/main..HEAD

@alan-provable alan-provable force-pushed the issue-160-billing-total-breakdown branch from 4ed5d9e to fe19237 Compare June 29, 2026 08:18
@mikewheeleer

Copy link
Copy Markdown
Contributor

thanks for the effort @alan-provable! 🙏 issue #160 isn't assigned to you, and we merge from the assigned contributor to keep the campaign fair. please claim an open unassigned issue first, then open your PR. closing for now — hope to see it back 🙌

@mikewheeleer

Copy link
Copy Markdown
Contributor

appreciate this — shipping it 🚀

@mikewheeleer mikewheeleer merged commit ed60bc0 into Agentpay-Org:main Jun 29, 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.

Add an /api/v1/agents/:agent/services-disabled aware billing quote that skips disabled services

2 participants