@billkit-eu/sdk 0.2.0 → 0.2.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/CHANGELOG.md +10 -2
- package/README.md +3 -3
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +2 -2
- package/src/resources.ts +1 -1
- package/src/version.ts +1 -1
package/src/index.ts
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* ```ts
|
|
7
7
|
* import { BillKit } from "@billkit-eu/sdk";
|
|
8
8
|
*
|
|
9
|
-
* const client = new BillKit({ apiKey: "
|
|
9
|
+
* const client = new BillKit({ apiKey: "bk_test_..." });
|
|
10
10
|
* const customer = await client.customers.create<{ id: string }>({
|
|
11
11
|
* email: "ada@example.com",
|
|
12
12
|
* });
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
* a logger to opt in:
|
|
46
46
|
*
|
|
47
47
|
* ```ts
|
|
48
|
-
* const client = new BillKit({ apiKey: "
|
|
48
|
+
* const client = new BillKit({ apiKey: "bk_test_...", logger: console });
|
|
49
49
|
* ```
|
|
50
50
|
*
|
|
51
51
|
* See {@link BillKitLogger} for what is logged and what is withheld
|
package/src/resources.ts
CHANGED
|
@@ -898,7 +898,7 @@ export class WebhookEndpoints extends BaseResource {
|
|
|
898
898
|
return this.del<T>(`/v1/webhook_endpoints/${id}`, params);
|
|
899
899
|
}
|
|
900
900
|
|
|
901
|
-
/** Rotate the signing secret. The new `
|
|
901
|
+
/** Rotate the signing secret. The new `bkwhsec_...` is returned once. */
|
|
902
902
|
rotateSecret<T = unknown>(id: string, params: IdempotencyOptions = {}): Promise<T> {
|
|
903
903
|
return this.postEmpty<T>(`/v1/webhook_endpoints/${id}/rotate_secret`, params);
|
|
904
904
|
}
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = "0.2.
|
|
1
|
+
export const VERSION = "0.2.1";
|