@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/package.json
CHANGED
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
|
-
*
|
|
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" | "
|
|
41
|
+
export type WebhookWalletSource = "TOPUP" | "USAGE" | "ADJUSTMENT";
|
|
41
42
|
|
|
42
43
|
/** The customer a wallet event is about. */
|
|
43
44
|
export interface WebhookCustomer {
|