wabe 0.5.9 → 0.5.10

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/dist/index.d.ts CHANGED
@@ -1163,23 +1163,11 @@ export type ValidateWebhookOptions = {
1163
1163
  * ValidateWebhookOutput
1164
1164
  * @property valid - Whether the webhook is valid or not
1165
1165
  * @property payload - The payload of the webhook
1166
- * @property type - The type of the webhook
1167
- * @property customerId - The customer id
1168
- * @property createdAt - The created at timestamp in seconds
1169
- * @property currency - The currency
1170
- * @property amount - The amount
1171
- * @property paymentMethod - The payment method
1172
1166
  */
1173
1167
  export type ValidateWebhookOutput = {
1174
1168
  isValid: boolean;
1175
- payload: {
1176
- type: string;
1177
- customerId?: string;
1178
- createdAt?: number;
1179
- currency?: string;
1180
- amount?: number;
1181
- paymentMethod?: Array<string>;
1182
- };
1169
+ type: string;
1170
+ payload: any | null;
1183
1171
  };
1184
1172
  export type InitWebhookOutput = {
1185
1173
  webhookId: string;
@@ -1389,9 +1377,8 @@ export declare class PaymentDevAdapter implements PaymentAdapter {
1389
1377
  }>;
1390
1378
  validateWebhook(): Promise<{
1391
1379
  isValid: boolean;
1392
- payload: {
1393
- type: string;
1394
- };
1380
+ payload: {};
1381
+ type: string;
1395
1382
  }>;
1396
1383
  createCustomer(): Promise<string>;
1397
1384
  createPayment(): Promise<string>;
package/dist/index.js CHANGED
@@ -61415,7 +61415,7 @@ class PaymentDevAdapter {
61415
61415
  };
61416
61416
  }
61417
61417
  async validateWebhook() {
61418
- return { isValid: true, payload: { type: "" } };
61418
+ return { isValid: true, payload: {}, type: "" };
61419
61419
  }
61420
61420
  async createCustomer() {
61421
61421
  return "";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wabe",
3
- "version": "0.5.9",
3
+ "version": "0.5.10",
4
4
  "description": "Your backend in minutes not days",
5
5
  "homepage": "https://wabe.dev",
6
6
  "author": {