mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-11-05 10:37:48 +00:00
Add chargeEntries, the one planner for a store charge's ledger rows: a lapse to the billing period start, the grant dated to that start, and a lapse to now, so coverage follows the store's periods and every row verifies by re-running it at its createdAt. A test runs its rows through the client's own balanceChecked for first charges, monthly and annual renewals, billing-retry recovery and grace. An Apple auto-renewable transaction is now claimed by its original transaction id, which every renewal keeps, so renewals resolve to one purchase. One function names the ref for both the claim and the real verifier, so they cannot disagree. Run: 001-badge-subscriptions, slice 3a