@blindpay/node 4.0.0 → 4.0.2

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.
Files changed (46) hide show
  1. package/dist/{chunk-ECYZLQUR.mjs → chunk-VZYQSTVS.mjs} +1 -1
  2. package/dist/index.js +1 -1
  3. package/dist/index.mjs +1 -1
  4. package/dist/resources/api-keys/api-keys.test.js +1 -1
  5. package/dist/resources/api-keys/api-keys.test.mjs +1 -1
  6. package/dist/resources/available/available.test.js +1 -1
  7. package/dist/resources/available/available.test.mjs +1 -1
  8. package/dist/resources/bank-accounts/bank-accounts.test.js +62 -64
  9. package/dist/resources/bank-accounts/bank-accounts.test.mjs +62 -64
  10. package/dist/resources/bank-accounts/index.d.mts +69 -71
  11. package/dist/resources/bank-accounts/index.d.ts +69 -71
  12. package/dist/resources/customers/customers.test.js +1 -1
  13. package/dist/resources/customers/customers.test.mjs +1 -1
  14. package/dist/resources/fees/fees.test.js +1 -1
  15. package/dist/resources/fees/fees.test.mjs +1 -1
  16. package/dist/resources/instances/instances.test.js +1 -1
  17. package/dist/resources/instances/instances.test.mjs +1 -1
  18. package/dist/resources/partner-fees/partner-fees.test.js +1 -1
  19. package/dist/resources/partner-fees/partner-fees.test.mjs +1 -1
  20. package/dist/resources/payins/payins-quotes.test.js +1 -1
  21. package/dist/resources/payins/payins-quotes.test.mjs +1 -1
  22. package/dist/resources/payins/payins.test.js +1 -1
  23. package/dist/resources/payins/payins.test.mjs +1 -1
  24. package/dist/resources/payouts/payouts.test.js +1 -1
  25. package/dist/resources/payouts/payouts.test.mjs +1 -1
  26. package/dist/resources/quotes/quotes.test.js +1 -1
  27. package/dist/resources/quotes/quotes.test.mjs +1 -1
  28. package/dist/resources/terms-of-service/terms-of-service.test.js +1 -1
  29. package/dist/resources/terms-of-service/terms-of-service.test.mjs +1 -1
  30. package/dist/resources/transfers/transfers.test.js +1 -1
  31. package/dist/resources/transfers/transfers.test.mjs +1 -1
  32. package/dist/resources/upload/upload.test.js +1 -1
  33. package/dist/resources/upload/upload.test.mjs +1 -1
  34. package/dist/resources/virtual-accounts/index.d.mts +0 -1
  35. package/dist/resources/virtual-accounts/index.d.ts +0 -1
  36. package/dist/resources/virtual-accounts/virtual-accounts.test.js +2 -3
  37. package/dist/resources/virtual-accounts/virtual-accounts.test.mjs +2 -3
  38. package/dist/resources/wallets/blockchain.test.js +1 -1
  39. package/dist/resources/wallets/blockchain.test.mjs +1 -1
  40. package/dist/resources/wallets/custodial.test.js +1 -1
  41. package/dist/resources/wallets/custodial.test.mjs +1 -1
  42. package/dist/resources/wallets/offramp.test.js +1 -1
  43. package/dist/resources/wallets/offramp.test.mjs +1 -1
  44. package/dist/resources/webhooks/webhooks.test.js +1 -1
  45. package/dist/resources/webhooks/webhooks.test.mjs +1 -1
  46. package/package.json +1 -1
@@ -85,7 +85,7 @@ import {
85
85
  var version;
86
86
  var init_package = __esm({
87
87
  "package.json"() {
88
- version = "4.0.0";
88
+ version = "4.0.2";
89
89
  }
90
90
  });
91
91
 
package/dist/index.js CHANGED
@@ -95,7 +95,7 @@ module.exports = __toCommonJS(index_exports);
95
95
  var import_svix = require("svix");
96
96
 
97
97
  // package.json
98
- var version = "4.0.0";
98
+ var version = "4.0.2";
99
99
 
100
100
  // src/internal/blindpay-error.ts
101
101
  var BlindPayError = class extends Error {
package/dist/index.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  BlindPay,
3
3
  init_client
4
- } from "./chunk-ECYZLQUR.mjs";
4
+ } from "./chunk-VZYQSTVS.mjs";
5
5
  import {
6
6
  createBlockchainWalletsResource,
7
7
  init_blockchain
@@ -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 = "4.0.0";
18700
+ var version = "4.0.2";
18701
18701
 
18702
18702
  // src/internal/blindpay-error.ts
18703
18703
  var BlindPayError = class extends Error {
@@ -7,7 +7,7 @@ import {
7
7
  import {
8
8
  BlindPay,
9
9
  init_client
10
- } from "../../chunk-ECYZLQUR.mjs";
10
+ } from "../../chunk-VZYQSTVS.mjs";
11
11
  import "../../chunk-VAVDEV6P.mjs";
12
12
  import "../../chunk-TVOMVVOO.mjs";
13
13
  import "../../chunk-YHI3J2CL.mjs";
@@ -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 = "4.0.0";
18705
+ var version = "4.0.2";
18706
18706
 
18707
18707
  // src/internal/blindpay-error.ts
18708
18708
  var BlindPayError = class extends Error {
@@ -8,7 +8,7 @@ import {
8
8
  import {
9
9
  BlindPay,
10
10
  init_client
11
- } from "../../chunk-ECYZLQUR.mjs";
11
+ } from "../../chunk-VZYQSTVS.mjs";
12
12
  import "../../chunk-VAVDEV6P.mjs";
13
13
  import "../../chunk-TVOMVVOO.mjs";
14
14
  import "../../chunk-YHI3J2CL.mjs";
@@ -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 = "4.0.0";
18705
+ var version = "4.0.2";
18706
18706
 
18707
18707
  // src/internal/blindpay-error.ts
18708
18708
  var BlindPayError = class extends Error {
@@ -19880,69 +19880,67 @@ describe("Bank accounts", () => {
19880
19880
  });
19881
19881
  describe("List bank accounts", () => {
19882
19882
  it("should list bank accounts", () => __async(null, null, function* () {
19883
- const mockedBankAccounts = {
19884
- data: [
19885
- {
19886
- id: "ba_000000000000",
19887
- type: "wire",
19888
- name: "Bank Account Name",
19889
- pix_key: "14947677768",
19890
- beneficiary_name: "Individual full name or business name",
19891
- routing_number: "012345678",
19892
- account_number: "1001001234",
19893
- account_type: "checking",
19894
- account_class: "individual",
19895
- address_line_1: "Address line 1",
19896
- address_line_2: "Address line 2",
19897
- city: "City",
19898
- state_province_region: "State/Province/Region",
19899
- country: "US",
19900
- postal_code: "Postal code",
19901
- spei_protocol: "clabe",
19902
- spei_institution_code: "40002",
19903
- spei_clabe: "5482347403740546",
19904
- transfers_type: "CVU",
19905
- transfers_account: "BM123123123123",
19906
- ach_cop_beneficiary_first_name: "Fernando",
19907
- ach_cop_beneficiary_last_name: "Guzman Alarc\xF3n",
19908
- ach_cop_document_id: "1661105408",
19909
- ach_cop_document_type: "CC",
19910
- ach_cop_email: "fernando.guzman@gmail.com",
19911
- ach_cop_bank_code: "051",
19912
- ach_cop_bank_account: "12345678",
19913
- swift_code_bic: "123456789",
19914
- swift_account_holder_name: "John Doe",
19915
- swift_account_number_iban: "123456789",
19916
- swift_beneficiary_address_line_1: "123 Main Street, Suite 100, Downtown District, City Center CP 12345",
19917
- swift_beneficiary_address_line_2: "456 Oak Avenue, Building 7, Financial District, Business Center CP 54321",
19918
- swift_beneficiary_country: "MX",
19919
- swift_beneficiary_city: "City",
19920
- swift_beneficiary_state_province_region: "District",
19921
- swift_beneficiary_postal_code: "11530",
19922
- swift_bank_name: "Banco Regional SA",
19923
- swift_bank_address_line_1: "123 Main Street, Suite 100, Downtown District, City Center CP 12345",
19924
- swift_bank_address_line_2: "456 Oak Avenue, Building 7, Financial District, Business Center CP 54321",
19925
- swift_bank_country: "MX",
19926
- swift_bank_city: "City",
19927
- swift_bank_state_province_region: "District",
19928
- swift_bank_postal_code: "11530",
19929
- swift_intermediary_bank_swift_code_bic: "AEIBARB1",
19930
- swift_intermediary_bank_account_number_iban: "123456789",
19931
- swift_intermediary_bank_name: "Banco Regional SA",
19932
- swift_intermediary_bank_country: "US",
19933
- tron_wallet_hash: "TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t",
19934
- offramp_wallets: [
19935
- {
19936
- address: "TALJN9zTTEL9TVBb4WuTt6wLvPqJZr3hvb",
19937
- id: "ow_000000000000",
19938
- network: "tron",
19939
- external_id: "your_external_id"
19940
- }
19941
- ],
19942
- created_at: "2021-01-01T00:00:00Z"
19943
- }
19944
- ]
19945
- };
19883
+ const mockedBankAccounts = [
19884
+ {
19885
+ id: "ba_000000000000",
19886
+ type: "wire",
19887
+ name: "Bank Account Name",
19888
+ pix_key: "14947677768",
19889
+ beneficiary_name: "Individual full name or business name",
19890
+ routing_number: "012345678",
19891
+ account_number: "1001001234",
19892
+ account_type: "checking",
19893
+ account_class: "individual",
19894
+ address_line_1: "Address line 1",
19895
+ address_line_2: "Address line 2",
19896
+ city: "City",
19897
+ state_province_region: "State/Province/Region",
19898
+ country: "US",
19899
+ postal_code: "Postal code",
19900
+ spei_protocol: "clabe",
19901
+ spei_institution_code: "40002",
19902
+ spei_clabe: "5482347403740546",
19903
+ transfers_type: "CVU",
19904
+ transfers_account: "BM123123123123",
19905
+ ach_cop_beneficiary_first_name: "Fernando",
19906
+ ach_cop_beneficiary_last_name: "Guzman Alarc\xF3n",
19907
+ ach_cop_document_id: "1661105408",
19908
+ ach_cop_document_type: "CC",
19909
+ ach_cop_email: "fernando.guzman@gmail.com",
19910
+ ach_cop_bank_code: "051",
19911
+ ach_cop_bank_account: "12345678",
19912
+ swift_code_bic: "123456789",
19913
+ swift_account_holder_name: "John Doe",
19914
+ swift_account_number_iban: "123456789",
19915
+ swift_beneficiary_address_line_1: "123 Main Street, Suite 100, Downtown District, City Center CP 12345",
19916
+ swift_beneficiary_address_line_2: "456 Oak Avenue, Building 7, Financial District, Business Center CP 54321",
19917
+ swift_beneficiary_country: "MX",
19918
+ swift_beneficiary_city: "City",
19919
+ swift_beneficiary_state_province_region: "District",
19920
+ swift_beneficiary_postal_code: "11530",
19921
+ swift_bank_name: "Banco Regional SA",
19922
+ swift_bank_address_line_1: "123 Main Street, Suite 100, Downtown District, City Center CP 12345",
19923
+ swift_bank_address_line_2: "456 Oak Avenue, Building 7, Financial District, Business Center CP 54321",
19924
+ swift_bank_country: "MX",
19925
+ swift_bank_city: "City",
19926
+ swift_bank_state_province_region: "District",
19927
+ swift_bank_postal_code: "11530",
19928
+ swift_intermediary_bank_swift_code_bic: "AEIBARB1",
19929
+ swift_intermediary_bank_account_number_iban: "123456789",
19930
+ swift_intermediary_bank_name: "Banco Regional SA",
19931
+ swift_intermediary_bank_country: "US",
19932
+ tron_wallet_hash: "TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t",
19933
+ offramp_wallets: [
19934
+ {
19935
+ address: "TALJN9zTTEL9TVBb4WuTt6wLvPqJZr3hvb",
19936
+ id: "ow_000000000000",
19937
+ network: "tron",
19938
+ external_id: "your_external_id"
19939
+ }
19940
+ ],
19941
+ created_at: "2021-01-01T00:00:00Z"
19942
+ }
19943
+ ];
19946
19944
  fetchMock.mockResponseOnce(JSON.stringify(mockedBankAccounts), {
19947
19945
  headers: { "Content-Type": "application/json" }
19948
19946
  });
@@ -8,7 +8,7 @@ import {
8
8
  import {
9
9
  BlindPay,
10
10
  init_client
11
- } from "../../chunk-ECYZLQUR.mjs";
11
+ } from "../../chunk-VZYQSTVS.mjs";
12
12
  import "../../chunk-VAVDEV6P.mjs";
13
13
  import "../../chunk-TVOMVVOO.mjs";
14
14
  import "../../chunk-YHI3J2CL.mjs";
@@ -377,69 +377,67 @@ var require_bank_accounts_test = __commonJS({
377
377
  });
378
378
  describe("List bank accounts", () => {
379
379
  it("should list bank accounts", () => __async(null, null, function* () {
380
- const mockedBankAccounts = {
381
- data: [
382
- {
383
- id: "ba_000000000000",
384
- type: "wire",
385
- name: "Bank Account Name",
386
- pix_key: "14947677768",
387
- beneficiary_name: "Individual full name or business name",
388
- routing_number: "012345678",
389
- account_number: "1001001234",
390
- account_type: "checking",
391
- account_class: "individual",
392
- address_line_1: "Address line 1",
393
- address_line_2: "Address line 2",
394
- city: "City",
395
- state_province_region: "State/Province/Region",
396
- country: "US",
397
- postal_code: "Postal code",
398
- spei_protocol: "clabe",
399
- spei_institution_code: "40002",
400
- spei_clabe: "5482347403740546",
401
- transfers_type: "CVU",
402
- transfers_account: "BM123123123123",
403
- ach_cop_beneficiary_first_name: "Fernando",
404
- ach_cop_beneficiary_last_name: "Guzman Alarc\xF3n",
405
- ach_cop_document_id: "1661105408",
406
- ach_cop_document_type: "CC",
407
- ach_cop_email: "fernando.guzman@gmail.com",
408
- ach_cop_bank_code: "051",
409
- ach_cop_bank_account: "12345678",
410
- swift_code_bic: "123456789",
411
- swift_account_holder_name: "John Doe",
412
- swift_account_number_iban: "123456789",
413
- swift_beneficiary_address_line_1: "123 Main Street, Suite 100, Downtown District, City Center CP 12345",
414
- swift_beneficiary_address_line_2: "456 Oak Avenue, Building 7, Financial District, Business Center CP 54321",
415
- swift_beneficiary_country: "MX",
416
- swift_beneficiary_city: "City",
417
- swift_beneficiary_state_province_region: "District",
418
- swift_beneficiary_postal_code: "11530",
419
- swift_bank_name: "Banco Regional SA",
420
- swift_bank_address_line_1: "123 Main Street, Suite 100, Downtown District, City Center CP 12345",
421
- swift_bank_address_line_2: "456 Oak Avenue, Building 7, Financial District, Business Center CP 54321",
422
- swift_bank_country: "MX",
423
- swift_bank_city: "City",
424
- swift_bank_state_province_region: "District",
425
- swift_bank_postal_code: "11530",
426
- swift_intermediary_bank_swift_code_bic: "AEIBARB1",
427
- swift_intermediary_bank_account_number_iban: "123456789",
428
- swift_intermediary_bank_name: "Banco Regional SA",
429
- swift_intermediary_bank_country: "US",
430
- tron_wallet_hash: "TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t",
431
- offramp_wallets: [
432
- {
433
- address: "TALJN9zTTEL9TVBb4WuTt6wLvPqJZr3hvb",
434
- id: "ow_000000000000",
435
- network: "tron",
436
- external_id: "your_external_id"
437
- }
438
- ],
439
- created_at: "2021-01-01T00:00:00Z"
440
- }
441
- ]
442
- };
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
+ ];
443
441
  fetchMock.mockResponseOnce(JSON.stringify(mockedBankAccounts), {
444
442
  headers: { "Content-Type": "application/json" }
445
443
  });
@@ -11,79 +11,77 @@ type ListBankAccountsInput = {
11
11
  bank_account_id?: string;
12
12
  country?: Country;
13
13
  };
14
- type ListBankAccountsResponse = {
15
- data: Array<{
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
- type: Rail;
18
- name: string;
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;
@@ -11,79 +11,77 @@ type ListBankAccountsInput = {
11
11
  bank_account_id?: string;
12
12
  country?: Country;
13
13
  };
14
- type ListBankAccountsResponse = {
15
- data: Array<{
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
- type: Rail;
18
- name: string;
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;
@@ -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 = "4.0.0";
18705
+ var version = "4.0.2";
18706
18706
 
18707
18707
  // src/internal/blindpay-error.ts
18708
18708
  var BlindPayError = class extends Error {
@@ -8,7 +8,7 @@ import {
8
8
  import {
9
9
  BlindPay,
10
10
  init_client
11
- } from "../../chunk-ECYZLQUR.mjs";
11
+ } from "../../chunk-VZYQSTVS.mjs";
12
12
  import "../../chunk-VAVDEV6P.mjs";
13
13
  import "../../chunk-TVOMVVOO.mjs";
14
14
  import "../../chunk-YHI3J2CL.mjs";
@@ -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 = "4.0.0";
18705
+ var version = "4.0.2";
18706
18706
 
18707
18707
  // src/internal/blindpay-error.ts
18708
18708
  var BlindPayError = class extends Error {
@@ -8,7 +8,7 @@ import {
8
8
  import {
9
9
  BlindPay,
10
10
  init_client
11
- } from "../../chunk-ECYZLQUR.mjs";
11
+ } from "../../chunk-VZYQSTVS.mjs";
12
12
  import "../../chunk-VAVDEV6P.mjs";
13
13
  import "../../chunk-TVOMVVOO.mjs";
14
14
  import "../../chunk-YHI3J2CL.mjs";
@@ -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 = "4.0.0";
18705
+ var version = "4.0.2";
18706
18706
 
18707
18707
  // src/internal/blindpay-error.ts
18708
18708
  var BlindPayError = class extends Error {
@@ -8,7 +8,7 @@ import {
8
8
  import {
9
9
  BlindPay,
10
10
  init_client
11
- } from "../../chunk-ECYZLQUR.mjs";
11
+ } from "../../chunk-VZYQSTVS.mjs";
12
12
  import "../../chunk-VAVDEV6P.mjs";
13
13
  import "../../chunk-TVOMVVOO.mjs";
14
14
  import "../../chunk-YHI3J2CL.mjs";
@@ -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 = "4.0.0";
18705
+ var version = "4.0.2";
18706
18706
 
18707
18707
  // src/internal/blindpay-error.ts
18708
18708
  var BlindPayError = class extends Error {
@@ -8,7 +8,7 @@ import {
8
8
  import {
9
9
  BlindPay,
10
10
  init_client
11
- } from "../../chunk-ECYZLQUR.mjs";
11
+ } from "../../chunk-VZYQSTVS.mjs";
12
12
  import "../../chunk-VAVDEV6P.mjs";
13
13
  import "../../chunk-TVOMVVOO.mjs";
14
14
  import "../../chunk-YHI3J2CL.mjs";
@@ -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 = "4.0.0";
18705
+ var version = "4.0.2";
18706
18706
 
18707
18707
  // src/internal/blindpay-error.ts
18708
18708
  var BlindPayError = class extends Error {
@@ -8,7 +8,7 @@ import {
8
8
  import {
9
9
  BlindPay,
10
10
  init_client
11
- } from "../../chunk-ECYZLQUR.mjs";
11
+ } from "../../chunk-VZYQSTVS.mjs";
12
12
  import "../../chunk-VAVDEV6P.mjs";
13
13
  import "../../chunk-TVOMVVOO.mjs";
14
14
  import "../../chunk-YHI3J2CL.mjs";
@@ -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 = "4.0.0";
18705
+ var version = "4.0.2";
18706
18706
 
18707
18707
  // src/internal/blindpay-error.ts
18708
18708
  var BlindPayError = class extends Error {
@@ -8,7 +8,7 @@ import {
8
8
  import {
9
9
  BlindPay,
10
10
  init_client
11
- } from "../../chunk-ECYZLQUR.mjs";
11
+ } from "../../chunk-VZYQSTVS.mjs";
12
12
  import "../../chunk-VAVDEV6P.mjs";
13
13
  import "../../chunk-TVOMVVOO.mjs";
14
14
  import "../../chunk-YHI3J2CL.mjs";
@@ -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 = "4.0.0";
18705
+ var version = "4.0.2";
18706
18706
 
18707
18707
  // src/internal/blindpay-error.ts
18708
18708
  var BlindPayError = class extends Error {
@@ -8,7 +8,7 @@ import {
8
8
  import {
9
9
  BlindPay,
10
10
  init_client
11
- } from "../../chunk-ECYZLQUR.mjs";
11
+ } from "../../chunk-VZYQSTVS.mjs";
12
12
  import "../../chunk-VAVDEV6P.mjs";
13
13
  import "../../chunk-TVOMVVOO.mjs";
14
14
  import "../../chunk-YHI3J2CL.mjs";
@@ -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 = "4.0.0";
18705
+ var version = "4.0.2";
18706
18706
 
18707
18707
  // src/internal/blindpay-error.ts
18708
18708
  var BlindPayError = class extends Error {
@@ -8,7 +8,7 @@ import {
8
8
  import {
9
9
  BlindPay,
10
10
  init_client
11
- } from "../../chunk-ECYZLQUR.mjs";
11
+ } from "../../chunk-VZYQSTVS.mjs";
12
12
  import "../../chunk-VAVDEV6P.mjs";
13
13
  import "../../chunk-TVOMVVOO.mjs";
14
14
  import "../../chunk-YHI3J2CL.mjs";
@@ -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 = "4.0.0";
18705
+ var version = "4.0.2";
18706
18706
 
18707
18707
  // src/internal/blindpay-error.ts
18708
18708
  var BlindPayError = class extends Error {
@@ -8,7 +8,7 @@ import {
8
8
  import {
9
9
  BlindPay,
10
10
  init_client
11
- } from "../../chunk-ECYZLQUR.mjs";
11
+ } from "../../chunk-VZYQSTVS.mjs";
12
12
  import "../../chunk-VAVDEV6P.mjs";
13
13
  import "../../chunk-TVOMVVOO.mjs";
14
14
  import "../../chunk-YHI3J2CL.mjs";
@@ -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 = "4.0.0";
18705
+ var version = "4.0.2";
18706
18706
 
18707
18707
  // src/internal/blindpay-error.ts
18708
18708
  var BlindPayError = class extends Error {
@@ -8,7 +8,7 @@ import {
8
8
  import {
9
9
  BlindPay,
10
10
  init_client
11
- } from "../../chunk-ECYZLQUR.mjs";
11
+ } from "../../chunk-VZYQSTVS.mjs";
12
12
  import "../../chunk-VAVDEV6P.mjs";
13
13
  import "../../chunk-TVOMVVOO.mjs";
14
14
  import "../../chunk-YHI3J2CL.mjs";
@@ -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 = "4.0.0";
18705
+ var version = "4.0.2";
18706
18706
 
18707
18707
  // src/internal/blindpay-error.ts
18708
18708
  var BlindPayError = class extends Error {
@@ -8,7 +8,7 @@ import {
8
8
  import {
9
9
  BlindPay,
10
10
  init_client
11
- } from "../../chunk-ECYZLQUR.mjs";
11
+ } from "../../chunk-VZYQSTVS.mjs";
12
12
  import "../../chunk-VAVDEV6P.mjs";
13
13
  import "../../chunk-TVOMVVOO.mjs";
14
14
  import "../../chunk-YHI3J2CL.mjs";
@@ -53,7 +53,6 @@ type CreateVirtualAccountInput = {
53
53
  banking_partner: BankingPartner;
54
54
  token: StablecoinToken;
55
55
  blockchain_wallet_id: string;
56
- signed_agreement_id?: string | null;
57
56
  sole_proprietor_doc_type?: SoleProprietorDocType | null;
58
57
  sole_proprietor_doc_file?: string | null;
59
58
  };
@@ -53,7 +53,6 @@ type CreateVirtualAccountInput = {
53
53
  banking_partner: BankingPartner;
54
54
  token: StablecoinToken;
55
55
  blockchain_wallet_id: string;
56
- signed_agreement_id?: string | null;
57
56
  sole_proprietor_doc_type?: SoleProprietorDocType | null;
58
57
  sole_proprietor_doc_file?: string | null;
59
58
  };
@@ -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 = "4.0.0";
18705
+ var version = "4.0.2";
18706
18706
 
18707
18707
  // src/internal/blindpay-error.ts
18708
18708
  var BlindPayError = class extends Error {
@@ -19723,8 +19723,7 @@ describe("Virtual accounts", () => {
19723
19723
  customer_id: "re_000000000000",
19724
19724
  banking_partner: "jpmorgan",
19725
19725
  blockchain_wallet_id: "bw_000000000000",
19726
- token: "USDC",
19727
- signed_agreement_id: "123e4567-e89b-12d3-a456-426614174000"
19726
+ token: "USDC"
19728
19727
  });
19729
19728
  globalExpect(error).toBeNull();
19730
19729
  globalExpect(data).toEqual(mockedVirtualAccount);
@@ -8,7 +8,7 @@ import {
8
8
  import {
9
9
  BlindPay,
10
10
  init_client
11
- } from "../../chunk-ECYZLQUR.mjs";
11
+ } from "../../chunk-VZYQSTVS.mjs";
12
12
  import "../../chunk-VAVDEV6P.mjs";
13
13
  import "../../chunk-TVOMVVOO.mjs";
14
14
  import "../../chunk-YHI3J2CL.mjs";
@@ -220,8 +220,7 @@ var require_virtual_accounts_test = __commonJS({
220
220
  customer_id: "re_000000000000",
221
221
  banking_partner: "jpmorgan",
222
222
  blockchain_wallet_id: "bw_000000000000",
223
- token: "USDC",
224
- signed_agreement_id: "123e4567-e89b-12d3-a456-426614174000"
223
+ token: "USDC"
225
224
  });
226
225
  globalExpect(error).toBeNull();
227
226
  globalExpect(data).toEqual(mockedVirtualAccount);
@@ -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 = "4.0.0";
18705
+ var version = "4.0.2";
18706
18706
 
18707
18707
  // src/internal/blindpay-error.ts
18708
18708
  var BlindPayError = class extends Error {
@@ -8,7 +8,7 @@ import {
8
8
  import {
9
9
  BlindPay,
10
10
  init_client
11
- } from "../../chunk-ECYZLQUR.mjs";
11
+ } from "../../chunk-VZYQSTVS.mjs";
12
12
  import "../../chunk-VAVDEV6P.mjs";
13
13
  import "../../chunk-TVOMVVOO.mjs";
14
14
  import "../../chunk-YHI3J2CL.mjs";
@@ -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 = "4.0.0";
18705
+ var version = "4.0.2";
18706
18706
 
18707
18707
  // src/internal/blindpay-error.ts
18708
18708
  var BlindPayError = class extends Error {
@@ -8,7 +8,7 @@ import {
8
8
  import {
9
9
  BlindPay,
10
10
  init_client
11
- } from "../../chunk-ECYZLQUR.mjs";
11
+ } from "../../chunk-VZYQSTVS.mjs";
12
12
  import "../../chunk-VAVDEV6P.mjs";
13
13
  import "../../chunk-TVOMVVOO.mjs";
14
14
  import "../../chunk-YHI3J2CL.mjs";
@@ -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 = "4.0.0";
18705
+ var version = "4.0.2";
18706
18706
 
18707
18707
  // src/internal/blindpay-error.ts
18708
18708
  var BlindPayError = class extends Error {
@@ -8,7 +8,7 @@ import {
8
8
  import {
9
9
  BlindPay,
10
10
  init_client
11
- } from "../../chunk-ECYZLQUR.mjs";
11
+ } from "../../chunk-VZYQSTVS.mjs";
12
12
  import "../../chunk-VAVDEV6P.mjs";
13
13
  import "../../chunk-TVOMVVOO.mjs";
14
14
  import "../../chunk-YHI3J2CL.mjs";
@@ -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 = "4.0.0";
18705
+ var version = "4.0.2";
18706
18706
 
18707
18707
  // src/internal/blindpay-error.ts
18708
18708
  var BlindPayError = class extends Error {
@@ -8,7 +8,7 @@ import {
8
8
  import {
9
9
  BlindPay,
10
10
  init_client
11
- } from "../../chunk-ECYZLQUR.mjs";
11
+ } from "../../chunk-VZYQSTVS.mjs";
12
12
  import "../../chunk-VAVDEV6P.mjs";
13
13
  import "../../chunk-TVOMVVOO.mjs";
14
14
  import "../../chunk-YHI3J2CL.mjs";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blindpay/node",
3
- "version": "4.0.0",
3
+ "version": "4.0.2",
4
4
  "description": "Official Node.js SDK for Blindpay API - Stablecoin API for global payments",
5
5
  "keywords": [
6
6
  "blindpay",