From 3a78359f592143ef4d792aa8691e4b5b95492bfe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maurice=20Preu=C3=9F?= Date: Fri, 6 Nov 2026 20:01:15 +0000 Subject: [PATCH] Add charges and the billing limit to the changelog --- CHANGELOG.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 40dd551..0020ee8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,7 @@ ## Unreleased -Preferences; they need an Anikeen ID release that supports them. +Preferences, charges and the billing limit; they need an Anikeen ID release that supports them. ### Added @@ -18,6 +18,13 @@ Preferences; they need an Anikeen ID release that supports them. `PreconditionFailedException` (a subclass of `ApiException`) for 412 with `currentVersion()`. - Scopes `Scope::PREFERENCES`, `PREFERENCES_READ` and `PREFERENCES_CLIENT`. - Webhook event `order.refunded` (`EventType::ORDER_REFUNDED`). +- Charges on a user's monthly bill for trusted apps: `createChargeForUser()` (with an idempotency + key), `findChargeForUser()` and `voidChargeForUser()`; `Resources\AppCharge`. +- The user's billing limit for trusted apps: `billingLimitForUser()` and `Resources\BillingLimit` + (`allows()` is advisory); the `billing_limit` key of `billingOverview()` is documented. +- `ApiException::isBillingLimitReached()` for 409 `billing_limit_reached`. +- Opt-in webhook events `billing_limit.reached` and `billing_limit.available` + (`EventType::BILLING_LIMIT_REACHED`, `BILLING_LIMIT_AVAILABLE`). - An optional trailing `$headers` argument on `AnikeenId::request()`, `get()`, `post()`, `put()`, `delete()` and `AppRequest::send()`; calls without it send the same request as before.