@blindpay/node 2.5.0 → 3.1.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/dist/{api-client-Drd7alfK.d.mts → api-client-DhY5DFpq.d.mts} +109 -34
- package/dist/{api-client-Drd7alfK.d.ts → api-client-DhY5DFpq.d.ts} +109 -34
- package/dist/{chunk-VRA5HP7F.mjs → chunk-E7M4CJKR.mjs} +0 -7
- package/dist/{chunk-5XJJKYXE.mjs → chunk-LEPGLH7Q.mjs} +20 -10
- package/dist/{chunk-CEJF5Y4K.mjs → chunk-V4V47AUC.mjs} +17 -17
- package/dist/{chunk-W7NJUABI.mjs → chunk-VGU72ZNI.mjs} +1 -7
- package/dist/{chunk-3QQCDR3E.mjs → chunk-VOB7TMKL.mjs} +4 -4
- package/dist/index.d.mts +6 -6
- package/dist/index.d.ts +6 -6
- package/dist/index.js +25 -27
- package/dist/index.mjs +17 -17
- package/dist/resources/api-keys/api-keys.test.js +25 -27
- package/dist/resources/api-keys/api-keys.test.mjs +7 -7
- package/dist/resources/api-keys/index.d.mts +1 -1
- package/dist/resources/api-keys/index.d.ts +1 -1
- package/dist/resources/available/available.test.js +25 -27
- package/dist/resources/available/available.test.mjs +7 -7
- package/dist/resources/available/index.d.mts +1 -1
- package/dist/resources/available/index.d.ts +1 -1
- package/dist/resources/bank-accounts/bank-accounts.test.js +25 -27
- package/dist/resources/bank-accounts/bank-accounts.test.mjs +7 -7
- package/dist/resources/bank-accounts/index.d.mts +2 -4
- package/dist/resources/bank-accounts/index.d.ts +2 -4
- package/dist/resources/instances/index.d.mts +1 -1
- package/dist/resources/instances/index.d.ts +1 -1
- package/dist/resources/instances/instances.test.js +25 -27
- package/dist/resources/instances/instances.test.mjs +7 -7
- package/dist/resources/partner-fees/index.d.mts +1 -1
- package/dist/resources/partner-fees/index.d.ts +1 -1
- package/dist/resources/partner-fees/partner-fees.test.js +25 -27
- package/dist/resources/partner-fees/partner-fees.test.mjs +7 -7
- package/dist/resources/payins/index.d.mts +61 -148
- package/dist/resources/payins/index.d.ts +61 -148
- package/dist/resources/payins/index.js +0 -19
- package/dist/resources/payins/index.mjs +1 -1
- package/dist/resources/payins/payins-quotes.test.js +25 -113
- package/dist/resources/payins/payins-quotes.test.mjs +7 -93
- package/dist/resources/payins/payins.test.js +113 -163
- package/dist/resources/payins/payins.test.mjs +95 -143
- package/dist/resources/payins/quotes.d.mts +7 -72
- package/dist/resources/payins/quotes.d.ts +7 -72
- package/dist/resources/payins/quotes.js +0 -7
- package/dist/resources/payins/quotes.mjs +1 -1
- package/dist/resources/payouts/index.d.mts +34 -20
- package/dist/resources/payouts/index.d.ts +34 -20
- package/dist/resources/payouts/index.js +4 -4
- package/dist/resources/payouts/index.mjs +1 -1
- package/dist/resources/payouts/payouts.test.js +113 -131
- package/dist/resources/payouts/payouts.test.mjs +95 -111
- package/dist/resources/quotes/index.d.mts +16 -16
- package/dist/resources/quotes/index.d.ts +16 -16
- package/dist/resources/quotes/quotes.test.js +26 -28
- package/dist/resources/quotes/quotes.test.mjs +8 -8
- package/dist/resources/receivers/index.d.mts +9 -7
- package/dist/resources/receivers/index.d.ts +9 -7
- package/dist/resources/receivers/receivers.test.js +32 -35
- package/dist/resources/receivers/receivers.test.mjs +14 -15
- package/dist/resources/terms-of-service/index.d.mts +1 -1
- package/dist/resources/terms-of-service/index.d.ts +1 -1
- package/dist/resources/terms-of-service/terms-of-service.test.js +25 -27
- package/dist/resources/terms-of-service/terms-of-service.test.mjs +7 -7
- package/dist/resources/virtual-accounts/index.d.mts +22 -7
- package/dist/resources/virtual-accounts/index.d.ts +22 -7
- package/dist/resources/virtual-accounts/index.js +20 -10
- package/dist/resources/virtual-accounts/index.mjs +1 -1
- package/dist/resources/virtual-accounts/virtual-accounts.test.js +144 -46
- package/dist/resources/virtual-accounts/virtual-accounts.test.mjs +126 -26
- package/dist/resources/wallets/blockchain.d.mts +1 -1
- package/dist/resources/wallets/blockchain.d.ts +1 -1
- package/dist/resources/wallets/blockchain.test.js +25 -27
- package/dist/resources/wallets/blockchain.test.mjs +7 -7
- package/dist/resources/wallets/offramp.d.mts +1 -1
- package/dist/resources/wallets/offramp.d.ts +1 -1
- package/dist/resources/wallets/offramp.test.js +25 -27
- package/dist/resources/wallets/offramp.test.mjs +7 -7
- package/dist/resources/webhooks/index.d.mts +1 -1
- package/dist/resources/webhooks/index.d.ts +1 -1
- package/dist/resources/webhooks/webhooks.test.js +25 -27
- package/dist/resources/webhooks/webhooks.test.mjs +7 -7
- package/package.json +2 -1
package/dist/index.js
CHANGED
|
@@ -91,7 +91,7 @@ module.exports = __toCommonJS(index_exports);
|
|
|
91
91
|
var import_svix = require("svix");
|
|
92
92
|
|
|
93
93
|
// package.json
|
|
94
|
-
var version = "
|
|
94
|
+
var version = "3.1.0";
|
|
95
95
|
|
|
96
96
|
// src/internal/blindpay-error.ts
|
|
97
97
|
var BlindPayError = class extends Error {
|
|
@@ -294,11 +294,6 @@ function createPayinsResource(instanceId, client) {
|
|
|
294
294
|
getTrack(payinId) {
|
|
295
295
|
return client.get(`/e/payins/${payinId}`);
|
|
296
296
|
},
|
|
297
|
-
export(_a) {
|
|
298
|
-
var params = __objRest(_a, []);
|
|
299
|
-
const queryParams = params ? `?${new URLSearchParams(params)}` : "";
|
|
300
|
-
return client.get(`/instances/${instanceId}/export/payins${queryParams}`);
|
|
301
|
-
},
|
|
302
297
|
createEvm(payin_quote_id) {
|
|
303
298
|
return client.post(`/instances/${instanceId}/payins/evm`, {
|
|
304
299
|
payin_quote_id
|
|
@@ -317,13 +312,6 @@ function createPayinQuotesResource(instanceId, client) {
|
|
|
317
312
|
getFxRate(_b) {
|
|
318
313
|
var data = __objRest(_b, []);
|
|
319
314
|
return client.post(`/instances/${instanceId}/payin-quotes/fx`, data);
|
|
320
|
-
},
|
|
321
|
-
get(id) {
|
|
322
|
-
return client.get(`/instances/${instanceId}/payin-quotes/${id}`);
|
|
323
|
-
},
|
|
324
|
-
list(params) {
|
|
325
|
-
const queryParams = params ? `?${new URLSearchParams(params)}` : "";
|
|
326
|
-
return client.get(`/instances/${instanceId}/payin-quotes${queryParams}`);
|
|
327
315
|
}
|
|
328
316
|
};
|
|
329
317
|
}
|
|
@@ -335,10 +323,6 @@ function createPayoutsResource(instanceId, client) {
|
|
|
335
323
|
const queryParams = params ? `?${new URLSearchParams(params)}` : "";
|
|
336
324
|
return client.get(`/instances/${instanceId}/payouts${queryParams}`);
|
|
337
325
|
},
|
|
338
|
-
export(params) {
|
|
339
|
-
const queryParams = params ? `?${new URLSearchParams(params)}` : "";
|
|
340
|
-
return client.get(`/instances/${instanceId}/export/payouts${queryParams}`);
|
|
341
|
-
},
|
|
342
326
|
get(payoutId) {
|
|
343
327
|
return client.get(`/instances/${instanceId}/payouts/${payoutId}`);
|
|
344
328
|
},
|
|
@@ -356,6 +340,10 @@ function createPayoutsResource(instanceId, client) {
|
|
|
356
340
|
createEvm(_c) {
|
|
357
341
|
var data = __objRest(_c, []);
|
|
358
342
|
return client.post(`/instances/${instanceId}/payouts/evm`, data);
|
|
343
|
+
},
|
|
344
|
+
createSolana(_d) {
|
|
345
|
+
var data = __objRest(_d, []);
|
|
346
|
+
return client.post(`/instances/${instanceId}/payouts/solana`, data);
|
|
359
347
|
}
|
|
360
348
|
};
|
|
361
349
|
}
|
|
@@ -448,30 +436,40 @@ function createTermsOfServiceResource(instanceId, client) {
|
|
|
448
436
|
// src/resources/virtual-accounts/index.ts
|
|
449
437
|
function createVirtualAccountsResource(instanceId, client) {
|
|
450
438
|
return {
|
|
451
|
-
|
|
439
|
+
list(receiver_id) {
|
|
440
|
+
return client.get(`/instances/${instanceId}/receivers/${receiver_id}/virtual-accounts`);
|
|
441
|
+
},
|
|
442
|
+
get({
|
|
443
|
+
receiver_id,
|
|
444
|
+
id
|
|
445
|
+
}) {
|
|
446
|
+
return client.get(
|
|
447
|
+
`/instances/${instanceId}/receivers/${receiver_id}/virtual-accounts/${id}`
|
|
448
|
+
);
|
|
449
|
+
},
|
|
450
|
+
create(_a) {
|
|
452
451
|
var _b = _a, {
|
|
453
452
|
receiver_id
|
|
454
453
|
} = _b, data = __objRest(_b, [
|
|
455
454
|
"receiver_id"
|
|
456
455
|
]);
|
|
457
|
-
return client.
|
|
456
|
+
return client.post(
|
|
458
457
|
`/instances/${instanceId}/receivers/${receiver_id}/virtual-accounts`,
|
|
459
458
|
data
|
|
460
459
|
);
|
|
461
460
|
},
|
|
462
|
-
|
|
461
|
+
update(_c) {
|
|
463
462
|
var _d = _c, {
|
|
464
|
-
receiver_id
|
|
463
|
+
receiver_id,
|
|
464
|
+
id
|
|
465
465
|
} = _d, data = __objRest(_d, [
|
|
466
|
-
"receiver_id"
|
|
466
|
+
"receiver_id",
|
|
467
|
+
"id"
|
|
467
468
|
]);
|
|
468
|
-
return client.
|
|
469
|
-
`/instances/${instanceId}/receivers/${receiver_id}/virtual-accounts`,
|
|
469
|
+
return client.put(
|
|
470
|
+
`/instances/${instanceId}/receivers/${receiver_id}/virtual-accounts/${id}`,
|
|
470
471
|
data
|
|
471
472
|
);
|
|
472
|
-
},
|
|
473
|
-
get(receiver_id) {
|
|
474
|
-
return client.get(`/instances/${instanceId}/receivers/${receiver_id}/virtual-accounts`);
|
|
475
473
|
}
|
|
476
474
|
};
|
|
477
475
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -1,11 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
BlindPay,
|
|
3
3
|
init_client
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import {
|
|
6
|
-
createWebhookEndpointsResource,
|
|
7
|
-
init_webhooks
|
|
8
|
-
} from "./chunk-UC57SCKQ.mjs";
|
|
4
|
+
} from "./chunk-V4V47AUC.mjs";
|
|
9
5
|
import {
|
|
10
6
|
createBlockchainWalletsResource,
|
|
11
7
|
init_blockchain
|
|
@@ -14,6 +10,10 @@ import {
|
|
|
14
10
|
createOfframpWalletsResource,
|
|
15
11
|
init_offramp
|
|
16
12
|
} from "./chunk-QGNLMN6Z.mjs";
|
|
13
|
+
import {
|
|
14
|
+
createWebhookEndpointsResource,
|
|
15
|
+
init_webhooks
|
|
16
|
+
} from "./chunk-UC57SCKQ.mjs";
|
|
17
17
|
import {
|
|
18
18
|
createQuotesResource,
|
|
19
19
|
init_quotes as init_quotes2
|
|
@@ -26,31 +26,31 @@ import "./chunk-Z6EYX4D3.mjs";
|
|
|
26
26
|
import {
|
|
27
27
|
createVirtualAccountsResource,
|
|
28
28
|
init_virtual_accounts
|
|
29
|
-
} from "./chunk-
|
|
30
|
-
import {
|
|
31
|
-
createAvailableResource,
|
|
32
|
-
init_available
|
|
33
|
-
} from "./chunk-U7CKUUO7.mjs";
|
|
34
|
-
import {
|
|
35
|
-
createPartnerFeesResource,
|
|
36
|
-
init_partner_fees
|
|
37
|
-
} from "./chunk-RC5NN5UF.mjs";
|
|
29
|
+
} from "./chunk-LEPGLH7Q.mjs";
|
|
38
30
|
import {
|
|
39
31
|
createPayinsResource,
|
|
40
32
|
init_payins
|
|
41
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-VGU72ZNI.mjs";
|
|
42
34
|
import {
|
|
43
35
|
createPayinQuotesResource,
|
|
44
36
|
init_quotes
|
|
45
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-E7M4CJKR.mjs";
|
|
46
38
|
import {
|
|
47
39
|
createPayoutsResource,
|
|
48
40
|
init_payouts
|
|
49
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-VOB7TMKL.mjs";
|
|
42
|
+
import {
|
|
43
|
+
createPartnerFeesResource,
|
|
44
|
+
init_partner_fees
|
|
45
|
+
} from "./chunk-RC5NN5UF.mjs";
|
|
50
46
|
import {
|
|
51
47
|
createApiKeysResource,
|
|
52
48
|
init_api_keys
|
|
53
49
|
} from "./chunk-LRHWT4JU.mjs";
|
|
50
|
+
import {
|
|
51
|
+
createAvailableResource,
|
|
52
|
+
init_available
|
|
53
|
+
} from "./chunk-U7CKUUO7.mjs";
|
|
54
54
|
import {
|
|
55
55
|
createBankAccountsResource,
|
|
56
56
|
init_bank_accounts
|
|
@@ -18697,7 +18697,7 @@ var import_expect_type = __toESM(require_dist(), 1);
|
|
|
18697
18697
|
var import_svix = require("svix");
|
|
18698
18698
|
|
|
18699
18699
|
// package.json
|
|
18700
|
-
var version = "
|
|
18700
|
+
var version = "3.1.0";
|
|
18701
18701
|
|
|
18702
18702
|
// src/internal/blindpay-error.ts
|
|
18703
18703
|
var BlindPayError = class extends Error {
|
|
@@ -18900,11 +18900,6 @@ function createPayinsResource(instanceId, client) {
|
|
|
18900
18900
|
getTrack(payinId) {
|
|
18901
18901
|
return client.get(`/e/payins/${payinId}`);
|
|
18902
18902
|
},
|
|
18903
|
-
export(_a3) {
|
|
18904
|
-
var params = __objRest(_a3, []);
|
|
18905
|
-
const queryParams = params ? `?${new URLSearchParams(params)}` : "";
|
|
18906
|
-
return client.get(`/instances/${instanceId}/export/payins${queryParams}`);
|
|
18907
|
-
},
|
|
18908
18903
|
createEvm(payin_quote_id) {
|
|
18909
18904
|
return client.post(`/instances/${instanceId}/payins/evm`, {
|
|
18910
18905
|
payin_quote_id
|
|
@@ -18923,13 +18918,6 @@ function createPayinQuotesResource(instanceId, client) {
|
|
|
18923
18918
|
getFxRate(_b) {
|
|
18924
18919
|
var data = __objRest(_b, []);
|
|
18925
18920
|
return client.post(`/instances/${instanceId}/payin-quotes/fx`, data);
|
|
18926
|
-
},
|
|
18927
|
-
get(id) {
|
|
18928
|
-
return client.get(`/instances/${instanceId}/payin-quotes/${id}`);
|
|
18929
|
-
},
|
|
18930
|
-
list(params) {
|
|
18931
|
-
const queryParams = params ? `?${new URLSearchParams(params)}` : "";
|
|
18932
|
-
return client.get(`/instances/${instanceId}/payin-quotes${queryParams}`);
|
|
18933
18921
|
}
|
|
18934
18922
|
};
|
|
18935
18923
|
}
|
|
@@ -18941,10 +18929,6 @@ function createPayoutsResource(instanceId, client) {
|
|
|
18941
18929
|
const queryParams = params ? `?${new URLSearchParams(params)}` : "";
|
|
18942
18930
|
return client.get(`/instances/${instanceId}/payouts${queryParams}`);
|
|
18943
18931
|
},
|
|
18944
|
-
export(params) {
|
|
18945
|
-
const queryParams = params ? `?${new URLSearchParams(params)}` : "";
|
|
18946
|
-
return client.get(`/instances/${instanceId}/export/payouts${queryParams}`);
|
|
18947
|
-
},
|
|
18948
18932
|
get(payoutId) {
|
|
18949
18933
|
return client.get(`/instances/${instanceId}/payouts/${payoutId}`);
|
|
18950
18934
|
},
|
|
@@ -18962,6 +18946,10 @@ function createPayoutsResource(instanceId, client) {
|
|
|
18962
18946
|
createEvm(_c) {
|
|
18963
18947
|
var data = __objRest(_c, []);
|
|
18964
18948
|
return client.post(`/instances/${instanceId}/payouts/evm`, data);
|
|
18949
|
+
},
|
|
18950
|
+
createSolana(_d) {
|
|
18951
|
+
var data = __objRest(_d, []);
|
|
18952
|
+
return client.post(`/instances/${instanceId}/payouts/solana`, data);
|
|
18965
18953
|
}
|
|
18966
18954
|
};
|
|
18967
18955
|
}
|
|
@@ -19054,30 +19042,40 @@ function createTermsOfServiceResource(instanceId, client) {
|
|
|
19054
19042
|
// src/resources/virtual-accounts/index.ts
|
|
19055
19043
|
function createVirtualAccountsResource(instanceId, client) {
|
|
19056
19044
|
return {
|
|
19057
|
-
|
|
19045
|
+
list(receiver_id) {
|
|
19046
|
+
return client.get(`/instances/${instanceId}/receivers/${receiver_id}/virtual-accounts`);
|
|
19047
|
+
},
|
|
19048
|
+
get({
|
|
19049
|
+
receiver_id,
|
|
19050
|
+
id
|
|
19051
|
+
}) {
|
|
19052
|
+
return client.get(
|
|
19053
|
+
`/instances/${instanceId}/receivers/${receiver_id}/virtual-accounts/${id}`
|
|
19054
|
+
);
|
|
19055
|
+
},
|
|
19056
|
+
create(_a3) {
|
|
19058
19057
|
var _b = _a3, {
|
|
19059
19058
|
receiver_id
|
|
19060
19059
|
} = _b, data = __objRest(_b, [
|
|
19061
19060
|
"receiver_id"
|
|
19062
19061
|
]);
|
|
19063
|
-
return client.
|
|
19062
|
+
return client.post(
|
|
19064
19063
|
`/instances/${instanceId}/receivers/${receiver_id}/virtual-accounts`,
|
|
19065
19064
|
data
|
|
19066
19065
|
);
|
|
19067
19066
|
},
|
|
19068
|
-
|
|
19067
|
+
update(_c) {
|
|
19069
19068
|
var _d = _c, {
|
|
19070
|
-
receiver_id
|
|
19069
|
+
receiver_id,
|
|
19070
|
+
id
|
|
19071
19071
|
} = _d, data = __objRest(_d, [
|
|
19072
|
-
"receiver_id"
|
|
19072
|
+
"receiver_id",
|
|
19073
|
+
"id"
|
|
19073
19074
|
]);
|
|
19074
|
-
return client.
|
|
19075
|
-
`/instances/${instanceId}/receivers/${receiver_id}/virtual-accounts`,
|
|
19075
|
+
return client.put(
|
|
19076
|
+
`/instances/${instanceId}/receivers/${receiver_id}/virtual-accounts/${id}`,
|
|
19076
19077
|
data
|
|
19077
19078
|
);
|
|
19078
|
-
},
|
|
19079
|
-
get(receiver_id) {
|
|
19080
|
-
return client.get(`/instances/${instanceId}/receivers/${receiver_id}/virtual-accounts`);
|
|
19081
19079
|
}
|
|
19082
19080
|
};
|
|
19083
19081
|
}
|
|
@@ -7,20 +7,20 @@ import {
|
|
|
7
7
|
import {
|
|
8
8
|
BlindPay,
|
|
9
9
|
init_client
|
|
10
|
-
} from "../../chunk-
|
|
11
|
-
import "../../chunk-UC57SCKQ.mjs";
|
|
10
|
+
} from "../../chunk-V4V47AUC.mjs";
|
|
12
11
|
import "../../chunk-FG25JHDX.mjs";
|
|
13
12
|
import "../../chunk-QGNLMN6Z.mjs";
|
|
13
|
+
import "../../chunk-UC57SCKQ.mjs";
|
|
14
14
|
import "../../chunk-TBTA7A2P.mjs";
|
|
15
15
|
import "../../chunk-67XECGMJ.mjs";
|
|
16
16
|
import "../../chunk-Z6EYX4D3.mjs";
|
|
17
|
-
import "../../chunk-
|
|
18
|
-
import "../../chunk-
|
|
17
|
+
import "../../chunk-LEPGLH7Q.mjs";
|
|
18
|
+
import "../../chunk-VGU72ZNI.mjs";
|
|
19
|
+
import "../../chunk-E7M4CJKR.mjs";
|
|
20
|
+
import "../../chunk-VOB7TMKL.mjs";
|
|
19
21
|
import "../../chunk-RC5NN5UF.mjs";
|
|
20
|
-
import "../../chunk-W7NJUABI.mjs";
|
|
21
|
-
import "../../chunk-VRA5HP7F.mjs";
|
|
22
|
-
import "../../chunk-3QQCDR3E.mjs";
|
|
23
22
|
import "../../chunk-LRHWT4JU.mjs";
|
|
23
|
+
import "../../chunk-U7CKUUO7.mjs";
|
|
24
24
|
import "../../chunk-CPOSU35L.mjs";
|
|
25
25
|
import "../../chunk-B5T7AQLH.mjs";
|
|
26
26
|
import {
|
|
@@ -18702,7 +18702,7 @@ var import_expect_type = __toESM(require_dist(), 1);
|
|
|
18702
18702
|
var import_svix = require("svix");
|
|
18703
18703
|
|
|
18704
18704
|
// package.json
|
|
18705
|
-
var version = "
|
|
18705
|
+
var version = "3.1.0";
|
|
18706
18706
|
|
|
18707
18707
|
// src/internal/blindpay-error.ts
|
|
18708
18708
|
var BlindPayError = class extends Error {
|
|
@@ -18905,11 +18905,6 @@ function createPayinsResource(instanceId, client) {
|
|
|
18905
18905
|
getTrack(payinId) {
|
|
18906
18906
|
return client.get(`/e/payins/${payinId}`);
|
|
18907
18907
|
},
|
|
18908
|
-
export(_a3) {
|
|
18909
|
-
var params = __objRest(_a3, []);
|
|
18910
|
-
const queryParams = params ? `?${new URLSearchParams(params)}` : "";
|
|
18911
|
-
return client.get(`/instances/${instanceId}/export/payins${queryParams}`);
|
|
18912
|
-
},
|
|
18913
18908
|
createEvm(payin_quote_id) {
|
|
18914
18909
|
return client.post(`/instances/${instanceId}/payins/evm`, {
|
|
18915
18910
|
payin_quote_id
|
|
@@ -18928,13 +18923,6 @@ function createPayinQuotesResource(instanceId, client) {
|
|
|
18928
18923
|
getFxRate(_b) {
|
|
18929
18924
|
var data = __objRest(_b, []);
|
|
18930
18925
|
return client.post(`/instances/${instanceId}/payin-quotes/fx`, data);
|
|
18931
|
-
},
|
|
18932
|
-
get(id) {
|
|
18933
|
-
return client.get(`/instances/${instanceId}/payin-quotes/${id}`);
|
|
18934
|
-
},
|
|
18935
|
-
list(params) {
|
|
18936
|
-
const queryParams = params ? `?${new URLSearchParams(params)}` : "";
|
|
18937
|
-
return client.get(`/instances/${instanceId}/payin-quotes${queryParams}`);
|
|
18938
18926
|
}
|
|
18939
18927
|
};
|
|
18940
18928
|
}
|
|
@@ -18946,10 +18934,6 @@ function createPayoutsResource(instanceId, client) {
|
|
|
18946
18934
|
const queryParams = params ? `?${new URLSearchParams(params)}` : "";
|
|
18947
18935
|
return client.get(`/instances/${instanceId}/payouts${queryParams}`);
|
|
18948
18936
|
},
|
|
18949
|
-
export(params) {
|
|
18950
|
-
const queryParams = params ? `?${new URLSearchParams(params)}` : "";
|
|
18951
|
-
return client.get(`/instances/${instanceId}/export/payouts${queryParams}`);
|
|
18952
|
-
},
|
|
18953
18937
|
get(payoutId) {
|
|
18954
18938
|
return client.get(`/instances/${instanceId}/payouts/${payoutId}`);
|
|
18955
18939
|
},
|
|
@@ -18967,6 +18951,10 @@ function createPayoutsResource(instanceId, client) {
|
|
|
18967
18951
|
createEvm(_c) {
|
|
18968
18952
|
var data = __objRest(_c, []);
|
|
18969
18953
|
return client.post(`/instances/${instanceId}/payouts/evm`, data);
|
|
18954
|
+
},
|
|
18955
|
+
createSolana(_d) {
|
|
18956
|
+
var data = __objRest(_d, []);
|
|
18957
|
+
return client.post(`/instances/${instanceId}/payouts/solana`, data);
|
|
18970
18958
|
}
|
|
18971
18959
|
};
|
|
18972
18960
|
}
|
|
@@ -19059,30 +19047,40 @@ function createTermsOfServiceResource(instanceId, client) {
|
|
|
19059
19047
|
// src/resources/virtual-accounts/index.ts
|
|
19060
19048
|
function createVirtualAccountsResource(instanceId, client) {
|
|
19061
19049
|
return {
|
|
19062
|
-
|
|
19050
|
+
list(receiver_id) {
|
|
19051
|
+
return client.get(`/instances/${instanceId}/receivers/${receiver_id}/virtual-accounts`);
|
|
19052
|
+
},
|
|
19053
|
+
get({
|
|
19054
|
+
receiver_id,
|
|
19055
|
+
id
|
|
19056
|
+
}) {
|
|
19057
|
+
return client.get(
|
|
19058
|
+
`/instances/${instanceId}/receivers/${receiver_id}/virtual-accounts/${id}`
|
|
19059
|
+
);
|
|
19060
|
+
},
|
|
19061
|
+
create(_a3) {
|
|
19063
19062
|
var _b = _a3, {
|
|
19064
19063
|
receiver_id
|
|
19065
19064
|
} = _b, data = __objRest(_b, [
|
|
19066
19065
|
"receiver_id"
|
|
19067
19066
|
]);
|
|
19068
|
-
return client.
|
|
19067
|
+
return client.post(
|
|
19069
19068
|
`/instances/${instanceId}/receivers/${receiver_id}/virtual-accounts`,
|
|
19070
19069
|
data
|
|
19071
19070
|
);
|
|
19072
19071
|
},
|
|
19073
|
-
|
|
19072
|
+
update(_c) {
|
|
19074
19073
|
var _d = _c, {
|
|
19075
|
-
receiver_id
|
|
19074
|
+
receiver_id,
|
|
19075
|
+
id
|
|
19076
19076
|
} = _d, data = __objRest(_d, [
|
|
19077
|
-
"receiver_id"
|
|
19077
|
+
"receiver_id",
|
|
19078
|
+
"id"
|
|
19078
19079
|
]);
|
|
19079
|
-
return client.
|
|
19080
|
-
`/instances/${instanceId}/receivers/${receiver_id}/virtual-accounts`,
|
|
19080
|
+
return client.put(
|
|
19081
|
+
`/instances/${instanceId}/receivers/${receiver_id}/virtual-accounts/${id}`,
|
|
19081
19082
|
data
|
|
19082
19083
|
);
|
|
19083
|
-
},
|
|
19084
|
-
get(receiver_id) {
|
|
19085
|
-
return client.get(`/instances/${instanceId}/receivers/${receiver_id}/virtual-accounts`);
|
|
19086
19084
|
}
|
|
19087
19085
|
};
|
|
19088
19086
|
}
|
|
@@ -8,20 +8,20 @@ import {
|
|
|
8
8
|
import {
|
|
9
9
|
BlindPay,
|
|
10
10
|
init_client
|
|
11
|
-
} from "../../chunk-
|
|
12
|
-
import "../../chunk-UC57SCKQ.mjs";
|
|
11
|
+
} from "../../chunk-V4V47AUC.mjs";
|
|
13
12
|
import "../../chunk-FG25JHDX.mjs";
|
|
14
13
|
import "../../chunk-QGNLMN6Z.mjs";
|
|
14
|
+
import "../../chunk-UC57SCKQ.mjs";
|
|
15
15
|
import "../../chunk-TBTA7A2P.mjs";
|
|
16
16
|
import "../../chunk-67XECGMJ.mjs";
|
|
17
17
|
import "../../chunk-Z6EYX4D3.mjs";
|
|
18
|
-
import "../../chunk-
|
|
19
|
-
import "../../chunk-
|
|
18
|
+
import "../../chunk-LEPGLH7Q.mjs";
|
|
19
|
+
import "../../chunk-VGU72ZNI.mjs";
|
|
20
|
+
import "../../chunk-E7M4CJKR.mjs";
|
|
21
|
+
import "../../chunk-VOB7TMKL.mjs";
|
|
20
22
|
import "../../chunk-RC5NN5UF.mjs";
|
|
21
|
-
import "../../chunk-W7NJUABI.mjs";
|
|
22
|
-
import "../../chunk-VRA5HP7F.mjs";
|
|
23
|
-
import "../../chunk-3QQCDR3E.mjs";
|
|
24
23
|
import "../../chunk-LRHWT4JU.mjs";
|
|
24
|
+
import "../../chunk-U7CKUUO7.mjs";
|
|
25
25
|
import "../../chunk-CPOSU35L.mjs";
|
|
26
26
|
import "../../chunk-B5T7AQLH.mjs";
|
|
27
27
|
import {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { I as InternalApiClient, R as Rail, B as BlindpayApiResponse } from '../../api-client-
|
|
1
|
+
import { I as InternalApiClient, R as Rail, B as BlindpayApiResponse } from '../../api-client-DhY5DFpq.mjs';
|
|
2
2
|
|
|
3
3
|
type BankDetailKey = "type" | "name" | "pix_key" | "beneficiary_name" | "routing_number" | "account_number" | "account_type" | "account_class" | "address_line_1" | "address_line_2" | "city" | "state_province_region" | "country" | "postal_code" | "checkbook_account_id" | "checkbook_user_key" | "spei_protocol" | "spei_institution_code" | "spei_clabe" | "transfers_type" | "transfers_account" | "ach_cop_beneficiary_first_name" | "ach_cop_beneficiary_last_name" | "ach_cop_document_id" | "ach_cop_document_type" | "ach_cop_email" | "ach_cop_bank_code" | "ach_cop_bank_account" | "swift_code_bic" | "swift_account_holder_name" | "swift_account_number_iban" | "swift_beneficiary_address_line_1" | "swift_beneficiary_address_line_2" | "swift_beneficiary_country" | "swift_beneficiary_city" | "swift_beneficiary_state_province_region" | "swift_beneficiary_postal_code" | "swift_bank_name" | "swift_bank_address_line_1" | "swift_bank_address_line_2" | "swift_bank_country" | "swift_bank_city" | "swift_bank_state_province_region" | "swift_bank_postal_code" | "swift_intermediary_bank_swift_code_bic" | "swift_intermediary_bank_account_number_iban" | "swift_intermediary_bank_name" | "swift_intermediary_bank_country";
|
|
4
4
|
type GetBankDetailsResponse = Array<{
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { I as InternalApiClient, R as Rail, B as BlindpayApiResponse } from '../../api-client-
|
|
1
|
+
import { I as InternalApiClient, R as Rail, B as BlindpayApiResponse } from '../../api-client-DhY5DFpq.js';
|
|
2
2
|
|
|
3
3
|
type BankDetailKey = "type" | "name" | "pix_key" | "beneficiary_name" | "routing_number" | "account_number" | "account_type" | "account_class" | "address_line_1" | "address_line_2" | "city" | "state_province_region" | "country" | "postal_code" | "checkbook_account_id" | "checkbook_user_key" | "spei_protocol" | "spei_institution_code" | "spei_clabe" | "transfers_type" | "transfers_account" | "ach_cop_beneficiary_first_name" | "ach_cop_beneficiary_last_name" | "ach_cop_document_id" | "ach_cop_document_type" | "ach_cop_email" | "ach_cop_bank_code" | "ach_cop_bank_account" | "swift_code_bic" | "swift_account_holder_name" | "swift_account_number_iban" | "swift_beneficiary_address_line_1" | "swift_beneficiary_address_line_2" | "swift_beneficiary_country" | "swift_beneficiary_city" | "swift_beneficiary_state_province_region" | "swift_beneficiary_postal_code" | "swift_bank_name" | "swift_bank_address_line_1" | "swift_bank_address_line_2" | "swift_bank_country" | "swift_bank_city" | "swift_bank_state_province_region" | "swift_bank_postal_code" | "swift_intermediary_bank_swift_code_bic" | "swift_intermediary_bank_account_number_iban" | "swift_intermediary_bank_name" | "swift_intermediary_bank_country";
|
|
4
4
|
type GetBankDetailsResponse = Array<{
|
|
@@ -18702,7 +18702,7 @@ var import_expect_type = __toESM(require_dist(), 1);
|
|
|
18702
18702
|
var import_svix = require("svix");
|
|
18703
18703
|
|
|
18704
18704
|
// package.json
|
|
18705
|
-
var version = "
|
|
18705
|
+
var version = "3.1.0";
|
|
18706
18706
|
|
|
18707
18707
|
// src/internal/blindpay-error.ts
|
|
18708
18708
|
var BlindPayError = class extends Error {
|
|
@@ -18905,11 +18905,6 @@ function createPayinsResource(instanceId, client) {
|
|
|
18905
18905
|
getTrack(payinId) {
|
|
18906
18906
|
return client.get(`/e/payins/${payinId}`);
|
|
18907
18907
|
},
|
|
18908
|
-
export(_a3) {
|
|
18909
|
-
var params = __objRest(_a3, []);
|
|
18910
|
-
const queryParams = params ? `?${new URLSearchParams(params)}` : "";
|
|
18911
|
-
return client.get(`/instances/${instanceId}/export/payins${queryParams}`);
|
|
18912
|
-
},
|
|
18913
18908
|
createEvm(payin_quote_id) {
|
|
18914
18909
|
return client.post(`/instances/${instanceId}/payins/evm`, {
|
|
18915
18910
|
payin_quote_id
|
|
@@ -18928,13 +18923,6 @@ function createPayinQuotesResource(instanceId, client) {
|
|
|
18928
18923
|
getFxRate(_b) {
|
|
18929
18924
|
var data = __objRest(_b, []);
|
|
18930
18925
|
return client.post(`/instances/${instanceId}/payin-quotes/fx`, data);
|
|
18931
|
-
},
|
|
18932
|
-
get(id) {
|
|
18933
|
-
return client.get(`/instances/${instanceId}/payin-quotes/${id}`);
|
|
18934
|
-
},
|
|
18935
|
-
list(params) {
|
|
18936
|
-
const queryParams = params ? `?${new URLSearchParams(params)}` : "";
|
|
18937
|
-
return client.get(`/instances/${instanceId}/payin-quotes${queryParams}`);
|
|
18938
18926
|
}
|
|
18939
18927
|
};
|
|
18940
18928
|
}
|
|
@@ -18946,10 +18934,6 @@ function createPayoutsResource(instanceId, client) {
|
|
|
18946
18934
|
const queryParams = params ? `?${new URLSearchParams(params)}` : "";
|
|
18947
18935
|
return client.get(`/instances/${instanceId}/payouts${queryParams}`);
|
|
18948
18936
|
},
|
|
18949
|
-
export(params) {
|
|
18950
|
-
const queryParams = params ? `?${new URLSearchParams(params)}` : "";
|
|
18951
|
-
return client.get(`/instances/${instanceId}/export/payouts${queryParams}`);
|
|
18952
|
-
},
|
|
18953
18937
|
get(payoutId) {
|
|
18954
18938
|
return client.get(`/instances/${instanceId}/payouts/${payoutId}`);
|
|
18955
18939
|
},
|
|
@@ -18967,6 +18951,10 @@ function createPayoutsResource(instanceId, client) {
|
|
|
18967
18951
|
createEvm(_c) {
|
|
18968
18952
|
var data = __objRest(_c, []);
|
|
18969
18953
|
return client.post(`/instances/${instanceId}/payouts/evm`, data);
|
|
18954
|
+
},
|
|
18955
|
+
createSolana(_d) {
|
|
18956
|
+
var data = __objRest(_d, []);
|
|
18957
|
+
return client.post(`/instances/${instanceId}/payouts/solana`, data);
|
|
18970
18958
|
}
|
|
18971
18959
|
};
|
|
18972
18960
|
}
|
|
@@ -19059,30 +19047,40 @@ function createTermsOfServiceResource(instanceId, client) {
|
|
|
19059
19047
|
// src/resources/virtual-accounts/index.ts
|
|
19060
19048
|
function createVirtualAccountsResource(instanceId, client) {
|
|
19061
19049
|
return {
|
|
19062
|
-
|
|
19050
|
+
list(receiver_id) {
|
|
19051
|
+
return client.get(`/instances/${instanceId}/receivers/${receiver_id}/virtual-accounts`);
|
|
19052
|
+
},
|
|
19053
|
+
get({
|
|
19054
|
+
receiver_id,
|
|
19055
|
+
id
|
|
19056
|
+
}) {
|
|
19057
|
+
return client.get(
|
|
19058
|
+
`/instances/${instanceId}/receivers/${receiver_id}/virtual-accounts/${id}`
|
|
19059
|
+
);
|
|
19060
|
+
},
|
|
19061
|
+
create(_a3) {
|
|
19063
19062
|
var _b = _a3, {
|
|
19064
19063
|
receiver_id
|
|
19065
19064
|
} = _b, data = __objRest(_b, [
|
|
19066
19065
|
"receiver_id"
|
|
19067
19066
|
]);
|
|
19068
|
-
return client.
|
|
19067
|
+
return client.post(
|
|
19069
19068
|
`/instances/${instanceId}/receivers/${receiver_id}/virtual-accounts`,
|
|
19070
19069
|
data
|
|
19071
19070
|
);
|
|
19072
19071
|
},
|
|
19073
|
-
|
|
19072
|
+
update(_c) {
|
|
19074
19073
|
var _d = _c, {
|
|
19075
|
-
receiver_id
|
|
19074
|
+
receiver_id,
|
|
19075
|
+
id
|
|
19076
19076
|
} = _d, data = __objRest(_d, [
|
|
19077
|
-
"receiver_id"
|
|
19077
|
+
"receiver_id",
|
|
19078
|
+
"id"
|
|
19078
19079
|
]);
|
|
19079
|
-
return client.
|
|
19080
|
-
`/instances/${instanceId}/receivers/${receiver_id}/virtual-accounts`,
|
|
19080
|
+
return client.put(
|
|
19081
|
+
`/instances/${instanceId}/receivers/${receiver_id}/virtual-accounts/${id}`,
|
|
19081
19082
|
data
|
|
19082
19083
|
);
|
|
19083
|
-
},
|
|
19084
|
-
get(receiver_id) {
|
|
19085
|
-
return client.get(`/instances/${instanceId}/receivers/${receiver_id}/virtual-accounts`);
|
|
19086
19084
|
}
|
|
19087
19085
|
};
|
|
19088
19086
|
}
|
|
@@ -8,20 +8,20 @@ import {
|
|
|
8
8
|
import {
|
|
9
9
|
BlindPay,
|
|
10
10
|
init_client
|
|
11
|
-
} from "../../chunk-
|
|
12
|
-
import "../../chunk-UC57SCKQ.mjs";
|
|
11
|
+
} from "../../chunk-V4V47AUC.mjs";
|
|
13
12
|
import "../../chunk-FG25JHDX.mjs";
|
|
14
13
|
import "../../chunk-QGNLMN6Z.mjs";
|
|
14
|
+
import "../../chunk-UC57SCKQ.mjs";
|
|
15
15
|
import "../../chunk-TBTA7A2P.mjs";
|
|
16
16
|
import "../../chunk-67XECGMJ.mjs";
|
|
17
17
|
import "../../chunk-Z6EYX4D3.mjs";
|
|
18
|
-
import "../../chunk-
|
|
19
|
-
import "../../chunk-
|
|
18
|
+
import "../../chunk-LEPGLH7Q.mjs";
|
|
19
|
+
import "../../chunk-VGU72ZNI.mjs";
|
|
20
|
+
import "../../chunk-E7M4CJKR.mjs";
|
|
21
|
+
import "../../chunk-VOB7TMKL.mjs";
|
|
20
22
|
import "../../chunk-RC5NN5UF.mjs";
|
|
21
|
-
import "../../chunk-W7NJUABI.mjs";
|
|
22
|
-
import "../../chunk-VRA5HP7F.mjs";
|
|
23
|
-
import "../../chunk-3QQCDR3E.mjs";
|
|
24
23
|
import "../../chunk-LRHWT4JU.mjs";
|
|
24
|
+
import "../../chunk-U7CKUUO7.mjs";
|
|
25
25
|
import "../../chunk-CPOSU35L.mjs";
|
|
26
26
|
import "../../chunk-B5T7AQLH.mjs";
|
|
27
27
|
import {
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import { I as InternalApiClient, B as BlindpayApiResponse, R as Rail, a as BankAccountType, A as AccountClass, C as Country } from '../../api-client-
|
|
1
|
+
import { I as InternalApiClient, B as BlindpayApiResponse, R as Rail, a as BankAccountType, A as AccountClass, C as Country, b as AchCopDocument, c as ArgentinaTransfers } from '../../api-client-DhY5DFpq.mjs';
|
|
2
2
|
import { SpeiProtocol } from '../payouts/index.mjs';
|
|
3
3
|
|
|
4
|
-
type ArgentinaTransfers = "CVU" | "CBU" | "ALIAS";
|
|
5
|
-
type AchCopDocument = "CC" | "CE" | "NIT" | "PASS" | "PEP";
|
|
6
4
|
type ListBankAccountsInput = string;
|
|
7
5
|
type ListBankAccountsResponse = {
|
|
8
6
|
data: Array<{
|
|
@@ -317,4 +315,4 @@ declare function createBankAccountsResource(instanceId: string, client: Internal
|
|
|
317
315
|
createRtp({ receiver_id, ...data }: CreateRtpInput): Promise<BlindpayApiResponse<CreateRtpResponse>>;
|
|
318
316
|
};
|
|
319
317
|
|
|
320
|
-
export { type
|
|
318
|
+
export { type CreateAchInput, type CreateAchResponse, type CreateArgentinaTransfersInput, type CreateArgentinaTransfersResponse, type CreateColombiaAchInput, type CreateColombiaAchResponse, type CreateInternationalSwiftInput, type CreateInternationalSwiftResponse, type CreatePixInput, type CreatePixResponse, type CreateRtpInput, type CreateRtpResponse, type CreateSpeiInput, type CreateSpeiResponse, type CreateWireInput, type CreateWireResponse, type DeleteBankAccountInput, type GetBankAccountInput, type GetBankAccountResponse, type ListBankAccountsInput, type ListBankAccountsResponse, createBankAccountsResource };
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import { I as InternalApiClient, B as BlindpayApiResponse, R as Rail, a as BankAccountType, A as AccountClass, C as Country } from '../../api-client-
|
|
1
|
+
import { I as InternalApiClient, B as BlindpayApiResponse, R as Rail, a as BankAccountType, A as AccountClass, C as Country, b as AchCopDocument, c as ArgentinaTransfers } from '../../api-client-DhY5DFpq.js';
|
|
2
2
|
import { SpeiProtocol } from '../payouts/index.js';
|
|
3
3
|
|
|
4
|
-
type ArgentinaTransfers = "CVU" | "CBU" | "ALIAS";
|
|
5
|
-
type AchCopDocument = "CC" | "CE" | "NIT" | "PASS" | "PEP";
|
|
6
4
|
type ListBankAccountsInput = string;
|
|
7
5
|
type ListBankAccountsResponse = {
|
|
8
6
|
data: Array<{
|
|
@@ -317,4 +315,4 @@ declare function createBankAccountsResource(instanceId: string, client: Internal
|
|
|
317
315
|
createRtp({ receiver_id, ...data }: CreateRtpInput): Promise<BlindpayApiResponse<CreateRtpResponse>>;
|
|
318
316
|
};
|
|
319
317
|
|
|
320
|
-
export { type
|
|
318
|
+
export { type CreateAchInput, type CreateAchResponse, type CreateArgentinaTransfersInput, type CreateArgentinaTransfersResponse, type CreateColombiaAchInput, type CreateColombiaAchResponse, type CreateInternationalSwiftInput, type CreateInternationalSwiftResponse, type CreatePixInput, type CreatePixResponse, type CreateRtpInput, type CreateRtpResponse, type CreateSpeiInput, type CreateSpeiResponse, type CreateWireInput, type CreateWireResponse, type DeleteBankAccountInput, type GetBankAccountInput, type GetBankAccountResponse, type ListBankAccountsInput, type ListBankAccountsResponse, createBankAccountsResource };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { I as InternalApiClient, B as BlindpayApiResponse } from '../../api-client-
|
|
1
|
+
import { I as InternalApiClient, B as BlindpayApiResponse } from '../../api-client-DhY5DFpq.mjs';
|
|
2
2
|
|
|
3
3
|
type InstanceMemberRole = "owner" | "admin" | "finance" | "checker" | "operations" | "developer" | "viewer";
|
|
4
4
|
type GetInstanceMembersResponse = Array<{
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { I as InternalApiClient, B as BlindpayApiResponse } from '../../api-client-
|
|
1
|
+
import { I as InternalApiClient, B as BlindpayApiResponse } from '../../api-client-DhY5DFpq.js';
|
|
2
2
|
|
|
3
3
|
type InstanceMemberRole = "owner" | "admin" | "finance" | "checker" | "operations" | "developer" | "viewer";
|
|
4
4
|
type GetInstanceMembersResponse = Array<{
|