G
YouTube TikTok Games
Skip to content

Add include_invoice_components option to Account.paginated_invoices - #128

Draft
tungleduyxyz wants to merge 1 commit into
masterfrom
invoice-pagination-include-components
Draft

tungleduyxyz wants to merge 1 commit into
masterfrom
invoice-pagination-include-components

Conversation

@tungleduyxyz

Copy link
Copy Markdown
Contributor

Summary

Adds an optional trailing argument include_invoice_components (default false) to Account.paginated_invoices. When true, the client sends includeInvoiceComponents=true so the server loads the components (amount, balance, items) for the invoices of the requested page only. Existing callers and the default request are unchanged.

Depends on killbill/killbill#2334 (server support); draft until that is released.

Refs killbill/killbill-admin-ui#678

Testing

New spec/killbill_client/account_spec.rb checks the query params with and without the flag.

🤖 Generated with Claude Code

Paginated account invoices are shallow, so amount and balance are 0.
Optionally send includeInvoiceComponents=true so the server loads the
components of the invoices of the requested page.

The new argument is last, so existing callers are unaffected.

See killbill/killbill-admin-ui#678 and killbill/killbill#2334

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
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.

1 participant