@pague-dev/sdk-node 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/dist/index.d.cts +8 -0
- package/dist/index.d.mts +8 -0
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -302,6 +302,8 @@ interface WebhookPayload<T extends WebhookEventType, D> {
|
|
|
302
302
|
interface PaymentCompletedData {
|
|
303
303
|
/** Transaction identifier */
|
|
304
304
|
transactionId: string;
|
|
305
|
+
/** Environment where the transaction occurred */
|
|
306
|
+
environment: 'production' | 'sandbox';
|
|
305
307
|
/** Payment amount */
|
|
306
308
|
amount: number;
|
|
307
309
|
/** Platform fees charged */
|
|
@@ -327,6 +329,8 @@ interface RefundCompletedData {
|
|
|
327
329
|
refundTransactionId: string;
|
|
328
330
|
/** Original payment transaction ID that was refunded */
|
|
329
331
|
originalTransactionId: string;
|
|
332
|
+
/** Environment where the transaction occurred */
|
|
333
|
+
environment: 'production' | 'sandbox';
|
|
330
334
|
/** Refunded amount */
|
|
331
335
|
amount: number;
|
|
332
336
|
/** Fees charged for the refund */
|
|
@@ -346,6 +350,8 @@ interface RefundCompletedData {
|
|
|
346
350
|
interface WithdrawalCompletedData {
|
|
347
351
|
/** Withdrawal identifier */
|
|
348
352
|
withdrawalId: string;
|
|
353
|
+
/** Environment where the withdrawal occurred */
|
|
354
|
+
environment: 'production' | 'sandbox';
|
|
349
355
|
/** Withdrawal amount */
|
|
350
356
|
amount: number;
|
|
351
357
|
/** Fees charged for the withdrawal */
|
|
@@ -365,6 +371,8 @@ interface WithdrawalCompletedData {
|
|
|
365
371
|
interface WithdrawalFailedData {
|
|
366
372
|
/** Withdrawal identifier */
|
|
367
373
|
withdrawalId: string;
|
|
374
|
+
/** Environment where the withdrawal occurred */
|
|
375
|
+
environment: 'production' | 'sandbox';
|
|
368
376
|
/** Withdrawal amount */
|
|
369
377
|
amount: number;
|
|
370
378
|
/** Fees that would have been charged */
|
package/dist/index.d.mts
CHANGED
|
@@ -302,6 +302,8 @@ interface WebhookPayload<T extends WebhookEventType, D> {
|
|
|
302
302
|
interface PaymentCompletedData {
|
|
303
303
|
/** Transaction identifier */
|
|
304
304
|
transactionId: string;
|
|
305
|
+
/** Environment where the transaction occurred */
|
|
306
|
+
environment: 'production' | 'sandbox';
|
|
305
307
|
/** Payment amount */
|
|
306
308
|
amount: number;
|
|
307
309
|
/** Platform fees charged */
|
|
@@ -327,6 +329,8 @@ interface RefundCompletedData {
|
|
|
327
329
|
refundTransactionId: string;
|
|
328
330
|
/** Original payment transaction ID that was refunded */
|
|
329
331
|
originalTransactionId: string;
|
|
332
|
+
/** Environment where the transaction occurred */
|
|
333
|
+
environment: 'production' | 'sandbox';
|
|
330
334
|
/** Refunded amount */
|
|
331
335
|
amount: number;
|
|
332
336
|
/** Fees charged for the refund */
|
|
@@ -346,6 +350,8 @@ interface RefundCompletedData {
|
|
|
346
350
|
interface WithdrawalCompletedData {
|
|
347
351
|
/** Withdrawal identifier */
|
|
348
352
|
withdrawalId: string;
|
|
353
|
+
/** Environment where the withdrawal occurred */
|
|
354
|
+
environment: 'production' | 'sandbox';
|
|
349
355
|
/** Withdrawal amount */
|
|
350
356
|
amount: number;
|
|
351
357
|
/** Fees charged for the withdrawal */
|
|
@@ -365,6 +371,8 @@ interface WithdrawalCompletedData {
|
|
|
365
371
|
interface WithdrawalFailedData {
|
|
366
372
|
/** Withdrawal identifier */
|
|
367
373
|
withdrawalId: string;
|
|
374
|
+
/** Environment where the withdrawal occurred */
|
|
375
|
+
environment: 'production' | 'sandbox';
|
|
368
376
|
/** Withdrawal amount */
|
|
369
377
|
amount: number;
|
|
370
378
|
/** Fees that would have been charged */
|