@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/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: "sk_test_..." });
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: "sk_test_...", logger: console });
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 `whsec_...` is returned once. */
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.0";
1
+ export const VERSION = "0.2.1";