@billkit-eu/sdk 0.4.0 → 0.5.0

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": "@billkit-eu/sdk",
3
- "version": "0.4.0",
3
+ "version": "0.5.0",
4
4
  "description": "Official Node.js SDK for BillKit: a Stripe-Billing-shape multi-tenant SaaS API on Mollie.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
package/src/index.ts CHANGED
@@ -82,6 +82,7 @@ export type {
82
82
  CreateUsageRecordParams,
83
83
  CreateWebhookEndpointParams,
84
84
  CreditNotesListParams,
85
+ CustomerListParams,
85
86
  EventsListParams,
86
87
  IdempotencyOptions,
87
88
  ListParams,
package/src/resources.ts CHANGED
@@ -1167,10 +1167,25 @@ export class WebhookEndpoints extends BaseResource {
1167
1167
  }
1168
1168
 
1169
1169
  /** Fetch one delivery row for inspection before deciding to redeliver. */
1170
- getDelivery<T = unknown>(endpointId: string, deliveryId: string): Promise<T> {
1170
+ retrieveDelivery<T = unknown>(endpointId: string, deliveryId: string): Promise<T> {
1171
1171
  return this.get<T>(`/v1/webhook_endpoints/${endpointId}/deliveries/${deliveryId}`);
1172
1172
  }
1173
1173
 
1174
+ /**
1175
+ * @deprecated Renamed to {@link WebhookEndpoints.retrieveDelivery}.
1176
+ *
1177
+ * Every other single-row fetch in every BillKit SDK is `retrieve`; this
1178
+ * one method was `get`, which meant reaching for the obvious name and
1179
+ * getting a type error. The python and php clients already spell it
1180
+ * `retrieve_delivery` / `retrieveDelivery`, so node was the outlier.
1181
+ *
1182
+ * Kept as an alias because removing it would break callers for a naming
1183
+ * preference. It will go in the next major.
1184
+ */
1185
+ getDelivery<T = unknown>(endpointId: string, deliveryId: string): Promise<T> {
1186
+ return this.retrieveDelivery<T>(endpointId, deliveryId);
1187
+ }
1188
+
1174
1189
  /**
1175
1190
  * Re-enqueue a delivery row for the dispatcher.
1176
1191
  *
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = "0.4.0";
1
+ export const VERSION = "0.5.0";