@blindpay/node 2.1.1 → 2.2.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.
Files changed (40) hide show
  1. package/README.md +5 -5
  2. package/dist/{chunk-CWR4B22L.mjs → chunk-QCRVXYWF.mjs} +5 -5
  3. package/dist/{chunk-QHMIK7U3.mjs → chunk-U7CKUUO7.mjs} +3 -0
  4. package/dist/index.d.mts +1 -1
  5. package/dist/index.d.ts +1 -1
  6. package/dist/index.js +4 -1
  7. package/dist/index.mjs +5 -5
  8. package/dist/resources/api-keys/api-keys.test.js +4 -1
  9. package/dist/resources/api-keys/api-keys.test.mjs +2 -2
  10. package/dist/resources/available/available.test.js +28 -1
  11. package/dist/resources/available/available.test.mjs +26 -2
  12. package/dist/resources/available/index.d.mts +13 -1
  13. package/dist/resources/available/index.d.ts +13 -1
  14. package/dist/resources/available/index.js +3 -0
  15. package/dist/resources/available/index.mjs +1 -1
  16. package/dist/resources/bank-accounts/bank-accounts.test.js +4 -1
  17. package/dist/resources/bank-accounts/bank-accounts.test.mjs +2 -2
  18. package/dist/resources/instances/instances.test.js +4 -1
  19. package/dist/resources/instances/instances.test.mjs +2 -2
  20. package/dist/resources/partner-fees/partner-fees.test.js +4 -1
  21. package/dist/resources/partner-fees/partner-fees.test.mjs +2 -2
  22. package/dist/resources/payins/payins-quotes.test.js +4 -1
  23. package/dist/resources/payins/payins-quotes.test.mjs +2 -2
  24. package/dist/resources/payins/payins.test.js +4 -1
  25. package/dist/resources/payins/payins.test.mjs +2 -2
  26. package/dist/resources/payouts/payouts.test.js +4 -1
  27. package/dist/resources/payouts/payouts.test.mjs +2 -2
  28. package/dist/resources/quotes/quotes.test.js +4 -1
  29. package/dist/resources/quotes/quotes.test.mjs +2 -2
  30. package/dist/resources/receivers/receivers.test.js +4 -1
  31. package/dist/resources/receivers/receivers.test.mjs +2 -2
  32. package/dist/resources/virtual-accounts/virtual-accounts.test.js +4 -1
  33. package/dist/resources/virtual-accounts/virtual-accounts.test.mjs +2 -2
  34. package/dist/resources/wallets/blockchain.test.js +4 -1
  35. package/dist/resources/wallets/blockchain.test.mjs +2 -2
  36. package/dist/resources/wallets/offramp.test.js +4 -1
  37. package/dist/resources/wallets/offramp.test.mjs +2 -2
  38. package/dist/resources/webhooks/webhooks.test.js +4 -1
  39. package/dist/resources/webhooks/webhooks.test.mjs +2 -2
  40. package/package.json +1 -1
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
- # Blindpay Node.js SDK
1
+ # BlindPay Node.js SDK
2
2
 
3
- The official Node.js SDK for [Blindpay](https://blindpay.com) - Global payments infrastructure made simple.
3
+ The official Node.js SDK for [BlindPay](https://blindpay.com) - Global payments infrastructure made simple.
4
4
 
5
5
  ## Installation
6
6
 
@@ -16,7 +16,7 @@ bun add @blindpay/node
16
16
 
17
17
  ## Authentication
18
18
 
19
- To get started, you will need both your API key and your instance id, you can obtain your API key and instance id from the Blindpay dashboard [https://app.blindpay.com/instances/{instanceId}/api-keys](https://app.blindpay.com/instances/{instanceId}/api-keys)
19
+ To get started, you will need both your API key and your instance id, you can obtain your API key and instance id from the BlindPay dashboard [https://app.blindpay.com/instances/{instanceId}/api-keys](https://app.blindpay.com/instances/{instanceId}/api-keys)
20
20
 
21
21
  ```typescript
22
22
  import { BlindPay } from '@blindpay/node';
@@ -94,7 +94,7 @@ console.log('Success:', data); // fully typed
94
94
  ```
95
95
 
96
96
  For detailed API documentation, visit:
97
- - [Blindpay API documentation](https://blindpay.com/docs/getting-started/overview)
97
+ - [BlindPay API documentation](https://blindpay.com/docs/getting-started/overview)
98
98
  - [API Reference](https://api.blindpay.com/reference)
99
99
 
100
100
  ## Support
@@ -106,4 +106,4 @@ For detailed API documentation, visit:
106
106
 
107
107
  This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
108
108
 
109
- Made with ❤️ by the [Blindpay](https://blindpay.com) team
109
+ Made with ❤️ by the [BlindPay](https://blindpay.com) team
@@ -42,14 +42,14 @@ import {
42
42
  createApiKeysResource,
43
43
  init_api_keys
44
44
  } from "./chunk-LRHWT4JU.mjs";
45
+ import {
46
+ createAvailableResource,
47
+ init_available
48
+ } from "./chunk-U7CKUUO7.mjs";
45
49
  import {
46
50
  createBankAccountsResource,
47
51
  init_bank_accounts
48
52
  } from "./chunk-CPOSU35L.mjs";
49
- import {
50
- createAvailableResource,
51
- init_available
52
- } from "./chunk-QHMIK7U3.mjs";
53
53
  import {
54
54
  createInstancesResource,
55
55
  init_instances
@@ -65,7 +65,7 @@ import {
65
65
  var version;
66
66
  var init_package = __esm({
67
67
  "package.json"() {
68
- version = "2.1.1";
68
+ version = "2.2.0";
69
69
  }
70
70
  });
71
71
 
@@ -10,6 +10,9 @@ function createAvailableResource(client) {
10
10
  },
11
11
  getRails() {
12
12
  return client.get("/available/rails");
13
+ },
14
+ getSwiftCodeBankDetails(swift) {
15
+ return client.get(`/available/swift/${swift}`);
13
16
  }
14
17
  };
15
18
  }
package/dist/index.d.mts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { createApiKeysResource } from './resources/api-keys/index.mjs';
2
2
  export { CreateApiKeyInput, CreateApiKeyResponse, DeleteApiKeyInput, GetApiKeyInput, GetApiKeyResponse, ListApiKeysResponse } from './resources/api-keys/index.mjs';
3
3
  import { createAvailableResource } from './resources/available/index.mjs';
4
- export { BankDetailKey, GetBankDetailsResponse, GetRailsResponse } from './resources/available/index.mjs';
4
+ export { BankDetailKey, GetBankDetailsResponse, GetRailsResponse, GetSwiftCodeBankDetailsInput, GetSwiftCodeBankDetailsResponse } from './resources/available/index.mjs';
5
5
  import { createBankAccountsResource } from './resources/bank-accounts/index.mjs';
6
6
  export { AchCopDocument, ArgentinaTransfers, CreateAchInput, CreateAchResponse, CreateArgentinaTransfersInput, CreateArgentinaTransfersResponse, CreateColombiaAchInput, CreateColombiaAchResponse, CreateInternationalSwiftInput, CreateInternationalSwiftResponse, CreatePixInput, CreatePixResponse, CreateRtpInput, CreateRtpResponse, CreateSpeiInput, CreateSpeiResponse, CreateWireInput, CreateWireResponse, DeleteBankAccountInput, GetBankAccountInput, GetBankAccountResponse, ListBankAccountsInput, ListBankAccountsResponse } from './resources/bank-accounts/index.mjs';
7
7
  import { createInstancesResource } from './resources/instances/index.mjs';
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { createApiKeysResource } from './resources/api-keys/index.js';
2
2
  export { CreateApiKeyInput, CreateApiKeyResponse, DeleteApiKeyInput, GetApiKeyInput, GetApiKeyResponse, ListApiKeysResponse } from './resources/api-keys/index.js';
3
3
  import { createAvailableResource } from './resources/available/index.js';
4
- export { BankDetailKey, GetBankDetailsResponse, GetRailsResponse } from './resources/available/index.js';
4
+ export { BankDetailKey, GetBankDetailsResponse, GetRailsResponse, GetSwiftCodeBankDetailsInput, GetSwiftCodeBankDetailsResponse } from './resources/available/index.js';
5
5
  import { createBankAccountsResource } from './resources/bank-accounts/index.js';
6
6
  export { AchCopDocument, ArgentinaTransfers, CreateAchInput, CreateAchResponse, CreateArgentinaTransfersInput, CreateArgentinaTransfersResponse, CreateColombiaAchInput, CreateColombiaAchResponse, CreateInternationalSwiftInput, CreateInternationalSwiftResponse, CreatePixInput, CreatePixResponse, CreateRtpInput, CreateRtpResponse, CreateSpeiInput, CreateSpeiResponse, CreateWireInput, CreateWireResponse, DeleteBankAccountInput, GetBankAccountInput, GetBankAccountResponse, ListBankAccountsInput, ListBankAccountsResponse } from './resources/bank-accounts/index.js';
7
7
  import { createInstancesResource } from './resources/instances/index.js';
package/dist/index.js CHANGED
@@ -91,7 +91,7 @@ module.exports = __toCommonJS(index_exports);
91
91
  var import_node_crypto = require("crypto");
92
92
 
93
93
  // package.json
94
- var version = "2.1.1";
94
+ var version = "2.2.0";
95
95
 
96
96
  // src/internal/blindpay-error.ts
97
97
  var BlindPayError = class extends Error {
@@ -128,6 +128,9 @@ function createAvailableResource(client) {
128
128
  },
129
129
  getRails() {
130
130
  return client.get("/available/rails");
131
+ },
132
+ getSwiftCodeBankDetails(swift) {
133
+ return client.get(`/available/swift/${swift}`);
131
134
  }
132
135
  };
133
136
  }
package/dist/index.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  BlindPay,
3
3
  init_client
4
- } from "./chunk-CWR4B22L.mjs";
4
+ } from "./chunk-QCRVXYWF.mjs";
5
5
  import {
6
6
  createBlockchainWalletsResource,
7
7
  init_blockchain
@@ -46,14 +46,14 @@ import {
46
46
  createApiKeysResource,
47
47
  init_api_keys
48
48
  } from "./chunk-LRHWT4JU.mjs";
49
+ import {
50
+ createAvailableResource,
51
+ init_available
52
+ } from "./chunk-U7CKUUO7.mjs";
49
53
  import {
50
54
  createBankAccountsResource,
51
55
  init_bank_accounts
52
56
  } from "./chunk-CPOSU35L.mjs";
53
- import {
54
- createAvailableResource,
55
- init_available
56
- } from "./chunk-QHMIK7U3.mjs";
57
57
  import {
58
58
  createInstancesResource,
59
59
  init_instances
@@ -18697,7 +18697,7 @@ var import_expect_type = __toESM(require_dist(), 1);
18697
18697
  var import_node_crypto = require("crypto");
18698
18698
 
18699
18699
  // package.json
18700
- var version = "2.1.1";
18700
+ var version = "2.2.0";
18701
18701
 
18702
18702
  // src/internal/blindpay-error.ts
18703
18703
  var BlindPayError = class extends Error {
@@ -18734,6 +18734,9 @@ function createAvailableResource(client) {
18734
18734
  },
18735
18735
  getRails() {
18736
18736
  return client.get("/available/rails");
18737
+ },
18738
+ getSwiftCodeBankDetails(swift) {
18739
+ return client.get(`/available/swift/${swift}`);
18737
18740
  }
18738
18741
  };
18739
18742
  }
@@ -7,7 +7,7 @@ import {
7
7
  import {
8
8
  BlindPay,
9
9
  init_client
10
- } from "../../chunk-CWR4B22L.mjs";
10
+ } from "../../chunk-QCRVXYWF.mjs";
11
11
  import "../../chunk-IZYPRCCV.mjs";
12
12
  import "../../chunk-QGNLMN6Z.mjs";
13
13
  import "../../chunk-UC57SCKQ.mjs";
@@ -19,8 +19,8 @@ import "../../chunk-W7NJUABI.mjs";
19
19
  import "../../chunk-E7M4CJKR.mjs";
20
20
  import "../../chunk-3QQCDR3E.mjs";
21
21
  import "../../chunk-LRHWT4JU.mjs";
22
+ import "../../chunk-U7CKUUO7.mjs";
22
23
  import "../../chunk-CPOSU35L.mjs";
23
- import "../../chunk-QHMIK7U3.mjs";
24
24
  import "../../chunk-B5T7AQLH.mjs";
25
25
  import {
26
26
  __async,
@@ -18702,7 +18702,7 @@ var import_expect_type = __toESM(require_dist(), 1);
18702
18702
  var import_node_crypto = require("crypto");
18703
18703
 
18704
18704
  // package.json
18705
- var version = "2.1.1";
18705
+ var version = "2.2.0";
18706
18706
 
18707
18707
  // src/internal/blindpay-error.ts
18708
18708
  var BlindPayError = class extends Error {
@@ -18739,6 +18739,9 @@ function createAvailableResource(client) {
18739
18739
  },
18740
18740
  getRails() {
18741
18741
  return client.get("/available/rails");
18742
+ },
18743
+ getSwiftCodeBankDetails(swift) {
18744
+ return client.get(`/available/swift/${swift}`);
18742
18745
  }
18743
18746
  };
18744
18747
  }
@@ -19411,6 +19414,30 @@ describe("Available", () => {
19411
19414
  globalExpect(data).toEqual(mockedRails);
19412
19415
  }));
19413
19416
  });
19417
+ describe("Get swift code bank details", () => {
19418
+ it("should get bank details of a swift code", () => __async(null, null, function* () {
19419
+ const mockedBankDetails = [
19420
+ {
19421
+ id: "416",
19422
+ bank: "BANK OF AMERICA, N.A.",
19423
+ city: "NEW JERSEY",
19424
+ branch: "LENDING SERVICES AND OPERATIONS (LSOP)",
19425
+ swiftCode: "BOFAUS3NLMA",
19426
+ swiftCodeLink: "https://bank.codes/swift-code/united-states/bofaus3nlma/",
19427
+ country: "United States",
19428
+ countrySlug: "united-states"
19429
+ }
19430
+ ];
19431
+ fetchMock.mockResponseOnce(JSON.stringify(mockedBankDetails), {
19432
+ headers: {
19433
+ "Content-Type": "application/json"
19434
+ }
19435
+ });
19436
+ const { data, error } = yield blindpay.available.getSwiftCodeBankDetails("BOFAUS3NLMA");
19437
+ globalExpect(error).toBeNull();
19438
+ globalExpect(data).toEqual(mockedBankDetails);
19439
+ }));
19440
+ });
19414
19441
  });
19415
19442
  /*! Bundled license information:
19416
19443
 
@@ -8,7 +8,7 @@ import {
8
8
  import {
9
9
  BlindPay,
10
10
  init_client
11
- } from "../../chunk-CWR4B22L.mjs";
11
+ } from "../../chunk-QCRVXYWF.mjs";
12
12
  import "../../chunk-IZYPRCCV.mjs";
13
13
  import "../../chunk-QGNLMN6Z.mjs";
14
14
  import "../../chunk-UC57SCKQ.mjs";
@@ -20,8 +20,8 @@ import "../../chunk-W7NJUABI.mjs";
20
20
  import "../../chunk-E7M4CJKR.mjs";
21
21
  import "../../chunk-3QQCDR3E.mjs";
22
22
  import "../../chunk-LRHWT4JU.mjs";
23
+ import "../../chunk-U7CKUUO7.mjs";
23
24
  import "../../chunk-CPOSU35L.mjs";
24
- import "../../chunk-QHMIK7U3.mjs";
25
25
  import "../../chunk-B5T7AQLH.mjs";
26
26
  import {
27
27
  __async,
@@ -116,6 +116,30 @@ var require_available_test = __commonJS({
116
116
  globalExpect(data).toEqual(mockedRails);
117
117
  }));
118
118
  });
119
+ describe("Get swift code bank details", () => {
120
+ it("should get bank details of a swift code", () => __async(null, null, function* () {
121
+ const mockedBankDetails = [
122
+ {
123
+ id: "416",
124
+ bank: "BANK OF AMERICA, N.A.",
125
+ city: "NEW JERSEY",
126
+ branch: "LENDING SERVICES AND OPERATIONS (LSOP)",
127
+ swiftCode: "BOFAUS3NLMA",
128
+ swiftCodeLink: "https://bank.codes/swift-code/united-states/bofaus3nlma/",
129
+ country: "United States",
130
+ countrySlug: "united-states"
131
+ }
132
+ ];
133
+ fetchMock.mockResponseOnce(JSON.stringify(mockedBankDetails), {
134
+ headers: {
135
+ "Content-Type": "application/json"
136
+ }
137
+ });
138
+ const { data, error } = yield blindpay.available.getSwiftCodeBankDetails("BOFAUS3NLMA");
139
+ globalExpect(error).toBeNull();
140
+ globalExpect(data).toEqual(mockedBankDetails);
141
+ }));
142
+ });
119
143
  });
120
144
  }
121
145
  });
@@ -17,9 +17,21 @@ type GetRailsResponse = Array<{
17
17
  value: Rail;
18
18
  country: string;
19
19
  }>;
20
+ type GetSwiftCodeBankDetailsInput = string;
21
+ type GetSwiftCodeBankDetailsResponse = Array<{
22
+ id: string;
23
+ bank: string;
24
+ city: string;
25
+ branch: string;
26
+ swiftCode: string;
27
+ swiftCodeLink: string;
28
+ country: string;
29
+ countrySlug: string;
30
+ }>;
20
31
  declare function createAvailableResource(client: InternalApiClient): {
21
32
  getBankDetails(rail: Rail): Promise<BlindpayApiResponse<GetBankDetailsResponse>>;
22
33
  getRails(): Promise<BlindpayApiResponse<GetRailsResponse>>;
34
+ getSwiftCodeBankDetails(swift: GetSwiftCodeBankDetailsInput): Promise<BlindpayApiResponse<GetSwiftCodeBankDetailsResponse>>;
23
35
  };
24
36
 
25
- export { type BankDetailKey, type GetBankDetailsResponse, type GetRailsResponse, createAvailableResource };
37
+ export { type BankDetailKey, type GetBankDetailsResponse, type GetRailsResponse, type GetSwiftCodeBankDetailsInput, type GetSwiftCodeBankDetailsResponse, createAvailableResource };
@@ -17,9 +17,21 @@ type GetRailsResponse = Array<{
17
17
  value: Rail;
18
18
  country: string;
19
19
  }>;
20
+ type GetSwiftCodeBankDetailsInput = string;
21
+ type GetSwiftCodeBankDetailsResponse = Array<{
22
+ id: string;
23
+ bank: string;
24
+ city: string;
25
+ branch: string;
26
+ swiftCode: string;
27
+ swiftCodeLink: string;
28
+ country: string;
29
+ countrySlug: string;
30
+ }>;
20
31
  declare function createAvailableResource(client: InternalApiClient): {
21
32
  getBankDetails(rail: Rail): Promise<BlindpayApiResponse<GetBankDetailsResponse>>;
22
33
  getRails(): Promise<BlindpayApiResponse<GetRailsResponse>>;
34
+ getSwiftCodeBankDetails(swift: GetSwiftCodeBankDetailsInput): Promise<BlindpayApiResponse<GetSwiftCodeBankDetailsResponse>>;
23
35
  };
24
36
 
25
- export { type BankDetailKey, type GetBankDetailsResponse, type GetRailsResponse, createAvailableResource };
37
+ export { type BankDetailKey, type GetBankDetailsResponse, type GetRailsResponse, type GetSwiftCodeBankDetailsInput, type GetSwiftCodeBankDetailsResponse, createAvailableResource };
@@ -30,6 +30,9 @@ function createAvailableResource(client) {
30
30
  },
31
31
  getRails() {
32
32
  return client.get("/available/rails");
33
+ },
34
+ getSwiftCodeBankDetails(swift) {
35
+ return client.get(`/available/swift/${swift}`);
33
36
  }
34
37
  };
35
38
  }
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  createAvailableResource,
3
3
  init_available
4
- } from "../../chunk-QHMIK7U3.mjs";
4
+ } from "../../chunk-U7CKUUO7.mjs";
5
5
  import "../../chunk-OBKEW4AQ.mjs";
6
6
  init_available();
7
7
  export {
@@ -18702,7 +18702,7 @@ var import_expect_type = __toESM(require_dist(), 1);
18702
18702
  var import_node_crypto = require("crypto");
18703
18703
 
18704
18704
  // package.json
18705
- var version = "2.1.1";
18705
+ var version = "2.2.0";
18706
18706
 
18707
18707
  // src/internal/blindpay-error.ts
18708
18708
  var BlindPayError = class extends Error {
@@ -18739,6 +18739,9 @@ function createAvailableResource(client) {
18739
18739
  },
18740
18740
  getRails() {
18741
18741
  return client.get("/available/rails");
18742
+ },
18743
+ getSwiftCodeBankDetails(swift) {
18744
+ return client.get(`/available/swift/${swift}`);
18742
18745
  }
18743
18746
  };
18744
18747
  }
@@ -8,7 +8,7 @@ import {
8
8
  import {
9
9
  BlindPay,
10
10
  init_client
11
- } from "../../chunk-CWR4B22L.mjs";
11
+ } from "../../chunk-QCRVXYWF.mjs";
12
12
  import "../../chunk-IZYPRCCV.mjs";
13
13
  import "../../chunk-QGNLMN6Z.mjs";
14
14
  import "../../chunk-UC57SCKQ.mjs";
@@ -20,8 +20,8 @@ import "../../chunk-W7NJUABI.mjs";
20
20
  import "../../chunk-E7M4CJKR.mjs";
21
21
  import "../../chunk-3QQCDR3E.mjs";
22
22
  import "../../chunk-LRHWT4JU.mjs";
23
+ import "../../chunk-U7CKUUO7.mjs";
23
24
  import "../../chunk-CPOSU35L.mjs";
24
- import "../../chunk-QHMIK7U3.mjs";
25
25
  import "../../chunk-B5T7AQLH.mjs";
26
26
  import {
27
27
  __async,
@@ -18702,7 +18702,7 @@ var import_expect_type = __toESM(require_dist(), 1);
18702
18702
  var import_node_crypto = require("crypto");
18703
18703
 
18704
18704
  // package.json
18705
- var version = "2.1.1";
18705
+ var version = "2.2.0";
18706
18706
 
18707
18707
  // src/internal/blindpay-error.ts
18708
18708
  var BlindPayError = class extends Error {
@@ -18739,6 +18739,9 @@ function createAvailableResource(client) {
18739
18739
  },
18740
18740
  getRails() {
18741
18741
  return client.get("/available/rails");
18742
+ },
18743
+ getSwiftCodeBankDetails(swift) {
18744
+ return client.get(`/available/swift/${swift}`);
18742
18745
  }
18743
18746
  };
18744
18747
  }
@@ -8,7 +8,7 @@ import {
8
8
  import {
9
9
  BlindPay,
10
10
  init_client
11
- } from "../../chunk-CWR4B22L.mjs";
11
+ } from "../../chunk-QCRVXYWF.mjs";
12
12
  import "../../chunk-IZYPRCCV.mjs";
13
13
  import "../../chunk-QGNLMN6Z.mjs";
14
14
  import "../../chunk-UC57SCKQ.mjs";
@@ -20,8 +20,8 @@ import "../../chunk-W7NJUABI.mjs";
20
20
  import "../../chunk-E7M4CJKR.mjs";
21
21
  import "../../chunk-3QQCDR3E.mjs";
22
22
  import "../../chunk-LRHWT4JU.mjs";
23
+ import "../../chunk-U7CKUUO7.mjs";
23
24
  import "../../chunk-CPOSU35L.mjs";
24
- import "../../chunk-QHMIK7U3.mjs";
25
25
  import "../../chunk-B5T7AQLH.mjs";
26
26
  import {
27
27
  __async,
@@ -18702,7 +18702,7 @@ var import_expect_type = __toESM(require_dist(), 1);
18702
18702
  var import_node_crypto = require("crypto");
18703
18703
 
18704
18704
  // package.json
18705
- var version = "2.1.1";
18705
+ var version = "2.2.0";
18706
18706
 
18707
18707
  // src/internal/blindpay-error.ts
18708
18708
  var BlindPayError = class extends Error {
@@ -18739,6 +18739,9 @@ function createAvailableResource(client) {
18739
18739
  },
18740
18740
  getRails() {
18741
18741
  return client.get("/available/rails");
18742
+ },
18743
+ getSwiftCodeBankDetails(swift) {
18744
+ return client.get(`/available/swift/${swift}`);
18742
18745
  }
18743
18746
  };
18744
18747
  }
@@ -8,7 +8,7 @@ import {
8
8
  import {
9
9
  BlindPay,
10
10
  init_client
11
- } from "../../chunk-CWR4B22L.mjs";
11
+ } from "../../chunk-QCRVXYWF.mjs";
12
12
  import "../../chunk-IZYPRCCV.mjs";
13
13
  import "../../chunk-QGNLMN6Z.mjs";
14
14
  import "../../chunk-UC57SCKQ.mjs";
@@ -20,8 +20,8 @@ import "../../chunk-W7NJUABI.mjs";
20
20
  import "../../chunk-E7M4CJKR.mjs";
21
21
  import "../../chunk-3QQCDR3E.mjs";
22
22
  import "../../chunk-LRHWT4JU.mjs";
23
+ import "../../chunk-U7CKUUO7.mjs";
23
24
  import "../../chunk-CPOSU35L.mjs";
24
- import "../../chunk-QHMIK7U3.mjs";
25
25
  import "../../chunk-B5T7AQLH.mjs";
26
26
  import {
27
27
  __async,
@@ -18702,7 +18702,7 @@ var import_expect_type = __toESM(require_dist(), 1);
18702
18702
  var import_node_crypto = require("crypto");
18703
18703
 
18704
18704
  // package.json
18705
- var version = "2.1.1";
18705
+ var version = "2.2.0";
18706
18706
 
18707
18707
  // src/internal/blindpay-error.ts
18708
18708
  var BlindPayError = class extends Error {
@@ -18739,6 +18739,9 @@ function createAvailableResource(client) {
18739
18739
  },
18740
18740
  getRails() {
18741
18741
  return client.get("/available/rails");
18742
+ },
18743
+ getSwiftCodeBankDetails(swift) {
18744
+ return client.get(`/available/swift/${swift}`);
18742
18745
  }
18743
18746
  };
18744
18747
  }
@@ -8,7 +8,7 @@ import {
8
8
  import {
9
9
  BlindPay,
10
10
  init_client
11
- } from "../../chunk-CWR4B22L.mjs";
11
+ } from "../../chunk-QCRVXYWF.mjs";
12
12
  import "../../chunk-IZYPRCCV.mjs";
13
13
  import "../../chunk-QGNLMN6Z.mjs";
14
14
  import "../../chunk-UC57SCKQ.mjs";
@@ -20,8 +20,8 @@ import "../../chunk-W7NJUABI.mjs";
20
20
  import "../../chunk-E7M4CJKR.mjs";
21
21
  import "../../chunk-3QQCDR3E.mjs";
22
22
  import "../../chunk-LRHWT4JU.mjs";
23
+ import "../../chunk-U7CKUUO7.mjs";
23
24
  import "../../chunk-CPOSU35L.mjs";
24
- import "../../chunk-QHMIK7U3.mjs";
25
25
  import "../../chunk-B5T7AQLH.mjs";
26
26
  import {
27
27
  __async,
@@ -18702,7 +18702,7 @@ var import_expect_type = __toESM(require_dist(), 1);
18702
18702
  var import_node_crypto = require("crypto");
18703
18703
 
18704
18704
  // package.json
18705
- var version = "2.1.1";
18705
+ var version = "2.2.0";
18706
18706
 
18707
18707
  // src/internal/blindpay-error.ts
18708
18708
  var BlindPayError = class extends Error {
@@ -18739,6 +18739,9 @@ function createAvailableResource(client) {
18739
18739
  },
18740
18740
  getRails() {
18741
18741
  return client.get("/available/rails");
18742
+ },
18743
+ getSwiftCodeBankDetails(swift) {
18744
+ return client.get(`/available/swift/${swift}`);
18742
18745
  }
18743
18746
  };
18744
18747
  }
@@ -8,7 +8,7 @@ import {
8
8
  import {
9
9
  BlindPay,
10
10
  init_client
11
- } from "../../chunk-CWR4B22L.mjs";
11
+ } from "../../chunk-QCRVXYWF.mjs";
12
12
  import "../../chunk-IZYPRCCV.mjs";
13
13
  import "../../chunk-QGNLMN6Z.mjs";
14
14
  import "../../chunk-UC57SCKQ.mjs";
@@ -20,8 +20,8 @@ import "../../chunk-W7NJUABI.mjs";
20
20
  import "../../chunk-E7M4CJKR.mjs";
21
21
  import "../../chunk-3QQCDR3E.mjs";
22
22
  import "../../chunk-LRHWT4JU.mjs";
23
+ import "../../chunk-U7CKUUO7.mjs";
23
24
  import "../../chunk-CPOSU35L.mjs";
24
- import "../../chunk-QHMIK7U3.mjs";
25
25
  import "../../chunk-B5T7AQLH.mjs";
26
26
  import {
27
27
  __async,
@@ -18702,7 +18702,7 @@ var import_expect_type = __toESM(require_dist(), 1);
18702
18702
  var import_node_crypto = require("crypto");
18703
18703
 
18704
18704
  // package.json
18705
- var version = "2.1.1";
18705
+ var version = "2.2.0";
18706
18706
 
18707
18707
  // src/internal/blindpay-error.ts
18708
18708
  var BlindPayError = class extends Error {
@@ -18739,6 +18739,9 @@ function createAvailableResource(client) {
18739
18739
  },
18740
18740
  getRails() {
18741
18741
  return client.get("/available/rails");
18742
+ },
18743
+ getSwiftCodeBankDetails(swift) {
18744
+ return client.get(`/available/swift/${swift}`);
18742
18745
  }
18743
18746
  };
18744
18747
  }
@@ -8,7 +8,7 @@ import {
8
8
  import {
9
9
  BlindPay,
10
10
  init_client
11
- } from "../../chunk-CWR4B22L.mjs";
11
+ } from "../../chunk-QCRVXYWF.mjs";
12
12
  import "../../chunk-IZYPRCCV.mjs";
13
13
  import "../../chunk-QGNLMN6Z.mjs";
14
14
  import "../../chunk-UC57SCKQ.mjs";
@@ -20,8 +20,8 @@ import "../../chunk-W7NJUABI.mjs";
20
20
  import "../../chunk-E7M4CJKR.mjs";
21
21
  import "../../chunk-3QQCDR3E.mjs";
22
22
  import "../../chunk-LRHWT4JU.mjs";
23
+ import "../../chunk-U7CKUUO7.mjs";
23
24
  import "../../chunk-CPOSU35L.mjs";
24
- import "../../chunk-QHMIK7U3.mjs";
25
25
  import "../../chunk-B5T7AQLH.mjs";
26
26
  import {
27
27
  __async,
@@ -18702,7 +18702,7 @@ var import_expect_type = __toESM(require_dist(), 1);
18702
18702
  var import_node_crypto = require("crypto");
18703
18703
 
18704
18704
  // package.json
18705
- var version = "2.1.1";
18705
+ var version = "2.2.0";
18706
18706
 
18707
18707
  // src/internal/blindpay-error.ts
18708
18708
  var BlindPayError = class extends Error {
@@ -18739,6 +18739,9 @@ function createAvailableResource(client) {
18739
18739
  },
18740
18740
  getRails() {
18741
18741
  return client.get("/available/rails");
18742
+ },
18743
+ getSwiftCodeBankDetails(swift) {
18744
+ return client.get(`/available/swift/${swift}`);
18742
18745
  }
18743
18746
  };
18744
18747
  }
@@ -8,7 +8,7 @@ import {
8
8
  import {
9
9
  BlindPay,
10
10
  init_client
11
- } from "../../chunk-CWR4B22L.mjs";
11
+ } from "../../chunk-QCRVXYWF.mjs";
12
12
  import "../../chunk-IZYPRCCV.mjs";
13
13
  import "../../chunk-QGNLMN6Z.mjs";
14
14
  import "../../chunk-UC57SCKQ.mjs";
@@ -20,8 +20,8 @@ import "../../chunk-W7NJUABI.mjs";
20
20
  import "../../chunk-E7M4CJKR.mjs";
21
21
  import "../../chunk-3QQCDR3E.mjs";
22
22
  import "../../chunk-LRHWT4JU.mjs";
23
+ import "../../chunk-U7CKUUO7.mjs";
23
24
  import "../../chunk-CPOSU35L.mjs";
24
- import "../../chunk-QHMIK7U3.mjs";
25
25
  import "../../chunk-B5T7AQLH.mjs";
26
26
  import {
27
27
  __async,
@@ -18702,7 +18702,7 @@ var import_expect_type = __toESM(require_dist(), 1);
18702
18702
  var import_node_crypto = require("crypto");
18703
18703
 
18704
18704
  // package.json
18705
- var version = "2.1.1";
18705
+ var version = "2.2.0";
18706
18706
 
18707
18707
  // src/internal/blindpay-error.ts
18708
18708
  var BlindPayError = class extends Error {
@@ -18739,6 +18739,9 @@ function createAvailableResource(client) {
18739
18739
  },
18740
18740
  getRails() {
18741
18741
  return client.get("/available/rails");
18742
+ },
18743
+ getSwiftCodeBankDetails(swift) {
18744
+ return client.get(`/available/swift/${swift}`);
18742
18745
  }
18743
18746
  };
18744
18747
  }
@@ -8,7 +8,7 @@ import {
8
8
  import {
9
9
  BlindPay,
10
10
  init_client
11
- } from "../../chunk-CWR4B22L.mjs";
11
+ } from "../../chunk-QCRVXYWF.mjs";
12
12
  import "../../chunk-IZYPRCCV.mjs";
13
13
  import "../../chunk-QGNLMN6Z.mjs";
14
14
  import "../../chunk-UC57SCKQ.mjs";
@@ -20,8 +20,8 @@ import "../../chunk-W7NJUABI.mjs";
20
20
  import "../../chunk-E7M4CJKR.mjs";
21
21
  import "../../chunk-3QQCDR3E.mjs";
22
22
  import "../../chunk-LRHWT4JU.mjs";
23
+ import "../../chunk-U7CKUUO7.mjs";
23
24
  import "../../chunk-CPOSU35L.mjs";
24
- import "../../chunk-QHMIK7U3.mjs";
25
25
  import "../../chunk-B5T7AQLH.mjs";
26
26
  import {
27
27
  __async,
@@ -18702,7 +18702,7 @@ var import_expect_type = __toESM(require_dist(), 1);
18702
18702
  var import_node_crypto = require("crypto");
18703
18703
 
18704
18704
  // package.json
18705
- var version = "2.1.1";
18705
+ var version = "2.2.0";
18706
18706
 
18707
18707
  // src/internal/blindpay-error.ts
18708
18708
  var BlindPayError = class extends Error {
@@ -18739,6 +18739,9 @@ function createAvailableResource(client) {
18739
18739
  },
18740
18740
  getRails() {
18741
18741
  return client.get("/available/rails");
18742
+ },
18743
+ getSwiftCodeBankDetails(swift) {
18744
+ return client.get(`/available/swift/${swift}`);
18742
18745
  }
18743
18746
  };
18744
18747
  }
@@ -8,7 +8,7 @@ import {
8
8
  import {
9
9
  BlindPay,
10
10
  init_client
11
- } from "../../chunk-CWR4B22L.mjs";
11
+ } from "../../chunk-QCRVXYWF.mjs";
12
12
  import "../../chunk-IZYPRCCV.mjs";
13
13
  import "../../chunk-QGNLMN6Z.mjs";
14
14
  import "../../chunk-UC57SCKQ.mjs";
@@ -20,8 +20,8 @@ import "../../chunk-W7NJUABI.mjs";
20
20
  import "../../chunk-E7M4CJKR.mjs";
21
21
  import "../../chunk-3QQCDR3E.mjs";
22
22
  import "../../chunk-LRHWT4JU.mjs";
23
+ import "../../chunk-U7CKUUO7.mjs";
23
24
  import "../../chunk-CPOSU35L.mjs";
24
- import "../../chunk-QHMIK7U3.mjs";
25
25
  import "../../chunk-B5T7AQLH.mjs";
26
26
  import {
27
27
  __async,
@@ -18702,7 +18702,7 @@ var import_expect_type = __toESM(require_dist(), 1);
18702
18702
  var import_node_crypto = require("crypto");
18703
18703
 
18704
18704
  // package.json
18705
- var version = "2.1.1";
18705
+ var version = "2.2.0";
18706
18706
 
18707
18707
  // src/internal/blindpay-error.ts
18708
18708
  var BlindPayError = class extends Error {
@@ -18739,6 +18739,9 @@ function createAvailableResource(client) {
18739
18739
  },
18740
18740
  getRails() {
18741
18741
  return client.get("/available/rails");
18742
+ },
18743
+ getSwiftCodeBankDetails(swift) {
18744
+ return client.get(`/available/swift/${swift}`);
18742
18745
  }
18743
18746
  };
18744
18747
  }
@@ -8,7 +8,7 @@ import {
8
8
  import {
9
9
  BlindPay,
10
10
  init_client
11
- } from "../../chunk-CWR4B22L.mjs";
11
+ } from "../../chunk-QCRVXYWF.mjs";
12
12
  import "../../chunk-IZYPRCCV.mjs";
13
13
  import "../../chunk-QGNLMN6Z.mjs";
14
14
  import "../../chunk-UC57SCKQ.mjs";
@@ -20,8 +20,8 @@ import "../../chunk-W7NJUABI.mjs";
20
20
  import "../../chunk-E7M4CJKR.mjs";
21
21
  import "../../chunk-3QQCDR3E.mjs";
22
22
  import "../../chunk-LRHWT4JU.mjs";
23
+ import "../../chunk-U7CKUUO7.mjs";
23
24
  import "../../chunk-CPOSU35L.mjs";
24
- import "../../chunk-QHMIK7U3.mjs";
25
25
  import "../../chunk-B5T7AQLH.mjs";
26
26
  import {
27
27
  __async,
@@ -18702,7 +18702,7 @@ var import_expect_type = __toESM(require_dist(), 1);
18702
18702
  var import_node_crypto = require("crypto");
18703
18703
 
18704
18704
  // package.json
18705
- var version = "2.1.1";
18705
+ var version = "2.2.0";
18706
18706
 
18707
18707
  // src/internal/blindpay-error.ts
18708
18708
  var BlindPayError = class extends Error {
@@ -18739,6 +18739,9 @@ function createAvailableResource(client) {
18739
18739
  },
18740
18740
  getRails() {
18741
18741
  return client.get("/available/rails");
18742
+ },
18743
+ getSwiftCodeBankDetails(swift) {
18744
+ return client.get(`/available/swift/${swift}`);
18742
18745
  }
18743
18746
  };
18744
18747
  }
@@ -8,7 +8,7 @@ import {
8
8
  import {
9
9
  BlindPay,
10
10
  init_client
11
- } from "../../chunk-CWR4B22L.mjs";
11
+ } from "../../chunk-QCRVXYWF.mjs";
12
12
  import "../../chunk-IZYPRCCV.mjs";
13
13
  import "../../chunk-QGNLMN6Z.mjs";
14
14
  import "../../chunk-UC57SCKQ.mjs";
@@ -20,8 +20,8 @@ import "../../chunk-W7NJUABI.mjs";
20
20
  import "../../chunk-E7M4CJKR.mjs";
21
21
  import "../../chunk-3QQCDR3E.mjs";
22
22
  import "../../chunk-LRHWT4JU.mjs";
23
+ import "../../chunk-U7CKUUO7.mjs";
23
24
  import "../../chunk-CPOSU35L.mjs";
24
- import "../../chunk-QHMIK7U3.mjs";
25
25
  import "../../chunk-B5T7AQLH.mjs";
26
26
  import {
27
27
  __async,
@@ -18702,7 +18702,7 @@ var import_expect_type = __toESM(require_dist(), 1);
18702
18702
  var import_node_crypto = require("crypto");
18703
18703
 
18704
18704
  // package.json
18705
- var version = "2.1.1";
18705
+ var version = "2.2.0";
18706
18706
 
18707
18707
  // src/internal/blindpay-error.ts
18708
18708
  var BlindPayError = class extends Error {
@@ -18739,6 +18739,9 @@ function createAvailableResource(client) {
18739
18739
  },
18740
18740
  getRails() {
18741
18741
  return client.get("/available/rails");
18742
+ },
18743
+ getSwiftCodeBankDetails(swift) {
18744
+ return client.get(`/available/swift/${swift}`);
18742
18745
  }
18743
18746
  };
18744
18747
  }
@@ -8,7 +8,7 @@ import {
8
8
  import {
9
9
  BlindPay,
10
10
  init_client
11
- } from "../../chunk-CWR4B22L.mjs";
11
+ } from "../../chunk-QCRVXYWF.mjs";
12
12
  import "../../chunk-IZYPRCCV.mjs";
13
13
  import "../../chunk-QGNLMN6Z.mjs";
14
14
  import "../../chunk-UC57SCKQ.mjs";
@@ -20,8 +20,8 @@ import "../../chunk-W7NJUABI.mjs";
20
20
  import "../../chunk-E7M4CJKR.mjs";
21
21
  import "../../chunk-3QQCDR3E.mjs";
22
22
  import "../../chunk-LRHWT4JU.mjs";
23
+ import "../../chunk-U7CKUUO7.mjs";
23
24
  import "../../chunk-CPOSU35L.mjs";
24
- import "../../chunk-QHMIK7U3.mjs";
25
25
  import "../../chunk-B5T7AQLH.mjs";
26
26
  import {
27
27
  __async,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blindpay/node",
3
- "version": "2.1.1",
3
+ "version": "2.2.0",
4
4
  "description": "Official Node.js SDK for Blindpay API - Global payments infrastructure",
5
5
  "keywords": [
6
6
  "blindpay",