Conversation
- Recover unbilled free advance fees in past usage periods - Cover billing, filtering, pagination, and timestamp behavior
|
Automated pre-review (advisory, not a required check) — verdict: HOLD · CI green HOLD — the new lookup adds an unconditional query fan-out to every past-usage request.
|
|
Automated pre-review (advisory, not a required check) — verdict: HOLD · CI green HOLD — |
|
Automated pre-review (advisory, not a required check) — verdict: HOLD · CI green HOLD: Free-tier units are still lost when paid advance fees are regrouped after their usage period.
|
|
Automated pre-review (advisory, not a required check) — verdict: PASS · CI green PASS — The standalone free-fee lookup is narrowly scoped, preserves invoice totals, and assigns usage consistently across regular, advance, regenerated, terminated, filtered, and paginated periods. Focused query specs and end-to-end request scenarios cover the new behavior and key exclusion cases. |
Context
Past usage excluded unbilled free-tier units from regrouped advance-charge periods. This caused historical usage to under-report consumption even though the units were correctly retained on the subscription and did not affect invoice amounts.
Description
Update past usage queries to include eligible unbilled free advance fees from the matching billing period, while preventing duplicate counting across regrouped and regular invoices. Preserve billable metric, subscription, organization, charge, timestamp, and pagination filtering behavior.