@blindpay/node 1.0.0 → 1.1.1
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 +1 -1
- package/README.md +24 -37
- package/dist/{chunk-HKFAJXJG.mjs → chunk-3QQCDR3E.mjs} +12 -32
- package/dist/{chunk-LUDGZPXY.mjs → chunk-5XJJKYXE.mjs} +9 -16
- package/dist/chunk-64EFLUS3.mjs +106 -0
- package/dist/chunk-B5T7AQLH.mjs +38 -0
- package/dist/{chunk-VKN2AMCW.mjs → chunk-BONN6PYB.mjs} +12 -30
- package/dist/{chunk-M6IYYMRW.mjs → chunk-E7M4CJKR.mjs} +4 -12
- package/dist/chunk-IZYPRCCV.mjs +82 -0
- package/dist/{chunk-QVOSGLUO.mjs → chunk-LRHWT4JU.mjs} +6 -10
- package/dist/chunk-QGNLMN6Z.mjs +49 -0
- package/dist/{chunk-3CZJEDS5.mjs → chunk-RC5NN5UF.mjs} +5 -14
- package/dist/{chunk-GNDAATIJ.mjs → chunk-TBTA7A2P.mjs} +4 -12
- package/dist/{chunk-CNNEROQ7.mjs → chunk-UC57SCKQ.mjs} +6 -17
- package/dist/{chunk-UCAW3RTZ.mjs → chunk-W7NJUABI.mjs} +12 -20
- package/dist/{chunk-ES7RXEM7.mjs → chunk-YPXYUS2X.mjs} +46 -37
- package/dist/index.d.mts +14 -10
- package/dist/index.d.ts +14 -10
- package/dist/index.js +237 -435
- package/dist/index.mjs +19 -19
- package/dist/resources/api-keys/api-keys.test.js +238 -445
- package/dist/resources/api-keys/api-keys.test.mjs +19 -28
- package/dist/resources/api-keys/index.d.mts +20 -20
- package/dist/resources/api-keys/index.d.ts +20 -20
- package/dist/resources/api-keys/index.js +6 -10
- package/dist/resources/api-keys/index.mjs +1 -1
- package/dist/resources/available/available.test.js +235 -433
- package/dist/resources/available/available.test.mjs +16 -16
- package/dist/resources/bank-accounts/bank-accounts.test.js +245 -455
- package/dist/resources/bank-accounts/bank-accounts.test.mjs +26 -38
- package/dist/resources/bank-accounts/index.d.mts +22 -145
- package/dist/resources/bank-accounts/index.d.ts +22 -145
- package/dist/resources/bank-accounts/index.js +102 -184
- package/dist/resources/bank-accounts/index.mjs +1 -1
- package/dist/resources/instances/index.d.mts +9 -20
- package/dist/resources/instances/index.d.ts +9 -20
- package/dist/resources/instances/index.js +11 -20
- package/dist/resources/instances/index.mjs +1 -1
- package/dist/resources/instances/instances.test.js +239 -446
- package/dist/resources/instances/instances.test.mjs +20 -29
- package/dist/resources/partner-fees/index.d.mts +8 -18
- package/dist/resources/partner-fees/index.d.ts +8 -18
- package/dist/resources/partner-fees/index.js +5 -14
- package/dist/resources/partner-fees/index.mjs +1 -1
- package/dist/resources/partner-fees/partner-fees.test.js +238 -445
- package/dist/resources/partner-fees/partner-fees.test.mjs +19 -28
- package/dist/resources/payins/index.d.mts +15 -30
- package/dist/resources/payins/index.d.ts +15 -30
- package/dist/resources/payins/index.js +12 -20
- package/dist/resources/payins/index.mjs +1 -1
- package/dist/resources/payins/payins-quotes.test.js +235 -435
- package/dist/resources/payins/payins-quotes.test.mjs +16 -18
- package/dist/resources/payins/payins.test.js +240 -449
- package/dist/resources/payins/payins.test.mjs +21 -32
- package/dist/resources/payins/quotes.d.mts +3 -5
- package/dist/resources/payins/quotes.d.ts +3 -5
- package/dist/resources/payins/quotes.js +4 -12
- package/dist/resources/payins/quotes.mjs +1 -1
- package/dist/resources/payouts/index.d.mts +13 -28
- package/dist/resources/payouts/index.d.ts +13 -28
- package/dist/resources/payouts/index.js +12 -32
- package/dist/resources/payouts/index.mjs +1 -1
- package/dist/resources/payouts/payouts.test.js +239 -449
- package/dist/resources/payouts/payouts.test.mjs +20 -32
- package/dist/resources/quotes/index.d.mts +3 -5
- package/dist/resources/quotes/index.d.ts +3 -5
- package/dist/resources/quotes/index.js +4 -12
- package/dist/resources/quotes/index.mjs +1 -1
- package/dist/resources/quotes/quotes.test.js +235 -435
- package/dist/resources/quotes/quotes.test.mjs +16 -18
- package/dist/resources/receivers/index.d.mts +13 -27
- package/dist/resources/receivers/index.d.ts +13 -27
- package/dist/resources/receivers/index.js +12 -30
- package/dist/resources/receivers/index.mjs +1 -1
- package/dist/resources/receivers/receivers.test.js +241 -452
- package/dist/resources/receivers/receivers.test.mjs +22 -35
- package/dist/resources/virtual-accounts/index.d.mts +7 -12
- package/dist/resources/virtual-accounts/index.d.ts +7 -12
- package/dist/resources/virtual-accounts/index.js +9 -16
- package/dist/resources/virtual-accounts/index.mjs +1 -1
- package/dist/resources/virtual-accounts/virtual-accounts.test.js +238 -441
- package/dist/resources/virtual-accounts/virtual-accounts.test.mjs +19 -24
- package/dist/resources/wallets/blockchain.d.mts +23 -31
- package/dist/resources/wallets/blockchain.d.ts +23 -31
- package/dist/resources/wallets/blockchain.js +51 -33
- package/dist/resources/wallets/blockchain.mjs +1 -1
- package/dist/resources/wallets/blockchain.test.js +268 -451
- package/dist/resources/wallets/blockchain.test.mjs +49 -34
- package/dist/resources/wallets/offramp.d.mts +10 -13
- package/dist/resources/wallets/offramp.d.ts +10 -13
- package/dist/resources/wallets/offramp.js +14 -14
- package/dist/resources/wallets/offramp.mjs +1 -1
- package/dist/resources/wallets/offramp.test.js +241 -442
- package/dist/resources/wallets/offramp.test.mjs +22 -25
- package/dist/resources/webhooks/index.d.mts +9 -22
- package/dist/resources/webhooks/index.d.ts +9 -22
- package/dist/resources/webhooks/index.js +6 -17
- package/dist/resources/webhooks/index.mjs +1 -1
- package/dist/resources/webhooks/webhooks.test.js +239 -448
- package/dist/resources/webhooks/webhooks.test.mjs +20 -31
- package/package.json +2 -4
- package/dist/chunk-2DAKB5XK.mjs +0 -212
- package/dist/chunk-GEDDLCJY.mjs +0 -77
- package/dist/chunk-LK3JPQ6I.mjs +0 -49
- package/dist/chunk-LLWEHHKB.mjs +0 -47
|
@@ -6,23 +6,23 @@ import {
|
|
|
6
6
|
it
|
|
7
7
|
} from "../../chunk-GCCHFONX.mjs";
|
|
8
8
|
import {
|
|
9
|
-
|
|
9
|
+
BlindPay,
|
|
10
10
|
init_client
|
|
11
|
-
} from "../../chunk-
|
|
12
|
-
import "../../chunk-
|
|
13
|
-
import "../../chunk-
|
|
14
|
-
import "../../chunk-
|
|
15
|
-
import "../../chunk-
|
|
16
|
-
import "../../chunk-
|
|
17
|
-
import "../../chunk-
|
|
18
|
-
import "../../chunk-
|
|
19
|
-
import "../../chunk-
|
|
20
|
-
import "../../chunk-
|
|
21
|
-
import "../../chunk-
|
|
22
|
-
import "../../chunk-
|
|
23
|
-
import "../../chunk-2DAKB5XK.mjs";
|
|
11
|
+
} from "../../chunk-YPXYUS2X.mjs";
|
|
12
|
+
import "../../chunk-IZYPRCCV.mjs";
|
|
13
|
+
import "../../chunk-QGNLMN6Z.mjs";
|
|
14
|
+
import "../../chunk-UC57SCKQ.mjs";
|
|
15
|
+
import "../../chunk-TBTA7A2P.mjs";
|
|
16
|
+
import "../../chunk-BONN6PYB.mjs";
|
|
17
|
+
import "../../chunk-5XJJKYXE.mjs";
|
|
18
|
+
import "../../chunk-RC5NN5UF.mjs";
|
|
19
|
+
import "../../chunk-W7NJUABI.mjs";
|
|
20
|
+
import "../../chunk-E7M4CJKR.mjs";
|
|
21
|
+
import "../../chunk-3QQCDR3E.mjs";
|
|
22
|
+
import "../../chunk-LRHWT4JU.mjs";
|
|
24
23
|
import "../../chunk-QHMIK7U3.mjs";
|
|
25
|
-
import "../../chunk-
|
|
24
|
+
import "../../chunk-64EFLUS3.mjs";
|
|
25
|
+
import "../../chunk-B5T7AQLH.mjs";
|
|
26
26
|
import {
|
|
27
27
|
__async,
|
|
28
28
|
__commonJS
|
|
@@ -35,7 +35,7 @@ var require_bank_accounts_test = __commonJS({
|
|
|
35
35
|
init_client();
|
|
36
36
|
describe("Bank accounts", () => {
|
|
37
37
|
afterEach(() => fetchMock.resetMocks());
|
|
38
|
-
const blindpay = new
|
|
38
|
+
const blindpay = new BlindPay({ apiKey: "test-key", instanceId: "in_000000000000" });
|
|
39
39
|
describe("Create pix bank account", () => {
|
|
40
40
|
it("should create a pix bank account", () => __async(null, null, function* () {
|
|
41
41
|
const mockedPixAccount = {
|
|
@@ -49,8 +49,7 @@ var require_bank_accounts_test = __commonJS({
|
|
|
49
49
|
headers: { "Content-Type": "application/json" }
|
|
50
50
|
});
|
|
51
51
|
const { data, error } = yield blindpay.receivers.bankAccounts.createPix({
|
|
52
|
-
|
|
53
|
-
receiverId: "re_000000000000",
|
|
52
|
+
receiver_id: "re_000000000000",
|
|
54
53
|
name: "PIX Account",
|
|
55
54
|
pix_key: "14947677768"
|
|
56
55
|
});
|
|
@@ -73,8 +72,7 @@ var require_bank_accounts_test = __commonJS({
|
|
|
73
72
|
headers: { "Content-Type": "application/json" }
|
|
74
73
|
});
|
|
75
74
|
const { data, error } = yield blindpay.receivers.bankAccounts.createArgentinaTransfers({
|
|
76
|
-
|
|
77
|
-
receiverId: "re_000000000000",
|
|
75
|
+
receiver_id: "re_000000000000",
|
|
78
76
|
name: "Argentina Transfers Account",
|
|
79
77
|
beneficiary_name: "Individual full name or business name",
|
|
80
78
|
transfers_type: "CVU",
|
|
@@ -100,8 +98,7 @@ var require_bank_accounts_test = __commonJS({
|
|
|
100
98
|
headers: { "Content-Type": "application/json" }
|
|
101
99
|
});
|
|
102
100
|
const { data, error } = yield blindpay.receivers.bankAccounts.createSpei({
|
|
103
|
-
|
|
104
|
-
receiverId: "re_000000000000",
|
|
101
|
+
receiver_id: "re_000000000000",
|
|
105
102
|
name: "SPEI Account",
|
|
106
103
|
beneficiary_name: "Individual full name or business name",
|
|
107
104
|
spei_protocol: "clabe",
|
|
@@ -132,8 +129,7 @@ var require_bank_accounts_test = __commonJS({
|
|
|
132
129
|
headers: { "Content-Type": "application/json" }
|
|
133
130
|
});
|
|
134
131
|
const { data, error } = yield blindpay.receivers.bankAccounts.createColombiaAch({
|
|
135
|
-
|
|
136
|
-
receiverId: "re_000000000000",
|
|
132
|
+
receiver_id: "re_000000000000",
|
|
137
133
|
name: "Colombia ACH Account",
|
|
138
134
|
account_type: "checking",
|
|
139
135
|
ach_cop_beneficiary_first_name: "Fernando",
|
|
@@ -178,8 +174,7 @@ var require_bank_accounts_test = __commonJS({
|
|
|
178
174
|
headers: { "Content-Type": "application/json" }
|
|
179
175
|
});
|
|
180
176
|
const { data, error } = yield blindpay.receivers.bankAccounts.createAch({
|
|
181
|
-
|
|
182
|
-
receiverId: "re_000000000000",
|
|
177
|
+
receiver_id: "re_000000000000",
|
|
183
178
|
name: "ACH Account",
|
|
184
179
|
account_class: "individual",
|
|
185
180
|
account_number: "1001001234",
|
|
@@ -212,8 +207,7 @@ var require_bank_accounts_test = __commonJS({
|
|
|
212
207
|
headers: { "Content-Type": "application/json" }
|
|
213
208
|
});
|
|
214
209
|
const { data, error } = yield blindpay.receivers.bankAccounts.createWire({
|
|
215
|
-
|
|
216
|
-
receiverId: "re_000000000000",
|
|
210
|
+
receiver_id: "re_000000000000",
|
|
217
211
|
name: "Wire Account",
|
|
218
212
|
account_number: "1001001234",
|
|
219
213
|
beneficiary_name: "Individual full name or business name",
|
|
@@ -268,8 +262,7 @@ var require_bank_accounts_test = __commonJS({
|
|
|
268
262
|
headers: { "Content-Type": "application/json" }
|
|
269
263
|
});
|
|
270
264
|
const { data, error } = yield blindpay.receivers.bankAccounts.createInternationalSwift({
|
|
271
|
-
|
|
272
|
-
receiverId: "re_000000000000",
|
|
265
|
+
receiver_id: "re_000000000000",
|
|
273
266
|
name: "International Swift Account",
|
|
274
267
|
swift_account_holder_name: "John Doe",
|
|
275
268
|
swift_account_number_iban: "123456789",
|
|
@@ -314,8 +307,7 @@ var require_bank_accounts_test = __commonJS({
|
|
|
314
307
|
headers: { "Content-Type": "application/json" }
|
|
315
308
|
});
|
|
316
309
|
const { data, error } = yield blindpay.receivers.bankAccounts.get({
|
|
317
|
-
|
|
318
|
-
receiverId: "re_000000000000",
|
|
310
|
+
receiver_id: "re_000000000000",
|
|
319
311
|
id: "ba_000000000000"
|
|
320
312
|
});
|
|
321
313
|
globalExpect(error).toBeNull();
|
|
@@ -390,10 +382,7 @@ var require_bank_accounts_test = __commonJS({
|
|
|
390
382
|
fetchMock.mockResponseOnce(JSON.stringify(mockedBankAccounts), {
|
|
391
383
|
headers: { "Content-Type": "application/json" }
|
|
392
384
|
});
|
|
393
|
-
const { data, error } = yield blindpay.receivers.bankAccounts.list(
|
|
394
|
-
instanceId: "in_000000000000",
|
|
395
|
-
receiverId: "re_000000000000"
|
|
396
|
-
});
|
|
385
|
+
const { data, error } = yield blindpay.receivers.bankAccounts.list("re_000000000000");
|
|
397
386
|
globalExpect(error).toBeNull();
|
|
398
387
|
globalExpect(data).toEqual(mockedBankAccounts);
|
|
399
388
|
}));
|
|
@@ -404,8 +393,7 @@ var require_bank_accounts_test = __commonJS({
|
|
|
404
393
|
headers: { "Content-Type": "application/json" }
|
|
405
394
|
});
|
|
406
395
|
const { data, error } = yield blindpay.receivers.bankAccounts.delete({
|
|
407
|
-
|
|
408
|
-
receiverId: "re_000000000000",
|
|
396
|
+
receiver_id: "re_000000000000",
|
|
409
397
|
id: "ba_000000000000"
|
|
410
398
|
});
|
|
411
399
|
globalExpect(error).toBeNull();
|
|
@@ -1,12 +1,9 @@
|
|
|
1
1
|
import { I as InternalApiClient, B as BlindpayApiResponse, R as Rail, a as BankAccountType, A as AccountClass, C as Country } from '../../api-client-Cw2mNJeR.mjs';
|
|
2
2
|
import { SpeiProtocol } from '../payouts/index.mjs';
|
|
3
3
|
|
|
4
|
-
type ListBankAccountsInput = {
|
|
5
|
-
instanceId: string;
|
|
6
|
-
receiverId: string;
|
|
7
|
-
};
|
|
8
4
|
type ArgentinaTransfers = "CVU" | "CBU" | "ALIAS";
|
|
9
5
|
type AchCopDocument = "CC" | "CE" | "NIT" | "PASS" | "PEP";
|
|
6
|
+
type ListBankAccountsInput = string;
|
|
10
7
|
type ListBankAccountsResponse = {
|
|
11
8
|
data: Array<{
|
|
12
9
|
id: string;
|
|
@@ -66,120 +63,8 @@ type ListBankAccountsResponse = {
|
|
|
66
63
|
created_at: string;
|
|
67
64
|
}>;
|
|
68
65
|
};
|
|
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
66
|
type GetBankAccountInput = {
|
|
181
|
-
|
|
182
|
-
receiverId: string;
|
|
67
|
+
receiver_id: string;
|
|
183
68
|
id: string;
|
|
184
69
|
};
|
|
185
70
|
type GetBankAccountResponse = {
|
|
@@ -197,13 +82,11 @@ type GetBankAccountResponse = {
|
|
|
197
82
|
updated_at: string;
|
|
198
83
|
};
|
|
199
84
|
type DeleteBankAccountInput = {
|
|
200
|
-
|
|
201
|
-
receiverId: string;
|
|
85
|
+
receiver_id: string;
|
|
202
86
|
id: string;
|
|
203
87
|
};
|
|
204
88
|
type CreatePixInput = {
|
|
205
|
-
|
|
206
|
-
receiverId: string;
|
|
89
|
+
receiver_id: string;
|
|
207
90
|
name: string;
|
|
208
91
|
pix_key: string;
|
|
209
92
|
};
|
|
@@ -215,8 +98,7 @@ type CreatePixResponse = {
|
|
|
215
98
|
created_at: string;
|
|
216
99
|
};
|
|
217
100
|
type CreateArgentinaTransfersInput = {
|
|
218
|
-
|
|
219
|
-
receiverId: string;
|
|
101
|
+
receiver_id: string;
|
|
220
102
|
name: string;
|
|
221
103
|
beneficiary_name: string;
|
|
222
104
|
transfers_account: string;
|
|
@@ -232,8 +114,7 @@ type CreateArgentinaTransfersResponse = {
|
|
|
232
114
|
created_at: string;
|
|
233
115
|
};
|
|
234
116
|
type CreateSpeiInput = {
|
|
235
|
-
|
|
236
|
-
receiverId: string;
|
|
117
|
+
receiver_id: string;
|
|
237
118
|
beneficiary_name: string;
|
|
238
119
|
name: string;
|
|
239
120
|
spei_clabe: string;
|
|
@@ -251,8 +132,7 @@ type CreateSpeiResponse = {
|
|
|
251
132
|
created_at: string;
|
|
252
133
|
};
|
|
253
134
|
type CreateColombiaAchInput = {
|
|
254
|
-
|
|
255
|
-
receiverId: string;
|
|
135
|
+
receiver_id: string;
|
|
256
136
|
name: string;
|
|
257
137
|
account_type: BankAccountType;
|
|
258
138
|
ach_cop_beneficiary_first_name: string;
|
|
@@ -278,8 +158,7 @@ type CreateColombiaAchResponse = {
|
|
|
278
158
|
created_at: string;
|
|
279
159
|
};
|
|
280
160
|
type CreateAchInput = {
|
|
281
|
-
|
|
282
|
-
receiverId: string;
|
|
161
|
+
receiver_id: string;
|
|
283
162
|
name: string;
|
|
284
163
|
account_class: AccountClass;
|
|
285
164
|
account_number: string;
|
|
@@ -312,8 +191,7 @@ type CreateAchResponse = {
|
|
|
312
191
|
created_at: string;
|
|
313
192
|
};
|
|
314
193
|
type CreateWireInput = {
|
|
315
|
-
|
|
316
|
-
receiverId: string;
|
|
194
|
+
receiver_id: string;
|
|
317
195
|
name: string;
|
|
318
196
|
account_number: string;
|
|
319
197
|
beneficiary_name: string;
|
|
@@ -341,8 +219,7 @@ type CreateWireResponse = {
|
|
|
341
219
|
created_at: string;
|
|
342
220
|
};
|
|
343
221
|
type CreateInternationalSwiftInput = {
|
|
344
|
-
|
|
345
|
-
receiverId: string;
|
|
222
|
+
receiver_id: string;
|
|
346
223
|
name: string;
|
|
347
224
|
swift_account_holder_name: string;
|
|
348
225
|
swift_account_number_iban: string;
|
|
@@ -398,17 +275,17 @@ type CreateInternationalSwiftResponse = {
|
|
|
398
275
|
swift_intermediary_bank_country: Country | null;
|
|
399
276
|
created_at: string;
|
|
400
277
|
};
|
|
401
|
-
declare function createBankAccountsResource(client: InternalApiClient): {
|
|
402
|
-
list(
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
278
|
+
declare function createBankAccountsResource(instanceId: string, client: InternalApiClient): {
|
|
279
|
+
list(receiver_id: ListBankAccountsInput): Promise<BlindpayApiResponse<ListBankAccountsResponse>>;
|
|
280
|
+
get({ receiver_id, id, }: GetBankAccountInput): Promise<BlindpayApiResponse<GetBankAccountResponse>>;
|
|
281
|
+
delete({ receiver_id, id }: DeleteBankAccountInput): Promise<BlindpayApiResponse<void>>;
|
|
282
|
+
createPix({ receiver_id, ...data }: CreatePixInput): Promise<BlindpayApiResponse<CreatePixResponse>>;
|
|
283
|
+
createArgentinaTransfers({ receiver_id, ...data }: CreateArgentinaTransfersInput): Promise<BlindpayApiResponse<CreateArgentinaTransfersResponse>>;
|
|
284
|
+
createSpei({ receiver_id, ...data }: CreateSpeiInput): Promise<BlindpayApiResponse<CreateSpeiResponse>>;
|
|
285
|
+
createColombiaAch({ receiver_id, ...data }: CreateColombiaAchInput): Promise<BlindpayApiResponse<CreateColombiaAchResponse>>;
|
|
286
|
+
createAch({ receiver_id, ...data }: CreateAchInput): Promise<BlindpayApiResponse<CreateAchResponse>>;
|
|
287
|
+
createWire({ receiver_id, ...data }: CreateWireInput): Promise<BlindpayApiResponse<CreateWireResponse>>;
|
|
288
|
+
createInternationalSwift({ receiver_id, ...data }: CreateInternationalSwiftInput): Promise<BlindpayApiResponse<CreateInternationalSwiftResponse>>;
|
|
412
289
|
};
|
|
413
290
|
|
|
414
|
-
export { type AchCopDocument, type ArgentinaTransfers, type CreateAchInput, type CreateAchResponse, type CreateArgentinaTransfersInput, type CreateArgentinaTransfersResponse, type
|
|
291
|
+
export { type AchCopDocument, type ArgentinaTransfers, type CreateAchInput, type CreateAchResponse, type CreateArgentinaTransfersInput, type CreateArgentinaTransfersResponse, 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 };
|
|
@@ -1,12 +1,9 @@
|
|
|
1
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
2
|
import { SpeiProtocol } from '../payouts/index.js';
|
|
3
3
|
|
|
4
|
-
type ListBankAccountsInput = {
|
|
5
|
-
instanceId: string;
|
|
6
|
-
receiverId: string;
|
|
7
|
-
};
|
|
8
4
|
type ArgentinaTransfers = "CVU" | "CBU" | "ALIAS";
|
|
9
5
|
type AchCopDocument = "CC" | "CE" | "NIT" | "PASS" | "PEP";
|
|
6
|
+
type ListBankAccountsInput = string;
|
|
10
7
|
type ListBankAccountsResponse = {
|
|
11
8
|
data: Array<{
|
|
12
9
|
id: string;
|
|
@@ -66,120 +63,8 @@ type ListBankAccountsResponse = {
|
|
|
66
63
|
created_at: string;
|
|
67
64
|
}>;
|
|
68
65
|
};
|
|
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
66
|
type GetBankAccountInput = {
|
|
181
|
-
|
|
182
|
-
receiverId: string;
|
|
67
|
+
receiver_id: string;
|
|
183
68
|
id: string;
|
|
184
69
|
};
|
|
185
70
|
type GetBankAccountResponse = {
|
|
@@ -197,13 +82,11 @@ type GetBankAccountResponse = {
|
|
|
197
82
|
updated_at: string;
|
|
198
83
|
};
|
|
199
84
|
type DeleteBankAccountInput = {
|
|
200
|
-
|
|
201
|
-
receiverId: string;
|
|
85
|
+
receiver_id: string;
|
|
202
86
|
id: string;
|
|
203
87
|
};
|
|
204
88
|
type CreatePixInput = {
|
|
205
|
-
|
|
206
|
-
receiverId: string;
|
|
89
|
+
receiver_id: string;
|
|
207
90
|
name: string;
|
|
208
91
|
pix_key: string;
|
|
209
92
|
};
|
|
@@ -215,8 +98,7 @@ type CreatePixResponse = {
|
|
|
215
98
|
created_at: string;
|
|
216
99
|
};
|
|
217
100
|
type CreateArgentinaTransfersInput = {
|
|
218
|
-
|
|
219
|
-
receiverId: string;
|
|
101
|
+
receiver_id: string;
|
|
220
102
|
name: string;
|
|
221
103
|
beneficiary_name: string;
|
|
222
104
|
transfers_account: string;
|
|
@@ -232,8 +114,7 @@ type CreateArgentinaTransfersResponse = {
|
|
|
232
114
|
created_at: string;
|
|
233
115
|
};
|
|
234
116
|
type CreateSpeiInput = {
|
|
235
|
-
|
|
236
|
-
receiverId: string;
|
|
117
|
+
receiver_id: string;
|
|
237
118
|
beneficiary_name: string;
|
|
238
119
|
name: string;
|
|
239
120
|
spei_clabe: string;
|
|
@@ -251,8 +132,7 @@ type CreateSpeiResponse = {
|
|
|
251
132
|
created_at: string;
|
|
252
133
|
};
|
|
253
134
|
type CreateColombiaAchInput = {
|
|
254
|
-
|
|
255
|
-
receiverId: string;
|
|
135
|
+
receiver_id: string;
|
|
256
136
|
name: string;
|
|
257
137
|
account_type: BankAccountType;
|
|
258
138
|
ach_cop_beneficiary_first_name: string;
|
|
@@ -278,8 +158,7 @@ type CreateColombiaAchResponse = {
|
|
|
278
158
|
created_at: string;
|
|
279
159
|
};
|
|
280
160
|
type CreateAchInput = {
|
|
281
|
-
|
|
282
|
-
receiverId: string;
|
|
161
|
+
receiver_id: string;
|
|
283
162
|
name: string;
|
|
284
163
|
account_class: AccountClass;
|
|
285
164
|
account_number: string;
|
|
@@ -312,8 +191,7 @@ type CreateAchResponse = {
|
|
|
312
191
|
created_at: string;
|
|
313
192
|
};
|
|
314
193
|
type CreateWireInput = {
|
|
315
|
-
|
|
316
|
-
receiverId: string;
|
|
194
|
+
receiver_id: string;
|
|
317
195
|
name: string;
|
|
318
196
|
account_number: string;
|
|
319
197
|
beneficiary_name: string;
|
|
@@ -341,8 +219,7 @@ type CreateWireResponse = {
|
|
|
341
219
|
created_at: string;
|
|
342
220
|
};
|
|
343
221
|
type CreateInternationalSwiftInput = {
|
|
344
|
-
|
|
345
|
-
receiverId: string;
|
|
222
|
+
receiver_id: string;
|
|
346
223
|
name: string;
|
|
347
224
|
swift_account_holder_name: string;
|
|
348
225
|
swift_account_number_iban: string;
|
|
@@ -398,17 +275,17 @@ type CreateInternationalSwiftResponse = {
|
|
|
398
275
|
swift_intermediary_bank_country: Country | null;
|
|
399
276
|
created_at: string;
|
|
400
277
|
};
|
|
401
|
-
declare function createBankAccountsResource(client: InternalApiClient): {
|
|
402
|
-
list(
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
278
|
+
declare function createBankAccountsResource(instanceId: string, client: InternalApiClient): {
|
|
279
|
+
list(receiver_id: ListBankAccountsInput): Promise<BlindpayApiResponse<ListBankAccountsResponse>>;
|
|
280
|
+
get({ receiver_id, id, }: GetBankAccountInput): Promise<BlindpayApiResponse<GetBankAccountResponse>>;
|
|
281
|
+
delete({ receiver_id, id }: DeleteBankAccountInput): Promise<BlindpayApiResponse<void>>;
|
|
282
|
+
createPix({ receiver_id, ...data }: CreatePixInput): Promise<BlindpayApiResponse<CreatePixResponse>>;
|
|
283
|
+
createArgentinaTransfers({ receiver_id, ...data }: CreateArgentinaTransfersInput): Promise<BlindpayApiResponse<CreateArgentinaTransfersResponse>>;
|
|
284
|
+
createSpei({ receiver_id, ...data }: CreateSpeiInput): Promise<BlindpayApiResponse<CreateSpeiResponse>>;
|
|
285
|
+
createColombiaAch({ receiver_id, ...data }: CreateColombiaAchInput): Promise<BlindpayApiResponse<CreateColombiaAchResponse>>;
|
|
286
|
+
createAch({ receiver_id, ...data }: CreateAchInput): Promise<BlindpayApiResponse<CreateAchResponse>>;
|
|
287
|
+
createWire({ receiver_id, ...data }: CreateWireInput): Promise<BlindpayApiResponse<CreateWireResponse>>;
|
|
288
|
+
createInternationalSwift({ receiver_id, ...data }: CreateInternationalSwiftInput): Promise<BlindpayApiResponse<CreateInternationalSwiftResponse>>;
|
|
412
289
|
};
|
|
413
290
|
|
|
414
|
-
export { type AchCopDocument, type ArgentinaTransfers, type CreateAchInput, type CreateAchResponse, type CreateArgentinaTransfersInput, type CreateArgentinaTransfersResponse, type
|
|
291
|
+
export { type AchCopDocument, type ArgentinaTransfers, type CreateAchInput, type CreateAchResponse, type CreateArgentinaTransfersInput, type CreateArgentinaTransfersResponse, 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 };
|