@getivy/node-sdk 2.7.0 → 2.20.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 +145 -0
- package/README.md +2 -2
- package/bin/migration-config.json +1 -1
- package/client.d.mts +10 -4
- package/client.d.mts.map +1 -1
- package/client.d.ts +10 -4
- package/client.d.ts.map +1 -1
- package/client.js +21 -7
- package/client.js.map +1 -1
- package/client.mjs +21 -7
- package/client.mjs.map +1 -1
- package/internal/tslib.js +17 -17
- package/internal/utils/log.d.mts.map +1 -1
- package/internal/utils/log.d.ts.map +1 -1
- package/internal/utils/log.js +4 -1
- package/internal/utils/log.js.map +1 -1
- package/internal/utils/log.mjs +4 -1
- package/internal/utils/log.mjs.map +1 -1
- package/lib/request-signing.d.mts +6 -0
- package/lib/request-signing.d.mts.map +1 -0
- package/lib/request-signing.d.ts +6 -0
- package/lib/request-signing.d.ts.map +1 -0
- package/lib/request-signing.js +113 -0
- package/lib/request-signing.js.map +1 -0
- package/lib/request-signing.mjs +109 -0
- package/lib/request-signing.mjs.map +1 -0
- package/package.json +16 -4
- package/resources/banks.d.mts +12 -14
- package/resources/banks.d.mts.map +1 -1
- package/resources/banks.d.ts +12 -14
- package/resources/banks.d.ts.map +1 -1
- package/resources/beneficiary-payouts.d.mts +2 -2
- package/resources/beneficiary-payouts.d.mts.map +1 -1
- package/resources/beneficiary-payouts.d.ts +2 -2
- package/resources/beneficiary-payouts.d.ts.map +1 -1
- package/resources/capabilities.d.mts +8 -1
- package/resources/capabilities.d.mts.map +1 -1
- package/resources/capabilities.d.ts +8 -1
- package/resources/capabilities.d.ts.map +1 -1
- package/resources/capabilities.js +7 -0
- package/resources/capabilities.js.map +1 -1
- package/resources/capabilities.mjs +7 -0
- package/resources/capabilities.mjs.map +1 -1
- package/resources/checkoutsession.d.mts +18 -10
- package/resources/checkoutsession.d.mts.map +1 -1
- package/resources/checkoutsession.d.ts +18 -10
- package/resources/checkoutsession.d.ts.map +1 -1
- package/resources/checkoutsession.js +3 -2
- package/resources/checkoutsession.js.map +1 -1
- package/resources/checkoutsession.mjs +3 -2
- package/resources/checkoutsession.mjs.map +1 -1
- package/resources/counterparties.d.mts +956 -0
- package/resources/counterparties.d.mts.map +1 -0
- package/resources/counterparties.d.ts +956 -0
- package/resources/counterparties.d.ts.map +1 -0
- package/resources/counterparties.js +41 -0
- package/resources/counterparties.js.map +1 -0
- package/resources/counterparties.mjs +37 -0
- package/resources/counterparties.mjs.map +1 -0
- package/resources/customers.d.mts +6 -6
- package/resources/customers.d.mts.map +1 -1
- package/resources/customers.d.ts +6 -6
- package/resources/customers.d.ts.map +1 -1
- package/resources/deposits.d.mts +21 -7
- package/resources/deposits.d.mts.map +1 -1
- package/resources/deposits.d.ts +21 -7
- package/resources/deposits.d.ts.map +1 -1
- package/resources/index.d.mts +1 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -1
- 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 +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/orders.d.mts +102 -39
- package/resources/orders.d.mts.map +1 -1
- package/resources/orders.d.ts +102 -39
- package/resources/orders.d.ts.map +1 -1
- package/resources/payouts.d.mts +82 -21
- package/resources/payouts.d.mts.map +1 -1
- package/resources/payouts.d.ts +82 -21
- package/resources/payouts.d.ts.map +1 -1
- package/resources/refunds.d.mts +1 -1
- package/resources/refunds.d.mts.map +1 -1
- package/resources/refunds.d.ts +1 -1
- package/resources/refunds.d.ts.map +1 -1
- package/resources/returns.d.mts +2 -2
- package/resources/returns.d.mts.map +1 -1
- package/resources/returns.d.ts +2 -2
- package/resources/returns.d.ts.map +1 -1
- package/resources/subaccounts.d.mts +4 -4
- package/resources/subaccounts.d.mts.map +1 -1
- package/resources/subaccounts.d.ts +4 -4
- package/resources/subaccounts.d.ts.map +1 -1
- package/resources/transactions.d.mts +2 -2
- package/resources/transactions.d.mts.map +1 -1
- package/resources/transactions.d.ts +2 -2
- package/resources/transactions.d.ts.map +1 -1
- package/resources/webhook/subscription.d.mts +12 -12
- package/resources/webhook/subscription.d.mts.map +1 -1
- package/resources/webhook/subscription.d.ts +12 -12
- package/resources/webhook/subscription.d.ts.map +1 -1
- package/src/client.ts +51 -22
- package/src/internal/utils/log.ts +3 -0
- package/src/lib/request-signing.ts +139 -0
- package/src/resources/banks.ts +21 -11
- package/src/resources/beneficiary-payouts.ts +2 -2
- package/src/resources/capabilities.ts +8 -1
- package/src/resources/checkoutsession.ts +31 -10
- package/src/resources/counterparties.ts +3073 -0
- package/src/resources/customers.ts +3509 -3509
- package/src/resources/deposits.ts +52 -6
- package/src/resources/index.ts +13 -9
- package/src/resources/orders.ts +222 -36
- package/src/resources/payouts.ts +396 -17
- package/src/resources/refunds.ts +1 -1
- package/src/resources/returns.ts +2 -2
- package/src/resources/subaccounts.ts +4 -4
- package/src/resources/transactions.ts +2 -2
- package/src/resources/webhook/subscription.ts +37 -12
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.mts.map +1 -1
- package/version.d.ts +1 -1
- package/version.d.ts.map +1 -1
- package/version.js +1 -1
- package/version.js.map +1 -1
- package/version.mjs +1 -1
- package/version.mjs.map +1 -1
- package/resources/fx.d.mts +0 -155
- package/resources/fx.d.mts.map +0 -1
- package/resources/fx.d.ts +0 -155
- package/resources/fx.d.ts.map +0 -1
- package/resources/fx.js +0 -28
- package/resources/fx.js.map +0 -1
- package/resources/fx.mjs +0 -24
- package/resources/fx.mjs.map +0 -1
- package/src/resources/fx.ts +0 -195
|
@@ -27,7 +27,7 @@ export interface DepositRetrieveResponse {
|
|
|
27
27
|
/**
|
|
28
28
|
* The currency of the deposit
|
|
29
29
|
*/
|
|
30
|
-
currency: 'EUR' | 'GBP' | 'PLN' | 'SEK' | 'DKK' | 'USD' | 'USDC';
|
|
30
|
+
currency: 'EUR' | 'GBP' | 'PLN' | 'SEK' | 'DKK' | 'USD' | 'USDC' | 'BTC' | 'ETH' | 'SOL' | 'POL';
|
|
31
31
|
|
|
32
32
|
/**
|
|
33
33
|
* The payee account identifier
|
|
@@ -76,6 +76,12 @@ export interface DepositRetrieveResponse {
|
|
|
76
76
|
| 'swift'
|
|
77
77
|
| 'internal'
|
|
78
78
|
| 'target'
|
|
79
|
+
| 'ach'
|
|
80
|
+
| 'fedwire'
|
|
81
|
+
| 'fednow'
|
|
82
|
+
| 'rtp'
|
|
83
|
+
| 'BTC'
|
|
84
|
+
| 'BTC-TESTNET4'
|
|
79
85
|
| 'ETH'
|
|
80
86
|
| 'ETH-SEPOLIA'
|
|
81
87
|
| 'SOL'
|
|
@@ -94,7 +100,7 @@ export namespace DepositRetrieveResponse {
|
|
|
94
100
|
* The payee account identifier
|
|
95
101
|
*/
|
|
96
102
|
export interface Payee {
|
|
97
|
-
type: 'iban' | 'sort_code' | 'bank_code' | 'bban' | 'wallet' | 'aba';
|
|
103
|
+
type: 'iban' | 'sort_code' | 'bank_code' | 'bban' | 'wallet' | 'aba' | 'bic';
|
|
98
104
|
|
|
99
105
|
aba?: Payee.Aba;
|
|
100
106
|
|
|
@@ -102,6 +108,8 @@ export namespace DepositRetrieveResponse {
|
|
|
102
108
|
|
|
103
109
|
bban?: Payee.Bban;
|
|
104
110
|
|
|
111
|
+
bic?: Payee.Bic;
|
|
112
|
+
|
|
105
113
|
iban?: Payee.Iban;
|
|
106
114
|
|
|
107
115
|
sortCode?: Payee.SortCode;
|
|
@@ -134,6 +142,16 @@ export namespace DepositRetrieveResponse {
|
|
|
134
142
|
bic?: string;
|
|
135
143
|
}
|
|
136
144
|
|
|
145
|
+
export interface Bic {
|
|
146
|
+
accountHolderName: string;
|
|
147
|
+
|
|
148
|
+
accountNumber: string;
|
|
149
|
+
|
|
150
|
+
bic: string;
|
|
151
|
+
|
|
152
|
+
localBankCode?: string;
|
|
153
|
+
}
|
|
154
|
+
|
|
137
155
|
export interface Iban {
|
|
138
156
|
accountHolderName: string;
|
|
139
157
|
|
|
@@ -159,7 +177,15 @@ export namespace DepositRetrieveResponse {
|
|
|
159
177
|
/**
|
|
160
178
|
* The blockchain network
|
|
161
179
|
*/
|
|
162
|
-
blockchain:
|
|
180
|
+
blockchain:
|
|
181
|
+
| 'BTC'
|
|
182
|
+
| 'BTC-TESTNET4'
|
|
183
|
+
| 'ETH'
|
|
184
|
+
| 'ETH-SEPOLIA'
|
|
185
|
+
| 'SOL'
|
|
186
|
+
| 'SOL-DEVNET'
|
|
187
|
+
| 'MATIC'
|
|
188
|
+
| 'MATIC-AMOY';
|
|
163
189
|
}
|
|
164
190
|
}
|
|
165
191
|
|
|
@@ -167,7 +193,7 @@ export namespace DepositRetrieveResponse {
|
|
|
167
193
|
* The payer account identifier
|
|
168
194
|
*/
|
|
169
195
|
export interface Payer {
|
|
170
|
-
type: 'iban' | 'sort_code' | 'bank_code' | 'bban' | 'wallet' | 'aba';
|
|
196
|
+
type: 'iban' | 'sort_code' | 'bank_code' | 'bban' | 'wallet' | 'aba' | 'bic';
|
|
171
197
|
|
|
172
198
|
aba?: Payer.Aba;
|
|
173
199
|
|
|
@@ -175,6 +201,8 @@ export namespace DepositRetrieveResponse {
|
|
|
175
201
|
|
|
176
202
|
bban?: Payer.Bban;
|
|
177
203
|
|
|
204
|
+
bic?: Payer.Bic;
|
|
205
|
+
|
|
178
206
|
iban?: Payer.Iban;
|
|
179
207
|
|
|
180
208
|
sortCode?: Payer.SortCode;
|
|
@@ -207,6 +235,16 @@ export namespace DepositRetrieveResponse {
|
|
|
207
235
|
bic?: string;
|
|
208
236
|
}
|
|
209
237
|
|
|
238
|
+
export interface Bic {
|
|
239
|
+
accountHolderName: string;
|
|
240
|
+
|
|
241
|
+
accountNumber: string;
|
|
242
|
+
|
|
243
|
+
bic: string;
|
|
244
|
+
|
|
245
|
+
localBankCode?: string;
|
|
246
|
+
}
|
|
247
|
+
|
|
210
248
|
export interface Iban {
|
|
211
249
|
accountHolderName: string;
|
|
212
250
|
|
|
@@ -232,7 +270,15 @@ export namespace DepositRetrieveResponse {
|
|
|
232
270
|
/**
|
|
233
271
|
* The blockchain network
|
|
234
272
|
*/
|
|
235
|
-
blockchain:
|
|
273
|
+
blockchain:
|
|
274
|
+
| 'BTC'
|
|
275
|
+
| 'BTC-TESTNET4'
|
|
276
|
+
| 'ETH'
|
|
277
|
+
| 'ETH-SEPOLIA'
|
|
278
|
+
| 'SOL'
|
|
279
|
+
| 'SOL-DEVNET'
|
|
280
|
+
| 'MATIC'
|
|
281
|
+
| 'MATIC-AMOY';
|
|
236
282
|
}
|
|
237
283
|
}
|
|
238
284
|
|
|
@@ -255,7 +301,7 @@ export namespace DepositRetrieveResponse {
|
|
|
255
301
|
/**
|
|
256
302
|
* The currency of the return
|
|
257
303
|
*/
|
|
258
|
-
currency: 'EUR' | 'GBP' | 'PLN' | 'SEK' | 'DKK' | 'USD' | 'USDC';
|
|
304
|
+
currency: 'EUR' | 'GBP' | 'PLN' | 'SEK' | 'DKK' | 'USD' | 'USDC' | 'BTC' | 'ETH' | 'SOL' | 'POL';
|
|
259
305
|
|
|
260
306
|
/**
|
|
261
307
|
* The ID of the associated deposit
|
package/src/resources/index.ts
CHANGED
|
@@ -21,6 +21,19 @@ export {
|
|
|
21
21
|
type CheckoutsessionRetrieveParams,
|
|
22
22
|
type CheckoutsessionExpireParams,
|
|
23
23
|
} from './checkoutsession';
|
|
24
|
+
export {
|
|
25
|
+
Counterparties,
|
|
26
|
+
type Counterparty,
|
|
27
|
+
type CounterpartyRetrieveResponse,
|
|
28
|
+
type CounterpartyUpdateResponse,
|
|
29
|
+
type CounterpartyListResponse,
|
|
30
|
+
type CounterpartyActivateResponse,
|
|
31
|
+
type CounterpartyCreateParams,
|
|
32
|
+
type CounterpartyRetrieveParams,
|
|
33
|
+
type CounterpartyUpdateParams,
|
|
34
|
+
type CounterpartyListParams,
|
|
35
|
+
type CounterpartyActivateParams,
|
|
36
|
+
} from './counterparties';
|
|
24
37
|
export {
|
|
25
38
|
Customers,
|
|
26
39
|
type CustomerCreateResponse,
|
|
@@ -35,15 +48,6 @@ export {
|
|
|
35
48
|
type CustomerSearchParams,
|
|
36
49
|
} from './customers';
|
|
37
50
|
export { Deposits, type DepositRetrieveResponse, type DepositRetrieveParams } from './deposits';
|
|
38
|
-
export {
|
|
39
|
-
Fx,
|
|
40
|
-
type FxRetrieveResponse,
|
|
41
|
-
type FxExecuteResponse,
|
|
42
|
-
type FxRetrieveRateResponse,
|
|
43
|
-
type FxRetrieveParams,
|
|
44
|
-
type FxExecuteParams,
|
|
45
|
-
type FxRetrieveRateParams,
|
|
46
|
-
} from './fx';
|
|
47
51
|
export {
|
|
48
52
|
Orders,
|
|
49
53
|
type OrderCreateResponse,
|