@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/dist/index.d.cts
CHANGED
|
@@ -2548,9 +2548,10 @@ type WebhookEventType = "wallet.balance.update" | "wallet.balance.drop";
|
|
|
2548
2548
|
* Do not compare the two — the ledger API reports `SUBSCRIPTION`, `RENEWAL`,
|
|
2549
2549
|
* `API`, … where the webhook says `TOPUP` or `ADJUSTMENT`.
|
|
2550
2550
|
*
|
|
2551
|
-
*
|
|
2551
|
+
* The ledger also has a `SETTLE` source (an invoice being paid off), but
|
|
2552
|
+
* `wallet.balance.update` is never sent for it, so it is not in this type.
|
|
2552
2553
|
*/
|
|
2553
|
-
type WebhookWalletSource = "TOPUP" | "USAGE" | "
|
|
2554
|
+
type WebhookWalletSource = "TOPUP" | "USAGE" | "ADJUSTMENT";
|
|
2554
2555
|
/** The customer a wallet event is about. */
|
|
2555
2556
|
interface WebhookCustomer {
|
|
2556
2557
|
id: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -2548,9 +2548,10 @@ type WebhookEventType = "wallet.balance.update" | "wallet.balance.drop";
|
|
|
2548
2548
|
* Do not compare the two — the ledger API reports `SUBSCRIPTION`, `RENEWAL`,
|
|
2549
2549
|
* `API`, … where the webhook says `TOPUP` or `ADJUSTMENT`.
|
|
2550
2550
|
*
|
|
2551
|
-
*
|
|
2551
|
+
* The ledger also has a `SETTLE` source (an invoice being paid off), but
|
|
2552
|
+
* `wallet.balance.update` is never sent for it, so it is not in this type.
|
|
2552
2553
|
*/
|
|
2553
|
-
type WebhookWalletSource = "TOPUP" | "USAGE" | "
|
|
2554
|
+
type WebhookWalletSource = "TOPUP" | "USAGE" | "ADJUSTMENT";
|
|
2554
2555
|
/** The customer a wallet event is about. */
|
|
2555
2556
|
interface WebhookCustomer {
|
|
2556
2557
|
id: string;
|