@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clocknext/sdk",
3
- "version": "0.20.0",
3
+ "version": "0.20.1",
4
4
  "description": "Official ClockNext SDK — record usage signals and manage plans, purchases, invoices, customers, and billing from your backend.",
5
5
  "license": "MIT",
6
6
  "type": "module",
package/src/webhooks.ts CHANGED
@@ -35,9 +35,10 @@ export type WebhookEventType = "wallet.balance.update" | "wallet.balance.drop";
35
35
  * Do not compare the two — the ledger API reports `SUBSCRIPTION`, `RENEWAL`,
36
36
  * `API`, … where the webhook says `TOPUP` or `ADJUSTMENT`.
37
37
  *
38
- * `SETTLE` is part of the type but `wallet.balance.update` does not fire for it.
38
+ * The ledger also has a `SETTLE` source (an invoice being paid off), but
39
+ * `wallet.balance.update` is never sent for it, so it is not in this type.
39
40
  */
40
- export type WebhookWalletSource = "TOPUP" | "USAGE" | "SETTLE" | "ADJUSTMENT";
41
+ export type WebhookWalletSource = "TOPUP" | "USAGE" | "ADJUSTMENT";
41
42
 
42
43
  /** The customer a wallet event is about. */
43
44
  export interface WebhookCustomer {