@blindpay/node 3.2.0 → 3.3.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/README.md +1 -1
- package/dist/api-client-Cu0yYexQ.d.ts +16 -0
- package/dist/api-client-DV5jG52T.d.mts +16 -0
- package/dist/chunk-ALHMJWQN.mjs +21 -0
- package/dist/{chunk-VOB7TMKL.mjs → chunk-F5Z45GCA.mjs} +8 -0
- package/dist/chunk-ISHZTBAN.mjs +39 -0
- package/dist/{chunk-AFXWEXL6.mjs → chunk-JOHWDSDM.mjs} +44 -20
- package/dist/chunk-KMU6V4LW.mjs +50 -0
- package/dist/chunk-UDRMLZWT.mjs +53 -0
- package/dist/{chunk-CPOSU35L.mjs → chunk-UOAM7SX3.mjs} +43 -25
- package/dist/{chunk-U7CKUUO7.mjs → chunk-WE73MTQL.mjs} +3 -0
- package/dist/{chunk-67XECGMJ.mjs → chunk-YIZJM2GU.mjs} +4 -3
- package/dist/{api-client-CIPV5zmo.d.mts → index.d-yOiKSwHO.d.mts} +6 -19
- package/dist/{api-client-CIPV5zmo.d.ts → index.d-yOiKSwHO.d.ts} +6 -19
- package/dist/index.d.mts +19 -6
- package/dist/index.d.ts +19 -6
- package/dist/index.js +183 -30
- package/dist/index.mjs +43 -19
- package/dist/resources/api-keys/api-keys.test.js +175 -30
- package/dist/resources/api-keys/api-keys.test.mjs +12 -8
- package/dist/resources/api-keys/index.d.mts +2 -1
- package/dist/resources/api-keys/index.d.ts +2 -1
- package/dist/resources/available/available.test.js +199 -30
- package/dist/resources/available/available.test.mjs +36 -8
- package/dist/resources/available/index.d.mts +8 -2
- package/dist/resources/available/index.d.ts +8 -2
- package/dist/resources/available/index.js +3 -0
- package/dist/resources/available/index.mjs +1 -1
- package/dist/resources/bank-accounts/bank-accounts.test.js +230 -32
- package/dist/resources/bank-accounts/bank-accounts.test.mjs +67 -10
- package/dist/resources/bank-accounts/index.d.mts +83 -9
- package/dist/resources/bank-accounts/index.d.ts +83 -9
- package/dist/resources/bank-accounts/index.js +43 -25
- package/dist/resources/bank-accounts/index.mjs +1 -1
- package/dist/resources/fees/fees.test.d.mts +2 -0
- package/dist/resources/fees/fees.test.d.ts +2 -0
- package/dist/resources/fees/fees.test.js +19845 -0
- package/dist/resources/fees/fees.test.mjs +85 -0
- package/dist/resources/fees/index.d.mts +36 -0
- package/dist/resources/fees/index.d.ts +36 -0
- package/dist/resources/fees/index.js +36 -0
- package/dist/resources/fees/index.mjs +9 -0
- package/dist/resources/instances/index.d.mts +2 -1
- package/dist/resources/instances/index.d.ts +2 -1
- package/dist/resources/instances/instances.test.js +175 -30
- package/dist/resources/instances/instances.test.mjs +12 -8
- package/dist/resources/partner-fees/index.d.mts +2 -1
- package/dist/resources/partner-fees/index.d.ts +2 -1
- package/dist/resources/partner-fees/partner-fees.test.js +175 -30
- package/dist/resources/partner-fees/partner-fees.test.mjs +12 -8
- package/dist/resources/payins/index.d.mts +2 -1
- package/dist/resources/payins/index.d.ts +2 -1
- package/dist/resources/payins/payins-quotes.test.js +175 -30
- package/dist/resources/payins/payins-quotes.test.mjs +12 -8
- package/dist/resources/payins/payins.test.js +175 -30
- package/dist/resources/payins/payins.test.mjs +12 -8
- package/dist/resources/payins/quotes.d.mts +2 -1
- package/dist/resources/payins/quotes.d.ts +2 -1
- package/dist/resources/payouts/index.d.mts +15 -3
- package/dist/resources/payouts/index.d.ts +15 -3
- package/dist/resources/payouts/index.js +8 -0
- package/dist/resources/payouts/index.mjs +1 -1
- package/dist/resources/payouts/payouts.test.js +194 -30
- package/dist/resources/payouts/payouts.test.mjs +31 -8
- package/dist/resources/quotes/index.d.mts +2 -1
- package/dist/resources/quotes/index.d.ts +2 -1
- package/dist/resources/quotes/quotes.test.js +175 -30
- package/dist/resources/quotes/quotes.test.mjs +12 -8
- package/dist/resources/receivers/index.d.mts +16 -4
- package/dist/resources/receivers/index.d.ts +16 -4
- package/dist/resources/receivers/index.js +4 -3
- package/dist/resources/receivers/index.mjs +1 -1
- package/dist/resources/receivers/receivers.test.js +331 -179
- package/dist/resources/receivers/receivers.test.mjs +168 -157
- package/dist/resources/terms-of-service/index.d.mts +2 -1
- package/dist/resources/terms-of-service/index.d.ts +2 -1
- package/dist/resources/terms-of-service/terms-of-service.test.js +175 -30
- package/dist/resources/terms-of-service/terms-of-service.test.mjs +12 -8
- package/dist/resources/transfers/index.d.mts +94 -0
- package/dist/resources/transfers/index.d.ts +94 -0
- package/dist/resources/transfers/index.js +67 -0
- package/dist/resources/transfers/index.mjs +9 -0
- package/dist/resources/transfers/transfers.test.d.mts +2 -0
- package/dist/resources/transfers/transfers.test.d.ts +2 -0
- package/dist/resources/transfers/transfers.test.js +19931 -0
- package/dist/resources/transfers/transfers.test.mjs +171 -0
- package/dist/resources/upload/index.d.mts +16 -0
- package/dist/resources/upload/index.d.ts +16 -0
- package/dist/resources/upload/index.js +100 -0
- package/dist/resources/upload/index.mjs +9 -0
- package/dist/resources/upload/upload.test.d.mts +2 -0
- package/dist/resources/upload/upload.test.d.ts +2 -0
- package/dist/resources/upload/upload.test.js +19840 -0
- package/dist/resources/upload/upload.test.mjs +80 -0
- package/dist/resources/virtual-accounts/index.d.mts +2 -1
- package/dist/resources/virtual-accounts/index.d.ts +2 -1
- package/dist/resources/virtual-accounts/virtual-accounts.test.js +175 -30
- package/dist/resources/virtual-accounts/virtual-accounts.test.mjs +12 -8
- package/dist/resources/wallets/blockchain.d.mts +2 -1
- package/dist/resources/wallets/blockchain.d.ts +2 -1
- package/dist/resources/wallets/blockchain.test.js +175 -30
- package/dist/resources/wallets/blockchain.test.mjs +12 -8
- package/dist/resources/wallets/custodial.d.mts +55 -0
- package/dist/resources/wallets/custodial.d.ts +55 -0
- package/dist/resources/wallets/custodial.js +78 -0
- package/dist/resources/wallets/custodial.mjs +9 -0
- package/dist/resources/wallets/custodial.test.d.mts +2 -0
- package/dist/resources/wallets/custodial.test.d.ts +2 -0
- package/dist/resources/wallets/custodial.test.js +19901 -0
- package/dist/resources/wallets/custodial.test.mjs +141 -0
- package/dist/resources/wallets/offramp.d.mts +2 -1
- package/dist/resources/wallets/offramp.d.ts +2 -1
- package/dist/resources/wallets/offramp.test.js +175 -30
- package/dist/resources/wallets/offramp.test.mjs +12 -8
- package/dist/resources/webhooks/index.d.mts +3 -2
- package/dist/resources/webhooks/index.d.ts +3 -2
- package/dist/resources/webhooks/webhooks.test.js +175 -30
- package/dist/resources/webhooks/webhooks.test.mjs +12 -8
- package/package.json +2 -2
|
@@ -1,7 +1,17 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { R as Rail, C as Country, B as BlindpayApiResponse, a as BankAccountType, A as AccountClass, b as AchCopDocument, c as ArgentinaTransfers } from '../../index.d-yOiKSwHO.mjs';
|
|
2
|
+
import { I as InternalApiClient } from '../../api-client-DV5jG52T.mjs';
|
|
2
3
|
import { SpeiProtocol } from '../payouts/index.mjs';
|
|
4
|
+
import { BusinessIndustry } from '../receivers/index.mjs';
|
|
3
5
|
|
|
4
|
-
type
|
|
6
|
+
type RecipientRelationship = "first_party" | "employee" | "independent_contractor" | "vendor_or_supplier" | "subsidiary_or_affiliate" | "merchant_or_partner" | "customer" | "landlord" | "family" | "other";
|
|
7
|
+
type ListBankAccountsInput = {
|
|
8
|
+
receiver_id: string;
|
|
9
|
+
status?: string;
|
|
10
|
+
type?: Rail;
|
|
11
|
+
name?: string;
|
|
12
|
+
bank_account_id?: string;
|
|
13
|
+
country?: Country;
|
|
14
|
+
};
|
|
5
15
|
type ListBankAccountsResponse = {
|
|
6
16
|
data: Array<{
|
|
7
17
|
id: string;
|
|
@@ -51,6 +61,9 @@ type ListBankAccountsResponse = {
|
|
|
51
61
|
swift_intermediary_bank_account_number_iban?: string;
|
|
52
62
|
swift_intermediary_bank_name?: string;
|
|
53
63
|
swift_intermediary_bank_country?: Country;
|
|
64
|
+
pix_safe_bank_code?: string;
|
|
65
|
+
pix_safe_branch_code?: string;
|
|
66
|
+
pix_safe_cpf_cnpj?: string;
|
|
54
67
|
tron_wallet_hash?: string;
|
|
55
68
|
offramp_wallets?: Array<{
|
|
56
69
|
address: string;
|
|
@@ -95,6 +108,28 @@ type CreatePixResponse = {
|
|
|
95
108
|
pix_key: string;
|
|
96
109
|
created_at: string;
|
|
97
110
|
};
|
|
111
|
+
type CreatePixSafeInput = {
|
|
112
|
+
receiver_id: string;
|
|
113
|
+
name: string;
|
|
114
|
+
beneficiary_name: string;
|
|
115
|
+
account_number: string;
|
|
116
|
+
account_type: BankAccountType;
|
|
117
|
+
pix_safe_bank_code: string;
|
|
118
|
+
pix_safe_branch_code: string;
|
|
119
|
+
pix_safe_cpf_cnpj: string;
|
|
120
|
+
};
|
|
121
|
+
type CreatePixSafeResponse = {
|
|
122
|
+
id: string;
|
|
123
|
+
type: "pix_safe";
|
|
124
|
+
name: string;
|
|
125
|
+
beneficiary_name: string;
|
|
126
|
+
account_number: string;
|
|
127
|
+
account_type: BankAccountType;
|
|
128
|
+
pix_safe_bank_code: string;
|
|
129
|
+
pix_safe_branch_code: string;
|
|
130
|
+
pix_safe_cpf_cnpj: string;
|
|
131
|
+
created_at: string;
|
|
132
|
+
};
|
|
98
133
|
type CreateArgentinaTransfersInput = {
|
|
99
134
|
receiver_id: string;
|
|
100
135
|
name: string;
|
|
@@ -163,6 +198,17 @@ type CreateAchInput = {
|
|
|
163
198
|
account_type: BankAccountType;
|
|
164
199
|
beneficiary_name: string;
|
|
165
200
|
routing_number: string;
|
|
201
|
+
recipient_relationship: RecipientRelationship;
|
|
202
|
+
address_line_1: string;
|
|
203
|
+
city: string;
|
|
204
|
+
state_province_region: string;
|
|
205
|
+
country: Country;
|
|
206
|
+
postal_code: string;
|
|
207
|
+
address_line_2?: string;
|
|
208
|
+
business_industry?: BusinessIndustry;
|
|
209
|
+
phone_number?: string;
|
|
210
|
+
tax_id?: string;
|
|
211
|
+
date_of_birth?: string;
|
|
166
212
|
};
|
|
167
213
|
type CreateAchResponse = {
|
|
168
214
|
id: string;
|
|
@@ -173,6 +219,7 @@ type CreateAchResponse = {
|
|
|
173
219
|
account_number: string;
|
|
174
220
|
account_type: BankAccountType;
|
|
175
221
|
account_class: AccountClass;
|
|
222
|
+
recipient_relationship: RecipientRelationship;
|
|
176
223
|
address_line_1: string | null;
|
|
177
224
|
address_line_2: string | null;
|
|
178
225
|
city: string | null;
|
|
@@ -191,15 +238,21 @@ type CreateAchResponse = {
|
|
|
191
238
|
type CreateWireInput = {
|
|
192
239
|
receiver_id: string;
|
|
193
240
|
name: string;
|
|
241
|
+
account_class: AccountClass;
|
|
194
242
|
account_number: string;
|
|
195
243
|
beneficiary_name: string;
|
|
196
244
|
routing_number: string;
|
|
245
|
+
recipient_relationship: RecipientRelationship;
|
|
197
246
|
address_line_1: string;
|
|
198
247
|
address_line_2?: string;
|
|
199
248
|
city: string;
|
|
200
249
|
state_province_region: string;
|
|
201
250
|
country: Country;
|
|
202
251
|
postal_code: string;
|
|
252
|
+
business_industry?: BusinessIndustry;
|
|
253
|
+
phone_number?: string;
|
|
254
|
+
tax_id?: string;
|
|
255
|
+
date_of_birth?: string;
|
|
203
256
|
};
|
|
204
257
|
type CreateWireResponse = {
|
|
205
258
|
id: string;
|
|
@@ -208,8 +261,10 @@ type CreateWireResponse = {
|
|
|
208
261
|
beneficiary_name: string;
|
|
209
262
|
routing_number: string;
|
|
210
263
|
account_number: string;
|
|
264
|
+
account_class: AccountClass;
|
|
265
|
+
recipient_relationship: RecipientRelationship;
|
|
211
266
|
address_line_1: string;
|
|
212
|
-
address_line_2: string;
|
|
267
|
+
address_line_2: string | null;
|
|
213
268
|
city: string;
|
|
214
269
|
state_province_region: string;
|
|
215
270
|
country: Country;
|
|
@@ -219,6 +274,8 @@ type CreateWireResponse = {
|
|
|
219
274
|
type CreateInternationalSwiftInput = {
|
|
220
275
|
receiver_id: string;
|
|
221
276
|
name: string;
|
|
277
|
+
account_class: AccountClass;
|
|
278
|
+
recipient_relationship: RecipientRelationship;
|
|
222
279
|
swift_account_holder_name: string;
|
|
223
280
|
swift_account_number_iban: string;
|
|
224
281
|
swift_bank_address_line_1: string;
|
|
@@ -235,16 +292,23 @@ type CreateInternationalSwiftInput = {
|
|
|
235
292
|
swift_beneficiary_postal_code: string;
|
|
236
293
|
swift_beneficiary_state_province_region: string;
|
|
237
294
|
swift_code_bic: string;
|
|
238
|
-
swift_intermediary_bank_account_number_iban
|
|
239
|
-
swift_intermediary_bank_country
|
|
240
|
-
swift_intermediary_bank_name
|
|
241
|
-
swift_intermediary_bank_swift_code_bic
|
|
295
|
+
swift_intermediary_bank_account_number_iban?: string | null;
|
|
296
|
+
swift_intermediary_bank_country?: Country | null;
|
|
297
|
+
swift_intermediary_bank_name?: string | null;
|
|
298
|
+
swift_intermediary_bank_swift_code_bic?: string | null;
|
|
299
|
+
swift_payment_code?: string;
|
|
300
|
+
business_industry?: BusinessIndustry;
|
|
301
|
+
phone_number?: string;
|
|
302
|
+
tax_id?: string;
|
|
303
|
+
date_of_birth?: string;
|
|
242
304
|
};
|
|
243
305
|
type CreateInternationalSwiftResponse = {
|
|
244
306
|
id: string;
|
|
245
307
|
type: "international_swift";
|
|
246
308
|
name: string;
|
|
247
309
|
beneficiary_name: string | null;
|
|
310
|
+
account_class: AccountClass;
|
|
311
|
+
recipient_relationship: RecipientRelationship;
|
|
248
312
|
address_line_1: string | null;
|
|
249
313
|
address_line_2: string | null;
|
|
250
314
|
city: string | null;
|
|
@@ -271,20 +335,27 @@ type CreateInternationalSwiftResponse = {
|
|
|
271
335
|
swift_intermediary_bank_account_number_iban: string | null;
|
|
272
336
|
swift_intermediary_bank_name: string | null;
|
|
273
337
|
swift_intermediary_bank_country: Country | null;
|
|
338
|
+
swift_payment_code: string | null;
|
|
274
339
|
created_at: string;
|
|
275
340
|
};
|
|
276
341
|
type CreateRtpInput = {
|
|
277
342
|
receiver_id: string;
|
|
278
343
|
name: string;
|
|
344
|
+
account_class: AccountClass;
|
|
279
345
|
beneficiary_name: string;
|
|
280
346
|
routing_number: string;
|
|
281
347
|
account_number: string;
|
|
348
|
+
recipient_relationship: RecipientRelationship;
|
|
282
349
|
address_line_1: string;
|
|
283
350
|
address_line_2?: string;
|
|
284
351
|
city: string;
|
|
285
352
|
state_province_region: string;
|
|
286
353
|
country: Country;
|
|
287
354
|
postal_code: string;
|
|
355
|
+
business_industry?: BusinessIndustry;
|
|
356
|
+
phone_number?: string;
|
|
357
|
+
tax_id?: string;
|
|
358
|
+
date_of_birth?: string;
|
|
288
359
|
};
|
|
289
360
|
type CreateRtpResponse = {
|
|
290
361
|
id: string;
|
|
@@ -293,6 +364,8 @@ type CreateRtpResponse = {
|
|
|
293
364
|
beneficiary_name: string;
|
|
294
365
|
routing_number: string;
|
|
295
366
|
account_number: string;
|
|
367
|
+
account_class: AccountClass;
|
|
368
|
+
recipient_relationship: RecipientRelationship;
|
|
296
369
|
address_line_1: string;
|
|
297
370
|
address_line_2: string | null;
|
|
298
371
|
city: string;
|
|
@@ -302,10 +375,11 @@ type CreateRtpResponse = {
|
|
|
302
375
|
created_at: string;
|
|
303
376
|
};
|
|
304
377
|
declare function createBankAccountsResource(instanceId: string, client: InternalApiClient): {
|
|
305
|
-
list(receiver_id: ListBankAccountsInput): Promise<BlindpayApiResponse<ListBankAccountsResponse>>;
|
|
378
|
+
list({ receiver_id, ...params }: ListBankAccountsInput): Promise<BlindpayApiResponse<ListBankAccountsResponse>>;
|
|
306
379
|
get({ receiver_id, id, }: GetBankAccountInput): Promise<BlindpayApiResponse<GetBankAccountResponse>>;
|
|
307
380
|
delete({ receiver_id, id }: DeleteBankAccountInput): Promise<BlindpayApiResponse<void>>;
|
|
308
381
|
createPix({ receiver_id, ...data }: CreatePixInput): Promise<BlindpayApiResponse<CreatePixResponse>>;
|
|
382
|
+
createPixSafe({ receiver_id, ...data }: CreatePixSafeInput): Promise<BlindpayApiResponse<CreatePixSafeResponse>>;
|
|
309
383
|
createArgentinaTransfers({ receiver_id, ...data }: CreateArgentinaTransfersInput): Promise<BlindpayApiResponse<CreateArgentinaTransfersResponse>>;
|
|
310
384
|
createSpei({ receiver_id, ...data }: CreateSpeiInput): Promise<BlindpayApiResponse<CreateSpeiResponse>>;
|
|
311
385
|
createColombiaAch({ receiver_id, ...data }: CreateColombiaAchInput): Promise<BlindpayApiResponse<CreateColombiaAchResponse>>;
|
|
@@ -315,4 +389,4 @@ declare function createBankAccountsResource(instanceId: string, client: Internal
|
|
|
315
389
|
createRtp({ receiver_id, ...data }: CreateRtpInput): Promise<BlindpayApiResponse<CreateRtpResponse>>;
|
|
316
390
|
};
|
|
317
391
|
|
|
318
|
-
export { type CreateAchInput, type CreateAchResponse, type CreateArgentinaTransfersInput, type CreateArgentinaTransfersResponse, type CreateColombiaAchInput, type CreateColombiaAchResponse, type CreateInternationalSwiftInput, type CreateInternationalSwiftResponse, type CreatePixInput, type CreatePixResponse, type CreateRtpInput, type CreateRtpResponse, type CreateSpeiInput, type CreateSpeiResponse, type CreateWireInput, type CreateWireResponse, type DeleteBankAccountInput, type GetBankAccountInput, type GetBankAccountResponse, type ListBankAccountsInput, type ListBankAccountsResponse, createBankAccountsResource };
|
|
392
|
+
export { type CreateAchInput, type CreateAchResponse, type CreateArgentinaTransfersInput, type CreateArgentinaTransfersResponse, type CreateColombiaAchInput, type CreateColombiaAchResponse, type CreateInternationalSwiftInput, type CreateInternationalSwiftResponse, type CreatePixInput, type CreatePixResponse, type CreatePixSafeInput, type CreatePixSafeResponse, type CreateRtpInput, type CreateRtpResponse, type CreateSpeiInput, type CreateSpeiResponse, type CreateWireInput, type CreateWireResponse, type DeleteBankAccountInput, type GetBankAccountInput, type GetBankAccountResponse, type ListBankAccountsInput, type ListBankAccountsResponse, type RecipientRelationship, createBankAccountsResource };
|
|
@@ -1,7 +1,17 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { R as Rail, C as Country, B as BlindpayApiResponse, a as BankAccountType, A as AccountClass, b as AchCopDocument, c as ArgentinaTransfers } from '../../index.d-yOiKSwHO.js';
|
|
2
|
+
import { I as InternalApiClient } from '../../api-client-Cu0yYexQ.js';
|
|
2
3
|
import { SpeiProtocol } from '../payouts/index.js';
|
|
4
|
+
import { BusinessIndustry } from '../receivers/index.js';
|
|
3
5
|
|
|
4
|
-
type
|
|
6
|
+
type RecipientRelationship = "first_party" | "employee" | "independent_contractor" | "vendor_or_supplier" | "subsidiary_or_affiliate" | "merchant_or_partner" | "customer" | "landlord" | "family" | "other";
|
|
7
|
+
type ListBankAccountsInput = {
|
|
8
|
+
receiver_id: string;
|
|
9
|
+
status?: string;
|
|
10
|
+
type?: Rail;
|
|
11
|
+
name?: string;
|
|
12
|
+
bank_account_id?: string;
|
|
13
|
+
country?: Country;
|
|
14
|
+
};
|
|
5
15
|
type ListBankAccountsResponse = {
|
|
6
16
|
data: Array<{
|
|
7
17
|
id: string;
|
|
@@ -51,6 +61,9 @@ type ListBankAccountsResponse = {
|
|
|
51
61
|
swift_intermediary_bank_account_number_iban?: string;
|
|
52
62
|
swift_intermediary_bank_name?: string;
|
|
53
63
|
swift_intermediary_bank_country?: Country;
|
|
64
|
+
pix_safe_bank_code?: string;
|
|
65
|
+
pix_safe_branch_code?: string;
|
|
66
|
+
pix_safe_cpf_cnpj?: string;
|
|
54
67
|
tron_wallet_hash?: string;
|
|
55
68
|
offramp_wallets?: Array<{
|
|
56
69
|
address: string;
|
|
@@ -95,6 +108,28 @@ type CreatePixResponse = {
|
|
|
95
108
|
pix_key: string;
|
|
96
109
|
created_at: string;
|
|
97
110
|
};
|
|
111
|
+
type CreatePixSafeInput = {
|
|
112
|
+
receiver_id: string;
|
|
113
|
+
name: string;
|
|
114
|
+
beneficiary_name: string;
|
|
115
|
+
account_number: string;
|
|
116
|
+
account_type: BankAccountType;
|
|
117
|
+
pix_safe_bank_code: string;
|
|
118
|
+
pix_safe_branch_code: string;
|
|
119
|
+
pix_safe_cpf_cnpj: string;
|
|
120
|
+
};
|
|
121
|
+
type CreatePixSafeResponse = {
|
|
122
|
+
id: string;
|
|
123
|
+
type: "pix_safe";
|
|
124
|
+
name: string;
|
|
125
|
+
beneficiary_name: string;
|
|
126
|
+
account_number: string;
|
|
127
|
+
account_type: BankAccountType;
|
|
128
|
+
pix_safe_bank_code: string;
|
|
129
|
+
pix_safe_branch_code: string;
|
|
130
|
+
pix_safe_cpf_cnpj: string;
|
|
131
|
+
created_at: string;
|
|
132
|
+
};
|
|
98
133
|
type CreateArgentinaTransfersInput = {
|
|
99
134
|
receiver_id: string;
|
|
100
135
|
name: string;
|
|
@@ -163,6 +198,17 @@ type CreateAchInput = {
|
|
|
163
198
|
account_type: BankAccountType;
|
|
164
199
|
beneficiary_name: string;
|
|
165
200
|
routing_number: string;
|
|
201
|
+
recipient_relationship: RecipientRelationship;
|
|
202
|
+
address_line_1: string;
|
|
203
|
+
city: string;
|
|
204
|
+
state_province_region: string;
|
|
205
|
+
country: Country;
|
|
206
|
+
postal_code: string;
|
|
207
|
+
address_line_2?: string;
|
|
208
|
+
business_industry?: BusinessIndustry;
|
|
209
|
+
phone_number?: string;
|
|
210
|
+
tax_id?: string;
|
|
211
|
+
date_of_birth?: string;
|
|
166
212
|
};
|
|
167
213
|
type CreateAchResponse = {
|
|
168
214
|
id: string;
|
|
@@ -173,6 +219,7 @@ type CreateAchResponse = {
|
|
|
173
219
|
account_number: string;
|
|
174
220
|
account_type: BankAccountType;
|
|
175
221
|
account_class: AccountClass;
|
|
222
|
+
recipient_relationship: RecipientRelationship;
|
|
176
223
|
address_line_1: string | null;
|
|
177
224
|
address_line_2: string | null;
|
|
178
225
|
city: string | null;
|
|
@@ -191,15 +238,21 @@ type CreateAchResponse = {
|
|
|
191
238
|
type CreateWireInput = {
|
|
192
239
|
receiver_id: string;
|
|
193
240
|
name: string;
|
|
241
|
+
account_class: AccountClass;
|
|
194
242
|
account_number: string;
|
|
195
243
|
beneficiary_name: string;
|
|
196
244
|
routing_number: string;
|
|
245
|
+
recipient_relationship: RecipientRelationship;
|
|
197
246
|
address_line_1: string;
|
|
198
247
|
address_line_2?: string;
|
|
199
248
|
city: string;
|
|
200
249
|
state_province_region: string;
|
|
201
250
|
country: Country;
|
|
202
251
|
postal_code: string;
|
|
252
|
+
business_industry?: BusinessIndustry;
|
|
253
|
+
phone_number?: string;
|
|
254
|
+
tax_id?: string;
|
|
255
|
+
date_of_birth?: string;
|
|
203
256
|
};
|
|
204
257
|
type CreateWireResponse = {
|
|
205
258
|
id: string;
|
|
@@ -208,8 +261,10 @@ type CreateWireResponse = {
|
|
|
208
261
|
beneficiary_name: string;
|
|
209
262
|
routing_number: string;
|
|
210
263
|
account_number: string;
|
|
264
|
+
account_class: AccountClass;
|
|
265
|
+
recipient_relationship: RecipientRelationship;
|
|
211
266
|
address_line_1: string;
|
|
212
|
-
address_line_2: string;
|
|
267
|
+
address_line_2: string | null;
|
|
213
268
|
city: string;
|
|
214
269
|
state_province_region: string;
|
|
215
270
|
country: Country;
|
|
@@ -219,6 +274,8 @@ type CreateWireResponse = {
|
|
|
219
274
|
type CreateInternationalSwiftInput = {
|
|
220
275
|
receiver_id: string;
|
|
221
276
|
name: string;
|
|
277
|
+
account_class: AccountClass;
|
|
278
|
+
recipient_relationship: RecipientRelationship;
|
|
222
279
|
swift_account_holder_name: string;
|
|
223
280
|
swift_account_number_iban: string;
|
|
224
281
|
swift_bank_address_line_1: string;
|
|
@@ -235,16 +292,23 @@ type CreateInternationalSwiftInput = {
|
|
|
235
292
|
swift_beneficiary_postal_code: string;
|
|
236
293
|
swift_beneficiary_state_province_region: string;
|
|
237
294
|
swift_code_bic: string;
|
|
238
|
-
swift_intermediary_bank_account_number_iban
|
|
239
|
-
swift_intermediary_bank_country
|
|
240
|
-
swift_intermediary_bank_name
|
|
241
|
-
swift_intermediary_bank_swift_code_bic
|
|
295
|
+
swift_intermediary_bank_account_number_iban?: string | null;
|
|
296
|
+
swift_intermediary_bank_country?: Country | null;
|
|
297
|
+
swift_intermediary_bank_name?: string | null;
|
|
298
|
+
swift_intermediary_bank_swift_code_bic?: string | null;
|
|
299
|
+
swift_payment_code?: string;
|
|
300
|
+
business_industry?: BusinessIndustry;
|
|
301
|
+
phone_number?: string;
|
|
302
|
+
tax_id?: string;
|
|
303
|
+
date_of_birth?: string;
|
|
242
304
|
};
|
|
243
305
|
type CreateInternationalSwiftResponse = {
|
|
244
306
|
id: string;
|
|
245
307
|
type: "international_swift";
|
|
246
308
|
name: string;
|
|
247
309
|
beneficiary_name: string | null;
|
|
310
|
+
account_class: AccountClass;
|
|
311
|
+
recipient_relationship: RecipientRelationship;
|
|
248
312
|
address_line_1: string | null;
|
|
249
313
|
address_line_2: string | null;
|
|
250
314
|
city: string | null;
|
|
@@ -271,20 +335,27 @@ type CreateInternationalSwiftResponse = {
|
|
|
271
335
|
swift_intermediary_bank_account_number_iban: string | null;
|
|
272
336
|
swift_intermediary_bank_name: string | null;
|
|
273
337
|
swift_intermediary_bank_country: Country | null;
|
|
338
|
+
swift_payment_code: string | null;
|
|
274
339
|
created_at: string;
|
|
275
340
|
};
|
|
276
341
|
type CreateRtpInput = {
|
|
277
342
|
receiver_id: string;
|
|
278
343
|
name: string;
|
|
344
|
+
account_class: AccountClass;
|
|
279
345
|
beneficiary_name: string;
|
|
280
346
|
routing_number: string;
|
|
281
347
|
account_number: string;
|
|
348
|
+
recipient_relationship: RecipientRelationship;
|
|
282
349
|
address_line_1: string;
|
|
283
350
|
address_line_2?: string;
|
|
284
351
|
city: string;
|
|
285
352
|
state_province_region: string;
|
|
286
353
|
country: Country;
|
|
287
354
|
postal_code: string;
|
|
355
|
+
business_industry?: BusinessIndustry;
|
|
356
|
+
phone_number?: string;
|
|
357
|
+
tax_id?: string;
|
|
358
|
+
date_of_birth?: string;
|
|
288
359
|
};
|
|
289
360
|
type CreateRtpResponse = {
|
|
290
361
|
id: string;
|
|
@@ -293,6 +364,8 @@ type CreateRtpResponse = {
|
|
|
293
364
|
beneficiary_name: string;
|
|
294
365
|
routing_number: string;
|
|
295
366
|
account_number: string;
|
|
367
|
+
account_class: AccountClass;
|
|
368
|
+
recipient_relationship: RecipientRelationship;
|
|
296
369
|
address_line_1: string;
|
|
297
370
|
address_line_2: string | null;
|
|
298
371
|
city: string;
|
|
@@ -302,10 +375,11 @@ type CreateRtpResponse = {
|
|
|
302
375
|
created_at: string;
|
|
303
376
|
};
|
|
304
377
|
declare function createBankAccountsResource(instanceId: string, client: InternalApiClient): {
|
|
305
|
-
list(receiver_id: ListBankAccountsInput): Promise<BlindpayApiResponse<ListBankAccountsResponse>>;
|
|
378
|
+
list({ receiver_id, ...params }: ListBankAccountsInput): Promise<BlindpayApiResponse<ListBankAccountsResponse>>;
|
|
306
379
|
get({ receiver_id, id, }: GetBankAccountInput): Promise<BlindpayApiResponse<GetBankAccountResponse>>;
|
|
307
380
|
delete({ receiver_id, id }: DeleteBankAccountInput): Promise<BlindpayApiResponse<void>>;
|
|
308
381
|
createPix({ receiver_id, ...data }: CreatePixInput): Promise<BlindpayApiResponse<CreatePixResponse>>;
|
|
382
|
+
createPixSafe({ receiver_id, ...data }: CreatePixSafeInput): Promise<BlindpayApiResponse<CreatePixSafeResponse>>;
|
|
309
383
|
createArgentinaTransfers({ receiver_id, ...data }: CreateArgentinaTransfersInput): Promise<BlindpayApiResponse<CreateArgentinaTransfersResponse>>;
|
|
310
384
|
createSpei({ receiver_id, ...data }: CreateSpeiInput): Promise<BlindpayApiResponse<CreateSpeiResponse>>;
|
|
311
385
|
createColombiaAch({ receiver_id, ...data }: CreateColombiaAchInput): Promise<BlindpayApiResponse<CreateColombiaAchResponse>>;
|
|
@@ -315,4 +389,4 @@ declare function createBankAccountsResource(instanceId: string, client: Internal
|
|
|
315
389
|
createRtp({ receiver_id, ...data }: CreateRtpInput): Promise<BlindpayApiResponse<CreateRtpResponse>>;
|
|
316
390
|
};
|
|
317
391
|
|
|
318
|
-
export { type CreateAchInput, type CreateAchResponse, type CreateArgentinaTransfersInput, type CreateArgentinaTransfersResponse, type CreateColombiaAchInput, type CreateColombiaAchResponse, type CreateInternationalSwiftInput, type CreateInternationalSwiftResponse, type CreatePixInput, type CreatePixResponse, type CreateRtpInput, type CreateRtpResponse, type CreateSpeiInput, type CreateSpeiResponse, type CreateWireInput, type CreateWireResponse, type DeleteBankAccountInput, type GetBankAccountInput, type GetBankAccountResponse, type ListBankAccountsInput, type ListBankAccountsResponse, createBankAccountsResource };
|
|
392
|
+
export { type CreateAchInput, type CreateAchResponse, type CreateArgentinaTransfersInput, type CreateArgentinaTransfersResponse, type CreateColombiaAchInput, type CreateColombiaAchResponse, type CreateInternationalSwiftInput, type CreateInternationalSwiftResponse, type CreatePixInput, type CreatePixResponse, type CreatePixSafeInput, type CreatePixSafeResponse, type CreateRtpInput, type CreateRtpResponse, type CreateSpeiInput, type CreateSpeiResponse, type CreateWireInput, type CreateWireResponse, type DeleteBankAccountInput, type GetBankAccountInput, type GetBankAccountResponse, type ListBankAccountsInput, type ListBankAccountsResponse, type RecipientRelationship, createBankAccountsResource };
|
|
@@ -51,8 +51,16 @@ __export(bank_accounts_exports, {
|
|
|
51
51
|
module.exports = __toCommonJS(bank_accounts_exports);
|
|
52
52
|
function createBankAccountsResource(instanceId, client) {
|
|
53
53
|
return {
|
|
54
|
-
list(
|
|
55
|
-
|
|
54
|
+
list(_a) {
|
|
55
|
+
var _b = _a, {
|
|
56
|
+
receiver_id
|
|
57
|
+
} = _b, params = __objRest(_b, [
|
|
58
|
+
"receiver_id"
|
|
59
|
+
]);
|
|
60
|
+
const queryParams = Object.keys(params).length ? `?${new URLSearchParams(params)}` : "";
|
|
61
|
+
return client.get(
|
|
62
|
+
`/instances/${instanceId}/receivers/${receiver_id}/bank-accounts${queryParams}`
|
|
63
|
+
);
|
|
56
64
|
},
|
|
57
65
|
get({
|
|
58
66
|
receiver_id,
|
|
@@ -67,82 +75,92 @@ function createBankAccountsResource(instanceId, client) {
|
|
|
67
75
|
`/instances/${instanceId}/receivers/${receiver_id}/bank-accounts/${id}`
|
|
68
76
|
);
|
|
69
77
|
},
|
|
70
|
-
createPix(
|
|
71
|
-
var _b = _a, {
|
|
72
|
-
receiver_id
|
|
73
|
-
} = _b, data = __objRest(_b, [
|
|
74
|
-
"receiver_id"
|
|
75
|
-
]);
|
|
76
|
-
return client.post(`/instances/${instanceId}/receivers/${receiver_id}/bank-accounts`, __spreadValues({
|
|
77
|
-
type: "pix"
|
|
78
|
-
}, data));
|
|
79
|
-
},
|
|
80
|
-
createArgentinaTransfers(_c) {
|
|
78
|
+
createPix(_c) {
|
|
81
79
|
var _d = _c, {
|
|
82
80
|
receiver_id
|
|
83
81
|
} = _d, data = __objRest(_d, [
|
|
84
82
|
"receiver_id"
|
|
85
83
|
]);
|
|
86
84
|
return client.post(`/instances/${instanceId}/receivers/${receiver_id}/bank-accounts`, __spreadValues({
|
|
87
|
-
type: "
|
|
85
|
+
type: "pix"
|
|
88
86
|
}, data));
|
|
89
87
|
},
|
|
90
|
-
|
|
88
|
+
createPixSafe(_e) {
|
|
91
89
|
var _f = _e, {
|
|
92
90
|
receiver_id
|
|
93
91
|
} = _f, data = __objRest(_f, [
|
|
94
92
|
"receiver_id"
|
|
95
93
|
]);
|
|
96
94
|
return client.post(`/instances/${instanceId}/receivers/${receiver_id}/bank-accounts`, __spreadValues({
|
|
97
|
-
type: "
|
|
95
|
+
type: "pix_safe"
|
|
98
96
|
}, data));
|
|
99
97
|
},
|
|
100
|
-
|
|
98
|
+
createArgentinaTransfers(_g) {
|
|
101
99
|
var _h = _g, {
|
|
102
100
|
receiver_id
|
|
103
101
|
} = _h, data = __objRest(_h, [
|
|
104
102
|
"receiver_id"
|
|
105
103
|
]);
|
|
106
104
|
return client.post(`/instances/${instanceId}/receivers/${receiver_id}/bank-accounts`, __spreadValues({
|
|
107
|
-
type: "
|
|
105
|
+
type: "transfers_bitso"
|
|
108
106
|
}, data));
|
|
109
107
|
},
|
|
110
|
-
|
|
108
|
+
createSpei(_i) {
|
|
111
109
|
var _j = _i, {
|
|
112
110
|
receiver_id
|
|
113
111
|
} = _j, data = __objRest(_j, [
|
|
114
112
|
"receiver_id"
|
|
115
113
|
]);
|
|
116
114
|
return client.post(`/instances/${instanceId}/receivers/${receiver_id}/bank-accounts`, __spreadValues({
|
|
117
|
-
type: "
|
|
115
|
+
type: "spei_bitso"
|
|
118
116
|
}, data));
|
|
119
117
|
},
|
|
120
|
-
|
|
118
|
+
createColombiaAch(_k) {
|
|
121
119
|
var _l = _k, {
|
|
122
120
|
receiver_id
|
|
123
121
|
} = _l, data = __objRest(_l, [
|
|
124
122
|
"receiver_id"
|
|
125
123
|
]);
|
|
126
124
|
return client.post(`/instances/${instanceId}/receivers/${receiver_id}/bank-accounts`, __spreadValues({
|
|
127
|
-
type: "
|
|
125
|
+
type: "ach_cop_bitso"
|
|
128
126
|
}, data));
|
|
129
127
|
},
|
|
130
|
-
|
|
128
|
+
createAch(_m) {
|
|
131
129
|
var _n = _m, {
|
|
132
130
|
receiver_id
|
|
133
131
|
} = _n, data = __objRest(_n, [
|
|
134
132
|
"receiver_id"
|
|
135
133
|
]);
|
|
136
134
|
return client.post(`/instances/${instanceId}/receivers/${receiver_id}/bank-accounts`, __spreadValues({
|
|
137
|
-
type: "
|
|
135
|
+
type: "ach"
|
|
138
136
|
}, data));
|
|
139
137
|
},
|
|
140
|
-
|
|
138
|
+
createWire(_o) {
|
|
141
139
|
var _p = _o, {
|
|
142
140
|
receiver_id
|
|
143
141
|
} = _p, data = __objRest(_p, [
|
|
144
142
|
"receiver_id"
|
|
145
143
|
]);
|
|
144
|
+
return client.post(`/instances/${instanceId}/receivers/${receiver_id}/bank-accounts`, __spreadValues({
|
|
145
|
+
type: "wire"
|
|
146
|
+
}, data));
|
|
147
|
+
},
|
|
148
|
+
createInternationalSwift(_q) {
|
|
149
|
+
var _r = _q, {
|
|
150
|
+
receiver_id
|
|
151
|
+
} = _r, data = __objRest(_r, [
|
|
152
|
+
"receiver_id"
|
|
153
|
+
]);
|
|
154
|
+
return client.post(`/instances/${instanceId}/receivers/${receiver_id}/bank-accounts`, __spreadValues({
|
|
155
|
+
type: "international_swift"
|
|
156
|
+
}, data));
|
|
157
|
+
},
|
|
158
|
+
createRtp(_s) {
|
|
159
|
+
var _t = _s, {
|
|
160
|
+
receiver_id
|
|
161
|
+
} = _t, data = __objRest(_t, [
|
|
162
|
+
"receiver_id"
|
|
163
|
+
]);
|
|
146
164
|
return client.post(`/instances/${instanceId}/receivers/${receiver_id}/bank-accounts`, __spreadValues({
|
|
147
165
|
type: "rtp"
|
|
148
166
|
}, data));
|