Repository navigation
feat: demo accounts declared; first payment, late invoices and React checkout fixes #43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
c93d015
fix: a new price row whose key starts with a price's id doesn't keep …
roble 5dbe0db
chore: alias dev as 3.6.x-dev, past the v3.5.0 release
roble 8e4f782
chore: alias dev as 3.x-dev, so it never falls behind a minor release
roble 0e820c0
feat: the demo seeder declares its accounts (#[DemoAccount])
roble 7904f35
refactor: rename billWorkspaces to billTenants for clarity in Billing…
roble 598d737
test: the user menu names the Free plan when the app has one
roble 7095b4b
Merge branch 'renanroble-e2e-template-premises' into dev
roble 28103a8
fix: the React checkout shows its validation errors
roble b66946e
Merge branch 'renanroble-night-2026-11-18' into dev
roble cba6bb8
fix: the first payment is matched by its invoice, late invoices keep …
roble 148e1e2
Merge branch 'renanroble-bugfixes-2026-11-19' into dev
roble 9c0ae4b
chore: require core ^3.1 for the demo account attribute
roble 06b1e23
fix: a delayed invoice never moves the period back
roble 67e6e4d
Merge branch 'renanroble-coderabbit-2026-11-20' into dev
roble File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Retain freshness information for applied invoice periods.
If a February invoice advances the period, this call does not advance any period watermark. A delayed January invoice can therefore pass
applyIfCurrent()when both invoice timestamps exceed the last subscription-event timestamp. The January invoice then moves the period back.The new test covers only an invoice older than an existing
last_event_at. Track period freshness separately, or validate the incoming period against the stored period. Keep recording the older invoice without replacing the newer period.Do not use unrelated status updates to reject a newer period.
If
SubscriptionUpdatedsupplies a status without period dates, it advanceslast_event_atbut leaves the stored period unchanged. A delayed invoice can contain a newer period while having an earlier event timestamp. This call rejects that period update and acknowledges the invoice, so retry does not repair the dates.Check freshness for the period fields separately from status-event freshness. Test this order with January dates stored, a February status-only update, and a delayed invoice containing February–March dates. Continue to reject invoices whose periods are older than the stored period.