@clocknext/sdk 0.20.0 → 0.20.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -2
- package/dist/index.d.ts +3 -2
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/webhooks.ts +3 -2
package/README.md
CHANGED
|
@@ -941,7 +941,7 @@ that), or the body is not a ClockNext event. Answer **400** to those.
|
|
|
941
941
|
- **Field names are snake_case**, exactly as sent (`event_type`,
|
|
942
942
|
`previous_balance`, …), unlike the camelCase the rest of the SDK returns.
|
|
943
943
|
- **`source` is not the ledger's `source`.** `wallet.balance.update` carries the
|
|
944
|
-
stored source — `TOPUP`, `USAGE
|
|
944
|
+
stored source — `TOPUP`, `USAGE` or `ADJUSTMENT` — not the finer
|
|
945
945
|
`SUBSCRIPTION` / `RENEWAL` / `API` / … that `customers.wallet()` reports.
|
|
946
946
|
Do not compare the two.
|
|
947
947
|
- To test your receiver, sign a fixture with `signWebhookPayload(secret, body,
|