@blindpay/node 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +124 -0
- package/dist/api-client-Cw2mNJeR.d.mts +349 -0
- package/dist/api-client-Cw2mNJeR.d.ts +349 -0
- package/dist/chunk-2DAKB5XK.mjs +212 -0
- package/dist/chunk-3CZJEDS5.mjs +41 -0
- package/dist/chunk-CNNEROQ7.mjs +46 -0
- package/dist/chunk-ES7RXEM7.mjs +245 -0
- package/dist/chunk-GCCHFONX.mjs +17893 -0
- package/dist/chunk-GEDDLCJY.mjs +77 -0
- package/dist/chunk-GNDAATIJ.mjs +35 -0
- package/dist/chunk-HKFAJXJG.mjs +65 -0
- package/dist/chunk-LK3JPQ6I.mjs +49 -0
- package/dist/chunk-LLWEHHKB.mjs +47 -0
- package/dist/chunk-LUDGZPXY.mjs +51 -0
- package/dist/chunk-M6IYYMRW.mjs +35 -0
- package/dist/chunk-OBKEW4AQ.mjs +91 -0
- package/dist/chunk-QHMIK7U3.mjs +24 -0
- package/dist/chunk-QVOSGLUO.mjs +36 -0
- package/dist/chunk-UCAW3RTZ.mjs +47 -0
- package/dist/chunk-VKN2AMCW.mjs +57 -0
- package/dist/index.d.mts +81 -0
- package/dist/index.d.ts +81 -0
- package/dist/index.js +895 -0
- package/dist/index.mjs +95 -0
- package/dist/magic-string.es-6D2DRE4K.mjs +1325 -0
- package/dist/resources/api-keys/api-keys.test.d.mts +2 -0
- package/dist/resources/api-keys/api-keys.test.d.ts +2 -0
- package/dist/resources/api-keys/api-keys.test.js +19881 -0
- package/dist/resources/api-keys/api-keys.test.mjs +130 -0
- package/dist/resources/api-keys/index.d.mts +45 -0
- package/dist/resources/api-keys/index.d.ts +45 -0
- package/dist/resources/api-keys/index.js +64 -0
- package/dist/resources/api-keys/index.mjs +9 -0
- package/dist/resources/available/available.test.d.mts +2 -0
- package/dist/resources/available/available.test.d.ts +2 -0
- package/dist/resources/available/available.test.js +19877 -0
- package/dist/resources/available/available.test.mjs +122 -0
- package/dist/resources/available/index.d.mts +25 -0
- package/dist/resources/available/index.d.ts +25 -0
- package/dist/resources/available/index.js +39 -0
- package/dist/resources/available/index.mjs +9 -0
- package/dist/resources/bank-accounts/bank-accounts.test.d.mts +2 -0
- package/dist/resources/bank-accounts/bank-accounts.test.d.ts +2 -0
- package/dist/resources/bank-accounts/bank-accounts.test.js +20173 -0
- package/dist/resources/bank-accounts/bank-accounts.test.mjs +418 -0
- package/dist/resources/bank-accounts/index.d.mts +414 -0
- package/dist/resources/bank-accounts/index.d.ts +414 -0
- package/dist/resources/bank-accounts/index.js +227 -0
- package/dist/resources/bank-accounts/index.mjs +9 -0
- package/dist/resources/instances/index.d.mts +42 -0
- package/dist/resources/instances/index.d.ts +42 -0
- package/dist/resources/instances/index.js +75 -0
- package/dist/resources/instances/index.mjs +9 -0
- package/dist/resources/instances/instances.test.d.mts +2 -0
- package/dist/resources/instances/instances.test.d.ts +2 -0
- package/dist/resources/instances/instances.test.js +19873 -0
- package/dist/resources/instances/instances.test.mjs +118 -0
- package/dist/resources/partner-fees/index.d.mts +65 -0
- package/dist/resources/partner-fees/index.d.ts +65 -0
- package/dist/resources/partner-fees/index.js +69 -0
- package/dist/resources/partner-fees/index.mjs +9 -0
- package/dist/resources/partner-fees/partner-fees.test.d.mts +2 -0
- package/dist/resources/partner-fees/partner-fees.test.d.ts +2 -0
- package/dist/resources/partner-fees/partner-fees.test.js +19889 -0
- package/dist/resources/partner-fees/partner-fees.test.mjs +134 -0
- package/dist/resources/payins/index.d.mts +200 -0
- package/dist/resources/payins/index.d.ts +200 -0
- package/dist/resources/payins/index.js +75 -0
- package/dist/resources/payins/index.mjs +9 -0
- package/dist/resources/payins/payins-quotes.test.d.mts +2 -0
- package/dist/resources/payins/payins-quotes.test.d.ts +2 -0
- package/dist/resources/payins/payins-quotes.test.js +19852 -0
- package/dist/resources/payins/payins-quotes.test.mjs +97 -0
- package/dist/resources/payins/payins.test.d.mts +2 -0
- package/dist/resources/payins/payins.test.d.ts +2 -0
- package/dist/resources/payins/payins.test.js +20268 -0
- package/dist/resources/payins/payins.test.mjs +513 -0
- package/dist/resources/payins/quotes.d.mts +45 -0
- package/dist/resources/payins/quotes.d.ts +45 -0
- package/dist/resources/payins/quotes.js +63 -0
- package/dist/resources/payins/quotes.mjs +9 -0
- package/dist/resources/payouts/index.d.mts +155 -0
- package/dist/resources/payouts/index.d.ts +155 -0
- package/dist/resources/payouts/index.js +93 -0
- package/dist/resources/payouts/index.mjs +9 -0
- package/dist/resources/payouts/payouts.test.d.mts +2 -0
- package/dist/resources/payouts/payouts.test.d.ts +2 -0
- package/dist/resources/payouts/payouts.test.js +20346 -0
- package/dist/resources/payouts/payouts.test.mjs +591 -0
- package/dist/resources/quotes/index.d.mts +59 -0
- package/dist/resources/quotes/index.d.ts +59 -0
- package/dist/resources/quotes/index.js +63 -0
- package/dist/resources/quotes/index.mjs +9 -0
- package/dist/resources/quotes/quotes.test.d.mts +2 -0
- package/dist/resources/quotes/quotes.test.d.ts +2 -0
- package/dist/resources/quotes/quotes.test.js +19866 -0
- package/dist/resources/quotes/quotes.test.mjs +111 -0
- package/dist/resources/receivers/index.d.mts +205 -0
- package/dist/resources/receivers/index.d.ts +205 -0
- package/dist/resources/receivers/index.js +85 -0
- package/dist/resources/receivers/index.mjs +9 -0
- package/dist/resources/receivers/receivers.test.d.mts +2 -0
- package/dist/resources/receivers/receivers.test.d.ts +2 -0
- package/dist/resources/receivers/receivers.test.js +20145 -0
- package/dist/resources/receivers/receivers.test.mjs +390 -0
- package/dist/resources/virtual-accounts/index.d.mts +58 -0
- package/dist/resources/virtual-accounts/index.d.ts +58 -0
- package/dist/resources/virtual-accounts/index.js +79 -0
- package/dist/resources/virtual-accounts/index.mjs +9 -0
- package/dist/resources/virtual-accounts/virtual-accounts.test.d.mts +2 -0
- package/dist/resources/virtual-accounts/virtual-accounts.test.d.ts +2 -0
- package/dist/resources/virtual-accounts/virtual-accounts.test.js +19902 -0
- package/dist/resources/virtual-accounts/virtual-accounts.test.mjs +147 -0
- package/dist/resources/wallets/blockchain.d.mts +83 -0
- package/dist/resources/wallets/blockchain.d.ts +83 -0
- package/dist/resources/wallets/blockchain.js +105 -0
- package/dist/resources/wallets/blockchain.mjs +9 -0
- package/dist/resources/wallets/blockchain.test.d.mts +2 -0
- package/dist/resources/wallets/blockchain.test.d.ts +2 -0
- package/dist/resources/wallets/blockchain.test.js +19897 -0
- package/dist/resources/wallets/blockchain.test.mjs +142 -0
- package/dist/resources/wallets/offramp.d.mts +46 -0
- package/dist/resources/wallets/offramp.d.ts +46 -0
- package/dist/resources/wallets/offramp.js +77 -0
- package/dist/resources/wallets/offramp.mjs +9 -0
- package/dist/resources/wallets/offramp.test.d.mts +2 -0
- package/dist/resources/wallets/offramp.test.d.ts +2 -0
- package/dist/resources/wallets/offramp.test.js +19872 -0
- package/dist/resources/wallets/offramp.test.mjs +117 -0
- package/dist/resources/webhooks/index.d.mts +49 -0
- package/dist/resources/webhooks/index.d.ts +49 -0
- package/dist/resources/webhooks/index.js +74 -0
- package/dist/resources/webhooks/index.mjs +9 -0
- package/dist/resources/webhooks/webhooks.test.d.mts +2 -0
- package/dist/resources/webhooks/webhooks.test.d.ts +2 -0
- package/dist/resources/webhooks/webhooks.test.js +19878 -0
- package/dist/resources/webhooks/webhooks.test.mjs +123 -0
- package/package.json +65 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2023 Blind Pay, Inc.
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
# Blindpay Node.js SDK
|
|
2
|
+
|
|
3
|
+
The official Node.js SDK for [Blindpay](https://blindpay.com) - Global payments infrastructure made simple.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install @blindpay/node
|
|
9
|
+
# or
|
|
10
|
+
yarn add @blindpay/node
|
|
11
|
+
# or
|
|
12
|
+
pnpm add @blindpay/node
|
|
13
|
+
# or
|
|
14
|
+
bun add @blindpay/node
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
## 🔑 Authentication
|
|
18
|
+
|
|
19
|
+
Get your API key from the Blindpay (https://app.blindpay.com/instances/{instanceId}/api-keys) and initialize the client:
|
|
20
|
+
|
|
21
|
+
```typescript
|
|
22
|
+
import { Blindpay } from '@blindpay/node';
|
|
23
|
+
|
|
24
|
+
const blindpay = new Blindpay('your-api-key-here');
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
## Quick Start
|
|
28
|
+
|
|
29
|
+
### Check for available rails
|
|
30
|
+
|
|
31
|
+
```typescript
|
|
32
|
+
async function getAvailableRails() {
|
|
33
|
+
const blindpay = new Blindpay("your-api-key");
|
|
34
|
+
|
|
35
|
+
const { data, error } = await blindpay.available.getRails();
|
|
36
|
+
|
|
37
|
+
if (error) {
|
|
38
|
+
throw new Error(error.message)
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
console.log('Rails: ', data)
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
getAvailableRails()
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
## Response Format
|
|
48
|
+
|
|
49
|
+
All API methods return a consistent response format:
|
|
50
|
+
|
|
51
|
+
```typescript
|
|
52
|
+
export type BlindpayApiResponse<T> = BlindpayErrorResponse | BlindpaySuccessResponse<T>
|
|
53
|
+
|
|
54
|
+
export type ErrorResponse = {
|
|
55
|
+
message: string;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export type BlindpayErrorResponse = {
|
|
59
|
+
data: null
|
|
60
|
+
error: ErrorResponse;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export type BlindpaySuccessResponse<T> = {
|
|
64
|
+
data: T;
|
|
65
|
+
error: null;
|
|
66
|
+
}
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
### Success Response
|
|
70
|
+
|
|
71
|
+
```typescript
|
|
72
|
+
{
|
|
73
|
+
data: /* your data */ ,
|
|
74
|
+
error: null
|
|
75
|
+
}
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
### Error Response
|
|
79
|
+
|
|
80
|
+
```typescript
|
|
81
|
+
{
|
|
82
|
+
data: null,
|
|
83
|
+
error: {
|
|
84
|
+
message: "Error message"
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
## Error Handling
|
|
90
|
+
|
|
91
|
+
The SDK uses a consistent error handling pattern. Always check for errors:
|
|
92
|
+
|
|
93
|
+
```typescript
|
|
94
|
+
const { data, error } = await blindpay.payins.list({
|
|
95
|
+
instanceId: "your-instance-id",
|
|
96
|
+
});
|
|
97
|
+
|
|
98
|
+
if (error) {
|
|
99
|
+
// Handle error
|
|
100
|
+
console.error('API Error:', error.message);
|
|
101
|
+
return;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
console.log('Success:', data); // fully typed
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
For detailed API documentation, visit:
|
|
108
|
+
- [Blindpay API documentation](https://blindpay.com/docs/getting-started/overview)
|
|
109
|
+
- [API Reference](https://api.blindpay.com/reference)
|
|
110
|
+
|
|
111
|
+
## 🆘 Support
|
|
112
|
+
|
|
113
|
+
- 📧 Email: [gabriel@blindpay.com](mailto:gabriel@blindpay.com)
|
|
114
|
+
- 🐛 Issues: [GitHub Issues](https://github.com/blindpaylabs/node/issues)
|
|
115
|
+
|
|
116
|
+
## 🏷️ Changelog
|
|
117
|
+
|
|
118
|
+
See [CHANGELOG.md](CHANGELOG.md) for a list of changes and version history.
|
|
119
|
+
|
|
120
|
+
## 📝 License
|
|
121
|
+
|
|
122
|
+
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
|
|
123
|
+
|
|
124
|
+
Made with ❤️ by the [Blindpay](https://blindpay.com) team
|
|
@@ -0,0 +1,349 @@
|
|
|
1
|
+
type BlindpayApiResponse<T> = BlindpayErrorResponse | BlindpaySuccessResponse<T>
|
|
2
|
+
|
|
3
|
+
type ErrorResponse = {
|
|
4
|
+
message: string;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
type BlindpayErrorResponse = {
|
|
8
|
+
data: null
|
|
9
|
+
error: ErrorResponse;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
type BlindpaySuccessResponse<T> = {
|
|
13
|
+
data: T;
|
|
14
|
+
error: null;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
type CurrencyType = "sender" | "receiver";
|
|
18
|
+
|
|
19
|
+
type Network = "base" | "sepolia" | "arbitrum_sepolia" | "base_sepolia" | "arbitrum" | "polygon" | "polygon_amoy" | "ethereum" | "stellar" | "stellar_testnet" | "tron"
|
|
20
|
+
|
|
21
|
+
type StablecoinToken = "USDC" | "USDT" | "USDB"
|
|
22
|
+
|
|
23
|
+
type TransactionDocumentType = "invoice" | "purchase_order" | "delivery_slip" | "contract" | "customs_declaration" | "bill_of_lading" | "others";
|
|
24
|
+
|
|
25
|
+
type BankAccountType = "checking" | "savings";
|
|
26
|
+
|
|
27
|
+
type Currency = "USDC" | "USDT" | "USDB" | "BRL" | "USD" | "MXN" | "COP" | "ARS";
|
|
28
|
+
|
|
29
|
+
type Rail = "wire" | "ach" | "pix" | "spei_bitso" | "transfers_bitso" | "ach_cop_bitso" | "international_swift" | "rtp";
|
|
30
|
+
|
|
31
|
+
type AccountClass = "individual" | "business";
|
|
32
|
+
|
|
33
|
+
type TransactionStatus = "refunded" | "processing" | "completed" | "failed" | "on_hold";
|
|
34
|
+
|
|
35
|
+
type Country =
|
|
36
|
+
| "AF"
|
|
37
|
+
| "AL"
|
|
38
|
+
| "DZ"
|
|
39
|
+
| "AS"
|
|
40
|
+
| "AD"
|
|
41
|
+
| "AO"
|
|
42
|
+
| "AI"
|
|
43
|
+
| "AQ"
|
|
44
|
+
| "AG"
|
|
45
|
+
| "AR"
|
|
46
|
+
| "AM"
|
|
47
|
+
| "AW"
|
|
48
|
+
| "AU"
|
|
49
|
+
| "AT"
|
|
50
|
+
| "AZ"
|
|
51
|
+
| "BS"
|
|
52
|
+
| "BH"
|
|
53
|
+
| "BD"
|
|
54
|
+
| "BB"
|
|
55
|
+
| "BY"
|
|
56
|
+
| "BE"
|
|
57
|
+
| "BZ"
|
|
58
|
+
| "BJ"
|
|
59
|
+
| "BM"
|
|
60
|
+
| "BT"
|
|
61
|
+
| "BO"
|
|
62
|
+
| "BQ"
|
|
63
|
+
| "BA"
|
|
64
|
+
| "BW"
|
|
65
|
+
| "BV"
|
|
66
|
+
| "BR"
|
|
67
|
+
| "IO"
|
|
68
|
+
| "BN"
|
|
69
|
+
| "BG"
|
|
70
|
+
| "BF"
|
|
71
|
+
| "BI"
|
|
72
|
+
| "CV"
|
|
73
|
+
| "KH"
|
|
74
|
+
| "CM"
|
|
75
|
+
| "CA"
|
|
76
|
+
| "KY"
|
|
77
|
+
| "CF"
|
|
78
|
+
| "TD"
|
|
79
|
+
| "CL"
|
|
80
|
+
| "CN"
|
|
81
|
+
| "CX"
|
|
82
|
+
| "CC"
|
|
83
|
+
| "CO"
|
|
84
|
+
| "KM"
|
|
85
|
+
| "CD"
|
|
86
|
+
| "CG"
|
|
87
|
+
| "CK"
|
|
88
|
+
| "CR"
|
|
89
|
+
| "HR"
|
|
90
|
+
| "CU"
|
|
91
|
+
| "CW"
|
|
92
|
+
| "CY"
|
|
93
|
+
| "CZ"
|
|
94
|
+
| "CI"
|
|
95
|
+
| "DK"
|
|
96
|
+
| "DJ"
|
|
97
|
+
| "DM"
|
|
98
|
+
| "DO"
|
|
99
|
+
| "EC"
|
|
100
|
+
| "EG"
|
|
101
|
+
| "SV"
|
|
102
|
+
| "GQ"
|
|
103
|
+
| "ER"
|
|
104
|
+
| "EE"
|
|
105
|
+
| "SZ"
|
|
106
|
+
| "ET"
|
|
107
|
+
| "FK"
|
|
108
|
+
| "FO"
|
|
109
|
+
| "FJ"
|
|
110
|
+
| "FI"
|
|
111
|
+
| "FR"
|
|
112
|
+
| "GF"
|
|
113
|
+
| "PF"
|
|
114
|
+
| "TF"
|
|
115
|
+
| "GA"
|
|
116
|
+
| "GM"
|
|
117
|
+
| "GE"
|
|
118
|
+
| "DE"
|
|
119
|
+
| "GH"
|
|
120
|
+
| "GI"
|
|
121
|
+
| "GR"
|
|
122
|
+
| "GL"
|
|
123
|
+
| "GD"
|
|
124
|
+
| "GP"
|
|
125
|
+
| "GU"
|
|
126
|
+
| "GT"
|
|
127
|
+
| "GG"
|
|
128
|
+
| "GN"
|
|
129
|
+
| "GW"
|
|
130
|
+
| "GY"
|
|
131
|
+
| "HT"
|
|
132
|
+
| "HM"
|
|
133
|
+
| "VA"
|
|
134
|
+
| "HN"
|
|
135
|
+
| "HK"
|
|
136
|
+
| "HU"
|
|
137
|
+
| "IS"
|
|
138
|
+
| "IN"
|
|
139
|
+
| "ID"
|
|
140
|
+
| "IR"
|
|
141
|
+
| "IQ"
|
|
142
|
+
| "IE"
|
|
143
|
+
| "IM"
|
|
144
|
+
| "IL"
|
|
145
|
+
| "IT"
|
|
146
|
+
| "JM"
|
|
147
|
+
| "JP"
|
|
148
|
+
| "JE"
|
|
149
|
+
| "JO"
|
|
150
|
+
| "KZ"
|
|
151
|
+
| "KE"
|
|
152
|
+
| "KI"
|
|
153
|
+
| "KP"
|
|
154
|
+
| "KR"
|
|
155
|
+
| "KW"
|
|
156
|
+
| "KG"
|
|
157
|
+
| "LA"
|
|
158
|
+
| "LV"
|
|
159
|
+
| "LB"
|
|
160
|
+
| "LS"
|
|
161
|
+
| "LR"
|
|
162
|
+
| "LY"
|
|
163
|
+
| "LI"
|
|
164
|
+
| "LT"
|
|
165
|
+
| "LU"
|
|
166
|
+
| "MO"
|
|
167
|
+
| "MG"
|
|
168
|
+
| "MW"
|
|
169
|
+
| "MY"
|
|
170
|
+
| "MV"
|
|
171
|
+
| "ML"
|
|
172
|
+
| "MT"
|
|
173
|
+
| "MH"
|
|
174
|
+
| "MQ"
|
|
175
|
+
| "MR"
|
|
176
|
+
| "MU"
|
|
177
|
+
| "YT"
|
|
178
|
+
| "MX"
|
|
179
|
+
| "FM"
|
|
180
|
+
| "MD"
|
|
181
|
+
| "MC"
|
|
182
|
+
| "MN"
|
|
183
|
+
| "ME"
|
|
184
|
+
| "MS"
|
|
185
|
+
| "MA"
|
|
186
|
+
| "MZ"
|
|
187
|
+
| "MM"
|
|
188
|
+
| "NA"
|
|
189
|
+
| "NR"
|
|
190
|
+
| "NP"
|
|
191
|
+
| "NL"
|
|
192
|
+
| "NC"
|
|
193
|
+
| "NZ"
|
|
194
|
+
| "NI"
|
|
195
|
+
| "NE"
|
|
196
|
+
| "NG"
|
|
197
|
+
| "NU"
|
|
198
|
+
| "NF"
|
|
199
|
+
| "MP"
|
|
200
|
+
| "NO"
|
|
201
|
+
| "OM"
|
|
202
|
+
| "PK"
|
|
203
|
+
| "PW"
|
|
204
|
+
| "PS"
|
|
205
|
+
| "PA"
|
|
206
|
+
| "PG"
|
|
207
|
+
| "PY"
|
|
208
|
+
| "PE"
|
|
209
|
+
| "PH"
|
|
210
|
+
| "PN"
|
|
211
|
+
| "PL"
|
|
212
|
+
| "PT"
|
|
213
|
+
| "PR"
|
|
214
|
+
| "QA"
|
|
215
|
+
| "MK"
|
|
216
|
+
| "RO"
|
|
217
|
+
| "RU"
|
|
218
|
+
| "RW"
|
|
219
|
+
| "RE"
|
|
220
|
+
| "BL"
|
|
221
|
+
| "SH"
|
|
222
|
+
| "KN"
|
|
223
|
+
| "LC"
|
|
224
|
+
| "MF"
|
|
225
|
+
| "PM"
|
|
226
|
+
| "VC"
|
|
227
|
+
| "WS"
|
|
228
|
+
| "SM"
|
|
229
|
+
| "ST"
|
|
230
|
+
| "SA"
|
|
231
|
+
| "SN"
|
|
232
|
+
| "RS"
|
|
233
|
+
| "SC"
|
|
234
|
+
| "SL"
|
|
235
|
+
| "SG"
|
|
236
|
+
| "SX"
|
|
237
|
+
| "SK"
|
|
238
|
+
| "SI"
|
|
239
|
+
| "SB"
|
|
240
|
+
| "SO"
|
|
241
|
+
| "ZA"
|
|
242
|
+
| "GS"
|
|
243
|
+
| "SS"
|
|
244
|
+
| "ES"
|
|
245
|
+
| "LK"
|
|
246
|
+
| "SD"
|
|
247
|
+
| "SR"
|
|
248
|
+
| "SJ"
|
|
249
|
+
| "SE"
|
|
250
|
+
| "CH"
|
|
251
|
+
| "SY"
|
|
252
|
+
| "TW"
|
|
253
|
+
| "TJ"
|
|
254
|
+
| "TZ"
|
|
255
|
+
| "TH"
|
|
256
|
+
| "TL"
|
|
257
|
+
| "TG"
|
|
258
|
+
| "TK"
|
|
259
|
+
| "TO"
|
|
260
|
+
| "TT"
|
|
261
|
+
| "TN"
|
|
262
|
+
| "TR"
|
|
263
|
+
| "TM"
|
|
264
|
+
| "TC"
|
|
265
|
+
| "TV"
|
|
266
|
+
| "UG"
|
|
267
|
+
| "UA"
|
|
268
|
+
| "AE"
|
|
269
|
+
| "GB"
|
|
270
|
+
| "UM"
|
|
271
|
+
| "US"
|
|
272
|
+
| "UY"
|
|
273
|
+
| "UZ"
|
|
274
|
+
| "VU"
|
|
275
|
+
| "VE"
|
|
276
|
+
| "VN"
|
|
277
|
+
| "VG"
|
|
278
|
+
| "VI"
|
|
279
|
+
| "WF"
|
|
280
|
+
| "EH"
|
|
281
|
+
| "YE"
|
|
282
|
+
| "ZM"
|
|
283
|
+
| "ZW"
|
|
284
|
+
| "AX";
|
|
285
|
+
|
|
286
|
+
type PaginationParams = {
|
|
287
|
+
limit?: '10' | '50' | '100' | '200' | '1000';
|
|
288
|
+
offset?: '0' | '10' | '50' | '100' | '200' | '1000';
|
|
289
|
+
starting_after?: string;
|
|
290
|
+
ending_before?: string;
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
type PaginationMetadata = {
|
|
294
|
+
has_more: boolean;
|
|
295
|
+
next_page: number;
|
|
296
|
+
prev_page: number;
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
type TrackingTransaction = {
|
|
300
|
+
step: string;
|
|
301
|
+
status: string;
|
|
302
|
+
transaction_hash: string;
|
|
303
|
+
completed_at: string;
|
|
304
|
+
};
|
|
305
|
+
|
|
306
|
+
type TrackingPayment = {
|
|
307
|
+
step: string;
|
|
308
|
+
provider_name: string;
|
|
309
|
+
provider_transaction_id: string;
|
|
310
|
+
provider_status: string;
|
|
311
|
+
estimated_time_of_arrival: string;
|
|
312
|
+
completed_at: string;
|
|
313
|
+
};
|
|
314
|
+
|
|
315
|
+
type TrackingLiquidity = {
|
|
316
|
+
step: string;
|
|
317
|
+
provider_transaction_id: string;
|
|
318
|
+
provider_status: string;
|
|
319
|
+
estimated_time_of_arrival: string;
|
|
320
|
+
completed_at: string;
|
|
321
|
+
};
|
|
322
|
+
|
|
323
|
+
type TrackingComplete = {
|
|
324
|
+
step: string;
|
|
325
|
+
status: string;
|
|
326
|
+
transaction_hash: string;
|
|
327
|
+
completed_at: string;
|
|
328
|
+
};
|
|
329
|
+
|
|
330
|
+
type TrackingPartnerFee = {
|
|
331
|
+
step: string;
|
|
332
|
+
transaction_hash: string;
|
|
333
|
+
completed_at: string;
|
|
334
|
+
};
|
|
335
|
+
|
|
336
|
+
/**
|
|
337
|
+
*
|
|
338
|
+
* Internal API client interface that resources use to make HTTP requests.
|
|
339
|
+
* This interface is not exposed to SDK users.
|
|
340
|
+
*/
|
|
341
|
+
interface InternalApiClient {
|
|
342
|
+
get: <T>(path: string) => Promise<BlindpayApiResponse<T>>;
|
|
343
|
+
post: <T>(path: string, body: Record<string, unknown>) => Promise<BlindpayApiResponse<T>>;
|
|
344
|
+
put: <T>(path: string, body: Record<string, unknown>) => Promise<BlindpayApiResponse<T>>;
|
|
345
|
+
patch: <T>(path: string, body: Record<string, unknown>) => Promise<BlindpayApiResponse<T>>;
|
|
346
|
+
delete: <T>(path: string, body?: Record<string, unknown>) => Promise<BlindpayApiResponse<T>>;
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
export type { AccountClass as A, BlindpayApiResponse as B, Country as C, InternalApiClient as I, Network as N, PaginationParams as P, Rail as R, StablecoinToken as S, TransactionStatus as T, BankAccountType as a, TrackingTransaction as b, TrackingPayment as c, TrackingComplete as d, TrackingPartnerFee as e, PaginationMetadata as f, CurrencyType as g, Currency as h, TrackingLiquidity as i, TransactionDocumentType as j };
|