@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
|
@@ -8,27 +8,26 @@ import {
|
|
|
8
8
|
import {
|
|
9
9
|
BlindPay,
|
|
10
10
|
init_client
|
|
11
|
-
} from "../../chunk-
|
|
12
|
-
import "../../chunk-
|
|
13
|
-
import "../../chunk-
|
|
14
|
-
import "../../chunk-
|
|
11
|
+
} from "../../chunk-IJSACZHV.mjs";
|
|
12
|
+
import "../../chunk-VAVDEV6P.mjs";
|
|
13
|
+
import "../../chunk-TVOMVVOO.mjs";
|
|
14
|
+
import "../../chunk-YHI3J2CL.mjs";
|
|
15
15
|
import "../../chunk-UC57SCKQ.mjs";
|
|
16
|
-
import "../../chunk-Z6EYX4D3.mjs";
|
|
17
16
|
import "../../chunk-ISHZTBAN.mjs";
|
|
18
17
|
import "../../chunk-UDRMLZWT.mjs";
|
|
19
|
-
import "../../chunk-
|
|
20
|
-
import "../../chunk-VGU72ZNI.mjs";
|
|
18
|
+
import "../../chunk-SWTOSLUI.mjs";
|
|
21
19
|
import "../../chunk-E7M4CJKR.mjs";
|
|
20
|
+
import "../../chunk-F5Z45GCA.mjs";
|
|
22
21
|
import "../../chunk-TBTA7A2P.mjs";
|
|
23
|
-
import "../../chunk-
|
|
22
|
+
import "../../chunk-Z6EYX4D3.mjs";
|
|
24
23
|
import "../../chunk-SLKVEQUY.mjs";
|
|
25
24
|
import "../../chunk-ALHMJWQN.mjs";
|
|
26
25
|
import "../../chunk-KYOUR4KX.mjs";
|
|
27
26
|
import "../../chunk-RC5NN5UF.mjs";
|
|
28
|
-
import "../../chunk-
|
|
27
|
+
import "../../chunk-VGU72ZNI.mjs";
|
|
29
28
|
import "../../chunk-LRHWT4JU.mjs";
|
|
30
29
|
import "../../chunk-WE73MTQL.mjs";
|
|
31
|
-
import "../../chunk-
|
|
30
|
+
import "../../chunk-L23IOSI3.mjs";
|
|
32
31
|
import {
|
|
33
32
|
__async,
|
|
34
33
|
__commonJS
|
|
@@ -54,8 +53,8 @@ var require_bank_accounts_test = __commonJS({
|
|
|
54
53
|
fetchMock.mockResponseOnce(JSON.stringify(mockedPixAccount), {
|
|
55
54
|
headers: { "Content-Type": "application/json" }
|
|
56
55
|
});
|
|
57
|
-
const { data, error } = yield blindpay.
|
|
58
|
-
|
|
56
|
+
const { data, error } = yield blindpay.customers.bankAccounts.createPix({
|
|
57
|
+
customer_id: "re_000000000000",
|
|
59
58
|
name: "PIX Account",
|
|
60
59
|
pix_key: "14947677768"
|
|
61
60
|
});
|
|
@@ -77,8 +76,8 @@ var require_bank_accounts_test = __commonJS({
|
|
|
77
76
|
fetchMock.mockResponseOnce(JSON.stringify(mockedArgentinaTransfersAccount), {
|
|
78
77
|
headers: { "Content-Type": "application/json" }
|
|
79
78
|
});
|
|
80
|
-
const { data, error } = yield blindpay.
|
|
81
|
-
|
|
79
|
+
const { data, error } = yield blindpay.customers.bankAccounts.createArgentinaTransfers({
|
|
80
|
+
customer_id: "re_000000000000",
|
|
82
81
|
name: "Argentina Transfers Account",
|
|
83
82
|
beneficiary_name: "Individual full name or business name",
|
|
84
83
|
transfers_type: "CVU",
|
|
@@ -103,8 +102,8 @@ var require_bank_accounts_test = __commonJS({
|
|
|
103
102
|
fetchMock.mockResponseOnce(JSON.stringify(mockedSpeiAccount), {
|
|
104
103
|
headers: { "Content-Type": "application/json" }
|
|
105
104
|
});
|
|
106
|
-
const { data, error } = yield blindpay.
|
|
107
|
-
|
|
105
|
+
const { data, error } = yield blindpay.customers.bankAccounts.createSpei({
|
|
106
|
+
customer_id: "re_000000000000",
|
|
108
107
|
name: "SPEI Account",
|
|
109
108
|
beneficiary_name: "Individual full name or business name",
|
|
110
109
|
spei_protocol: "clabe",
|
|
@@ -134,8 +133,8 @@ var require_bank_accounts_test = __commonJS({
|
|
|
134
133
|
fetchMock.mockResponseOnce(JSON.stringify(mockedColombiaAchAccount), {
|
|
135
134
|
headers: { "Content-Type": "application/json" }
|
|
136
135
|
});
|
|
137
|
-
const { data, error } = yield blindpay.
|
|
138
|
-
|
|
136
|
+
const { data, error } = yield blindpay.customers.bankAccounts.createColombiaAch({
|
|
137
|
+
customer_id: "re_000000000000",
|
|
139
138
|
name: "Colombia ACH Account",
|
|
140
139
|
account_type: "checking",
|
|
141
140
|
ach_cop_beneficiary_first_name: "Fernando",
|
|
@@ -180,8 +179,8 @@ var require_bank_accounts_test = __commonJS({
|
|
|
180
179
|
fetchMock.mockResponseOnce(JSON.stringify(mockedAchAccount), {
|
|
181
180
|
headers: { "Content-Type": "application/json" }
|
|
182
181
|
});
|
|
183
|
-
const { data, error } = yield blindpay.
|
|
184
|
-
|
|
182
|
+
const { data, error } = yield blindpay.customers.bankAccounts.createAch({
|
|
183
|
+
customer_id: "re_000000000000",
|
|
185
184
|
name: "ACH Account",
|
|
186
185
|
account_class: "individual",
|
|
187
186
|
account_number: "1001001234",
|
|
@@ -221,8 +220,8 @@ var require_bank_accounts_test = __commonJS({
|
|
|
221
220
|
fetchMock.mockResponseOnce(JSON.stringify(mockedWireAccount), {
|
|
222
221
|
headers: { "Content-Type": "application/json" }
|
|
223
222
|
});
|
|
224
|
-
const { data, error } = yield blindpay.
|
|
225
|
-
|
|
223
|
+
const { data, error } = yield blindpay.customers.bankAccounts.createWire({
|
|
224
|
+
customer_id: "re_000000000000",
|
|
226
225
|
name: "Wire Account",
|
|
227
226
|
account_class: "individual",
|
|
228
227
|
account_number: "1001001234",
|
|
@@ -281,8 +280,8 @@ var require_bank_accounts_test = __commonJS({
|
|
|
281
280
|
fetchMock.mockResponseOnce(JSON.stringify(mockedInternationalSwiftAccount), {
|
|
282
281
|
headers: { "Content-Type": "application/json" }
|
|
283
282
|
});
|
|
284
|
-
const { data, error } = yield blindpay.
|
|
285
|
-
|
|
283
|
+
const { data, error } = yield blindpay.customers.bankAccounts.createInternationalSwift({
|
|
284
|
+
customer_id: "re_000000000000",
|
|
286
285
|
name: "International Swift Account",
|
|
287
286
|
account_class: "individual",
|
|
288
287
|
recipient_relationship: "first_party",
|
|
@@ -331,8 +330,8 @@ var require_bank_accounts_test = __commonJS({
|
|
|
331
330
|
fetchMock.mockResponseOnce(JSON.stringify(mockedRtpAccount), {
|
|
332
331
|
headers: { "Content-Type": "application/json" }
|
|
333
332
|
});
|
|
334
|
-
const { data, error } = yield blindpay.
|
|
335
|
-
|
|
333
|
+
const { data, error } = yield blindpay.customers.bankAccounts.createRtp({
|
|
334
|
+
customer_id: "re_000000000000",
|
|
336
335
|
name: "John Doe RTP",
|
|
337
336
|
account_class: "individual",
|
|
338
337
|
beneficiary_name: "John Doe",
|
|
@@ -353,7 +352,7 @@ var require_bank_accounts_test = __commonJS({
|
|
|
353
352
|
it("should get a bank account", () => __async(null, null, function* () {
|
|
354
353
|
const mockedBankAccount = {
|
|
355
354
|
id: "ba_000000000000",
|
|
356
|
-
|
|
355
|
+
customer_id: "rcv_123",
|
|
357
356
|
account_holder_name: "Individual full name or business name",
|
|
358
357
|
account_number: "1001001234",
|
|
359
358
|
routing_number: "012345678",
|
|
@@ -368,8 +367,8 @@ var require_bank_accounts_test = __commonJS({
|
|
|
368
367
|
fetchMock.mockResponseOnce(JSON.stringify(mockedBankAccount), {
|
|
369
368
|
headers: { "Content-Type": "application/json" }
|
|
370
369
|
});
|
|
371
|
-
const { data, error } = yield blindpay.
|
|
372
|
-
|
|
370
|
+
const { data, error } = yield blindpay.customers.bankAccounts.get({
|
|
371
|
+
customer_id: "re_000000000000",
|
|
373
372
|
id: "ba_000000000000"
|
|
374
373
|
});
|
|
375
374
|
globalExpect(error).toBeNull();
|
|
@@ -378,74 +377,72 @@ var require_bank_accounts_test = __commonJS({
|
|
|
378
377
|
});
|
|
379
378
|
describe("List bank accounts", () => {
|
|
380
379
|
it("should list bank accounts", () => __async(null, null, function* () {
|
|
381
|
-
const mockedBankAccounts =
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
]
|
|
443
|
-
};
|
|
380
|
+
const mockedBankAccounts = [
|
|
381
|
+
{
|
|
382
|
+
id: "ba_000000000000",
|
|
383
|
+
type: "wire",
|
|
384
|
+
name: "Bank Account Name",
|
|
385
|
+
pix_key: "14947677768",
|
|
386
|
+
beneficiary_name: "Individual full name or business name",
|
|
387
|
+
routing_number: "012345678",
|
|
388
|
+
account_number: "1001001234",
|
|
389
|
+
account_type: "checking",
|
|
390
|
+
account_class: "individual",
|
|
391
|
+
address_line_1: "Address line 1",
|
|
392
|
+
address_line_2: "Address line 2",
|
|
393
|
+
city: "City",
|
|
394
|
+
state_province_region: "State/Province/Region",
|
|
395
|
+
country: "US",
|
|
396
|
+
postal_code: "Postal code",
|
|
397
|
+
spei_protocol: "clabe",
|
|
398
|
+
spei_institution_code: "40002",
|
|
399
|
+
spei_clabe: "5482347403740546",
|
|
400
|
+
transfers_type: "CVU",
|
|
401
|
+
transfers_account: "BM123123123123",
|
|
402
|
+
ach_cop_beneficiary_first_name: "Fernando",
|
|
403
|
+
ach_cop_beneficiary_last_name: "Guzman Alarc\xF3n",
|
|
404
|
+
ach_cop_document_id: "1661105408",
|
|
405
|
+
ach_cop_document_type: "CC",
|
|
406
|
+
ach_cop_email: "fernando.guzman@gmail.com",
|
|
407
|
+
ach_cop_bank_code: "051",
|
|
408
|
+
ach_cop_bank_account: "12345678",
|
|
409
|
+
swift_code_bic: "123456789",
|
|
410
|
+
swift_account_holder_name: "John Doe",
|
|
411
|
+
swift_account_number_iban: "123456789",
|
|
412
|
+
swift_beneficiary_address_line_1: "123 Main Street, Suite 100, Downtown District, City Center CP 12345",
|
|
413
|
+
swift_beneficiary_address_line_2: "456 Oak Avenue, Building 7, Financial District, Business Center CP 54321",
|
|
414
|
+
swift_beneficiary_country: "MX",
|
|
415
|
+
swift_beneficiary_city: "City",
|
|
416
|
+
swift_beneficiary_state_province_region: "District",
|
|
417
|
+
swift_beneficiary_postal_code: "11530",
|
|
418
|
+
swift_bank_name: "Banco Regional SA",
|
|
419
|
+
swift_bank_address_line_1: "123 Main Street, Suite 100, Downtown District, City Center CP 12345",
|
|
420
|
+
swift_bank_address_line_2: "456 Oak Avenue, Building 7, Financial District, Business Center CP 54321",
|
|
421
|
+
swift_bank_country: "MX",
|
|
422
|
+
swift_bank_city: "City",
|
|
423
|
+
swift_bank_state_province_region: "District",
|
|
424
|
+
swift_bank_postal_code: "11530",
|
|
425
|
+
swift_intermediary_bank_swift_code_bic: "AEIBARB1",
|
|
426
|
+
swift_intermediary_bank_account_number_iban: "123456789",
|
|
427
|
+
swift_intermediary_bank_name: "Banco Regional SA",
|
|
428
|
+
swift_intermediary_bank_country: "US",
|
|
429
|
+
tron_wallet_hash: "TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t",
|
|
430
|
+
offramp_wallets: [
|
|
431
|
+
{
|
|
432
|
+
address: "TALJN9zTTEL9TVBb4WuTt6wLvPqJZr3hvb",
|
|
433
|
+
id: "ow_000000000000",
|
|
434
|
+
network: "tron",
|
|
435
|
+
external_id: "your_external_id"
|
|
436
|
+
}
|
|
437
|
+
],
|
|
438
|
+
created_at: "2021-01-01T00:00:00Z"
|
|
439
|
+
}
|
|
440
|
+
];
|
|
444
441
|
fetchMock.mockResponseOnce(JSON.stringify(mockedBankAccounts), {
|
|
445
442
|
headers: { "Content-Type": "application/json" }
|
|
446
443
|
});
|
|
447
|
-
const { data, error } = yield blindpay.
|
|
448
|
-
|
|
444
|
+
const { data, error } = yield blindpay.customers.bankAccounts.list({
|
|
445
|
+
customer_id: "re_000000000000"
|
|
449
446
|
});
|
|
450
447
|
globalExpect(error).toBeNull();
|
|
451
448
|
globalExpect(data).toEqual(mockedBankAccounts);
|
|
@@ -468,8 +465,8 @@ var require_bank_accounts_test = __commonJS({
|
|
|
468
465
|
fetchMock.mockResponseOnce(JSON.stringify(mockedPixSafeAccount), {
|
|
469
466
|
headers: { "Content-Type": "application/json" }
|
|
470
467
|
});
|
|
471
|
-
const { data, error } = yield blindpay.
|
|
472
|
-
|
|
468
|
+
const { data, error } = yield blindpay.customers.bankAccounts.createPixSafe({
|
|
469
|
+
customer_id: "re_000000000000",
|
|
473
470
|
name: "PIX Safe Account",
|
|
474
471
|
beneficiary_name: "Maria Silva",
|
|
475
472
|
account_number: "123456789",
|
|
@@ -504,8 +501,8 @@ var require_bank_accounts_test = __commonJS({
|
|
|
504
501
|
fetchMock.mockResponseOnce(JSON.stringify(mockedSepaAccount), {
|
|
505
502
|
headers: { "Content-Type": "application/json" }
|
|
506
503
|
});
|
|
507
|
-
const { data, error } = yield blindpay.
|
|
508
|
-
|
|
504
|
+
const { data, error } = yield blindpay.customers.bankAccounts.createSepa({
|
|
505
|
+
customer_id: "re_000000000000",
|
|
509
506
|
name: "SEPA Account",
|
|
510
507
|
account_class: "individual",
|
|
511
508
|
sepa_iban: "BE68539007547034",
|
|
@@ -525,8 +522,8 @@ var require_bank_accounts_test = __commonJS({
|
|
|
525
522
|
fetchMock.mockResponseOnce(JSON.stringify({ data: null }), {
|
|
526
523
|
headers: { "Content-Type": "application/json" }
|
|
527
524
|
});
|
|
528
|
-
const { data, error } = yield blindpay.
|
|
529
|
-
|
|
525
|
+
const { data, error } = yield blindpay.customers.bankAccounts.delete({
|
|
526
|
+
customer_id: "re_000000000000",
|
|
530
527
|
id: "ba_000000000000"
|
|
531
528
|
});
|
|
532
529
|
globalExpect(error).toBeNull();
|
|
@@ -1,96 +1,94 @@
|
|
|
1
|
-
import { R as Rail, C as Country, B as BlindpayApiResponse, a as BankAccountType, A as AccountClass, b as AchCopDocument, c as ArgentinaTransfers, d as BusinessIndustry } from '../../index.d-
|
|
2
|
-
import { I as InternalApiClient } from '../../api-client-
|
|
1
|
+
import { R as Rail, C as Country, B as BlindpayApiResponse, a as BankAccountType, A as AccountClass, b as AchCopDocument, c as ArgentinaTransfers, d as BusinessIndustry } from '../../index.d-DK8eD9f3.mjs';
|
|
2
|
+
import { I as InternalApiClient } from '../../api-client-L9eGwH1U.mjs';
|
|
3
3
|
import { SpeiProtocol } from '../payouts/index.mjs';
|
|
4
4
|
|
|
5
5
|
type RecipientRelationship = "first_party" | "employee" | "independent_contractor" | "vendor_or_supplier" | "subsidiary_or_affiliate" | "merchant_or_partner" | "customer" | "landlord" | "family" | "other";
|
|
6
6
|
type ListBankAccountsInput = {
|
|
7
|
-
|
|
7
|
+
customer_id: string;
|
|
8
8
|
status?: string;
|
|
9
9
|
type?: Rail;
|
|
10
10
|
name?: string;
|
|
11
11
|
bank_account_id?: string;
|
|
12
12
|
country?: Country;
|
|
13
13
|
};
|
|
14
|
-
type ListBankAccountsResponse = {
|
|
15
|
-
|
|
14
|
+
type ListBankAccountsResponse = Array<{
|
|
15
|
+
id: string;
|
|
16
|
+
type: Rail;
|
|
17
|
+
name: string;
|
|
18
|
+
pix_key?: string;
|
|
19
|
+
beneficiary_name?: string;
|
|
20
|
+
routing_number?: string;
|
|
21
|
+
account_number?: string;
|
|
22
|
+
account_type?: BankAccountType;
|
|
23
|
+
account_class?: AccountClass;
|
|
24
|
+
address_line_1?: string;
|
|
25
|
+
address_line_2?: string;
|
|
26
|
+
city?: string;
|
|
27
|
+
state_province_region?: string;
|
|
28
|
+
country?: Country;
|
|
29
|
+
postal_code?: string;
|
|
30
|
+
spei_protocol?: string;
|
|
31
|
+
spei_institution_code?: string;
|
|
32
|
+
spei_clabe?: string;
|
|
33
|
+
transfers_type?: "CVU" | "CBU" | "ALIAS";
|
|
34
|
+
transfers_account?: string;
|
|
35
|
+
ach_cop_beneficiary_first_name?: string;
|
|
36
|
+
ach_cop_beneficiary_last_name?: string;
|
|
37
|
+
ach_cop_document_id?: string;
|
|
38
|
+
ach_cop_document_type?: AchCopDocument;
|
|
39
|
+
ach_cop_email?: string;
|
|
40
|
+
ach_cop_bank_code?: string;
|
|
41
|
+
ach_cop_bank_account?: string;
|
|
42
|
+
swift_code_bic?: string;
|
|
43
|
+
swift_account_holder_name?: string;
|
|
44
|
+
swift_account_number_iban?: string;
|
|
45
|
+
swift_beneficiary_address_line_1?: string;
|
|
46
|
+
swift_beneficiary_address_line_2?: string;
|
|
47
|
+
swift_beneficiary_country?: Country;
|
|
48
|
+
swift_beneficiary_city?: string;
|
|
49
|
+
swift_beneficiary_state_province_region?: string;
|
|
50
|
+
swift_beneficiary_postal_code?: string;
|
|
51
|
+
swift_bank_name?: string;
|
|
52
|
+
swift_bank_address_line_1?: string;
|
|
53
|
+
swift_bank_address_line_2?: string;
|
|
54
|
+
swift_bank_country?: Country;
|
|
55
|
+
swift_bank_city?: string;
|
|
56
|
+
swift_bank_state_province_region?: string;
|
|
57
|
+
swift_bank_postal_code?: string;
|
|
58
|
+
swift_intermediary_bank_swift_code_bic?: string;
|
|
59
|
+
swift_intermediary_bank_account_number_iban?: string;
|
|
60
|
+
swift_intermediary_bank_name?: string;
|
|
61
|
+
swift_intermediary_bank_country?: Country;
|
|
62
|
+
pix_safe_bank_code?: string;
|
|
63
|
+
pix_safe_branch_code?: string;
|
|
64
|
+
pix_safe_cpf_cnpj?: string;
|
|
65
|
+
tron_wallet_hash?: string;
|
|
66
|
+
sepa_beneficiary_bic?: string | null;
|
|
67
|
+
offramp_wallets?: Array<{
|
|
68
|
+
address: string;
|
|
16
69
|
id: string;
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
pix_key?: string;
|
|
20
|
-
beneficiary_name?: string;
|
|
21
|
-
routing_number?: string;
|
|
22
|
-
account_number?: string;
|
|
23
|
-
account_type?: BankAccountType;
|
|
24
|
-
account_class?: AccountClass;
|
|
25
|
-
address_line_1?: string;
|
|
26
|
-
address_line_2?: string;
|
|
27
|
-
city?: string;
|
|
28
|
-
state_province_region?: string;
|
|
29
|
-
country?: Country;
|
|
30
|
-
postal_code?: string;
|
|
31
|
-
spei_protocol?: string;
|
|
32
|
-
spei_institution_code?: string;
|
|
33
|
-
spei_clabe?: string;
|
|
34
|
-
transfers_type?: "CVU" | "CBU" | "ALIAS";
|
|
35
|
-
transfers_account?: string;
|
|
36
|
-
ach_cop_beneficiary_first_name?: string;
|
|
37
|
-
ach_cop_beneficiary_last_name?: string;
|
|
38
|
-
ach_cop_document_id?: string;
|
|
39
|
-
ach_cop_document_type?: AchCopDocument;
|
|
40
|
-
ach_cop_email?: string;
|
|
41
|
-
ach_cop_bank_code?: string;
|
|
42
|
-
ach_cop_bank_account?: string;
|
|
43
|
-
swift_code_bic?: string;
|
|
44
|
-
swift_account_holder_name?: string;
|
|
45
|
-
swift_account_number_iban?: string;
|
|
46
|
-
swift_beneficiary_address_line_1?: string;
|
|
47
|
-
swift_beneficiary_address_line_2?: string;
|
|
48
|
-
swift_beneficiary_country?: Country;
|
|
49
|
-
swift_beneficiary_city?: string;
|
|
50
|
-
swift_beneficiary_state_province_region?: string;
|
|
51
|
-
swift_beneficiary_postal_code?: string;
|
|
52
|
-
swift_bank_name?: string;
|
|
53
|
-
swift_bank_address_line_1?: string;
|
|
54
|
-
swift_bank_address_line_2?: string;
|
|
55
|
-
swift_bank_country?: Country;
|
|
56
|
-
swift_bank_city?: string;
|
|
57
|
-
swift_bank_state_province_region?: string;
|
|
58
|
-
swift_bank_postal_code?: string;
|
|
59
|
-
swift_intermediary_bank_swift_code_bic?: string;
|
|
60
|
-
swift_intermediary_bank_account_number_iban?: string;
|
|
61
|
-
swift_intermediary_bank_name?: string;
|
|
62
|
-
swift_intermediary_bank_country?: Country;
|
|
63
|
-
pix_safe_bank_code?: string;
|
|
64
|
-
pix_safe_branch_code?: string;
|
|
65
|
-
pix_safe_cpf_cnpj?: string;
|
|
66
|
-
tron_wallet_hash?: string;
|
|
67
|
-
sepa_beneficiary_bic?: string | null;
|
|
68
|
-
offramp_wallets?: Array<{
|
|
69
|
-
address: string;
|
|
70
|
-
id: string;
|
|
71
|
-
network: "tron";
|
|
72
|
-
external_id: string;
|
|
73
|
-
}>;
|
|
74
|
-
business_industry?: string | null;
|
|
75
|
-
phone_number?: string | null;
|
|
76
|
-
tax_id?: string | null;
|
|
77
|
-
date_of_birth?: string | null;
|
|
78
|
-
status?: string | null;
|
|
79
|
-
recipient_relationship?: RecipientRelationship | null;
|
|
80
|
-
swift_payment_code?: string | null;
|
|
81
|
-
ted_bank_code?: string | null;
|
|
82
|
-
ted_branch_code?: string | null;
|
|
83
|
-
ted_cpf_cnpj?: string | null;
|
|
84
|
-
created_at: string;
|
|
70
|
+
network: "tron";
|
|
71
|
+
external_id: string;
|
|
85
72
|
}>;
|
|
86
|
-
|
|
73
|
+
business_industry?: string | null;
|
|
74
|
+
phone_number?: string | null;
|
|
75
|
+
tax_id?: string | null;
|
|
76
|
+
date_of_birth?: string | null;
|
|
77
|
+
status?: string | null;
|
|
78
|
+
recipient_relationship?: RecipientRelationship | null;
|
|
79
|
+
swift_payment_code?: string | null;
|
|
80
|
+
ted_bank_code?: string | null;
|
|
81
|
+
ted_branch_code?: string | null;
|
|
82
|
+
ted_cpf_cnpj?: string | null;
|
|
83
|
+
created_at: string;
|
|
84
|
+
}>;
|
|
87
85
|
type GetBankAccountInput = {
|
|
88
|
-
|
|
86
|
+
customer_id: string;
|
|
89
87
|
id: string;
|
|
90
88
|
};
|
|
91
89
|
type GetBankAccountResponse = {
|
|
92
90
|
id: string;
|
|
93
|
-
|
|
91
|
+
customer_id: string;
|
|
94
92
|
account_holder_name: string;
|
|
95
93
|
account_number: string;
|
|
96
94
|
routing_number: string;
|
|
@@ -104,11 +102,11 @@ type GetBankAccountResponse = {
|
|
|
104
102
|
updated_at: string;
|
|
105
103
|
};
|
|
106
104
|
type DeleteBankAccountInput = {
|
|
107
|
-
|
|
105
|
+
customer_id: string;
|
|
108
106
|
id: string;
|
|
109
107
|
};
|
|
110
108
|
type CreatePixInput = {
|
|
111
|
-
|
|
109
|
+
customer_id: string;
|
|
112
110
|
name: string;
|
|
113
111
|
pix_key: string;
|
|
114
112
|
};
|
|
@@ -120,7 +118,7 @@ type CreatePixResponse = {
|
|
|
120
118
|
created_at: string;
|
|
121
119
|
};
|
|
122
120
|
type CreatePixSafeInput = {
|
|
123
|
-
|
|
121
|
+
customer_id: string;
|
|
124
122
|
name: string;
|
|
125
123
|
beneficiary_name: string;
|
|
126
124
|
account_number: string;
|
|
@@ -142,7 +140,7 @@ type CreatePixSafeResponse = {
|
|
|
142
140
|
created_at: string;
|
|
143
141
|
};
|
|
144
142
|
type CreateArgentinaTransfersInput = {
|
|
145
|
-
|
|
143
|
+
customer_id: string;
|
|
146
144
|
name: string;
|
|
147
145
|
beneficiary_name: string;
|
|
148
146
|
transfers_account: string;
|
|
@@ -158,7 +156,7 @@ type CreateArgentinaTransfersResponse = {
|
|
|
158
156
|
created_at: string;
|
|
159
157
|
};
|
|
160
158
|
type CreateSpeiInput = {
|
|
161
|
-
|
|
159
|
+
customer_id: string;
|
|
162
160
|
beneficiary_name: string;
|
|
163
161
|
name: string;
|
|
164
162
|
spei_clabe: string;
|
|
@@ -176,7 +174,7 @@ type CreateSpeiResponse = {
|
|
|
176
174
|
created_at: string;
|
|
177
175
|
};
|
|
178
176
|
type CreateColombiaAchInput = {
|
|
179
|
-
|
|
177
|
+
customer_id: string;
|
|
180
178
|
name: string;
|
|
181
179
|
account_type: BankAccountType;
|
|
182
180
|
ach_cop_beneficiary_first_name: string;
|
|
@@ -202,7 +200,7 @@ type CreateColombiaAchResponse = {
|
|
|
202
200
|
created_at: string;
|
|
203
201
|
};
|
|
204
202
|
type CreateAchInput = {
|
|
205
|
-
|
|
203
|
+
customer_id: string;
|
|
206
204
|
name: string;
|
|
207
205
|
account_class: AccountClass;
|
|
208
206
|
account_number: string;
|
|
@@ -247,7 +245,7 @@ type CreateAchResponse = {
|
|
|
247
245
|
created_at: string;
|
|
248
246
|
};
|
|
249
247
|
type CreateWireInput = {
|
|
250
|
-
|
|
248
|
+
customer_id: string;
|
|
251
249
|
name: string;
|
|
252
250
|
account_class: AccountClass;
|
|
253
251
|
account_number: string;
|
|
@@ -283,7 +281,7 @@ type CreateWireResponse = {
|
|
|
283
281
|
created_at: string;
|
|
284
282
|
};
|
|
285
283
|
type CreateInternationalSwiftInput = {
|
|
286
|
-
|
|
284
|
+
customer_id: string;
|
|
287
285
|
name: string;
|
|
288
286
|
account_class: AccountClass;
|
|
289
287
|
recipient_relationship: RecipientRelationship;
|
|
@@ -350,7 +348,7 @@ type CreateInternationalSwiftResponse = {
|
|
|
350
348
|
created_at: string;
|
|
351
349
|
};
|
|
352
350
|
type CreateRtpInput = {
|
|
353
|
-
|
|
351
|
+
customer_id: string;
|
|
354
352
|
name: string;
|
|
355
353
|
account_class: AccountClass;
|
|
356
354
|
beneficiary_name: string;
|
|
@@ -386,7 +384,7 @@ type CreateRtpResponse = {
|
|
|
386
384
|
created_at: string;
|
|
387
385
|
};
|
|
388
386
|
type CreateSepaInput = {
|
|
389
|
-
|
|
387
|
+
customer_id: string;
|
|
390
388
|
name: string;
|
|
391
389
|
account_class: AccountClass;
|
|
392
390
|
sepa_iban: string;
|
|
@@ -417,7 +415,7 @@ type CreateSepaResponse = {
|
|
|
417
415
|
created_at: string;
|
|
418
416
|
};
|
|
419
417
|
type CreateTedInput = {
|
|
420
|
-
|
|
418
|
+
customer_id: string;
|
|
421
419
|
name: string;
|
|
422
420
|
beneficiary_name: string;
|
|
423
421
|
ted_bank_code: string;
|
|
@@ -435,20 +433,20 @@ type CreateTedResponse = {
|
|
|
435
433
|
created_at: string;
|
|
436
434
|
};
|
|
437
435
|
declare function createBankAccountsResource(instanceId: string, client: InternalApiClient): {
|
|
438
|
-
list({
|
|
439
|
-
get({
|
|
440
|
-
delete({
|
|
441
|
-
createPix({
|
|
442
|
-
createPixSafe({
|
|
443
|
-
createArgentinaTransfers({
|
|
444
|
-
createSpei({
|
|
445
|
-
createColombiaAch({
|
|
446
|
-
createAch({
|
|
447
|
-
createWire({
|
|
448
|
-
createInternationalSwift({
|
|
449
|
-
createRtp({
|
|
450
|
-
createTed({
|
|
451
|
-
createSepa({
|
|
436
|
+
list({ customer_id, ...params }: ListBankAccountsInput): Promise<BlindpayApiResponse<ListBankAccountsResponse>>;
|
|
437
|
+
get({ customer_id, id, }: GetBankAccountInput): Promise<BlindpayApiResponse<GetBankAccountResponse>>;
|
|
438
|
+
delete({ customer_id, id }: DeleteBankAccountInput): Promise<BlindpayApiResponse<void>>;
|
|
439
|
+
createPix({ customer_id, ...data }: CreatePixInput): Promise<BlindpayApiResponse<CreatePixResponse>>;
|
|
440
|
+
createPixSafe({ customer_id, ...data }: CreatePixSafeInput): Promise<BlindpayApiResponse<CreatePixSafeResponse>>;
|
|
441
|
+
createArgentinaTransfers({ customer_id, ...data }: CreateArgentinaTransfersInput): Promise<BlindpayApiResponse<CreateArgentinaTransfersResponse>>;
|
|
442
|
+
createSpei({ customer_id, ...data }: CreateSpeiInput): Promise<BlindpayApiResponse<CreateSpeiResponse>>;
|
|
443
|
+
createColombiaAch({ customer_id, ...data }: CreateColombiaAchInput): Promise<BlindpayApiResponse<CreateColombiaAchResponse>>;
|
|
444
|
+
createAch({ customer_id, ...data }: CreateAchInput): Promise<BlindpayApiResponse<CreateAchResponse>>;
|
|
445
|
+
createWire({ customer_id, ...data }: CreateWireInput): Promise<BlindpayApiResponse<CreateWireResponse>>;
|
|
446
|
+
createInternationalSwift({ customer_id, ...data }: CreateInternationalSwiftInput): Promise<BlindpayApiResponse<CreateInternationalSwiftResponse>>;
|
|
447
|
+
createRtp({ customer_id, ...data }: CreateRtpInput): Promise<BlindpayApiResponse<CreateRtpResponse>>;
|
|
448
|
+
createTed({ customer_id, ...data }: CreateTedInput): Promise<BlindpayApiResponse<CreateTedResponse>>;
|
|
449
|
+
createSepa({ customer_id, ...data }: CreateSepaInput): Promise<BlindpayApiResponse<CreateSepaResponse>>;
|
|
452
450
|
};
|
|
453
451
|
|
|
454
452
|
export { type CreateAchInput, type CreateAchResponse, type CreateArgentinaTransfersInput, type CreateArgentinaTransfersResponse, type CreateColombiaAchInput, type CreateColombiaAchResponse, type CreateInternationalSwiftInput, type CreateInternationalSwiftResponse, type CreatePixInput, type CreatePixResponse, type CreatePixSafeInput, type CreatePixSafeResponse, type CreateRtpInput, type CreateRtpResponse, type CreateSepaInput, type CreateSepaResponse, type CreateSpeiInput, type CreateSpeiResponse, type CreateTedInput, type CreateTedResponse, type CreateWireInput, type CreateWireResponse, type DeleteBankAccountInput, type GetBankAccountInput, type GetBankAccountResponse, type ListBankAccountsInput, type ListBankAccountsResponse, type RecipientRelationship, createBankAccountsResource };
|