@blindpay/node 3.11.0 → 4.0.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/{api-client-5N_7-zad.d.ts → api-client-BWImXDBx.d.ts} +1 -1
- package/dist/{api-client-DYqrodZr.d.mts → api-client-L9eGwH1U.d.mts} +1 -1
- package/dist/{chunk-IM2L5L4B.mjs → chunk-IJSACZHV.mjs} +16 -24
- package/dist/{chunk-N4F3FBNB.mjs → chunk-L23IOSI3.mjs} +40 -40
- package/dist/{chunk-LEPGLH7Q.mjs → chunk-SWTOSLUI.mjs} +10 -10
- package/dist/{chunk-KMU6V4LW.mjs → chunk-TVOMVVOO.mjs} +11 -11
- package/dist/{chunk-FG25JHDX.mjs → chunk-VAVDEV6P.mjs} +14 -14
- package/dist/{chunk-QGNLMN6Z.mjs → chunk-YHI3J2CL.mjs} +7 -7
- package/dist/{index.d-CGeWvXXq.d.mts → index.d-DK8eD9f3.d.mts} +1 -1
- package/dist/{index.d-CGeWvXXq.d.ts → index.d-DK8eD9f3.d.ts} +1 -1
- package/dist/index.d.mts +4 -16
- package/dist/index.d.ts +4 -16
- package/dist/index.js +83 -153
- package/dist/index.mjs +14 -20
- package/dist/resources/api-keys/api-keys.test.js +83 -151
- package/dist/resources/api-keys/api-keys.test.mjs +9 -10
- package/dist/resources/api-keys/index.d.mts +2 -2
- package/dist/resources/api-keys/index.d.ts +2 -2
- package/dist/resources/available/available.test.js +83 -151
- package/dist/resources/available/available.test.mjs +9 -10
- package/dist/resources/available/index.d.mts +2 -2
- package/dist/resources/available/index.d.ts +2 -2
- package/dist/resources/bank-accounts/bank-accounts.test.js +171 -241
- package/dist/resources/bank-accounts/bank-accounts.test.mjs +97 -100
- package/dist/resources/bank-accounts/index.d.mts +100 -102
- package/dist/resources/bank-accounts/index.d.ts +100 -102
- package/dist/resources/bank-accounts/index.js +40 -40
- package/dist/resources/bank-accounts/index.mjs +1 -1
- package/dist/resources/customers/customers.test.js +83 -151
- package/dist/resources/customers/customers.test.mjs +9 -10
- package/dist/resources/customers/index.d.mts +70 -69
- package/dist/resources/customers/index.d.ts +70 -69
- package/dist/resources/fees/fees.test.js +83 -151
- package/dist/resources/fees/fees.test.mjs +9 -10
- package/dist/resources/fees/index.d.mts +2 -2
- package/dist/resources/fees/index.d.ts +2 -2
- package/dist/resources/instances/index.d.mts +2 -2
- package/dist/resources/instances/index.d.ts +2 -2
- package/dist/resources/instances/instances.test.js +83 -151
- package/dist/resources/instances/instances.test.mjs +9 -10
- package/dist/resources/partner-fees/index.d.mts +2 -2
- package/dist/resources/partner-fees/index.d.ts +2 -2
- package/dist/resources/partner-fees/partner-fees.test.js +83 -151
- package/dist/resources/partner-fees/partner-fees.test.mjs +9 -10
- package/dist/resources/payins/index.d.mts +2 -2
- package/dist/resources/payins/index.d.ts +2 -2
- package/dist/resources/payins/payins-quotes.test.js +83 -151
- package/dist/resources/payins/payins-quotes.test.mjs +9 -10
- package/dist/resources/payins/payins.test.js +83 -151
- package/dist/resources/payins/payins.test.mjs +9 -10
- package/dist/resources/payins/quotes.d.mts +2 -2
- package/dist/resources/payins/quotes.d.ts +2 -2
- package/dist/resources/payouts/index.d.mts +2 -2
- package/dist/resources/payouts/index.d.ts +2 -2
- package/dist/resources/payouts/payouts.test.js +83 -151
- package/dist/resources/payouts/payouts.test.mjs +9 -10
- package/dist/resources/quotes/index.d.mts +2 -2
- package/dist/resources/quotes/index.d.ts +2 -2
- package/dist/resources/quotes/quotes.test.js +83 -151
- package/dist/resources/quotes/quotes.test.mjs +9 -10
- package/dist/resources/terms-of-service/index.d.mts +2 -2
- package/dist/resources/terms-of-service/index.d.ts +2 -2
- package/dist/resources/terms-of-service/terms-of-service.test.js +83 -151
- package/dist/resources/terms-of-service/terms-of-service.test.mjs +9 -10
- package/dist/resources/transfers/index.d.mts +2 -2
- package/dist/resources/transfers/index.d.ts +2 -2
- package/dist/resources/transfers/transfers.test.js +83 -151
- package/dist/resources/transfers/transfers.test.mjs +9 -10
- package/dist/resources/upload/index.d.mts +1 -1
- package/dist/resources/upload/index.d.ts +1 -1
- package/dist/resources/upload/upload.test.js +83 -151
- package/dist/resources/upload/upload.test.mjs +9 -10
- package/dist/resources/virtual-accounts/index.d.mts +9 -9
- package/dist/resources/virtual-accounts/index.d.ts +9 -9
- package/dist/resources/virtual-accounts/index.js +10 -10
- package/dist/resources/virtual-accounts/index.mjs +1 -1
- package/dist/resources/virtual-accounts/virtual-accounts.test.js +87 -155
- package/dist/resources/virtual-accounts/virtual-accounts.test.mjs +13 -14
- package/dist/resources/wallets/blockchain.d.mts +15 -15
- package/dist/resources/wallets/blockchain.d.ts +15 -15
- package/dist/resources/wallets/blockchain.js +14 -14
- package/dist/resources/wallets/blockchain.mjs +1 -1
- package/dist/resources/wallets/blockchain.test.js +91 -159
- package/dist/resources/wallets/blockchain.test.mjs +17 -18
- package/dist/resources/wallets/custodial.d.mts +11 -11
- package/dist/resources/wallets/custodial.d.ts +11 -11
- package/dist/resources/wallets/custodial.js +11 -11
- package/dist/resources/wallets/custodial.mjs +1 -1
- package/dist/resources/wallets/custodial.test.js +87 -155
- package/dist/resources/wallets/custodial.test.mjs +13 -14
- package/dist/resources/wallets/offramp.d.mts +9 -9
- package/dist/resources/wallets/offramp.d.ts +9 -9
- package/dist/resources/wallets/offramp.js +7 -7
- package/dist/resources/wallets/offramp.mjs +1 -1
- package/dist/resources/wallets/offramp.test.js +89 -157
- package/dist/resources/wallets/offramp.test.mjs +15 -16
- package/dist/resources/webhooks/index.d.mts +2 -2
- package/dist/resources/webhooks/index.d.ts +2 -2
- package/dist/resources/webhooks/webhooks.test.js +83 -151
- package/dist/resources/webhooks/webhooks.test.mjs +9 -10
- package/package.json +1 -1
- package/dist/chunk-NAGY6BLL.mjs +0 -79
- package/dist/resources/receivers/index.d.mts +0 -513
- package/dist/resources/receivers/index.d.ts +0 -513
- package/dist/resources/receivers/index.js +0 -118
- package/dist/resources/receivers/index.mjs +0 -9
- package/dist/resources/receivers/receivers.test.d.mts +0 -2
- package/dist/resources/receivers/receivers.test.d.ts +0 -2
- package/dist/resources/receivers/receivers.test.js +0 -20510
- package/dist/resources/receivers/receivers.test.mjs +0 -652
- package/dist/strict-omit-ByJhzKNC.d.mts +0 -3
- package/dist/strict-omit-ByJhzKNC.d.ts +0 -3
|
@@ -1,23 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createBlockchainWalletsResource,
|
|
3
3
|
init_blockchain
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-VAVDEV6P.mjs";
|
|
5
5
|
import {
|
|
6
6
|
createCustodialWalletsResource,
|
|
7
7
|
init_custodial
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-TVOMVVOO.mjs";
|
|
9
9
|
import {
|
|
10
10
|
createOfframpWalletsResource,
|
|
11
11
|
init_offramp
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-YHI3J2CL.mjs";
|
|
13
13
|
import {
|
|
14
14
|
createWebhookEndpointsResource,
|
|
15
15
|
init_webhooks
|
|
16
16
|
} from "./chunk-UC57SCKQ.mjs";
|
|
17
|
-
import {
|
|
18
|
-
createTermsOfServiceResource,
|
|
19
|
-
init_terms_of_service
|
|
20
|
-
} from "./chunk-Z6EYX4D3.mjs";
|
|
21
17
|
import {
|
|
22
18
|
createTransfersResource,
|
|
23
19
|
init_transfers
|
|
@@ -29,23 +25,23 @@ import {
|
|
|
29
25
|
import {
|
|
30
26
|
createVirtualAccountsResource,
|
|
31
27
|
init_virtual_accounts
|
|
32
|
-
} from "./chunk-
|
|
33
|
-
import {
|
|
34
|
-
createPayinsResource,
|
|
35
|
-
init_payins
|
|
36
|
-
} from "./chunk-VGU72ZNI.mjs";
|
|
28
|
+
} from "./chunk-SWTOSLUI.mjs";
|
|
37
29
|
import {
|
|
38
30
|
createPayinQuotesResource,
|
|
39
31
|
init_quotes
|
|
40
32
|
} from "./chunk-E7M4CJKR.mjs";
|
|
33
|
+
import {
|
|
34
|
+
createPayoutsResource,
|
|
35
|
+
init_payouts
|
|
36
|
+
} from "./chunk-F5Z45GCA.mjs";
|
|
41
37
|
import {
|
|
42
38
|
createQuotesResource,
|
|
43
39
|
init_quotes as init_quotes2
|
|
44
40
|
} from "./chunk-TBTA7A2P.mjs";
|
|
45
41
|
import {
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
} from "./chunk-
|
|
42
|
+
createTermsOfServiceResource,
|
|
43
|
+
init_terms_of_service
|
|
44
|
+
} from "./chunk-Z6EYX4D3.mjs";
|
|
49
45
|
import {
|
|
50
46
|
createCustomersResource,
|
|
51
47
|
init_customers
|
|
@@ -63,9 +59,9 @@ import {
|
|
|
63
59
|
init_partner_fees
|
|
64
60
|
} from "./chunk-RC5NN5UF.mjs";
|
|
65
61
|
import {
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
} from "./chunk-
|
|
62
|
+
createPayinsResource,
|
|
63
|
+
init_payins
|
|
64
|
+
} from "./chunk-VGU72ZNI.mjs";
|
|
69
65
|
import {
|
|
70
66
|
createApiKeysResource,
|
|
71
67
|
init_api_keys
|
|
@@ -77,7 +73,7 @@ import {
|
|
|
77
73
|
import {
|
|
78
74
|
createBankAccountsResource,
|
|
79
75
|
init_bank_accounts
|
|
80
|
-
} from "./chunk-
|
|
76
|
+
} from "./chunk-L23IOSI3.mjs";
|
|
81
77
|
import {
|
|
82
78
|
__async,
|
|
83
79
|
__esm,
|
|
@@ -89,7 +85,7 @@ import {
|
|
|
89
85
|
var version;
|
|
90
86
|
var init_package = __esm({
|
|
91
87
|
"package.json"() {
|
|
92
|
-
version = "
|
|
88
|
+
version = "4.0.1";
|
|
93
89
|
}
|
|
94
90
|
});
|
|
95
91
|
|
|
@@ -126,7 +122,6 @@ var init_client = __esm({
|
|
|
126
122
|
init_quotes();
|
|
127
123
|
init_payouts();
|
|
128
124
|
init_quotes2();
|
|
129
|
-
init_receivers();
|
|
130
125
|
init_terms_of_service();
|
|
131
126
|
init_transfers();
|
|
132
127
|
init_upload();
|
|
@@ -183,9 +178,6 @@ var init_client = __esm({
|
|
|
183
178
|
this.customers = __spreadProps(__spreadValues({}, createCustomersResource(this.instanceId, this.api)), {
|
|
184
179
|
bankAccounts: createBankAccountsResource(this.instanceId, this.api)
|
|
185
180
|
});
|
|
186
|
-
this.receivers = __spreadProps(__spreadValues({}, createReceiversResource(this.instanceId, this.api)), {
|
|
187
|
-
bankAccounts: createBankAccountsResource(this.instanceId, this.api)
|
|
188
|
-
});
|
|
189
181
|
this.virtualAccounts = createVirtualAccountsResource(this.instanceId, this.api);
|
|
190
182
|
this.wallets = {
|
|
191
183
|
blockchain: createBlockchainWalletsResource(this.instanceId, this.api),
|
|
@@ -9,135 +9,135 @@ function createBankAccountsResource(instanceId, client) {
|
|
|
9
9
|
return {
|
|
10
10
|
list(_a) {
|
|
11
11
|
var _b = _a, {
|
|
12
|
-
|
|
12
|
+
customer_id
|
|
13
13
|
} = _b, params = __objRest(_b, [
|
|
14
|
-
"
|
|
14
|
+
"customer_id"
|
|
15
15
|
]);
|
|
16
16
|
const queryParams = Object.keys(params).length ? `?${new URLSearchParams(params)}` : "";
|
|
17
17
|
return client.get(
|
|
18
|
-
`/instances/${instanceId}/
|
|
18
|
+
`/instances/${instanceId}/customers/${customer_id}/bank-accounts${queryParams}`
|
|
19
19
|
);
|
|
20
20
|
},
|
|
21
21
|
get({
|
|
22
|
-
|
|
22
|
+
customer_id,
|
|
23
23
|
id
|
|
24
24
|
}) {
|
|
25
25
|
return client.get(
|
|
26
|
-
`/instances/${instanceId}/
|
|
26
|
+
`/instances/${instanceId}/customers/${customer_id}/bank-accounts/${id}`
|
|
27
27
|
);
|
|
28
28
|
},
|
|
29
|
-
delete({
|
|
29
|
+
delete({ customer_id, id }) {
|
|
30
30
|
return client.delete(
|
|
31
|
-
`/instances/${instanceId}/
|
|
31
|
+
`/instances/${instanceId}/customers/${customer_id}/bank-accounts/${id}`
|
|
32
32
|
);
|
|
33
33
|
},
|
|
34
34
|
createPix(_c) {
|
|
35
35
|
var _d = _c, {
|
|
36
|
-
|
|
36
|
+
customer_id
|
|
37
37
|
} = _d, data = __objRest(_d, [
|
|
38
|
-
"
|
|
38
|
+
"customer_id"
|
|
39
39
|
]);
|
|
40
|
-
return client.post(`/instances/${instanceId}/
|
|
40
|
+
return client.post(`/instances/${instanceId}/customers/${customer_id}/bank-accounts`, __spreadValues({
|
|
41
41
|
type: "pix"
|
|
42
42
|
}, data));
|
|
43
43
|
},
|
|
44
44
|
createPixSafe(_e) {
|
|
45
45
|
var _f = _e, {
|
|
46
|
-
|
|
46
|
+
customer_id
|
|
47
47
|
} = _f, data = __objRest(_f, [
|
|
48
|
-
"
|
|
48
|
+
"customer_id"
|
|
49
49
|
]);
|
|
50
|
-
return client.post(`/instances/${instanceId}/
|
|
50
|
+
return client.post(`/instances/${instanceId}/customers/${customer_id}/bank-accounts`, __spreadValues({
|
|
51
51
|
type: "pix_safe"
|
|
52
52
|
}, data));
|
|
53
53
|
},
|
|
54
54
|
createArgentinaTransfers(_g) {
|
|
55
55
|
var _h = _g, {
|
|
56
|
-
|
|
56
|
+
customer_id
|
|
57
57
|
} = _h, data = __objRest(_h, [
|
|
58
|
-
"
|
|
58
|
+
"customer_id"
|
|
59
59
|
]);
|
|
60
|
-
return client.post(`/instances/${instanceId}/
|
|
60
|
+
return client.post(`/instances/${instanceId}/customers/${customer_id}/bank-accounts`, __spreadValues({
|
|
61
61
|
type: "transfers_bitso"
|
|
62
62
|
}, data));
|
|
63
63
|
},
|
|
64
64
|
createSpei(_i) {
|
|
65
65
|
var _j = _i, {
|
|
66
|
-
|
|
66
|
+
customer_id
|
|
67
67
|
} = _j, data = __objRest(_j, [
|
|
68
|
-
"
|
|
68
|
+
"customer_id"
|
|
69
69
|
]);
|
|
70
|
-
return client.post(`/instances/${instanceId}/
|
|
70
|
+
return client.post(`/instances/${instanceId}/customers/${customer_id}/bank-accounts`, __spreadValues({
|
|
71
71
|
type: "spei_bitso"
|
|
72
72
|
}, data));
|
|
73
73
|
},
|
|
74
74
|
createColombiaAch(_k) {
|
|
75
75
|
var _l = _k, {
|
|
76
|
-
|
|
76
|
+
customer_id
|
|
77
77
|
} = _l, data = __objRest(_l, [
|
|
78
|
-
"
|
|
78
|
+
"customer_id"
|
|
79
79
|
]);
|
|
80
|
-
return client.post(`/instances/${instanceId}/
|
|
80
|
+
return client.post(`/instances/${instanceId}/customers/${customer_id}/bank-accounts`, __spreadValues({
|
|
81
81
|
type: "ach_cop_bitso"
|
|
82
82
|
}, data));
|
|
83
83
|
},
|
|
84
84
|
createAch(_m) {
|
|
85
85
|
var _n = _m, {
|
|
86
|
-
|
|
86
|
+
customer_id
|
|
87
87
|
} = _n, data = __objRest(_n, [
|
|
88
|
-
"
|
|
88
|
+
"customer_id"
|
|
89
89
|
]);
|
|
90
|
-
return client.post(`/instances/${instanceId}/
|
|
90
|
+
return client.post(`/instances/${instanceId}/customers/${customer_id}/bank-accounts`, __spreadValues({
|
|
91
91
|
type: "ach"
|
|
92
92
|
}, data));
|
|
93
93
|
},
|
|
94
94
|
createWire(_o) {
|
|
95
95
|
var _p = _o, {
|
|
96
|
-
|
|
96
|
+
customer_id
|
|
97
97
|
} = _p, data = __objRest(_p, [
|
|
98
|
-
"
|
|
98
|
+
"customer_id"
|
|
99
99
|
]);
|
|
100
|
-
return client.post(`/instances/${instanceId}/
|
|
100
|
+
return client.post(`/instances/${instanceId}/customers/${customer_id}/bank-accounts`, __spreadValues({
|
|
101
101
|
type: "wire"
|
|
102
102
|
}, data));
|
|
103
103
|
},
|
|
104
104
|
createInternationalSwift(_q) {
|
|
105
105
|
var _r = _q, {
|
|
106
|
-
|
|
106
|
+
customer_id
|
|
107
107
|
} = _r, data = __objRest(_r, [
|
|
108
|
-
"
|
|
108
|
+
"customer_id"
|
|
109
109
|
]);
|
|
110
|
-
return client.post(`/instances/${instanceId}/
|
|
110
|
+
return client.post(`/instances/${instanceId}/customers/${customer_id}/bank-accounts`, __spreadValues({
|
|
111
111
|
type: "international_swift"
|
|
112
112
|
}, data));
|
|
113
113
|
},
|
|
114
114
|
createRtp(_s) {
|
|
115
115
|
var _t = _s, {
|
|
116
|
-
|
|
116
|
+
customer_id
|
|
117
117
|
} = _t, data = __objRest(_t, [
|
|
118
|
-
"
|
|
118
|
+
"customer_id"
|
|
119
119
|
]);
|
|
120
|
-
return client.post(`/instances/${instanceId}/
|
|
120
|
+
return client.post(`/instances/${instanceId}/customers/${customer_id}/bank-accounts`, __spreadValues({
|
|
121
121
|
type: "rtp"
|
|
122
122
|
}, data));
|
|
123
123
|
},
|
|
124
124
|
createTed(_u) {
|
|
125
125
|
var _v = _u, {
|
|
126
|
-
|
|
126
|
+
customer_id
|
|
127
127
|
} = _v, data = __objRest(_v, [
|
|
128
|
-
"
|
|
128
|
+
"customer_id"
|
|
129
129
|
]);
|
|
130
|
-
return client.post(`/instances/${instanceId}/
|
|
130
|
+
return client.post(`/instances/${instanceId}/customers/${customer_id}/bank-accounts`, __spreadValues({
|
|
131
131
|
type: "ted"
|
|
132
132
|
}, data));
|
|
133
133
|
},
|
|
134
134
|
createSepa(_w) {
|
|
135
135
|
var _x = _w, {
|
|
136
|
-
|
|
136
|
+
customer_id
|
|
137
137
|
} = _x, data = __objRest(_x, [
|
|
138
|
-
"
|
|
138
|
+
"customer_id"
|
|
139
139
|
]);
|
|
140
|
-
return client.post(`/instances/${instanceId}/
|
|
140
|
+
return client.post(`/instances/${instanceId}/customers/${customer_id}/bank-accounts`, __spreadValues({
|
|
141
141
|
type: "sepa"
|
|
142
142
|
}, data));
|
|
143
143
|
}
|
|
@@ -6,38 +6,38 @@ import {
|
|
|
6
6
|
// src/resources/virtual-accounts/index.ts
|
|
7
7
|
function createVirtualAccountsResource(instanceId, client) {
|
|
8
8
|
return {
|
|
9
|
-
list(
|
|
10
|
-
return client.get(`/instances/${instanceId}/
|
|
9
|
+
list(customer_id) {
|
|
10
|
+
return client.get(`/instances/${instanceId}/customers/${customer_id}/virtual-accounts`);
|
|
11
11
|
},
|
|
12
12
|
get({
|
|
13
|
-
|
|
13
|
+
customer_id,
|
|
14
14
|
id
|
|
15
15
|
}) {
|
|
16
16
|
return client.get(
|
|
17
|
-
`/instances/${instanceId}/
|
|
17
|
+
`/instances/${instanceId}/customers/${customer_id}/virtual-accounts/${id}`
|
|
18
18
|
);
|
|
19
19
|
},
|
|
20
20
|
create(_a) {
|
|
21
21
|
var _b = _a, {
|
|
22
|
-
|
|
22
|
+
customer_id
|
|
23
23
|
} = _b, data = __objRest(_b, [
|
|
24
|
-
"
|
|
24
|
+
"customer_id"
|
|
25
25
|
]);
|
|
26
26
|
return client.post(
|
|
27
|
-
`/instances/${instanceId}/
|
|
27
|
+
`/instances/${instanceId}/customers/${customer_id}/virtual-accounts`,
|
|
28
28
|
data
|
|
29
29
|
);
|
|
30
30
|
},
|
|
31
31
|
update(_c) {
|
|
32
32
|
var _d = _c, {
|
|
33
|
-
|
|
33
|
+
customer_id,
|
|
34
34
|
id
|
|
35
35
|
} = _d, data = __objRest(_d, [
|
|
36
|
-
"
|
|
36
|
+
"customer_id",
|
|
37
37
|
"id"
|
|
38
38
|
]);
|
|
39
39
|
return client.put(
|
|
40
|
-
`/instances/${instanceId}/
|
|
40
|
+
`/instances/${instanceId}/customers/${customer_id}/virtual-accounts/${id}`,
|
|
41
41
|
data
|
|
42
42
|
);
|
|
43
43
|
}
|
|
@@ -6,36 +6,36 @@ import {
|
|
|
6
6
|
// src/resources/wallets/custodial.ts
|
|
7
7
|
function createCustodialWalletsResource(instanceId, client) {
|
|
8
8
|
return {
|
|
9
|
-
list(
|
|
10
|
-
return client.get(`/instances/${instanceId}/
|
|
9
|
+
list(customer_id) {
|
|
10
|
+
return client.get(`/instances/${instanceId}/customers/${customer_id}/wallets`);
|
|
11
11
|
},
|
|
12
12
|
get({
|
|
13
|
-
|
|
13
|
+
customer_id,
|
|
14
14
|
id
|
|
15
15
|
}) {
|
|
16
|
-
return client.get(`/instances/${instanceId}/
|
|
16
|
+
return client.get(`/instances/${instanceId}/customers/${customer_id}/wallets/${id}`);
|
|
17
17
|
},
|
|
18
18
|
create(_a) {
|
|
19
19
|
var _b = _a, {
|
|
20
|
-
|
|
20
|
+
customer_id
|
|
21
21
|
} = _b, data = __objRest(_b, [
|
|
22
|
-
"
|
|
22
|
+
"customer_id"
|
|
23
23
|
]);
|
|
24
|
-
return client.post(`/instances/${instanceId}/
|
|
24
|
+
return client.post(`/instances/${instanceId}/customers/${customer_id}/wallets`, data);
|
|
25
25
|
},
|
|
26
26
|
getBalance({
|
|
27
|
-
|
|
27
|
+
customer_id,
|
|
28
28
|
id
|
|
29
29
|
}) {
|
|
30
30
|
return client.get(
|
|
31
|
-
`/instances/${instanceId}/
|
|
31
|
+
`/instances/${instanceId}/customers/${customer_id}/wallets/${id}/balance`
|
|
32
32
|
);
|
|
33
33
|
},
|
|
34
34
|
delete({
|
|
35
|
-
|
|
35
|
+
customer_id,
|
|
36
36
|
id
|
|
37
37
|
}) {
|
|
38
|
-
return client.delete(`/instances/${instanceId}/
|
|
38
|
+
return client.delete(`/instances/${instanceId}/customers/${customer_id}/wallets/${id}`);
|
|
39
39
|
}
|
|
40
40
|
};
|
|
41
41
|
}
|
|
@@ -8,19 +8,19 @@ import {
|
|
|
8
8
|
// src/resources/wallets/blockchain.ts
|
|
9
9
|
function createBlockchainWalletsResource(instanceId, client) {
|
|
10
10
|
return {
|
|
11
|
-
list(
|
|
11
|
+
list(customer_id) {
|
|
12
12
|
return client.get(
|
|
13
|
-
`/instances/${instanceId}/
|
|
13
|
+
`/instances/${instanceId}/customers/${customer_id}/blockchain-wallets`
|
|
14
14
|
);
|
|
15
15
|
},
|
|
16
16
|
createWithAddress(_a) {
|
|
17
17
|
var _b = _a, {
|
|
18
|
-
|
|
18
|
+
customer_id
|
|
19
19
|
} = _b, data = __objRest(_b, [
|
|
20
|
-
"
|
|
20
|
+
"customer_id"
|
|
21
21
|
]);
|
|
22
22
|
return client.post(
|
|
23
|
-
`/instances/${instanceId}/
|
|
23
|
+
`/instances/${instanceId}/customers/${customer_id}/blockchain-wallets`,
|
|
24
24
|
__spreadProps(__spreadValues({}, data), {
|
|
25
25
|
is_account_abstraction: true
|
|
26
26
|
})
|
|
@@ -28,36 +28,36 @@ function createBlockchainWalletsResource(instanceId, client) {
|
|
|
28
28
|
},
|
|
29
29
|
createWithHash(_c) {
|
|
30
30
|
var _d = _c, {
|
|
31
|
-
|
|
31
|
+
customer_id
|
|
32
32
|
} = _d, data = __objRest(_d, [
|
|
33
|
-
"
|
|
33
|
+
"customer_id"
|
|
34
34
|
]);
|
|
35
35
|
return client.post(
|
|
36
|
-
`/instances/${instanceId}/
|
|
36
|
+
`/instances/${instanceId}/customers/${customer_id}/blockchain-wallets`,
|
|
37
37
|
__spreadProps(__spreadValues({}, data), {
|
|
38
38
|
is_account_abstraction: false
|
|
39
39
|
})
|
|
40
40
|
);
|
|
41
41
|
},
|
|
42
|
-
getWalletMessage(
|
|
42
|
+
getWalletMessage(customer_id) {
|
|
43
43
|
return client.get(
|
|
44
|
-
`/instances/${instanceId}/
|
|
44
|
+
`/instances/${instanceId}/customers/${customer_id}/blockchain-wallets/sign-message`
|
|
45
45
|
);
|
|
46
46
|
},
|
|
47
47
|
get({
|
|
48
|
-
|
|
48
|
+
customer_id,
|
|
49
49
|
id
|
|
50
50
|
}) {
|
|
51
51
|
return client.get(
|
|
52
|
-
`/instances/${instanceId}/
|
|
52
|
+
`/instances/${instanceId}/customers/${customer_id}/blockchain-wallets/${id}`
|
|
53
53
|
);
|
|
54
54
|
},
|
|
55
55
|
delete({
|
|
56
|
-
|
|
56
|
+
customer_id,
|
|
57
57
|
id
|
|
58
58
|
}) {
|
|
59
59
|
return client.delete(
|
|
60
|
-
`/instances/${instanceId}/
|
|
60
|
+
`/instances/${instanceId}/customers/${customer_id}/blockchain-wallets/${id}`
|
|
61
61
|
);
|
|
62
62
|
},
|
|
63
63
|
createAssetTrustline(address) {
|
|
@@ -8,32 +8,32 @@ function createOfframpWalletsResource(instanceId, client) {
|
|
|
8
8
|
return {
|
|
9
9
|
list({
|
|
10
10
|
bank_account_id,
|
|
11
|
-
|
|
11
|
+
customer_id
|
|
12
12
|
}) {
|
|
13
13
|
return client.get(
|
|
14
|
-
`/instances/${instanceId}/
|
|
14
|
+
`/instances/${instanceId}/customers/${customer_id}/bank-accounts/${bank_account_id}/offramp-wallets`
|
|
15
15
|
);
|
|
16
16
|
},
|
|
17
17
|
create(_a) {
|
|
18
18
|
var _b = _a, {
|
|
19
|
-
|
|
19
|
+
customer_id,
|
|
20
20
|
bank_account_id
|
|
21
21
|
} = _b, data = __objRest(_b, [
|
|
22
|
-
"
|
|
22
|
+
"customer_id",
|
|
23
23
|
"bank_account_id"
|
|
24
24
|
]);
|
|
25
25
|
return client.post(
|
|
26
|
-
`/instances/${instanceId}/
|
|
26
|
+
`/instances/${instanceId}/customers/${customer_id}/bank-accounts/${bank_account_id}/offramp-wallets`,
|
|
27
27
|
data
|
|
28
28
|
);
|
|
29
29
|
},
|
|
30
30
|
get({
|
|
31
|
-
|
|
31
|
+
customer_id,
|
|
32
32
|
bank_account_id,
|
|
33
33
|
id
|
|
34
34
|
}) {
|
|
35
35
|
return client.get(
|
|
36
|
-
`/instances/${instanceId}/
|
|
36
|
+
`/instances/${instanceId}/customers/${customer_id}/bank-accounts/${bank_account_id}/offramp-wallets/${id}`
|
|
37
37
|
);
|
|
38
38
|
}
|
|
39
39
|
};
|
|
@@ -653,4 +653,4 @@ type PayoutTrackingPartnerFee = {
|
|
|
653
653
|
|
|
654
654
|
type KycStatus = "awaiting_contract" | "compliance_request" | "verifying" | "approved" | "rejected" | "deprecated" | "pending_review";
|
|
655
655
|
|
|
656
|
-
export type { AccountClass as A, BlindpayApiResponse as B, Country as C,
|
|
656
|
+
export type { AccountClass as A, BlindpayApiResponse as B, Country as C, BusinessType as D, EstimatedAnnualRevenue as E, KycStatus as K, Network as N, PaginationParams as P, Rail as R, StablecoinToken as S, TransactionStatus as T, BankAccountType as a, AchCopDocument as b, ArgentinaTransfers as c, BusinessIndustry as d, PayinTrackingTransaction as e, PayinTrackingPayment as f, PayinTrackingComplete as g, PayinTrackingPartnerFee as h, PayinPaymentMethod as i, Currency as j, PayerRules as k, PaginationMetadata as l, CurrencyType as m, PayoutTrackingTransaction as n, PayoutTrackingPayment as o, PayoutTrackingLiquidity as p, PayoutTrackingComplete as q, PayoutTrackingPartnerFee as r, TransactionDocumentType as s, TrackingStatus as t, AccountPurpose as u, SourceOfFundsDocType as v, SourceOfWealth as w, RecipientRelationship as x, SoleProprietorDocType as y, PurposeOfTransactions as z };
|
|
@@ -653,4 +653,4 @@ type PayoutTrackingPartnerFee = {
|
|
|
653
653
|
|
|
654
654
|
type KycStatus = "awaiting_contract" | "compliance_request" | "verifying" | "approved" | "rejected" | "deprecated" | "pending_review";
|
|
655
655
|
|
|
656
|
-
export type { AccountClass as A, BlindpayApiResponse as B, Country as C,
|
|
656
|
+
export type { AccountClass as A, BlindpayApiResponse as B, Country as C, BusinessType as D, EstimatedAnnualRevenue as E, KycStatus as K, Network as N, PaginationParams as P, Rail as R, StablecoinToken as S, TransactionStatus as T, BankAccountType as a, AchCopDocument as b, ArgentinaTransfers as c, BusinessIndustry as d, PayinTrackingTransaction as e, PayinTrackingPayment as f, PayinTrackingComplete as g, PayinTrackingPartnerFee as h, PayinPaymentMethod as i, Currency as j, PayerRules as k, PaginationMetadata as l, CurrencyType as m, PayoutTrackingTransaction as n, PayoutTrackingPayment as o, PayoutTrackingLiquidity as p, PayoutTrackingComplete as q, PayoutTrackingPartnerFee as r, TransactionDocumentType as s, TrackingStatus as t, AccountPurpose as u, SourceOfFundsDocType as v, SourceOfWealth as w, RecipientRelationship as x, SoleProprietorDocType as y, PurposeOfTransactions as z };
|
package/dist/index.d.mts
CHANGED
|
@@ -5,7 +5,7 @@ export { BankDetailKey, GetBankDetailsResponse, GetNaicsCodesResponse, GetRailsR
|
|
|
5
5
|
import { createBankAccountsResource } from './resources/bank-accounts/index.mjs';
|
|
6
6
|
export { CreateAchInput, CreateAchResponse, CreateArgentinaTransfersInput, CreateArgentinaTransfersResponse, CreateColombiaAchInput, CreateColombiaAchResponse, CreateInternationalSwiftInput, CreateInternationalSwiftResponse, CreatePixInput, CreatePixResponse, CreatePixSafeInput, CreatePixSafeResponse, CreateRtpInput, CreateRtpResponse, CreateSepaInput, CreateSepaResponse, CreateSpeiInput, CreateSpeiResponse, CreateTedInput, CreateTedResponse, CreateWireInput, CreateWireResponse, DeleteBankAccountInput, GetBankAccountInput, GetBankAccountResponse, ListBankAccountsInput, ListBankAccountsResponse, RecipientRelationship } from './resources/bank-accounts/index.mjs';
|
|
7
7
|
import { createCustomersResource } from './resources/customers/index.mjs';
|
|
8
|
-
export {
|
|
8
|
+
export { AmlHits, AmlStatus, BusinessWithStandardKYB, CreateBusinessWithStandardKYBInput, CreateBusinessWithStandardKYBResponse, CreateIndividualWithEnhancedKYCInput, CreateIndividualWithEnhancedKYCResponse, CreateIndividualWithStandardKYCInput, CreateIndividualWithStandardKYCResponse, DeleteCustomerInput, FraudWarning, GetCustomerInput, GetCustomerLimitsInput, GetCustomerLimitsResponse, GetCustomerResponse, GetLimitIncreaseRequestsInput, GetLimitIncreaseRequestsResponse, IdentificationDocument, IndividualWithEnhancedKYC, IndividualWithStandardKYC, KycType, LimitIncreaseRequestStatus, LimitIncreaseRequestSupportingDocumentType, ListCustomersInput, ListCustomersResponse, Owner, OwnerRole, OwnerTaxType, ProofOfAddressDocType, RequestLimitIncreaseInput, RequestLimitIncreaseResponse, UpdateCustomerInput } from './resources/customers/index.mjs';
|
|
9
9
|
import { createFeesResource } from './resources/fees/index.mjs';
|
|
10
10
|
export { FeeOptions, GetFeesResponse } from './resources/fees/index.mjs';
|
|
11
11
|
import { createInstancesResource } from './resources/instances/index.mjs';
|
|
@@ -20,8 +20,6 @@ import { createPayoutsResource } from './resources/payouts/index.mjs';
|
|
|
20
20
|
export { AuthorizeStellarTokenInput, AuthorizeStellarTokenResponse, CreateEvmPayoutInput, CreateEvmPayoutResponse, CreatePayoutInput, CreateSolanaPayoutInput, CreateSolanaPayoutResponse, CreateStellarPayoutInput, CreateStellarPayoutResponse, GetPayoutInput, GetPayoutResponse, GetPayoutTrackInput, GetPayoutTrackResponse, ListPayoutsInput, ListPayoutsResponse, Payout, SpeiProtocol, SubmitPayoutDocumentsInput, SubmitPayoutDocumentsResponse } from './resources/payouts/index.mjs';
|
|
21
21
|
import { createQuotesResource } from './resources/quotes/index.mjs';
|
|
22
22
|
export { CreateQuoteInput, CreateQuoteResponse, GetFxRateInput, GetFxRateResponse } from './resources/quotes/index.mjs';
|
|
23
|
-
import { createReceiversResource } from './resources/receivers/index.mjs';
|
|
24
|
-
export { AmlHits, AmlStatus, BusinessWithStandardKYB, CreateBusinessWithStandardKYBInput, CreateBusinessWithStandardKYBResponse, CreateIndividualWithEnhancedKYCInput, CreateIndividualWithEnhancedKYCResponse, CreateIndividualWithStandardKYCInput, CreateIndividualWithStandardKYCResponse, DeleteReceiverInput, FraudWarning, GetLimitIncreaseRequestsInput, GetLimitIncreaseRequestsResponse, GetReceiverInput, GetReceiverLimitsInput, GetReceiverLimitsResponse, GetReceiverResponse, IdentificationDocument, IndividualWithEnhancedKYC, IndividualWithStandardKYC, KycType, LimitIncreaseRequestStatus, LimitIncreaseRequestSupportingDocumentType, ListReceiversInput, ListReceiversResponse, Owner, OwnerRole, OwnerTaxType, ProofOfAddressDocType, RequestLimitIncreaseInput, RequestLimitIncreaseResponse, UpdateReceiverInput } from './resources/receivers/index.mjs';
|
|
25
23
|
import { createTermsOfServiceResource } from './resources/terms-of-service/index.mjs';
|
|
26
24
|
import { createTransfersResource } from './resources/transfers/index.mjs';
|
|
27
25
|
export { CreateTransferInput, CreateTransferQuoteInput, CreateTransferQuoteResponse, CreateTransferResponse, GetTransferInput, GetTransferResponse, GetTransferTrackInput, GetTransferTrackResponse, ListTransfersInput, ListTransfersResponse, Transfer, TransferTrackingStep, TransferTrackingTransactionMonitoring } from './resources/transfers/index.mjs';
|
|
@@ -37,9 +35,8 @@ import { createOfframpWalletsResource } from './resources/wallets/offramp.mjs';
|
|
|
37
35
|
export { CreateOfframpWalletInput, CreateOfframpWalletResponse, GetOfframpWalletInput, GetOfframpWalletResponse, ListOfframpWalletsInput, ListOfframpWalletsResponse, OfframpWallet, OfframpWalletNetwork } from './resources/wallets/offramp.mjs';
|
|
38
36
|
import { createWebhookEndpointsResource } from './resources/webhooks/index.mjs';
|
|
39
37
|
export { CreateWebhookEndpointInput, CreateWebhookEndpointResponse, DeleteWebhookEndpointInput, GetPortalAccessUrlResponse, GetWebhookEndpointSecretInput, GetWebhookEndpointSecretResponse, ListWebhookEndpointsResponse, WebhookEvents } from './resources/webhooks/index.mjs';
|
|
40
|
-
import './index.d-
|
|
41
|
-
import './api-client-
|
|
42
|
-
import './strict-omit-ByJhzKNC.mjs';
|
|
38
|
+
import './index.d-DK8eD9f3.mjs';
|
|
39
|
+
import './api-client-L9eGwH1U.mjs';
|
|
43
40
|
|
|
44
41
|
declare class BlindPay {
|
|
45
42
|
private readonly baseUrl;
|
|
@@ -61,15 +58,6 @@ declare class BlindPay {
|
|
|
61
58
|
readonly customers: ReturnType<typeof createCustomersResource> & {
|
|
62
59
|
bankAccounts: ReturnType<typeof createBankAccountsResource>;
|
|
63
60
|
};
|
|
64
|
-
/**
|
|
65
|
-
* @deprecated Use `customers` instead. The `/receivers` API surface is
|
|
66
|
-
* being renamed to `/customers` and will be removed in v4.0.0. See the
|
|
67
|
-
* migration changelog for details:
|
|
68
|
-
* https://www.blindpay.com/changelog/2026-06-04-customers-rename
|
|
69
|
-
*/
|
|
70
|
-
readonly receivers: ReturnType<typeof createReceiversResource> & {
|
|
71
|
-
bankAccounts: ReturnType<typeof createBankAccountsResource>;
|
|
72
|
-
};
|
|
73
61
|
readonly instances: ReturnType<typeof createInstancesResource> & {
|
|
74
62
|
apiKeys: ReturnType<typeof createApiKeysResource>;
|
|
75
63
|
webhookEndpoints: ReturnType<typeof createWebhookEndpointsResource>;
|
|
@@ -109,4 +97,4 @@ declare class BlindPay {
|
|
|
109
97
|
}): boolean;
|
|
110
98
|
}
|
|
111
99
|
|
|
112
|
-
export { BlindPay, createApiKeysResource, createAvailableResource, createBankAccountsResource, createBlockchainWalletsResource, createCustodialWalletsResource, createCustomersResource, createFeesResource, createInstancesResource, createOfframpWalletsResource, createPartnerFeesResource, createPayinQuotesResource, createPayinsResource, createPayoutsResource, createQuotesResource,
|
|
100
|
+
export { BlindPay, createApiKeysResource, createAvailableResource, createBankAccountsResource, createBlockchainWalletsResource, createCustodialWalletsResource, createCustomersResource, createFeesResource, createInstancesResource, createOfframpWalletsResource, createPartnerFeesResource, createPayinQuotesResource, createPayinsResource, createPayoutsResource, createQuotesResource, createTransfersResource, createUploadResource, createVirtualAccountsResource, createWebhookEndpointsResource };
|