@pague-dev/sdk-node 0.2.1 → 0.2.2

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.cts CHANGED
@@ -320,6 +320,8 @@ interface PaymentCompletedData {
320
320
  completedAt: string;
321
321
  /** Your external reference ID (optional) */
322
322
  externalReference?: string;
323
+ /** Custom metadata passed when creating the payment */
324
+ metadata?: Record<string, unknown>;
323
325
  }
324
326
  /**
325
327
  * Data payload for refund_completed event
@@ -343,6 +345,8 @@ interface RefundCompletedData {
343
345
  status: 'completed';
344
346
  /** ISO 8601 timestamp of when refund was completed */
345
347
  completedAt: string;
348
+ /** Custom metadata from the original payment */
349
+ metadata?: Record<string, unknown>;
346
350
  }
347
351
  /**
348
352
  * Data payload for withdrawal_completed event
@@ -364,6 +368,8 @@ interface WithdrawalCompletedData {
364
368
  status: 'completed';
365
369
  /** ISO 8601 timestamp of when withdrawal was completed */
366
370
  completedAt: string;
371
+ /** Custom metadata from the withdrawal request */
372
+ metadata?: Record<string, unknown>;
367
373
  }
368
374
  /**
369
375
  * Data payload for withdrawal_failed event
@@ -387,6 +393,8 @@ interface WithdrawalFailedData {
387
393
  failedAt: string;
388
394
  /** Reason for failure (e.g., "insufficient_funds", "invalid_account") */
389
395
  failureReason: string;
396
+ /** Custom metadata from the withdrawal request */
397
+ metadata?: Record<string, unknown>;
390
398
  }
391
399
  /**
392
400
  * Payment completed webhook event
package/dist/index.d.mts CHANGED
@@ -320,6 +320,8 @@ interface PaymentCompletedData {
320
320
  completedAt: string;
321
321
  /** Your external reference ID (optional) */
322
322
  externalReference?: string;
323
+ /** Custom metadata passed when creating the payment */
324
+ metadata?: Record<string, unknown>;
323
325
  }
324
326
  /**
325
327
  * Data payload for refund_completed event
@@ -343,6 +345,8 @@ interface RefundCompletedData {
343
345
  status: 'completed';
344
346
  /** ISO 8601 timestamp of when refund was completed */
345
347
  completedAt: string;
348
+ /** Custom metadata from the original payment */
349
+ metadata?: Record<string, unknown>;
346
350
  }
347
351
  /**
348
352
  * Data payload for withdrawal_completed event
@@ -364,6 +368,8 @@ interface WithdrawalCompletedData {
364
368
  status: 'completed';
365
369
  /** ISO 8601 timestamp of when withdrawal was completed */
366
370
  completedAt: string;
371
+ /** Custom metadata from the withdrawal request */
372
+ metadata?: Record<string, unknown>;
367
373
  }
368
374
  /**
369
375
  * Data payload for withdrawal_failed event
@@ -387,6 +393,8 @@ interface WithdrawalFailedData {
387
393
  failedAt: string;
388
394
  /** Reason for failure (e.g., "insufficient_funds", "invalid_account") */
389
395
  failureReason: string;
396
+ /** Custom metadata from the withdrawal request */
397
+ metadata?: Record<string, unknown>;
390
398
  }
391
399
  /**
392
400
  * Payment completed webhook event
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pague-dev/sdk-node",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "description": "Node.js SDK for the pague.dev API",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.mjs",