@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
|
@@ -0,0 +1,414 @@
|
|
|
1
|
+
import { I as InternalApiClient, B as BlindpayApiResponse, R as Rail, a as BankAccountType, A as AccountClass, C as Country } from '../../api-client-Cw2mNJeR.js';
|
|
2
|
+
import { SpeiProtocol } from '../payouts/index.js';
|
|
3
|
+
|
|
4
|
+
type ListBankAccountsInput = {
|
|
5
|
+
instanceId: string;
|
|
6
|
+
receiverId: string;
|
|
7
|
+
};
|
|
8
|
+
type ArgentinaTransfers = "CVU" | "CBU" | "ALIAS";
|
|
9
|
+
type AchCopDocument = "CC" | "CE" | "NIT" | "PASS" | "PEP";
|
|
10
|
+
type ListBankAccountsResponse = {
|
|
11
|
+
data: Array<{
|
|
12
|
+
id: string;
|
|
13
|
+
type: Rail;
|
|
14
|
+
name: string;
|
|
15
|
+
pix_key?: string;
|
|
16
|
+
beneficiary_name?: string;
|
|
17
|
+
routing_number?: string;
|
|
18
|
+
account_number?: string;
|
|
19
|
+
account_type?: BankAccountType;
|
|
20
|
+
account_class?: AccountClass;
|
|
21
|
+
address_line_1?: string;
|
|
22
|
+
address_line_2?: string;
|
|
23
|
+
city?: string;
|
|
24
|
+
state_province_region?: string;
|
|
25
|
+
country?: Country;
|
|
26
|
+
postal_code?: string;
|
|
27
|
+
spei_protocol?: string;
|
|
28
|
+
spei_institution_code?: string;
|
|
29
|
+
spei_clabe?: string;
|
|
30
|
+
transfers_type?: "CVU" | "CBU" | "ALIAS";
|
|
31
|
+
transfers_account?: string;
|
|
32
|
+
ach_cop_beneficiary_first_name?: string;
|
|
33
|
+
ach_cop_beneficiary_last_name?: string;
|
|
34
|
+
ach_cop_document_id?: string;
|
|
35
|
+
ach_cop_document_type?: AchCopDocument;
|
|
36
|
+
ach_cop_email?: string;
|
|
37
|
+
ach_cop_bank_code?: string;
|
|
38
|
+
ach_cop_bank_account?: string;
|
|
39
|
+
swift_code_bic?: string;
|
|
40
|
+
swift_account_holder_name?: string;
|
|
41
|
+
swift_account_number_iban?: string;
|
|
42
|
+
swift_beneficiary_address_line_1?: string;
|
|
43
|
+
swift_beneficiary_address_line_2?: string;
|
|
44
|
+
swift_beneficiary_country?: Country;
|
|
45
|
+
swift_beneficiary_city?: string;
|
|
46
|
+
swift_beneficiary_state_province_region?: string;
|
|
47
|
+
swift_beneficiary_postal_code?: string;
|
|
48
|
+
swift_bank_name?: string;
|
|
49
|
+
swift_bank_address_line_1?: string;
|
|
50
|
+
swift_bank_address_line_2?: string;
|
|
51
|
+
swift_bank_country?: Country;
|
|
52
|
+
swift_bank_city?: string;
|
|
53
|
+
swift_bank_state_province_region?: string;
|
|
54
|
+
swift_bank_postal_code?: string;
|
|
55
|
+
swift_intermediary_bank_swift_code_bic?: string;
|
|
56
|
+
swift_intermediary_bank_account_number_iban?: string;
|
|
57
|
+
swift_intermediary_bank_name?: string;
|
|
58
|
+
swift_intermediary_bank_country?: Country;
|
|
59
|
+
tron_wallet_hash?: string;
|
|
60
|
+
offramp_wallets?: Array<{
|
|
61
|
+
address: string;
|
|
62
|
+
id: string;
|
|
63
|
+
network: "tron";
|
|
64
|
+
external_id: string;
|
|
65
|
+
}>;
|
|
66
|
+
created_at: string;
|
|
67
|
+
}>;
|
|
68
|
+
};
|
|
69
|
+
type CreateBankAccountInput = {
|
|
70
|
+
instanceId: string;
|
|
71
|
+
receiverId: string;
|
|
72
|
+
type: Rail;
|
|
73
|
+
name: string;
|
|
74
|
+
pix_key: string;
|
|
75
|
+
beneficiary_name: string;
|
|
76
|
+
routing_number: string;
|
|
77
|
+
account_number: string;
|
|
78
|
+
account_type: BankAccountType;
|
|
79
|
+
account_class: AccountClass;
|
|
80
|
+
address_line_1: string;
|
|
81
|
+
address_line_2: string;
|
|
82
|
+
city: string;
|
|
83
|
+
state_province_region: string;
|
|
84
|
+
postal_code: string;
|
|
85
|
+
country: Country;
|
|
86
|
+
checkbook_account_id: string;
|
|
87
|
+
checkbook_user_key: string;
|
|
88
|
+
spei_protocol: string;
|
|
89
|
+
spei_institution_code: string;
|
|
90
|
+
spei_clabe: string;
|
|
91
|
+
transfers_type: "CVU" | "CBU" | "ALIAS";
|
|
92
|
+
transfers_account: string;
|
|
93
|
+
ach_cop_beneficiary_first_name: string;
|
|
94
|
+
ach_cop_beneficiary_last_name: string;
|
|
95
|
+
ach_cop_document_id: string;
|
|
96
|
+
ach_cop_document_type: AchCopDocument;
|
|
97
|
+
ach_cop_email: string;
|
|
98
|
+
ach_cop_bank_code: string;
|
|
99
|
+
ach_cop_bank_account: string;
|
|
100
|
+
swift_code_bic: string;
|
|
101
|
+
swift_account_holder_name: string;
|
|
102
|
+
swift_account_number_iban: string;
|
|
103
|
+
swift_beneficiary_address_line_1: string;
|
|
104
|
+
swift_beneficiary_address_line_2: string;
|
|
105
|
+
swift_beneficiary_country: Country;
|
|
106
|
+
swift_beneficiary_city: string;
|
|
107
|
+
swift_beneficiary_state_province_region: string;
|
|
108
|
+
swift_beneficiary_postal_code: string;
|
|
109
|
+
swift_bank_name: string;
|
|
110
|
+
swift_bank_address_line_1: string;
|
|
111
|
+
swift_bank_address_line_2: string;
|
|
112
|
+
swift_bank_country: Country;
|
|
113
|
+
swift_bank_city: string;
|
|
114
|
+
swift_bank_state_province_region: string;
|
|
115
|
+
swift_bank_postal_code: string;
|
|
116
|
+
swift_intermediary_bank_swift_code_bic: string;
|
|
117
|
+
swift_intermediary_bank_account_number_iban: string;
|
|
118
|
+
swift_intermediary_bank_name: string;
|
|
119
|
+
swift_intermediary_bank_country: Country;
|
|
120
|
+
bank_name: string;
|
|
121
|
+
swift_code: string;
|
|
122
|
+
};
|
|
123
|
+
type CreateBankAccountResponse = {
|
|
124
|
+
id: string;
|
|
125
|
+
type: Rail;
|
|
126
|
+
name: string;
|
|
127
|
+
pix_key?: string;
|
|
128
|
+
beneficiary_name: string;
|
|
129
|
+
routing_number?: string;
|
|
130
|
+
account_number?: string;
|
|
131
|
+
account_type?: BankAccountType;
|
|
132
|
+
account_class?: AccountClass;
|
|
133
|
+
address_line_1?: string;
|
|
134
|
+
address_line_2?: string;
|
|
135
|
+
city?: string;
|
|
136
|
+
state_province_region?: string;
|
|
137
|
+
country?: Country;
|
|
138
|
+
postal_code?: string;
|
|
139
|
+
spei_protocol?: string;
|
|
140
|
+
spei_institution_code?: string;
|
|
141
|
+
spei_clabe?: string;
|
|
142
|
+
transfers_type?: ArgentinaTransfers;
|
|
143
|
+
transfers_account?: string;
|
|
144
|
+
ach_cop_beneficiary_first_name?: string;
|
|
145
|
+
ach_cop_beneficiary_last_name?: string;
|
|
146
|
+
ach_cop_document_id?: string;
|
|
147
|
+
ach_cop_document_type?: AchCopDocument;
|
|
148
|
+
ach_cop_email?: string;
|
|
149
|
+
ach_cop_bank_code?: string;
|
|
150
|
+
ach_cop_bank_account?: string;
|
|
151
|
+
swift_code_bic?: string;
|
|
152
|
+
swift_account_holder_name?: string;
|
|
153
|
+
swift_account_number_iban?: string;
|
|
154
|
+
swift_beneficiary_address_line_1?: string;
|
|
155
|
+
swift_beneficiary_address_line_2?: string;
|
|
156
|
+
swift_beneficiary_country?: Country;
|
|
157
|
+
swift_beneficiary_city?: string;
|
|
158
|
+
swift_beneficiary_state_province_region?: string;
|
|
159
|
+
swift_beneficiary_postal_code?: string;
|
|
160
|
+
swift_bank_name?: string;
|
|
161
|
+
swift_bank_address_line_1?: string;
|
|
162
|
+
swift_bank_address_line_2?: string;
|
|
163
|
+
swift_bank_country?: Country;
|
|
164
|
+
swift_bank_city?: string;
|
|
165
|
+
swift_bank_state_province_region?: string;
|
|
166
|
+
swift_bank_postal_code?: string;
|
|
167
|
+
swift_intermediary_bank_swift_code_bic?: string;
|
|
168
|
+
swift_intermediary_bank_account_number_iban?: string;
|
|
169
|
+
swift_intermediary_bank_name?: string;
|
|
170
|
+
swift_intermediary_bank_country?: Country;
|
|
171
|
+
tron_wallet_hash?: string;
|
|
172
|
+
offramp_wallets?: Array<{
|
|
173
|
+
address: string;
|
|
174
|
+
id: string;
|
|
175
|
+
network: "tron";
|
|
176
|
+
external_id: string;
|
|
177
|
+
}>;
|
|
178
|
+
created_at: string;
|
|
179
|
+
};
|
|
180
|
+
type GetBankAccountInput = {
|
|
181
|
+
instanceId: string;
|
|
182
|
+
receiverId: string;
|
|
183
|
+
id: string;
|
|
184
|
+
};
|
|
185
|
+
type GetBankAccountResponse = {
|
|
186
|
+
id: string;
|
|
187
|
+
receiver_id: string;
|
|
188
|
+
account_holder_name: string;
|
|
189
|
+
account_number: string;
|
|
190
|
+
routing_number: string;
|
|
191
|
+
account_type: BankAccountType;
|
|
192
|
+
bank_name: string;
|
|
193
|
+
swift_code?: string | null;
|
|
194
|
+
iban?: string | null;
|
|
195
|
+
is_primary: boolean;
|
|
196
|
+
created_at: string;
|
|
197
|
+
updated_at: string;
|
|
198
|
+
};
|
|
199
|
+
type DeleteBankAccountInput = {
|
|
200
|
+
instanceId: string;
|
|
201
|
+
receiverId: string;
|
|
202
|
+
id: string;
|
|
203
|
+
};
|
|
204
|
+
type CreatePixInput = {
|
|
205
|
+
instanceId: string;
|
|
206
|
+
receiverId: string;
|
|
207
|
+
name: string;
|
|
208
|
+
pix_key: string;
|
|
209
|
+
};
|
|
210
|
+
type CreatePixResponse = {
|
|
211
|
+
id: string;
|
|
212
|
+
type: "pix";
|
|
213
|
+
name: string;
|
|
214
|
+
pix_key: string;
|
|
215
|
+
created_at: string;
|
|
216
|
+
};
|
|
217
|
+
type CreateArgentinaTransfersInput = {
|
|
218
|
+
instanceId: string;
|
|
219
|
+
receiverId: string;
|
|
220
|
+
name: string;
|
|
221
|
+
beneficiary_name: string;
|
|
222
|
+
transfers_account: string;
|
|
223
|
+
transfers_type: ArgentinaTransfers;
|
|
224
|
+
};
|
|
225
|
+
type CreateArgentinaTransfersResponse = {
|
|
226
|
+
id: string;
|
|
227
|
+
type: "transfers_bitso";
|
|
228
|
+
name: string;
|
|
229
|
+
beneficiary_name: string;
|
|
230
|
+
transfers_type: ArgentinaTransfers;
|
|
231
|
+
transfers_account: string;
|
|
232
|
+
created_at: string;
|
|
233
|
+
};
|
|
234
|
+
type CreateSpeiInput = {
|
|
235
|
+
instanceId: string;
|
|
236
|
+
receiverId: string;
|
|
237
|
+
beneficiary_name: string;
|
|
238
|
+
name: string;
|
|
239
|
+
spei_clabe: string;
|
|
240
|
+
spei_institution_code: string;
|
|
241
|
+
spei_protocol: SpeiProtocol;
|
|
242
|
+
};
|
|
243
|
+
type CreateSpeiResponse = {
|
|
244
|
+
id: string;
|
|
245
|
+
type: "spei_bitso";
|
|
246
|
+
name: string;
|
|
247
|
+
beneficiary_name: string;
|
|
248
|
+
spei_protocol: SpeiProtocol;
|
|
249
|
+
spei_institution_code: string;
|
|
250
|
+
spei_clabe: string;
|
|
251
|
+
created_at: string;
|
|
252
|
+
};
|
|
253
|
+
type CreateColombiaAchInput = {
|
|
254
|
+
instanceId: string;
|
|
255
|
+
receiverId: string;
|
|
256
|
+
name: string;
|
|
257
|
+
account_type: BankAccountType;
|
|
258
|
+
ach_cop_beneficiary_first_name: string;
|
|
259
|
+
ach_cop_beneficiary_last_name: string;
|
|
260
|
+
ach_cop_document_id: string;
|
|
261
|
+
ach_cop_document_type: AchCopDocument;
|
|
262
|
+
ach_cop_email: string;
|
|
263
|
+
ach_cop_bank_code: string;
|
|
264
|
+
ach_cop_bank_account: string;
|
|
265
|
+
};
|
|
266
|
+
type CreateColombiaAchResponse = {
|
|
267
|
+
id: string;
|
|
268
|
+
type: "ach_cop_bitso";
|
|
269
|
+
name: string;
|
|
270
|
+
account_type: BankAccountType;
|
|
271
|
+
ach_cop_beneficiary_first_name: string;
|
|
272
|
+
ach_cop_beneficiary_last_name: string;
|
|
273
|
+
ach_cop_document_id: string;
|
|
274
|
+
ach_cop_document_type: AchCopDocument;
|
|
275
|
+
ach_cop_email: string;
|
|
276
|
+
ach_cop_bank_code: string;
|
|
277
|
+
ach_cop_bank_account: string;
|
|
278
|
+
created_at: string;
|
|
279
|
+
};
|
|
280
|
+
type CreateAchInput = {
|
|
281
|
+
instanceId: string;
|
|
282
|
+
receiverId: string;
|
|
283
|
+
name: string;
|
|
284
|
+
account_class: AccountClass;
|
|
285
|
+
account_number: string;
|
|
286
|
+
account_type: BankAccountType;
|
|
287
|
+
beneficiary_name: string;
|
|
288
|
+
routing_number: string;
|
|
289
|
+
};
|
|
290
|
+
type CreateAchResponse = {
|
|
291
|
+
id: string;
|
|
292
|
+
type: "ach";
|
|
293
|
+
name: string;
|
|
294
|
+
beneficiary_name: string;
|
|
295
|
+
routing_number: string;
|
|
296
|
+
account_number: string;
|
|
297
|
+
account_type: BankAccountType;
|
|
298
|
+
account_class: AccountClass;
|
|
299
|
+
address_line_1: string | null;
|
|
300
|
+
address_line_2: string | null;
|
|
301
|
+
city: string | null;
|
|
302
|
+
state_province_region: string | null;
|
|
303
|
+
country: Country | null;
|
|
304
|
+
postal_code: string | null;
|
|
305
|
+
ach_cop_beneficiary_first_name: string | null;
|
|
306
|
+
ach_cop_beneficiary_last_name: string | null;
|
|
307
|
+
ach_cop_document_id: string | null;
|
|
308
|
+
ach_cop_document_type: AchCopDocument | null;
|
|
309
|
+
ach_cop_email: string | null;
|
|
310
|
+
ach_cop_bank_code: string | null;
|
|
311
|
+
ach_cop_bank_account: string | null;
|
|
312
|
+
created_at: string;
|
|
313
|
+
};
|
|
314
|
+
type CreateWireInput = {
|
|
315
|
+
instanceId: string;
|
|
316
|
+
receiverId: string;
|
|
317
|
+
name: string;
|
|
318
|
+
account_number: string;
|
|
319
|
+
beneficiary_name: string;
|
|
320
|
+
routing_number: string;
|
|
321
|
+
address_line_1: string;
|
|
322
|
+
address_line_2?: string;
|
|
323
|
+
city: string;
|
|
324
|
+
state_province_region: string;
|
|
325
|
+
country: Country;
|
|
326
|
+
postal_code: string;
|
|
327
|
+
};
|
|
328
|
+
type CreateWireResponse = {
|
|
329
|
+
id: string;
|
|
330
|
+
type: "wire";
|
|
331
|
+
name: string;
|
|
332
|
+
beneficiary_name: string;
|
|
333
|
+
routing_number: string;
|
|
334
|
+
account_number: string;
|
|
335
|
+
address_line_1: string;
|
|
336
|
+
address_line_2: string;
|
|
337
|
+
city: string;
|
|
338
|
+
state_province_region: string;
|
|
339
|
+
country: Country;
|
|
340
|
+
postal_code: string;
|
|
341
|
+
created_at: string;
|
|
342
|
+
};
|
|
343
|
+
type CreateInternationalSwiftInput = {
|
|
344
|
+
instanceId: string;
|
|
345
|
+
receiverId: string;
|
|
346
|
+
name: string;
|
|
347
|
+
swift_account_holder_name: string;
|
|
348
|
+
swift_account_number_iban: string;
|
|
349
|
+
swift_bank_address_line_1: string;
|
|
350
|
+
swift_bank_address_line_2?: string;
|
|
351
|
+
swift_bank_city: string;
|
|
352
|
+
swift_bank_country: Country;
|
|
353
|
+
swift_bank_name: string;
|
|
354
|
+
swift_bank_postal_code: string;
|
|
355
|
+
swift_bank_state_province_region: string;
|
|
356
|
+
swift_beneficiary_address_line_1: string;
|
|
357
|
+
swift_beneficiary_address_line_2?: string;
|
|
358
|
+
swift_beneficiary_city: string;
|
|
359
|
+
swift_beneficiary_country: Country;
|
|
360
|
+
swift_beneficiary_postal_code: string;
|
|
361
|
+
swift_beneficiary_state_province_region: string;
|
|
362
|
+
swift_code_bic: string;
|
|
363
|
+
swift_intermediary_bank_account_number_iban: string | null;
|
|
364
|
+
swift_intermediary_bank_country: Country | null;
|
|
365
|
+
swift_intermediary_bank_name: string | null;
|
|
366
|
+
swift_intermediary_bank_swift_code_bic: string | null;
|
|
367
|
+
};
|
|
368
|
+
type CreateInternationalSwiftResponse = {
|
|
369
|
+
id: string;
|
|
370
|
+
type: "international_swift";
|
|
371
|
+
name: string;
|
|
372
|
+
beneficiary_name: string | null;
|
|
373
|
+
address_line_1: string | null;
|
|
374
|
+
address_line_2: string | null;
|
|
375
|
+
city: string | null;
|
|
376
|
+
state_province_region: string | null;
|
|
377
|
+
country: Country | null;
|
|
378
|
+
postal_code: string | null;
|
|
379
|
+
swift_code_bic: string;
|
|
380
|
+
swift_account_holder_name: string;
|
|
381
|
+
swift_account_number_iban: string;
|
|
382
|
+
swift_beneficiary_address_line_1: string;
|
|
383
|
+
swift_beneficiary_address_line_2: string | null;
|
|
384
|
+
swift_beneficiary_country: Country;
|
|
385
|
+
swift_beneficiary_city: string;
|
|
386
|
+
swift_beneficiary_state_province_region: string;
|
|
387
|
+
swift_beneficiary_postal_code: string;
|
|
388
|
+
swift_bank_name: string;
|
|
389
|
+
swift_bank_address_line_1: string;
|
|
390
|
+
swift_bank_address_line_2: string | null;
|
|
391
|
+
swift_bank_country: Country;
|
|
392
|
+
swift_bank_city: string;
|
|
393
|
+
swift_bank_state_province_region: string;
|
|
394
|
+
swift_bank_postal_code: string;
|
|
395
|
+
swift_intermediary_bank_swift_code_bic: string | null;
|
|
396
|
+
swift_intermediary_bank_account_number_iban: string | null;
|
|
397
|
+
swift_intermediary_bank_name: string | null;
|
|
398
|
+
swift_intermediary_bank_country: Country | null;
|
|
399
|
+
created_at: string;
|
|
400
|
+
};
|
|
401
|
+
declare function createBankAccountsResource(client: InternalApiClient): {
|
|
402
|
+
list({ instanceId, receiverId, }: ListBankAccountsInput): Promise<BlindpayApiResponse<ListBankAccountsResponse>>;
|
|
403
|
+
createPix({ instanceId, receiverId, name, pix_key, }: CreatePixInput): Promise<BlindpayApiResponse<CreatePixResponse>>;
|
|
404
|
+
createArgentinaTransfers({ instanceId, receiverId, beneficiary_name, name, transfers_account, transfers_type, }: CreateArgentinaTransfersInput): Promise<BlindpayApiResponse<CreateArgentinaTransfersResponse>>;
|
|
405
|
+
createSpei({ instanceId, receiverId, beneficiary_name, name, spei_clabe, spei_institution_code, spei_protocol, }: CreateSpeiInput): Promise<BlindpayApiResponse<CreateSpeiResponse>>;
|
|
406
|
+
createColombiaAch({ instanceId, receiverId, name, account_type, ach_cop_beneficiary_first_name, ach_cop_beneficiary_last_name, ach_cop_document_id, ach_cop_document_type, ach_cop_email, ach_cop_bank_code, ach_cop_bank_account, }: CreateColombiaAchInput): Promise<BlindpayApiResponse<CreateColombiaAchResponse>>;
|
|
407
|
+
createAch({ instanceId, receiverId, name, account_class, account_number, account_type, beneficiary_name, routing_number, }: CreateAchInput): Promise<BlindpayApiResponse<CreateAchResponse>>;
|
|
408
|
+
createWire({ instanceId, receiverId, name, account_number, beneficiary_name, routing_number, address_line_1, address_line_2, city, state_province_region, country, postal_code, }: CreateWireInput): Promise<BlindpayApiResponse<CreateWireResponse>>;
|
|
409
|
+
createInternationalSwift({ instanceId, receiverId, name, swift_account_holder_name, swift_account_number_iban, swift_bank_address_line_1, swift_bank_address_line_2, swift_bank_city, swift_bank_country, swift_bank_name, swift_bank_postal_code, swift_bank_state_province_region, swift_beneficiary_address_line_1, swift_beneficiary_address_line_2, swift_beneficiary_city, swift_beneficiary_country, swift_beneficiary_postal_code, swift_beneficiary_state_province_region, swift_code_bic, swift_intermediary_bank_account_number_iban, swift_intermediary_bank_country, swift_intermediary_bank_name, swift_intermediary_bank_swift_code_bic, }: CreateInternationalSwiftInput): Promise<BlindpayApiResponse<CreateInternationalSwiftResponse>>;
|
|
410
|
+
get({ instanceId, receiverId, id, }: GetBankAccountInput): Promise<BlindpayApiResponse<GetBankAccountResponse>>;
|
|
411
|
+
delete({ instanceId, receiverId, id, }: DeleteBankAccountInput): Promise<BlindpayApiResponse<void>>;
|
|
412
|
+
};
|
|
413
|
+
|
|
414
|
+
export { type AchCopDocument, type ArgentinaTransfers, type CreateAchInput, type CreateAchResponse, type CreateArgentinaTransfersInput, type CreateArgentinaTransfersResponse, type CreateBankAccountInput, type CreateBankAccountResponse, type CreateColombiaAchInput, type CreateColombiaAchResponse, type CreateInternationalSwiftInput, type CreateInternationalSwiftResponse, type CreatePixInput, type CreatePixResponse, type CreateSpeiInput, type CreateSpeiResponse, type CreateWireInput, type CreateWireResponse, type DeleteBankAccountInput, type GetBankAccountInput, type GetBankAccountResponse, type ListBankAccountsInput, type ListBankAccountsResponse, createBankAccountsResource };
|
|
@@ -0,0 +1,227 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/resources/bank-accounts/index.ts
|
|
21
|
+
var bank_accounts_exports = {};
|
|
22
|
+
__export(bank_accounts_exports, {
|
|
23
|
+
createBankAccountsResource: () => createBankAccountsResource
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(bank_accounts_exports);
|
|
26
|
+
function createBankAccountsResource(client) {
|
|
27
|
+
return {
|
|
28
|
+
list({
|
|
29
|
+
instanceId,
|
|
30
|
+
receiverId
|
|
31
|
+
}) {
|
|
32
|
+
return client.get(`/instances/${instanceId}/receivers/${receiverId}/bank-accounts`);
|
|
33
|
+
},
|
|
34
|
+
createPix({
|
|
35
|
+
instanceId,
|
|
36
|
+
receiverId,
|
|
37
|
+
name,
|
|
38
|
+
pix_key
|
|
39
|
+
}) {
|
|
40
|
+
return client.post(`/instances/${instanceId}/receivers/${receiverId}/bank-accounts`, {
|
|
41
|
+
type: "pix",
|
|
42
|
+
name,
|
|
43
|
+
pix_key
|
|
44
|
+
});
|
|
45
|
+
},
|
|
46
|
+
createArgentinaTransfers({
|
|
47
|
+
instanceId,
|
|
48
|
+
receiverId,
|
|
49
|
+
beneficiary_name,
|
|
50
|
+
name,
|
|
51
|
+
transfers_account,
|
|
52
|
+
transfers_type
|
|
53
|
+
}) {
|
|
54
|
+
return client.post(`/instances/${instanceId}/receivers/${receiverId}/bank-accounts`, {
|
|
55
|
+
type: "transfers_bitso",
|
|
56
|
+
beneficiary_name,
|
|
57
|
+
name,
|
|
58
|
+
transfers_account,
|
|
59
|
+
transfers_type
|
|
60
|
+
});
|
|
61
|
+
},
|
|
62
|
+
createSpei({
|
|
63
|
+
instanceId,
|
|
64
|
+
receiverId,
|
|
65
|
+
beneficiary_name,
|
|
66
|
+
name,
|
|
67
|
+
spei_clabe,
|
|
68
|
+
spei_institution_code,
|
|
69
|
+
spei_protocol
|
|
70
|
+
}) {
|
|
71
|
+
return client.post(`/instances/${instanceId}/receivers/${receiverId}/bank-accounts`, {
|
|
72
|
+
type: "spei_bitso",
|
|
73
|
+
beneficiary_name,
|
|
74
|
+
name,
|
|
75
|
+
spei_clabe,
|
|
76
|
+
spei_institution_code,
|
|
77
|
+
spei_protocol
|
|
78
|
+
});
|
|
79
|
+
},
|
|
80
|
+
createColombiaAch({
|
|
81
|
+
instanceId,
|
|
82
|
+
receiverId,
|
|
83
|
+
name,
|
|
84
|
+
account_type,
|
|
85
|
+
ach_cop_beneficiary_first_name,
|
|
86
|
+
ach_cop_beneficiary_last_name,
|
|
87
|
+
ach_cop_document_id,
|
|
88
|
+
ach_cop_document_type,
|
|
89
|
+
ach_cop_email,
|
|
90
|
+
ach_cop_bank_code,
|
|
91
|
+
ach_cop_bank_account
|
|
92
|
+
}) {
|
|
93
|
+
return client.post(`/instances/${instanceId}/receivers/${receiverId}/bank-accounts`, {
|
|
94
|
+
type: "ach_cop_bitso",
|
|
95
|
+
name,
|
|
96
|
+
account_type,
|
|
97
|
+
ach_cop_beneficiary_first_name,
|
|
98
|
+
ach_cop_beneficiary_last_name,
|
|
99
|
+
ach_cop_document_id,
|
|
100
|
+
ach_cop_document_type,
|
|
101
|
+
ach_cop_email,
|
|
102
|
+
ach_cop_bank_code,
|
|
103
|
+
ach_cop_bank_account
|
|
104
|
+
});
|
|
105
|
+
},
|
|
106
|
+
createAch({
|
|
107
|
+
instanceId,
|
|
108
|
+
receiverId,
|
|
109
|
+
name,
|
|
110
|
+
account_class,
|
|
111
|
+
account_number,
|
|
112
|
+
account_type,
|
|
113
|
+
beneficiary_name,
|
|
114
|
+
routing_number
|
|
115
|
+
}) {
|
|
116
|
+
return client.post(`/instances/${instanceId}/receivers/${receiverId}/bank-accounts`, {
|
|
117
|
+
type: "ach",
|
|
118
|
+
name,
|
|
119
|
+
account_class,
|
|
120
|
+
account_number,
|
|
121
|
+
account_type,
|
|
122
|
+
beneficiary_name,
|
|
123
|
+
routing_number
|
|
124
|
+
});
|
|
125
|
+
},
|
|
126
|
+
createWire({
|
|
127
|
+
instanceId,
|
|
128
|
+
receiverId,
|
|
129
|
+
name,
|
|
130
|
+
account_number,
|
|
131
|
+
beneficiary_name,
|
|
132
|
+
routing_number,
|
|
133
|
+
address_line_1,
|
|
134
|
+
address_line_2,
|
|
135
|
+
city,
|
|
136
|
+
state_province_region,
|
|
137
|
+
country,
|
|
138
|
+
postal_code
|
|
139
|
+
}) {
|
|
140
|
+
return client.post(`/instances/${instanceId}/receivers/${receiverId}/bank-accounts`, {
|
|
141
|
+
type: "wire",
|
|
142
|
+
name,
|
|
143
|
+
account_number,
|
|
144
|
+
beneficiary_name,
|
|
145
|
+
routing_number,
|
|
146
|
+
address_line_1,
|
|
147
|
+
address_line_2,
|
|
148
|
+
city,
|
|
149
|
+
state_province_region,
|
|
150
|
+
country,
|
|
151
|
+
postal_code
|
|
152
|
+
});
|
|
153
|
+
},
|
|
154
|
+
createInternationalSwift({
|
|
155
|
+
instanceId,
|
|
156
|
+
receiverId,
|
|
157
|
+
name,
|
|
158
|
+
swift_account_holder_name,
|
|
159
|
+
swift_account_number_iban,
|
|
160
|
+
swift_bank_address_line_1,
|
|
161
|
+
swift_bank_address_line_2,
|
|
162
|
+
swift_bank_city,
|
|
163
|
+
swift_bank_country,
|
|
164
|
+
swift_bank_name,
|
|
165
|
+
swift_bank_postal_code,
|
|
166
|
+
swift_bank_state_province_region,
|
|
167
|
+
swift_beneficiary_address_line_1,
|
|
168
|
+
swift_beneficiary_address_line_2,
|
|
169
|
+
swift_beneficiary_city,
|
|
170
|
+
swift_beneficiary_country,
|
|
171
|
+
swift_beneficiary_postal_code,
|
|
172
|
+
swift_beneficiary_state_province_region,
|
|
173
|
+
swift_code_bic,
|
|
174
|
+
swift_intermediary_bank_account_number_iban,
|
|
175
|
+
swift_intermediary_bank_country,
|
|
176
|
+
swift_intermediary_bank_name,
|
|
177
|
+
swift_intermediary_bank_swift_code_bic
|
|
178
|
+
}) {
|
|
179
|
+
return client.post(`/instances/${instanceId}/receivers/${receiverId}/bank-accounts`, {
|
|
180
|
+
type: "international_swift",
|
|
181
|
+
name,
|
|
182
|
+
swift_account_holder_name,
|
|
183
|
+
swift_account_number_iban,
|
|
184
|
+
swift_bank_address_line_1,
|
|
185
|
+
swift_bank_address_line_2,
|
|
186
|
+
swift_bank_city,
|
|
187
|
+
swift_bank_country,
|
|
188
|
+
swift_bank_name,
|
|
189
|
+
swift_bank_postal_code,
|
|
190
|
+
swift_bank_state_province_region,
|
|
191
|
+
swift_beneficiary_address_line_1,
|
|
192
|
+
swift_beneficiary_address_line_2,
|
|
193
|
+
swift_beneficiary_city,
|
|
194
|
+
swift_beneficiary_country,
|
|
195
|
+
swift_beneficiary_postal_code,
|
|
196
|
+
swift_beneficiary_state_province_region,
|
|
197
|
+
swift_code_bic,
|
|
198
|
+
swift_intermediary_bank_account_number_iban,
|
|
199
|
+
swift_intermediary_bank_country,
|
|
200
|
+
swift_intermediary_bank_name,
|
|
201
|
+
swift_intermediary_bank_swift_code_bic
|
|
202
|
+
});
|
|
203
|
+
},
|
|
204
|
+
get({
|
|
205
|
+
instanceId,
|
|
206
|
+
receiverId,
|
|
207
|
+
id
|
|
208
|
+
}) {
|
|
209
|
+
return client.get(
|
|
210
|
+
`/instances/${instanceId}/receivers/${receiverId}/bank-accounts/${id}`
|
|
211
|
+
);
|
|
212
|
+
},
|
|
213
|
+
delete({
|
|
214
|
+
instanceId,
|
|
215
|
+
receiverId,
|
|
216
|
+
id
|
|
217
|
+
}) {
|
|
218
|
+
return client.delete(
|
|
219
|
+
`/instances/${instanceId}/receivers/${receiverId}/bank-accounts/${id}`
|
|
220
|
+
);
|
|
221
|
+
}
|
|
222
|
+
};
|
|
223
|
+
}
|
|
224
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
225
|
+
0 && (module.exports = {
|
|
226
|
+
createBankAccountsResource
|
|
227
|
+
});
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { I as InternalApiClient, B as BlindpayApiResponse } from '../../api-client-Cw2mNJeR.mjs';
|
|
2
|
+
|
|
3
|
+
type InstanceMemberRole = "owner" | "admin" | "finance" | "checker" | "operations" | "developer" | "viewer";
|
|
4
|
+
type GetInstanceMembersInput = {
|
|
5
|
+
instanceId: string;
|
|
6
|
+
};
|
|
7
|
+
type GetInstanceMembersResponse = Array<{
|
|
8
|
+
id: string;
|
|
9
|
+
email: string;
|
|
10
|
+
first_name: string;
|
|
11
|
+
middle_name: string;
|
|
12
|
+
last_name: string;
|
|
13
|
+
image_url: string;
|
|
14
|
+
created_at: string;
|
|
15
|
+
role: InstanceMemberRole;
|
|
16
|
+
}>;
|
|
17
|
+
type UpdateInstanceInput = {
|
|
18
|
+
instanceId: string;
|
|
19
|
+
name: string;
|
|
20
|
+
receiver_invite_redirect_urL?: string;
|
|
21
|
+
};
|
|
22
|
+
type DeleteInstanceInput = {
|
|
23
|
+
instanceId: string;
|
|
24
|
+
};
|
|
25
|
+
type DeleteInstanceMemberInput = {
|
|
26
|
+
instanceId: string;
|
|
27
|
+
id: string;
|
|
28
|
+
};
|
|
29
|
+
type UpdateInstanceMemberRoleInput = {
|
|
30
|
+
instanceId: string;
|
|
31
|
+
id: string;
|
|
32
|
+
role: InstanceMemberRole;
|
|
33
|
+
};
|
|
34
|
+
declare function createInstancesResource(client: InternalApiClient): {
|
|
35
|
+
getMembers({ instanceId, }: GetInstanceMembersInput): Promise<BlindpayApiResponse<GetInstanceMembersResponse>>;
|
|
36
|
+
update({ instanceId, ...data }: UpdateInstanceInput): Promise<BlindpayApiResponse<void>>;
|
|
37
|
+
delete({ instanceId }: DeleteInstanceInput): Promise<BlindpayApiResponse<void>>;
|
|
38
|
+
deleteMember({ instanceId, id, }: DeleteInstanceMemberInput): Promise<BlindpayApiResponse<void>>;
|
|
39
|
+
updateMemberRole({ instanceId, id, ...data }: UpdateInstanceMemberRoleInput): Promise<BlindpayApiResponse<void>>;
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
export { type DeleteInstanceInput, type DeleteInstanceMemberInput, type GetInstanceMembersInput, type GetInstanceMembersResponse, type InstanceMemberRole, type UpdateInstanceInput, type UpdateInstanceMemberRoleInput, createInstancesResource };
|