@blindpay/node 3.10.0 → 4.0.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/{chunk-7PWF4J3Z.mjs → chunk-ECYZLQUR.mjs} +12 -12
- package/dist/{chunk-N4F3FBNB.mjs → chunk-L23IOSI3.mjs} +40 -40
- package/dist/chunk-SLKVEQUY.mjs +76 -0
- 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.mts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +148 -141
- package/dist/index.mjs +12 -12
- package/dist/resources/api-keys/api-keys.test.js +146 -139
- package/dist/resources/api-keys/api-keys.test.mjs +7 -7
- package/dist/resources/available/available.test.js +146 -139
- package/dist/resources/available/available.test.mjs +7 -7
- package/dist/resources/bank-accounts/bank-accounts.test.js +173 -166
- package/dist/resources/bank-accounts/bank-accounts.test.mjs +34 -34
- package/dist/resources/bank-accounts/index.d.mts +29 -29
- package/dist/resources/bank-accounts/index.d.ts +29 -29
- package/dist/resources/bank-accounts/index.js +40 -40
- package/dist/resources/bank-accounts/index.mjs +1 -1
- package/dist/resources/{receivers/receivers.test.js → customers/customers.test.js} +200 -193
- package/dist/resources/{receivers/receivers.test.mjs → customers/customers.test.mjs} +64 -64
- package/dist/resources/{receivers → customers}/index.d.mts +23 -23
- package/dist/resources/{receivers → customers}/index.d.ts +23 -23
- package/dist/resources/{receivers → customers}/index.js +32 -25
- package/dist/resources/customers/index.mjs +9 -0
- package/dist/resources/fees/fees.test.js +146 -139
- package/dist/resources/fees/fees.test.mjs +7 -7
- package/dist/resources/instances/instances.test.js +146 -139
- package/dist/resources/instances/instances.test.mjs +7 -7
- package/dist/resources/partner-fees/partner-fees.test.js +146 -139
- package/dist/resources/partner-fees/partner-fees.test.mjs +7 -7
- package/dist/resources/payins/payins-quotes.test.js +146 -139
- package/dist/resources/payins/payins-quotes.test.mjs +7 -7
- package/dist/resources/payins/payins.test.js +146 -139
- package/dist/resources/payins/payins.test.mjs +7 -7
- package/dist/resources/payouts/payouts.test.js +146 -139
- package/dist/resources/payouts/payouts.test.mjs +7 -7
- package/dist/resources/quotes/quotes.test.js +146 -139
- package/dist/resources/quotes/quotes.test.mjs +7 -7
- package/dist/resources/terms-of-service/terms-of-service.test.js +146 -139
- package/dist/resources/terms-of-service/terms-of-service.test.mjs +7 -7
- package/dist/resources/transfers/transfers.test.js +146 -139
- package/dist/resources/transfers/transfers.test.mjs +7 -7
- package/dist/resources/upload/upload.test.js +146 -139
- package/dist/resources/upload/upload.test.mjs +7 -7
- package/dist/resources/virtual-accounts/index.d.mts +7 -7
- package/dist/resources/virtual-accounts/index.d.ts +7 -7
- 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 +150 -143
- package/dist/resources/virtual-accounts/virtual-accounts.test.mjs +11 -11
- package/dist/resources/wallets/blockchain.d.mts +13 -13
- package/dist/resources/wallets/blockchain.d.ts +13 -13
- package/dist/resources/wallets/blockchain.js +14 -14
- package/dist/resources/wallets/blockchain.mjs +1 -1
- package/dist/resources/wallets/blockchain.test.js +154 -147
- package/dist/resources/wallets/blockchain.test.mjs +15 -15
- package/dist/resources/wallets/custodial.d.mts +9 -9
- package/dist/resources/wallets/custodial.d.ts +9 -9
- package/dist/resources/wallets/custodial.js +11 -11
- package/dist/resources/wallets/custodial.mjs +1 -1
- package/dist/resources/wallets/custodial.test.js +150 -143
- package/dist/resources/wallets/custodial.test.mjs +11 -11
- package/dist/resources/wallets/offramp.d.mts +7 -7
- package/dist/resources/wallets/offramp.d.ts +7 -7
- package/dist/resources/wallets/offramp.js +7 -7
- package/dist/resources/wallets/offramp.mjs +1 -1
- package/dist/resources/wallets/offramp.test.js +152 -145
- package/dist/resources/wallets/offramp.test.mjs +13 -13
- package/dist/resources/webhooks/webhooks.test.js +146 -139
- package/dist/resources/webhooks/webhooks.test.mjs +7 -7
- package/package.json +1 -1
- package/dist/chunk-YIZJM2GU.mjs +0 -69
- package/dist/resources/receivers/index.mjs +0 -9
- /package/dist/resources/{receivers/receivers.test.d.mts → customers/customers.test.d.mts} +0 -0
- /package/dist/resources/{receivers/receivers.test.d.ts → customers/customers.test.d.ts} +0 -0
|
@@ -53,135 +53,135 @@ function createBankAccountsResource(instanceId, client) {
|
|
|
53
53
|
return {
|
|
54
54
|
list(_a) {
|
|
55
55
|
var _b = _a, {
|
|
56
|
-
|
|
56
|
+
customer_id
|
|
57
57
|
} = _b, params = __objRest(_b, [
|
|
58
|
-
"
|
|
58
|
+
"customer_id"
|
|
59
59
|
]);
|
|
60
60
|
const queryParams = Object.keys(params).length ? `?${new URLSearchParams(params)}` : "";
|
|
61
61
|
return client.get(
|
|
62
|
-
`/instances/${instanceId}/
|
|
62
|
+
`/instances/${instanceId}/customers/${customer_id}/bank-accounts${queryParams}`
|
|
63
63
|
);
|
|
64
64
|
},
|
|
65
65
|
get({
|
|
66
|
-
|
|
66
|
+
customer_id,
|
|
67
67
|
id
|
|
68
68
|
}) {
|
|
69
69
|
return client.get(
|
|
70
|
-
`/instances/${instanceId}/
|
|
70
|
+
`/instances/${instanceId}/customers/${customer_id}/bank-accounts/${id}`
|
|
71
71
|
);
|
|
72
72
|
},
|
|
73
|
-
delete({
|
|
73
|
+
delete({ customer_id, id }) {
|
|
74
74
|
return client.delete(
|
|
75
|
-
`/instances/${instanceId}/
|
|
75
|
+
`/instances/${instanceId}/customers/${customer_id}/bank-accounts/${id}`
|
|
76
76
|
);
|
|
77
77
|
},
|
|
78
78
|
createPix(_c) {
|
|
79
79
|
var _d = _c, {
|
|
80
|
-
|
|
80
|
+
customer_id
|
|
81
81
|
} = _d, data = __objRest(_d, [
|
|
82
|
-
"
|
|
82
|
+
"customer_id"
|
|
83
83
|
]);
|
|
84
|
-
return client.post(`/instances/${instanceId}/
|
|
84
|
+
return client.post(`/instances/${instanceId}/customers/${customer_id}/bank-accounts`, __spreadValues({
|
|
85
85
|
type: "pix"
|
|
86
86
|
}, data));
|
|
87
87
|
},
|
|
88
88
|
createPixSafe(_e) {
|
|
89
89
|
var _f = _e, {
|
|
90
|
-
|
|
90
|
+
customer_id
|
|
91
91
|
} = _f, data = __objRest(_f, [
|
|
92
|
-
"
|
|
92
|
+
"customer_id"
|
|
93
93
|
]);
|
|
94
|
-
return client.post(`/instances/${instanceId}/
|
|
94
|
+
return client.post(`/instances/${instanceId}/customers/${customer_id}/bank-accounts`, __spreadValues({
|
|
95
95
|
type: "pix_safe"
|
|
96
96
|
}, data));
|
|
97
97
|
},
|
|
98
98
|
createArgentinaTransfers(_g) {
|
|
99
99
|
var _h = _g, {
|
|
100
|
-
|
|
100
|
+
customer_id
|
|
101
101
|
} = _h, data = __objRest(_h, [
|
|
102
|
-
"
|
|
102
|
+
"customer_id"
|
|
103
103
|
]);
|
|
104
|
-
return client.post(`/instances/${instanceId}/
|
|
104
|
+
return client.post(`/instances/${instanceId}/customers/${customer_id}/bank-accounts`, __spreadValues({
|
|
105
105
|
type: "transfers_bitso"
|
|
106
106
|
}, data));
|
|
107
107
|
},
|
|
108
108
|
createSpei(_i) {
|
|
109
109
|
var _j = _i, {
|
|
110
|
-
|
|
110
|
+
customer_id
|
|
111
111
|
} = _j, data = __objRest(_j, [
|
|
112
|
-
"
|
|
112
|
+
"customer_id"
|
|
113
113
|
]);
|
|
114
|
-
return client.post(`/instances/${instanceId}/
|
|
114
|
+
return client.post(`/instances/${instanceId}/customers/${customer_id}/bank-accounts`, __spreadValues({
|
|
115
115
|
type: "spei_bitso"
|
|
116
116
|
}, data));
|
|
117
117
|
},
|
|
118
118
|
createColombiaAch(_k) {
|
|
119
119
|
var _l = _k, {
|
|
120
|
-
|
|
120
|
+
customer_id
|
|
121
121
|
} = _l, data = __objRest(_l, [
|
|
122
|
-
"
|
|
122
|
+
"customer_id"
|
|
123
123
|
]);
|
|
124
|
-
return client.post(`/instances/${instanceId}/
|
|
124
|
+
return client.post(`/instances/${instanceId}/customers/${customer_id}/bank-accounts`, __spreadValues({
|
|
125
125
|
type: "ach_cop_bitso"
|
|
126
126
|
}, data));
|
|
127
127
|
},
|
|
128
128
|
createAch(_m) {
|
|
129
129
|
var _n = _m, {
|
|
130
|
-
|
|
130
|
+
customer_id
|
|
131
131
|
} = _n, data = __objRest(_n, [
|
|
132
|
-
"
|
|
132
|
+
"customer_id"
|
|
133
133
|
]);
|
|
134
|
-
return client.post(`/instances/${instanceId}/
|
|
134
|
+
return client.post(`/instances/${instanceId}/customers/${customer_id}/bank-accounts`, __spreadValues({
|
|
135
135
|
type: "ach"
|
|
136
136
|
}, data));
|
|
137
137
|
},
|
|
138
138
|
createWire(_o) {
|
|
139
139
|
var _p = _o, {
|
|
140
|
-
|
|
140
|
+
customer_id
|
|
141
141
|
} = _p, data = __objRest(_p, [
|
|
142
|
-
"
|
|
142
|
+
"customer_id"
|
|
143
143
|
]);
|
|
144
|
-
return client.post(`/instances/${instanceId}/
|
|
144
|
+
return client.post(`/instances/${instanceId}/customers/${customer_id}/bank-accounts`, __spreadValues({
|
|
145
145
|
type: "wire"
|
|
146
146
|
}, data));
|
|
147
147
|
},
|
|
148
148
|
createInternationalSwift(_q) {
|
|
149
149
|
var _r = _q, {
|
|
150
|
-
|
|
150
|
+
customer_id
|
|
151
151
|
} = _r, data = __objRest(_r, [
|
|
152
|
-
"
|
|
152
|
+
"customer_id"
|
|
153
153
|
]);
|
|
154
|
-
return client.post(`/instances/${instanceId}/
|
|
154
|
+
return client.post(`/instances/${instanceId}/customers/${customer_id}/bank-accounts`, __spreadValues({
|
|
155
155
|
type: "international_swift"
|
|
156
156
|
}, data));
|
|
157
157
|
},
|
|
158
158
|
createRtp(_s) {
|
|
159
159
|
var _t = _s, {
|
|
160
|
-
|
|
160
|
+
customer_id
|
|
161
161
|
} = _t, data = __objRest(_t, [
|
|
162
|
-
"
|
|
162
|
+
"customer_id"
|
|
163
163
|
]);
|
|
164
|
-
return client.post(`/instances/${instanceId}/
|
|
164
|
+
return client.post(`/instances/${instanceId}/customers/${customer_id}/bank-accounts`, __spreadValues({
|
|
165
165
|
type: "rtp"
|
|
166
166
|
}, data));
|
|
167
167
|
},
|
|
168
168
|
createTed(_u) {
|
|
169
169
|
var _v = _u, {
|
|
170
|
-
|
|
170
|
+
customer_id
|
|
171
171
|
} = _v, data = __objRest(_v, [
|
|
172
|
-
"
|
|
172
|
+
"customer_id"
|
|
173
173
|
]);
|
|
174
|
-
return client.post(`/instances/${instanceId}/
|
|
174
|
+
return client.post(`/instances/${instanceId}/customers/${customer_id}/bank-accounts`, __spreadValues({
|
|
175
175
|
type: "ted"
|
|
176
176
|
}, data));
|
|
177
177
|
},
|
|
178
178
|
createSepa(_w) {
|
|
179
179
|
var _x = _w, {
|
|
180
|
-
|
|
180
|
+
customer_id
|
|
181
181
|
} = _x, data = __objRest(_x, [
|
|
182
|
-
"
|
|
182
|
+
"customer_id"
|
|
183
183
|
]);
|
|
184
|
-
return client.post(`/instances/${instanceId}/
|
|
184
|
+
return client.post(`/instances/${instanceId}/customers/${customer_id}/bank-accounts`, __spreadValues({
|
|
185
185
|
type: "sepa"
|
|
186
186
|
}, data));
|
|
187
187
|
}
|