@naturalpay/sdk 0.3.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/CHANGELOG.md +22 -0
- package/client.d.mts +23 -20
- package/client.d.mts.map +1 -1
- package/client.d.ts +23 -20
- package/client.d.ts.map +1 -1
- package/client.js +11 -8
- package/client.js.map +1 -1
- package/client.mjs +12 -9
- package/client.mjs.map +1 -1
- package/internal/tslib.js +17 -17
- package/internal/utils/query.d.mts +3 -0
- package/internal/utils/query.d.mts.map +1 -1
- package/internal/utils/query.d.ts +3 -0
- package/internal/utils/query.d.ts.map +1 -1
- package/internal/utils/query.js +16 -3
- package/internal/utils/query.js.map +1 -1
- package/internal/utils/query.mjs +16 -2
- package/internal/utils/query.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/agents.d.mts +554 -268
- package/resources/agents.d.mts.map +1 -1
- package/resources/agents.d.ts +554 -268
- package/resources/agents.d.ts.map +1 -1
- package/resources/agents.js +72 -20
- package/resources/agents.js.map +1 -1
- package/resources/agents.mjs +72 -20
- package/resources/agents.mjs.map +1 -1
- package/resources/api-keys.d.mts +16 -2
- package/resources/api-keys.d.mts.map +1 -1
- package/resources/api-keys.d.ts +16 -2
- package/resources/api-keys.d.ts.map +1 -1
- package/resources/api-keys.js +7 -4
- package/resources/api-keys.js.map +1 -1
- package/resources/api-keys.mjs +7 -4
- package/resources/api-keys.mjs.map +1 -1
- package/resources/customers.d.mts +243 -114
- package/resources/customers.d.mts.map +1 -1
- package/resources/customers.d.ts +243 -114
- package/resources/customers.d.ts.map +1 -1
- package/resources/customers.js +6 -7
- package/resources/customers.js.map +1 -1
- package/resources/customers.mjs +6 -7
- package/resources/customers.mjs.map +1 -1
- package/resources/index.d.mts +7 -7
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +7 -7
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -3
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +2 -2
- package/resources/index.mjs.map +1 -1
- package/resources/invitations.d.mts +16 -7
- package/resources/invitations.d.mts.map +1 -1
- package/resources/invitations.d.ts +16 -7
- package/resources/invitations.d.ts.map +1 -1
- package/resources/invitations.js +6 -4
- package/resources/invitations.js.map +1 -1
- package/resources/invitations.mjs +6 -4
- package/resources/invitations.mjs.map +1 -1
- package/resources/parties.d.mts +53 -26
- package/resources/parties.d.mts.map +1 -1
- package/resources/parties.d.ts +53 -26
- package/resources/parties.d.ts.map +1 -1
- package/resources/parties.js +27 -1
- package/resources/parties.js.map +1 -1
- package/resources/parties.mjs +27 -1
- package/resources/parties.mjs.map +1 -1
- package/resources/payment-requests.d.mts +738 -33
- package/resources/payment-requests.d.mts.map +1 -1
- package/resources/payment-requests.d.ts +738 -33
- package/resources/payment-requests.d.ts.map +1 -1
- package/resources/payment-requests.js +82 -1
- package/resources/payment-requests.js.map +1 -1
- package/resources/payment-requests.mjs +82 -1
- package/resources/payment-requests.mjs.map +1 -1
- package/resources/payments.d.mts +390 -24
- package/resources/payments.d.mts.map +1 -1
- package/resources/payments.d.ts +390 -24
- package/resources/payments.d.ts.map +1 -1
- package/resources/payments.js +53 -3
- package/resources/payments.js.map +1 -1
- package/resources/payments.mjs +53 -3
- package/resources/payments.mjs.map +1 -1
- package/resources/transactions.d.mts +50 -118
- package/resources/transactions.d.mts.map +1 -1
- package/resources/transactions.d.ts +50 -118
- package/resources/transactions.d.ts.map +1 -1
- package/resources/transactions.js +2 -2
- package/resources/transactions.mjs +2 -2
- package/resources/transfers.d.mts +1030 -0
- package/resources/transfers.d.mts.map +1 -0
- package/resources/transfers.d.ts +1030 -0
- package/resources/transfers.d.ts.map +1 -0
- package/resources/transfers.js +114 -0
- package/resources/transfers.js.map +1 -0
- package/resources/transfers.mjs +110 -0
- package/resources/transfers.mjs.map +1 -0
- package/resources/wallet.d.mts +1 -189
- package/resources/wallet.d.mts.map +1 -1
- package/resources/wallet.d.ts +1 -189
- package/resources/wallet.d.ts.map +1 -1
- package/resources/wallet.js +0 -66
- package/resources/wallet.js.map +1 -1
- package/resources/wallet.mjs +0 -66
- package/resources/wallet.mjs.map +1 -1
- package/resources/webhooks.d.mts +7 -7
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +7 -7
- package/resources/webhooks.d.ts.map +1 -1
- package/src/client.ts +82 -43
- package/src/internal/utils/query.ts +18 -2
- package/src/resources/agents.ts +676 -300
- package/src/resources/api-keys.ts +26 -4
- package/src/resources/customers.ts +273 -132
- package/src/resources/index.ts +38 -18
- package/src/resources/invitations.ts +26 -10
- package/src/resources/parties.ts +85 -30
- package/src/resources/payment-requests.ts +949 -58
- package/src/resources/payments.ts +518 -23
- package/src/resources/transactions.ts +50 -136
- package/src/resources/transfers.ts +1338 -0
- package/src/resources/wallet.ts +0 -268
- package/src/resources/webhooks.ts +7 -0
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
- package/internal/qs/formats.d.mts +0 -7
- package/internal/qs/formats.d.mts.map +0 -1
- package/internal/qs/formats.d.ts +0 -7
- package/internal/qs/formats.d.ts.map +0 -1
- package/internal/qs/formats.js +0 -13
- package/internal/qs/formats.js.map +0 -1
- package/internal/qs/formats.mjs +0 -9
- package/internal/qs/formats.mjs.map +0 -1
- package/internal/qs/index.d.mts +0 -10
- package/internal/qs/index.d.mts.map +0 -1
- package/internal/qs/index.d.ts +0 -10
- package/internal/qs/index.d.ts.map +0 -1
- package/internal/qs/index.js +0 -14
- package/internal/qs/index.js.map +0 -1
- package/internal/qs/index.mjs +0 -10
- package/internal/qs/index.mjs.map +0 -1
- package/internal/qs/stringify.d.mts +0 -3
- package/internal/qs/stringify.d.mts.map +0 -1
- package/internal/qs/stringify.d.ts +0 -3
- package/internal/qs/stringify.d.ts.map +0 -1
- package/internal/qs/stringify.js +0 -277
- package/internal/qs/stringify.js.map +0 -1
- package/internal/qs/stringify.mjs +0 -274
- package/internal/qs/stringify.mjs.map +0 -1
- package/internal/qs/types.d.mts +0 -57
- package/internal/qs/types.d.mts.map +0 -1
- package/internal/qs/types.d.ts +0 -57
- package/internal/qs/types.d.ts.map +0 -1
- package/internal/qs/types.js +0 -3
- package/internal/qs/types.js.map +0 -1
- package/internal/qs/types.mjs +0 -2
- package/internal/qs/types.mjs.map +0 -1
- package/internal/qs/utils.d.mts +0 -15
- package/internal/qs/utils.d.mts.map +0 -1
- package/internal/qs/utils.d.ts +0 -15
- package/internal/qs/utils.d.ts.map +0 -1
- package/internal/qs/utils.js +0 -230
- package/internal/qs/utils.js.map +0 -1
- package/internal/qs/utils.mjs +0 -217
- package/internal/qs/utils.mjs.map +0 -1
- package/resources/delegations.d.mts +0 -458
- package/resources/delegations.d.mts.map +0 -1
- package/resources/delegations.d.ts +0 -458
- package/resources/delegations.d.ts.map +0 -1
- package/resources/delegations.js +0 -47
- package/resources/delegations.js.map +0 -1
- package/resources/delegations.mjs +0 -43
- package/resources/delegations.mjs.map +0 -1
- package/src/internal/qs/LICENSE.md +0 -13
- package/src/internal/qs/README.md +0 -3
- package/src/internal/qs/formats.ts +0 -10
- package/src/internal/qs/index.ts +0 -13
- package/src/internal/qs/stringify.ts +0 -385
- package/src/internal/qs/types.ts +0 -71
- package/src/internal/qs/utils.ts +0 -265
- package/src/resources/delegations.ts +0 -580
package/src/resources/wallet.ts
CHANGED
|
@@ -13,11 +13,6 @@ export class Wallet extends APIResource {
|
|
|
13
13
|
/**
|
|
14
14
|
* List wallets for the authenticated party, including balance and ACH deposit
|
|
15
15
|
* instructions when available. Currently returns at most one wallet.
|
|
16
|
-
*
|
|
17
|
-
* @example
|
|
18
|
-
* ```ts
|
|
19
|
-
* const wallets = await client.wallet.list();
|
|
20
|
-
* ```
|
|
21
16
|
*/
|
|
22
17
|
list(
|
|
23
18
|
params: WalletListParams | null | undefined = {},
|
|
@@ -39,13 +34,6 @@ export class Wallet extends APIResource {
|
|
|
39
34
|
/**
|
|
40
35
|
* Get a wallet visible to the authenticated party, including balance and ACH
|
|
41
36
|
* deposit instructions when available.
|
|
42
|
-
*
|
|
43
|
-
* @example
|
|
44
|
-
* ```ts
|
|
45
|
-
* const wallet = await client.wallet.get(
|
|
46
|
-
* 'wal_ecc2efdd09bd231a9ad9bd2aada37aa7',
|
|
47
|
-
* );
|
|
48
|
-
* ```
|
|
49
37
|
*/
|
|
50
38
|
get(
|
|
51
39
|
walletID: string,
|
|
@@ -64,78 +52,6 @@ export class Wallet extends APIResource {
|
|
|
64
52
|
]),
|
|
65
53
|
});
|
|
66
54
|
}
|
|
67
|
-
|
|
68
|
-
/**
|
|
69
|
-
* Initiate a wallet deposit.
|
|
70
|
-
*
|
|
71
|
-
* @example
|
|
72
|
-
* ```ts
|
|
73
|
-
* const response = await client.wallet.initiateDeposit({
|
|
74
|
-
* amount: 1,
|
|
75
|
-
* externalAccountId: 'ea_ecc2efdd09bd231a9ad9bd2aada37aa7',
|
|
76
|
-
* 'Idempotency-Key': 'Idempotency-Key',
|
|
77
|
-
* });
|
|
78
|
-
* ```
|
|
79
|
-
*/
|
|
80
|
-
initiateDeposit(
|
|
81
|
-
params: WalletInitiateDepositParams,
|
|
82
|
-
options?: RequestOptions,
|
|
83
|
-
): APIPromise<WalletInitiateDepositResponse> {
|
|
84
|
-
const {
|
|
85
|
-
'Idempotency-Key': idempotencyKey,
|
|
86
|
-
'X-Agent-ID': xAgentID,
|
|
87
|
-
'X-Instance-ID': xInstanceID,
|
|
88
|
-
...body
|
|
89
|
-
} = params;
|
|
90
|
-
return this._client.post('/wallet/deposit', {
|
|
91
|
-
body,
|
|
92
|
-
...options,
|
|
93
|
-
headers: buildHeaders([
|
|
94
|
-
{
|
|
95
|
-
'Idempotency-Key': idempotencyKey,
|
|
96
|
-
...(xAgentID != null ? { 'X-Agent-ID': xAgentID } : undefined),
|
|
97
|
-
...(xInstanceID != null ? { 'X-Instance-ID': xInstanceID } : undefined),
|
|
98
|
-
},
|
|
99
|
-
options?.headers,
|
|
100
|
-
]),
|
|
101
|
-
});
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
/**
|
|
105
|
-
* Initiate a wallet withdrawal.
|
|
106
|
-
*
|
|
107
|
-
* @example
|
|
108
|
-
* ```ts
|
|
109
|
-
* const response = await client.wallet.initiateWithdrawal({
|
|
110
|
-
* amount: 1,
|
|
111
|
-
* externalAccountId: 'ea_ecc2efdd09bd231a9ad9bd2aada37aa7',
|
|
112
|
-
* 'Idempotency-Key': 'Idempotency-Key',
|
|
113
|
-
* });
|
|
114
|
-
* ```
|
|
115
|
-
*/
|
|
116
|
-
initiateWithdrawal(
|
|
117
|
-
params: WalletInitiateWithdrawalParams,
|
|
118
|
-
options?: RequestOptions,
|
|
119
|
-
): APIPromise<WalletInitiateWithdrawalResponse> {
|
|
120
|
-
const {
|
|
121
|
-
'Idempotency-Key': idempotencyKey,
|
|
122
|
-
'X-Agent-ID': xAgentID,
|
|
123
|
-
'X-Instance-ID': xInstanceID,
|
|
124
|
-
...body
|
|
125
|
-
} = params;
|
|
126
|
-
return this._client.post('/wallet/withdraw', {
|
|
127
|
-
body,
|
|
128
|
-
...options,
|
|
129
|
-
headers: buildHeaders([
|
|
130
|
-
{
|
|
131
|
-
'Idempotency-Key': idempotencyKey,
|
|
132
|
-
...(xAgentID != null ? { 'X-Agent-ID': xAgentID } : undefined),
|
|
133
|
-
...(xInstanceID != null ? { 'X-Instance-ID': xInstanceID } : undefined),
|
|
134
|
-
},
|
|
135
|
-
options?.headers,
|
|
136
|
-
]),
|
|
137
|
-
});
|
|
138
|
-
}
|
|
139
55
|
}
|
|
140
56
|
|
|
141
57
|
export interface WalletListResponse {
|
|
@@ -448,108 +364,6 @@ export namespace WalletGetResponse {
|
|
|
448
364
|
}
|
|
449
365
|
}
|
|
450
366
|
|
|
451
|
-
export interface WalletInitiateDepositResponse {
|
|
452
|
-
data: WalletInitiateDepositResponse.Data;
|
|
453
|
-
}
|
|
454
|
-
|
|
455
|
-
export namespace WalletInitiateDepositResponse {
|
|
456
|
-
export interface Data {
|
|
457
|
-
/**
|
|
458
|
-
* Transaction handle (txn_xxx). Empty when the operation failed before a
|
|
459
|
-
* transaction was created.
|
|
460
|
-
*/
|
|
461
|
-
id: string;
|
|
462
|
-
|
|
463
|
-
/**
|
|
464
|
-
* Resource attributes
|
|
465
|
-
*/
|
|
466
|
-
attributes: Data.Attributes;
|
|
467
|
-
|
|
468
|
-
/**
|
|
469
|
-
* Resource type
|
|
470
|
-
*/
|
|
471
|
-
type: string;
|
|
472
|
-
}
|
|
473
|
-
|
|
474
|
-
export namespace Data {
|
|
475
|
-
/**
|
|
476
|
-
* Resource attributes
|
|
477
|
-
*/
|
|
478
|
-
export interface Attributes {
|
|
479
|
-
/**
|
|
480
|
-
* Amount in cents
|
|
481
|
-
*/
|
|
482
|
-
amount: number;
|
|
483
|
-
|
|
484
|
-
/**
|
|
485
|
-
* Currency code
|
|
486
|
-
*/
|
|
487
|
-
currency: string;
|
|
488
|
-
|
|
489
|
-
/**
|
|
490
|
-
* Estimated settlement time
|
|
491
|
-
*/
|
|
492
|
-
estimatedSettlement: string | null;
|
|
493
|
-
|
|
494
|
-
/**
|
|
495
|
-
* Operation status
|
|
496
|
-
*/
|
|
497
|
-
status: 'PROCESSING' | 'IN_REVIEW' | 'AWAITING_APPROVAL' | 'COMPLETED' | 'FAILED' | 'RETURNED';
|
|
498
|
-
}
|
|
499
|
-
}
|
|
500
|
-
}
|
|
501
|
-
|
|
502
|
-
export interface WalletInitiateWithdrawalResponse {
|
|
503
|
-
data: WalletInitiateWithdrawalResponse.Data;
|
|
504
|
-
}
|
|
505
|
-
|
|
506
|
-
export namespace WalletInitiateWithdrawalResponse {
|
|
507
|
-
export interface Data {
|
|
508
|
-
/**
|
|
509
|
-
* Transaction handle (txn_xxx). Empty when the operation failed before a
|
|
510
|
-
* transaction was created.
|
|
511
|
-
*/
|
|
512
|
-
id: string;
|
|
513
|
-
|
|
514
|
-
/**
|
|
515
|
-
* Resource attributes
|
|
516
|
-
*/
|
|
517
|
-
attributes: Data.Attributes;
|
|
518
|
-
|
|
519
|
-
/**
|
|
520
|
-
* Resource type
|
|
521
|
-
*/
|
|
522
|
-
type: string;
|
|
523
|
-
}
|
|
524
|
-
|
|
525
|
-
export namespace Data {
|
|
526
|
-
/**
|
|
527
|
-
* Resource attributes
|
|
528
|
-
*/
|
|
529
|
-
export interface Attributes {
|
|
530
|
-
/**
|
|
531
|
-
* Amount in cents
|
|
532
|
-
*/
|
|
533
|
-
amount: number;
|
|
534
|
-
|
|
535
|
-
/**
|
|
536
|
-
* Currency code
|
|
537
|
-
*/
|
|
538
|
-
currency: string;
|
|
539
|
-
|
|
540
|
-
/**
|
|
541
|
-
* Estimated settlement time
|
|
542
|
-
*/
|
|
543
|
-
estimatedSettlement: string | null;
|
|
544
|
-
|
|
545
|
-
/**
|
|
546
|
-
* Operation status
|
|
547
|
-
*/
|
|
548
|
-
status: 'PROCESSING' | 'IN_REVIEW' | 'AWAITING_APPROVAL' | 'COMPLETED' | 'FAILED' | 'RETURNED';
|
|
549
|
-
}
|
|
550
|
-
}
|
|
551
|
-
}
|
|
552
|
-
|
|
553
367
|
export interface WalletListParams {
|
|
554
368
|
/**
|
|
555
369
|
* Agent ID (agt_xxx) identifying which agent is making the request.
|
|
@@ -576,93 +390,11 @@ export interface WalletGetParams {
|
|
|
576
390
|
'X-Instance-ID'?: string;
|
|
577
391
|
}
|
|
578
392
|
|
|
579
|
-
export interface WalletInitiateDepositParams {
|
|
580
|
-
/**
|
|
581
|
-
* Body param: Amount in cents
|
|
582
|
-
*/
|
|
583
|
-
amount: number;
|
|
584
|
-
|
|
585
|
-
/**
|
|
586
|
-
* Body param: External account ID (ea\_\*)
|
|
587
|
-
*/
|
|
588
|
-
externalAccountId: string;
|
|
589
|
-
|
|
590
|
-
/**
|
|
591
|
-
* Header param: Unique key for idempotent request handling. If a request with the
|
|
592
|
-
* same key was already processed, the original response is returned.
|
|
593
|
-
*/
|
|
594
|
-
'Idempotency-Key': string;
|
|
595
|
-
|
|
596
|
-
/**
|
|
597
|
-
* Body param: Currency code
|
|
598
|
-
*/
|
|
599
|
-
currency?: string;
|
|
600
|
-
|
|
601
|
-
/**
|
|
602
|
-
* Body param: Deposit description
|
|
603
|
-
*/
|
|
604
|
-
description?: string;
|
|
605
|
-
|
|
606
|
-
/**
|
|
607
|
-
* Header param: Agent ID (agt_xxx) identifying which agent is making the request.
|
|
608
|
-
*/
|
|
609
|
-
'X-Agent-ID'?: string;
|
|
610
|
-
|
|
611
|
-
/**
|
|
612
|
-
* Header param: Required when X-Agent-ID is present. Session or conversation ID
|
|
613
|
-
* for agent observability.
|
|
614
|
-
*/
|
|
615
|
-
'X-Instance-ID'?: string;
|
|
616
|
-
}
|
|
617
|
-
|
|
618
|
-
export interface WalletInitiateWithdrawalParams {
|
|
619
|
-
/**
|
|
620
|
-
* Body param: Amount in cents
|
|
621
|
-
*/
|
|
622
|
-
amount: number;
|
|
623
|
-
|
|
624
|
-
/**
|
|
625
|
-
* Body param: External account ID (ea\_\*)
|
|
626
|
-
*/
|
|
627
|
-
externalAccountId: string;
|
|
628
|
-
|
|
629
|
-
/**
|
|
630
|
-
* Header param: Unique key for idempotent request handling. If a request with the
|
|
631
|
-
* same key was already processed, the original response is returned.
|
|
632
|
-
*/
|
|
633
|
-
'Idempotency-Key': string;
|
|
634
|
-
|
|
635
|
-
/**
|
|
636
|
-
* Body param: Currency code
|
|
637
|
-
*/
|
|
638
|
-
currency?: string;
|
|
639
|
-
|
|
640
|
-
/**
|
|
641
|
-
* Body param: Withdrawal description
|
|
642
|
-
*/
|
|
643
|
-
description?: string;
|
|
644
|
-
|
|
645
|
-
/**
|
|
646
|
-
* Header param: Agent ID (agt_xxx) identifying which agent is making the request.
|
|
647
|
-
*/
|
|
648
|
-
'X-Agent-ID'?: string;
|
|
649
|
-
|
|
650
|
-
/**
|
|
651
|
-
* Header param: Required when X-Agent-ID is present. Session or conversation ID
|
|
652
|
-
* for agent observability.
|
|
653
|
-
*/
|
|
654
|
-
'X-Instance-ID'?: string;
|
|
655
|
-
}
|
|
656
|
-
|
|
657
393
|
export declare namespace Wallet {
|
|
658
394
|
export {
|
|
659
395
|
type WalletListResponse as WalletListResponse,
|
|
660
396
|
type WalletGetResponse as WalletGetResponse,
|
|
661
|
-
type WalletInitiateDepositResponse as WalletInitiateDepositResponse,
|
|
662
|
-
type WalletInitiateWithdrawalResponse as WalletInitiateWithdrawalResponse,
|
|
663
397
|
type WalletListParams as WalletListParams,
|
|
664
398
|
type WalletGetParams as WalletGetParams,
|
|
665
|
-
type WalletInitiateDepositParams as WalletInitiateDepositParams,
|
|
666
|
-
type WalletInitiateWithdrawalParams as WalletInitiateWithdrawalParams,
|
|
667
399
|
};
|
|
668
400
|
}
|
|
@@ -277,6 +277,7 @@ export namespace WebhookCreateResponse {
|
|
|
277
277
|
| 'payment_request.completed'
|
|
278
278
|
| 'payment_request.failed'
|
|
279
279
|
| 'payment_request.returned'
|
|
280
|
+
| 'payment_request.incoming'
|
|
280
281
|
>;
|
|
281
282
|
|
|
282
283
|
/**
|
|
@@ -416,6 +417,7 @@ export namespace WebhookUpdateResponse {
|
|
|
416
417
|
| 'payment_request.completed'
|
|
417
418
|
| 'payment_request.failed'
|
|
418
419
|
| 'payment_request.returned'
|
|
420
|
+
| 'payment_request.incoming'
|
|
419
421
|
>;
|
|
420
422
|
|
|
421
423
|
/**
|
|
@@ -552,6 +554,7 @@ export namespace WebhookListResponse {
|
|
|
552
554
|
| 'payment_request.completed'
|
|
553
555
|
| 'payment_request.failed'
|
|
554
556
|
| 'payment_request.returned'
|
|
557
|
+
| 'payment_request.incoming'
|
|
555
558
|
>;
|
|
556
559
|
|
|
557
560
|
/**
|
|
@@ -698,6 +701,7 @@ export namespace WebhookGetResponse {
|
|
|
698
701
|
| 'payment_request.completed'
|
|
699
702
|
| 'payment_request.failed'
|
|
700
703
|
| 'payment_request.returned'
|
|
704
|
+
| 'payment_request.incoming'
|
|
701
705
|
>;
|
|
702
706
|
|
|
703
707
|
/**
|
|
@@ -834,6 +838,7 @@ export namespace WebhookRemoveResponse {
|
|
|
834
838
|
| 'payment_request.completed'
|
|
835
839
|
| 'payment_request.failed'
|
|
836
840
|
| 'payment_request.returned'
|
|
841
|
+
| 'payment_request.incoming'
|
|
837
842
|
>;
|
|
838
843
|
|
|
839
844
|
/**
|
|
@@ -1015,6 +1020,7 @@ export interface WebhookCreateParams {
|
|
|
1015
1020
|
| 'payment_request.completed'
|
|
1016
1021
|
| 'payment_request.failed'
|
|
1017
1022
|
| 'payment_request.returned'
|
|
1023
|
+
| 'payment_request.incoming'
|
|
1018
1024
|
>;
|
|
1019
1025
|
|
|
1020
1026
|
/**
|
|
@@ -1093,6 +1099,7 @@ export interface WebhookUpdateParams {
|
|
|
1093
1099
|
| 'payment_request.completed'
|
|
1094
1100
|
| 'payment_request.failed'
|
|
1095
1101
|
| 'payment_request.returned'
|
|
1102
|
+
| 'payment_request.incoming'
|
|
1096
1103
|
>;
|
|
1097
1104
|
|
|
1098
1105
|
/**
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.5.0'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.5.0";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.5.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.5.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { Format } from "./types.mjs";
|
|
2
|
-
export declare const default_format: Format;
|
|
3
|
-
export declare const default_formatter: (v: PropertyKey) => string;
|
|
4
|
-
export declare const formatters: Record<Format, (str: PropertyKey) => string>;
|
|
5
|
-
export declare const RFC1738 = "RFC1738";
|
|
6
|
-
export declare const RFC3986 = "RFC3986";
|
|
7
|
-
//# sourceMappingURL=formats.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"formats.d.mts","sourceRoot":"","sources":["../../src/internal/qs/formats.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,oBAAgB;AAEtC,eAAO,MAAM,cAAc,EAAE,MAAkB,CAAC;AAChD,eAAO,MAAM,iBAAiB,GAAI,GAAG,WAAW,WAAc,CAAC;AAC/D,eAAO,MAAM,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,WAAW,KAAK,MAAM,CAGnE,CAAC;AACF,eAAO,MAAM,OAAO,YAAY,CAAC;AACjC,eAAO,MAAM,OAAO,YAAY,CAAC"}
|
package/internal/qs/formats.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { Format } from "./types.js";
|
|
2
|
-
export declare const default_format: Format;
|
|
3
|
-
export declare const default_formatter: (v: PropertyKey) => string;
|
|
4
|
-
export declare const formatters: Record<Format, (str: PropertyKey) => string>;
|
|
5
|
-
export declare const RFC1738 = "RFC1738";
|
|
6
|
-
export declare const RFC3986 = "RFC3986";
|
|
7
|
-
//# sourceMappingURL=formats.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"formats.d.ts","sourceRoot":"","sources":["../../src/internal/qs/formats.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,mBAAgB;AAEtC,eAAO,MAAM,cAAc,EAAE,MAAkB,CAAC;AAChD,eAAO,MAAM,iBAAiB,GAAI,GAAG,WAAW,WAAc,CAAC;AAC/D,eAAO,MAAM,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,WAAW,KAAK,MAAM,CAGnE,CAAC;AACF,eAAO,MAAM,OAAO,YAAY,CAAC;AACjC,eAAO,MAAM,OAAO,YAAY,CAAC"}
|
package/internal/qs/formats.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.RFC3986 = exports.RFC1738 = exports.formatters = exports.default_formatter = exports.default_format = void 0;
|
|
4
|
-
exports.default_format = 'RFC3986';
|
|
5
|
-
const default_formatter = (v) => String(v);
|
|
6
|
-
exports.default_formatter = default_formatter;
|
|
7
|
-
exports.formatters = {
|
|
8
|
-
RFC1738: (v) => String(v).replace(/%20/g, '+'),
|
|
9
|
-
RFC3986: exports.default_formatter,
|
|
10
|
-
};
|
|
11
|
-
exports.RFC1738 = 'RFC1738';
|
|
12
|
-
exports.RFC3986 = 'RFC3986';
|
|
13
|
-
//# sourceMappingURL=formats.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"formats.js","sourceRoot":"","sources":["../../src/internal/qs/formats.ts"],"names":[],"mappings":";;;AAEa,QAAA,cAAc,GAAW,SAAS,CAAC;AACzC,MAAM,iBAAiB,GAAG,CAAC,CAAc,EAAE,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;AAAlD,QAAA,iBAAiB,qBAAiC;AAClD,QAAA,UAAU,GAAiD;IACtE,OAAO,EAAE,CAAC,CAAc,EAAE,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,MAAM,EAAE,GAAG,CAAC;IAC3D,OAAO,EAAE,yBAAiB;CAC3B,CAAC;AACW,QAAA,OAAO,GAAG,SAAS,CAAC;AACpB,QAAA,OAAO,GAAG,SAAS,CAAC"}
|
package/internal/qs/formats.mjs
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export const default_format = 'RFC3986';
|
|
2
|
-
export const default_formatter = (v) => String(v);
|
|
3
|
-
export const formatters = {
|
|
4
|
-
RFC1738: (v) => String(v).replace(/%20/g, '+'),
|
|
5
|
-
RFC3986: default_formatter,
|
|
6
|
-
};
|
|
7
|
-
export const RFC1738 = 'RFC1738';
|
|
8
|
-
export const RFC3986 = 'RFC3986';
|
|
9
|
-
//# sourceMappingURL=formats.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"formats.mjs","sourceRoot":"","sources":["../../src/internal/qs/formats.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,cAAc,GAAW,SAAS,CAAC;AAChD,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,CAAc,EAAE,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;AAC/D,MAAM,CAAC,MAAM,UAAU,GAAiD;IACtE,OAAO,EAAE,CAAC,CAAc,EAAE,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,MAAM,EAAE,GAAG,CAAC;IAC3D,OAAO,EAAE,iBAAiB;CAC3B,CAAC;AACF,MAAM,CAAC,MAAM,OAAO,GAAG,SAAS,CAAC;AACjC,MAAM,CAAC,MAAM,OAAO,GAAG,SAAS,CAAC"}
|
package/internal/qs/index.d.mts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
declare const formats: {
|
|
2
|
-
formatters: Record<import("./types.mjs").Format, (str: PropertyKey) => string>;
|
|
3
|
-
RFC1738: string;
|
|
4
|
-
RFC3986: string;
|
|
5
|
-
default: import("./types.mjs").Format;
|
|
6
|
-
};
|
|
7
|
-
export { stringify } from "./stringify.mjs";
|
|
8
|
-
export { formats };
|
|
9
|
-
export type { DefaultDecoder, DefaultEncoder, Format, ParseOptions, StringifyOptions } from "./types.mjs";
|
|
10
|
-
//# sourceMappingURL=index.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/internal/qs/index.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,OAAO;;;;;CAKZ,CAAC;AAEF,OAAO,EAAE,SAAS,EAAE,wBAAoB;AACxC,OAAO,EAAE,OAAO,EAAE,CAAC;AAEnB,YAAY,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,EAAE,YAAY,EAAE,gBAAgB,EAAE,oBAAgB"}
|
package/internal/qs/index.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
declare const formats: {
|
|
2
|
-
formatters: Record<import("./types.js").Format, (str: PropertyKey) => string>;
|
|
3
|
-
RFC1738: string;
|
|
4
|
-
RFC3986: string;
|
|
5
|
-
default: import("./types.js").Format;
|
|
6
|
-
};
|
|
7
|
-
export { stringify } from "./stringify.js";
|
|
8
|
-
export { formats };
|
|
9
|
-
export type { DefaultDecoder, DefaultEncoder, Format, ParseOptions, StringifyOptions } from "./types.js";
|
|
10
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/internal/qs/index.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,OAAO;;;;;CAKZ,CAAC;AAEF,OAAO,EAAE,SAAS,EAAE,uBAAoB;AACxC,OAAO,EAAE,OAAO,EAAE,CAAC;AAEnB,YAAY,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,EAAE,YAAY,EAAE,gBAAgB,EAAE,mBAAgB"}
|
package/internal/qs/index.js
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.formats = exports.stringify = void 0;
|
|
4
|
-
const formats_1 = require("./formats.js");
|
|
5
|
-
const formats = {
|
|
6
|
-
formatters: formats_1.formatters,
|
|
7
|
-
RFC1738: formats_1.RFC1738,
|
|
8
|
-
RFC3986: formats_1.RFC3986,
|
|
9
|
-
default: formats_1.default_format,
|
|
10
|
-
};
|
|
11
|
-
exports.formats = formats;
|
|
12
|
-
var stringify_1 = require("./stringify.js");
|
|
13
|
-
Object.defineProperty(exports, "stringify", { enumerable: true, get: function () { return stringify_1.stringify; } });
|
|
14
|
-
//# sourceMappingURL=index.js.map
|
package/internal/qs/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/internal/qs/index.ts"],"names":[],"mappings":";;;AAAA,0CAAyE;AAEzE,MAAM,OAAO,GAAG;IACd,UAAU,EAAV,oBAAU;IACV,OAAO,EAAP,iBAAO;IACP,OAAO,EAAP,iBAAO;IACP,OAAO,EAAE,wBAAc;CACxB,CAAC;AAGO,0BAAO;AADhB,4CAAwC;AAA/B,sGAAA,SAAS,OAAA"}
|
package/internal/qs/index.mjs
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { default_format, formatters, RFC1738, RFC3986 } from "./formats.mjs";
|
|
2
|
-
const formats = {
|
|
3
|
-
formatters,
|
|
4
|
-
RFC1738,
|
|
5
|
-
RFC3986,
|
|
6
|
-
default: default_format,
|
|
7
|
-
};
|
|
8
|
-
export { stringify } from "./stringify.mjs";
|
|
9
|
-
export { formats };
|
|
10
|
-
//# sourceMappingURL=index.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/internal/qs/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,OAAO,EAAE,OAAO,EAAE,sBAAkB;AAEzE,MAAM,OAAO,GAAG;IACd,UAAU;IACV,OAAO;IACP,OAAO;IACP,OAAO,EAAE,cAAc;CACxB,CAAC;AAEF,OAAO,EAAE,SAAS,EAAE,wBAAoB;AACxC,OAAO,EAAE,OAAO,EAAE,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"stringify.d.mts","sourceRoot":"","sources":["../../src/internal/qs/stringify.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAyB,gBAAgB,EAAE,oBAAgB;AA+SvE,wBAAgB,SAAS,CAAC,MAAM,EAAE,GAAG,EAAE,IAAI,GAAE,gBAAqB,UA+EjE"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"stringify.d.ts","sourceRoot":"","sources":["../../src/internal/qs/stringify.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAyB,gBAAgB,EAAE,mBAAgB;AA+SvE,wBAAgB,SAAS,CAAC,MAAM,EAAE,GAAG,EAAE,IAAI,GAAE,gBAAqB,UA+EjE"}
|