@blindpay/node 3.10.0 → 4.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/dist/{chunk-7PWF4J3Z.mjs → chunk-ECYZLQUR.mjs} +12 -12
- package/dist/{chunk-N4F3FBNB.mjs → chunk-L23IOSI3.mjs} +40 -40
- package/dist/chunk-SLKVEQUY.mjs +76 -0
- package/dist/{chunk-LEPGLH7Q.mjs → chunk-SWTOSLUI.mjs} +10 -10
- package/dist/{chunk-KMU6V4LW.mjs → chunk-TVOMVVOO.mjs} +11 -11
- package/dist/{chunk-FG25JHDX.mjs → chunk-VAVDEV6P.mjs} +14 -14
- package/dist/{chunk-QGNLMN6Z.mjs → chunk-YHI3J2CL.mjs} +7 -7
- package/dist/index.d.mts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +148 -141
- package/dist/index.mjs +12 -12
- package/dist/resources/api-keys/api-keys.test.js +146 -139
- package/dist/resources/api-keys/api-keys.test.mjs +7 -7
- package/dist/resources/available/available.test.js +146 -139
- package/dist/resources/available/available.test.mjs +7 -7
- package/dist/resources/bank-accounts/bank-accounts.test.js +173 -166
- package/dist/resources/bank-accounts/bank-accounts.test.mjs +34 -34
- package/dist/resources/bank-accounts/index.d.mts +29 -29
- package/dist/resources/bank-accounts/index.d.ts +29 -29
- package/dist/resources/bank-accounts/index.js +40 -40
- package/dist/resources/bank-accounts/index.mjs +1 -1
- package/dist/resources/{receivers/receivers.test.js → customers/customers.test.js} +200 -193
- package/dist/resources/{receivers/receivers.test.mjs → customers/customers.test.mjs} +64 -64
- package/dist/resources/{receivers → customers}/index.d.mts +23 -23
- package/dist/resources/{receivers → customers}/index.d.ts +23 -23
- package/dist/resources/{receivers → customers}/index.js +32 -25
- package/dist/resources/customers/index.mjs +9 -0
- package/dist/resources/fees/fees.test.js +146 -139
- package/dist/resources/fees/fees.test.mjs +7 -7
- package/dist/resources/instances/instances.test.js +146 -139
- package/dist/resources/instances/instances.test.mjs +7 -7
- package/dist/resources/partner-fees/partner-fees.test.js +146 -139
- package/dist/resources/partner-fees/partner-fees.test.mjs +7 -7
- package/dist/resources/payins/payins-quotes.test.js +146 -139
- package/dist/resources/payins/payins-quotes.test.mjs +7 -7
- package/dist/resources/payins/payins.test.js +146 -139
- package/dist/resources/payins/payins.test.mjs +7 -7
- package/dist/resources/payouts/payouts.test.js +146 -139
- package/dist/resources/payouts/payouts.test.mjs +7 -7
- package/dist/resources/quotes/quotes.test.js +146 -139
- package/dist/resources/quotes/quotes.test.mjs +7 -7
- package/dist/resources/terms-of-service/terms-of-service.test.js +146 -139
- package/dist/resources/terms-of-service/terms-of-service.test.mjs +7 -7
- package/dist/resources/transfers/transfers.test.js +146 -139
- package/dist/resources/transfers/transfers.test.mjs +7 -7
- package/dist/resources/upload/upload.test.js +146 -139
- package/dist/resources/upload/upload.test.mjs +7 -7
- package/dist/resources/virtual-accounts/index.d.mts +7 -7
- package/dist/resources/virtual-accounts/index.d.ts +7 -7
- package/dist/resources/virtual-accounts/index.js +10 -10
- package/dist/resources/virtual-accounts/index.mjs +1 -1
- package/dist/resources/virtual-accounts/virtual-accounts.test.js +150 -143
- package/dist/resources/virtual-accounts/virtual-accounts.test.mjs +11 -11
- package/dist/resources/wallets/blockchain.d.mts +13 -13
- package/dist/resources/wallets/blockchain.d.ts +13 -13
- package/dist/resources/wallets/blockchain.js +14 -14
- package/dist/resources/wallets/blockchain.mjs +1 -1
- package/dist/resources/wallets/blockchain.test.js +154 -147
- package/dist/resources/wallets/blockchain.test.mjs +15 -15
- package/dist/resources/wallets/custodial.d.mts +9 -9
- package/dist/resources/wallets/custodial.d.ts +9 -9
- package/dist/resources/wallets/custodial.js +11 -11
- package/dist/resources/wallets/custodial.mjs +1 -1
- package/dist/resources/wallets/custodial.test.js +150 -143
- package/dist/resources/wallets/custodial.test.mjs +11 -11
- package/dist/resources/wallets/offramp.d.mts +7 -7
- package/dist/resources/wallets/offramp.d.ts +7 -7
- package/dist/resources/wallets/offramp.js +7 -7
- package/dist/resources/wallets/offramp.mjs +1 -1
- package/dist/resources/wallets/offramp.test.js +152 -145
- package/dist/resources/wallets/offramp.test.mjs +13 -13
- package/dist/resources/webhooks/webhooks.test.js +146 -139
- package/dist/resources/webhooks/webhooks.test.mjs +7 -7
- package/package.json +1 -1
- package/dist/chunk-YIZJM2GU.mjs +0 -69
- package/dist/resources/receivers/index.mjs +0 -9
- /package/dist/resources/{receivers/receivers.test.d.mts → customers/customers.test.d.mts} +0 -0
- /package/dist/resources/{receivers/receivers.test.d.ts → customers/customers.test.d.ts} +0 -0
|
@@ -8,26 +8,26 @@ import {
|
|
|
8
8
|
import {
|
|
9
9
|
BlindPay,
|
|
10
10
|
init_client
|
|
11
|
-
} from "../../chunk-
|
|
12
|
-
import "../../chunk-
|
|
13
|
-
import "../../chunk-
|
|
14
|
-
import "../../chunk-
|
|
11
|
+
} from "../../chunk-ECYZLQUR.mjs";
|
|
12
|
+
import "../../chunk-VAVDEV6P.mjs";
|
|
13
|
+
import "../../chunk-TVOMVVOO.mjs";
|
|
14
|
+
import "../../chunk-YHI3J2CL.mjs";
|
|
15
15
|
import "../../chunk-UC57SCKQ.mjs";
|
|
16
16
|
import "../../chunk-ISHZTBAN.mjs";
|
|
17
17
|
import "../../chunk-UDRMLZWT.mjs";
|
|
18
|
-
import "../../chunk-
|
|
18
|
+
import "../../chunk-SWTOSLUI.mjs";
|
|
19
19
|
import "../../chunk-E7M4CJKR.mjs";
|
|
20
20
|
import "../../chunk-F5Z45GCA.mjs";
|
|
21
21
|
import "../../chunk-TBTA7A2P.mjs";
|
|
22
|
-
import "../../chunk-YIZJM2GU.mjs";
|
|
23
22
|
import "../../chunk-Z6EYX4D3.mjs";
|
|
23
|
+
import "../../chunk-SLKVEQUY.mjs";
|
|
24
24
|
import "../../chunk-ALHMJWQN.mjs";
|
|
25
25
|
import "../../chunk-KYOUR4KX.mjs";
|
|
26
26
|
import "../../chunk-RC5NN5UF.mjs";
|
|
27
27
|
import "../../chunk-VGU72ZNI.mjs";
|
|
28
28
|
import "../../chunk-LRHWT4JU.mjs";
|
|
29
29
|
import "../../chunk-WE73MTQL.mjs";
|
|
30
|
-
import "../../chunk-
|
|
30
|
+
import "../../chunk-L23IOSI3.mjs";
|
|
31
31
|
import {
|
|
32
32
|
__async,
|
|
33
33
|
__commonJS
|
|
@@ -53,8 +53,8 @@ var require_bank_accounts_test = __commonJS({
|
|
|
53
53
|
fetchMock.mockResponseOnce(JSON.stringify(mockedPixAccount), {
|
|
54
54
|
headers: { "Content-Type": "application/json" }
|
|
55
55
|
});
|
|
56
|
-
const { data, error } = yield blindpay.
|
|
57
|
-
|
|
56
|
+
const { data, error } = yield blindpay.customers.bankAccounts.createPix({
|
|
57
|
+
customer_id: "re_000000000000",
|
|
58
58
|
name: "PIX Account",
|
|
59
59
|
pix_key: "14947677768"
|
|
60
60
|
});
|
|
@@ -76,8 +76,8 @@ var require_bank_accounts_test = __commonJS({
|
|
|
76
76
|
fetchMock.mockResponseOnce(JSON.stringify(mockedArgentinaTransfersAccount), {
|
|
77
77
|
headers: { "Content-Type": "application/json" }
|
|
78
78
|
});
|
|
79
|
-
const { data, error } = yield blindpay.
|
|
80
|
-
|
|
79
|
+
const { data, error } = yield blindpay.customers.bankAccounts.createArgentinaTransfers({
|
|
80
|
+
customer_id: "re_000000000000",
|
|
81
81
|
name: "Argentina Transfers Account",
|
|
82
82
|
beneficiary_name: "Individual full name or business name",
|
|
83
83
|
transfers_type: "CVU",
|
|
@@ -102,8 +102,8 @@ var require_bank_accounts_test = __commonJS({
|
|
|
102
102
|
fetchMock.mockResponseOnce(JSON.stringify(mockedSpeiAccount), {
|
|
103
103
|
headers: { "Content-Type": "application/json" }
|
|
104
104
|
});
|
|
105
|
-
const { data, error } = yield blindpay.
|
|
106
|
-
|
|
105
|
+
const { data, error } = yield blindpay.customers.bankAccounts.createSpei({
|
|
106
|
+
customer_id: "re_000000000000",
|
|
107
107
|
name: "SPEI Account",
|
|
108
108
|
beneficiary_name: "Individual full name or business name",
|
|
109
109
|
spei_protocol: "clabe",
|
|
@@ -133,8 +133,8 @@ var require_bank_accounts_test = __commonJS({
|
|
|
133
133
|
fetchMock.mockResponseOnce(JSON.stringify(mockedColombiaAchAccount), {
|
|
134
134
|
headers: { "Content-Type": "application/json" }
|
|
135
135
|
});
|
|
136
|
-
const { data, error } = yield blindpay.
|
|
137
|
-
|
|
136
|
+
const { data, error } = yield blindpay.customers.bankAccounts.createColombiaAch({
|
|
137
|
+
customer_id: "re_000000000000",
|
|
138
138
|
name: "Colombia ACH Account",
|
|
139
139
|
account_type: "checking",
|
|
140
140
|
ach_cop_beneficiary_first_name: "Fernando",
|
|
@@ -179,8 +179,8 @@ var require_bank_accounts_test = __commonJS({
|
|
|
179
179
|
fetchMock.mockResponseOnce(JSON.stringify(mockedAchAccount), {
|
|
180
180
|
headers: { "Content-Type": "application/json" }
|
|
181
181
|
});
|
|
182
|
-
const { data, error } = yield blindpay.
|
|
183
|
-
|
|
182
|
+
const { data, error } = yield blindpay.customers.bankAccounts.createAch({
|
|
183
|
+
customer_id: "re_000000000000",
|
|
184
184
|
name: "ACH Account",
|
|
185
185
|
account_class: "individual",
|
|
186
186
|
account_number: "1001001234",
|
|
@@ -220,8 +220,8 @@ var require_bank_accounts_test = __commonJS({
|
|
|
220
220
|
fetchMock.mockResponseOnce(JSON.stringify(mockedWireAccount), {
|
|
221
221
|
headers: { "Content-Type": "application/json" }
|
|
222
222
|
});
|
|
223
|
-
const { data, error } = yield blindpay.
|
|
224
|
-
|
|
223
|
+
const { data, error } = yield blindpay.customers.bankAccounts.createWire({
|
|
224
|
+
customer_id: "re_000000000000",
|
|
225
225
|
name: "Wire Account",
|
|
226
226
|
account_class: "individual",
|
|
227
227
|
account_number: "1001001234",
|
|
@@ -280,8 +280,8 @@ var require_bank_accounts_test = __commonJS({
|
|
|
280
280
|
fetchMock.mockResponseOnce(JSON.stringify(mockedInternationalSwiftAccount), {
|
|
281
281
|
headers: { "Content-Type": "application/json" }
|
|
282
282
|
});
|
|
283
|
-
const { data, error } = yield blindpay.
|
|
284
|
-
|
|
283
|
+
const { data, error } = yield blindpay.customers.bankAccounts.createInternationalSwift({
|
|
284
|
+
customer_id: "re_000000000000",
|
|
285
285
|
name: "International Swift Account",
|
|
286
286
|
account_class: "individual",
|
|
287
287
|
recipient_relationship: "first_party",
|
|
@@ -330,8 +330,8 @@ var require_bank_accounts_test = __commonJS({
|
|
|
330
330
|
fetchMock.mockResponseOnce(JSON.stringify(mockedRtpAccount), {
|
|
331
331
|
headers: { "Content-Type": "application/json" }
|
|
332
332
|
});
|
|
333
|
-
const { data, error } = yield blindpay.
|
|
334
|
-
|
|
333
|
+
const { data, error } = yield blindpay.customers.bankAccounts.createRtp({
|
|
334
|
+
customer_id: "re_000000000000",
|
|
335
335
|
name: "John Doe RTP",
|
|
336
336
|
account_class: "individual",
|
|
337
337
|
beneficiary_name: "John Doe",
|
|
@@ -352,7 +352,7 @@ var require_bank_accounts_test = __commonJS({
|
|
|
352
352
|
it("should get a bank account", () => __async(null, null, function* () {
|
|
353
353
|
const mockedBankAccount = {
|
|
354
354
|
id: "ba_000000000000",
|
|
355
|
-
|
|
355
|
+
customer_id: "rcv_123",
|
|
356
356
|
account_holder_name: "Individual full name or business name",
|
|
357
357
|
account_number: "1001001234",
|
|
358
358
|
routing_number: "012345678",
|
|
@@ -367,8 +367,8 @@ var require_bank_accounts_test = __commonJS({
|
|
|
367
367
|
fetchMock.mockResponseOnce(JSON.stringify(mockedBankAccount), {
|
|
368
368
|
headers: { "Content-Type": "application/json" }
|
|
369
369
|
});
|
|
370
|
-
const { data, error } = yield blindpay.
|
|
371
|
-
|
|
370
|
+
const { data, error } = yield blindpay.customers.bankAccounts.get({
|
|
371
|
+
customer_id: "re_000000000000",
|
|
372
372
|
id: "ba_000000000000"
|
|
373
373
|
});
|
|
374
374
|
globalExpect(error).toBeNull();
|
|
@@ -443,8 +443,8 @@ var require_bank_accounts_test = __commonJS({
|
|
|
443
443
|
fetchMock.mockResponseOnce(JSON.stringify(mockedBankAccounts), {
|
|
444
444
|
headers: { "Content-Type": "application/json" }
|
|
445
445
|
});
|
|
446
|
-
const { data, error } = yield blindpay.
|
|
447
|
-
|
|
446
|
+
const { data, error } = yield blindpay.customers.bankAccounts.list({
|
|
447
|
+
customer_id: "re_000000000000"
|
|
448
448
|
});
|
|
449
449
|
globalExpect(error).toBeNull();
|
|
450
450
|
globalExpect(data).toEqual(mockedBankAccounts);
|
|
@@ -467,8 +467,8 @@ var require_bank_accounts_test = __commonJS({
|
|
|
467
467
|
fetchMock.mockResponseOnce(JSON.stringify(mockedPixSafeAccount), {
|
|
468
468
|
headers: { "Content-Type": "application/json" }
|
|
469
469
|
});
|
|
470
|
-
const { data, error } = yield blindpay.
|
|
471
|
-
|
|
470
|
+
const { data, error } = yield blindpay.customers.bankAccounts.createPixSafe({
|
|
471
|
+
customer_id: "re_000000000000",
|
|
472
472
|
name: "PIX Safe Account",
|
|
473
473
|
beneficiary_name: "Maria Silva",
|
|
474
474
|
account_number: "123456789",
|
|
@@ -503,8 +503,8 @@ var require_bank_accounts_test = __commonJS({
|
|
|
503
503
|
fetchMock.mockResponseOnce(JSON.stringify(mockedSepaAccount), {
|
|
504
504
|
headers: { "Content-Type": "application/json" }
|
|
505
505
|
});
|
|
506
|
-
const { data, error } = yield blindpay.
|
|
507
|
-
|
|
506
|
+
const { data, error } = yield blindpay.customers.bankAccounts.createSepa({
|
|
507
|
+
customer_id: "re_000000000000",
|
|
508
508
|
name: "SEPA Account",
|
|
509
509
|
account_class: "individual",
|
|
510
510
|
sepa_iban: "BE68539007547034",
|
|
@@ -524,8 +524,8 @@ var require_bank_accounts_test = __commonJS({
|
|
|
524
524
|
fetchMock.mockResponseOnce(JSON.stringify({ data: null }), {
|
|
525
525
|
headers: { "Content-Type": "application/json" }
|
|
526
526
|
});
|
|
527
|
-
const { data, error } = yield blindpay.
|
|
528
|
-
|
|
527
|
+
const { data, error } = yield blindpay.customers.bankAccounts.delete({
|
|
528
|
+
customer_id: "re_000000000000",
|
|
529
529
|
id: "ba_000000000000"
|
|
530
530
|
});
|
|
531
531
|
globalExpect(error).toBeNull();
|
|
@@ -4,7 +4,7 @@ import { SpeiProtocol } from '../payouts/index.mjs';
|
|
|
4
4
|
|
|
5
5
|
type RecipientRelationship = "first_party" | "employee" | "independent_contractor" | "vendor_or_supplier" | "subsidiary_or_affiliate" | "merchant_or_partner" | "customer" | "landlord" | "family" | "other";
|
|
6
6
|
type ListBankAccountsInput = {
|
|
7
|
-
|
|
7
|
+
customer_id: string;
|
|
8
8
|
status?: string;
|
|
9
9
|
type?: Rail;
|
|
10
10
|
name?: string;
|
|
@@ -85,12 +85,12 @@ type ListBankAccountsResponse = {
|
|
|
85
85
|
}>;
|
|
86
86
|
};
|
|
87
87
|
type GetBankAccountInput = {
|
|
88
|
-
|
|
88
|
+
customer_id: string;
|
|
89
89
|
id: string;
|
|
90
90
|
};
|
|
91
91
|
type GetBankAccountResponse = {
|
|
92
92
|
id: string;
|
|
93
|
-
|
|
93
|
+
customer_id: string;
|
|
94
94
|
account_holder_name: string;
|
|
95
95
|
account_number: string;
|
|
96
96
|
routing_number: string;
|
|
@@ -104,11 +104,11 @@ type GetBankAccountResponse = {
|
|
|
104
104
|
updated_at: string;
|
|
105
105
|
};
|
|
106
106
|
type DeleteBankAccountInput = {
|
|
107
|
-
|
|
107
|
+
customer_id: string;
|
|
108
108
|
id: string;
|
|
109
109
|
};
|
|
110
110
|
type CreatePixInput = {
|
|
111
|
-
|
|
111
|
+
customer_id: string;
|
|
112
112
|
name: string;
|
|
113
113
|
pix_key: string;
|
|
114
114
|
};
|
|
@@ -120,7 +120,7 @@ type CreatePixResponse = {
|
|
|
120
120
|
created_at: string;
|
|
121
121
|
};
|
|
122
122
|
type CreatePixSafeInput = {
|
|
123
|
-
|
|
123
|
+
customer_id: string;
|
|
124
124
|
name: string;
|
|
125
125
|
beneficiary_name: string;
|
|
126
126
|
account_number: string;
|
|
@@ -142,7 +142,7 @@ type CreatePixSafeResponse = {
|
|
|
142
142
|
created_at: string;
|
|
143
143
|
};
|
|
144
144
|
type CreateArgentinaTransfersInput = {
|
|
145
|
-
|
|
145
|
+
customer_id: string;
|
|
146
146
|
name: string;
|
|
147
147
|
beneficiary_name: string;
|
|
148
148
|
transfers_account: string;
|
|
@@ -158,7 +158,7 @@ type CreateArgentinaTransfersResponse = {
|
|
|
158
158
|
created_at: string;
|
|
159
159
|
};
|
|
160
160
|
type CreateSpeiInput = {
|
|
161
|
-
|
|
161
|
+
customer_id: string;
|
|
162
162
|
beneficiary_name: string;
|
|
163
163
|
name: string;
|
|
164
164
|
spei_clabe: string;
|
|
@@ -176,7 +176,7 @@ type CreateSpeiResponse = {
|
|
|
176
176
|
created_at: string;
|
|
177
177
|
};
|
|
178
178
|
type CreateColombiaAchInput = {
|
|
179
|
-
|
|
179
|
+
customer_id: string;
|
|
180
180
|
name: string;
|
|
181
181
|
account_type: BankAccountType;
|
|
182
182
|
ach_cop_beneficiary_first_name: string;
|
|
@@ -202,7 +202,7 @@ type CreateColombiaAchResponse = {
|
|
|
202
202
|
created_at: string;
|
|
203
203
|
};
|
|
204
204
|
type CreateAchInput = {
|
|
205
|
-
|
|
205
|
+
customer_id: string;
|
|
206
206
|
name: string;
|
|
207
207
|
account_class: AccountClass;
|
|
208
208
|
account_number: string;
|
|
@@ -247,7 +247,7 @@ type CreateAchResponse = {
|
|
|
247
247
|
created_at: string;
|
|
248
248
|
};
|
|
249
249
|
type CreateWireInput = {
|
|
250
|
-
|
|
250
|
+
customer_id: string;
|
|
251
251
|
name: string;
|
|
252
252
|
account_class: AccountClass;
|
|
253
253
|
account_number: string;
|
|
@@ -283,7 +283,7 @@ type CreateWireResponse = {
|
|
|
283
283
|
created_at: string;
|
|
284
284
|
};
|
|
285
285
|
type CreateInternationalSwiftInput = {
|
|
286
|
-
|
|
286
|
+
customer_id: string;
|
|
287
287
|
name: string;
|
|
288
288
|
account_class: AccountClass;
|
|
289
289
|
recipient_relationship: RecipientRelationship;
|
|
@@ -350,7 +350,7 @@ type CreateInternationalSwiftResponse = {
|
|
|
350
350
|
created_at: string;
|
|
351
351
|
};
|
|
352
352
|
type CreateRtpInput = {
|
|
353
|
-
|
|
353
|
+
customer_id: string;
|
|
354
354
|
name: string;
|
|
355
355
|
account_class: AccountClass;
|
|
356
356
|
beneficiary_name: string;
|
|
@@ -386,7 +386,7 @@ type CreateRtpResponse = {
|
|
|
386
386
|
created_at: string;
|
|
387
387
|
};
|
|
388
388
|
type CreateSepaInput = {
|
|
389
|
-
|
|
389
|
+
customer_id: string;
|
|
390
390
|
name: string;
|
|
391
391
|
account_class: AccountClass;
|
|
392
392
|
sepa_iban: string;
|
|
@@ -417,7 +417,7 @@ type CreateSepaResponse = {
|
|
|
417
417
|
created_at: string;
|
|
418
418
|
};
|
|
419
419
|
type CreateTedInput = {
|
|
420
|
-
|
|
420
|
+
customer_id: string;
|
|
421
421
|
name: string;
|
|
422
422
|
beneficiary_name: string;
|
|
423
423
|
ted_bank_code: string;
|
|
@@ -435,20 +435,20 @@ type CreateTedResponse = {
|
|
|
435
435
|
created_at: string;
|
|
436
436
|
};
|
|
437
437
|
declare function createBankAccountsResource(instanceId: string, client: InternalApiClient): {
|
|
438
|
-
list({
|
|
439
|
-
get({
|
|
440
|
-
delete({
|
|
441
|
-
createPix({
|
|
442
|
-
createPixSafe({
|
|
443
|
-
createArgentinaTransfers({
|
|
444
|
-
createSpei({
|
|
445
|
-
createColombiaAch({
|
|
446
|
-
createAch({
|
|
447
|
-
createWire({
|
|
448
|
-
createInternationalSwift({
|
|
449
|
-
createRtp({
|
|
450
|
-
createTed({
|
|
451
|
-
createSepa({
|
|
438
|
+
list({ customer_id, ...params }: ListBankAccountsInput): Promise<BlindpayApiResponse<ListBankAccountsResponse>>;
|
|
439
|
+
get({ customer_id, id, }: GetBankAccountInput): Promise<BlindpayApiResponse<GetBankAccountResponse>>;
|
|
440
|
+
delete({ customer_id, id }: DeleteBankAccountInput): Promise<BlindpayApiResponse<void>>;
|
|
441
|
+
createPix({ customer_id, ...data }: CreatePixInput): Promise<BlindpayApiResponse<CreatePixResponse>>;
|
|
442
|
+
createPixSafe({ customer_id, ...data }: CreatePixSafeInput): Promise<BlindpayApiResponse<CreatePixSafeResponse>>;
|
|
443
|
+
createArgentinaTransfers({ customer_id, ...data }: CreateArgentinaTransfersInput): Promise<BlindpayApiResponse<CreateArgentinaTransfersResponse>>;
|
|
444
|
+
createSpei({ customer_id, ...data }: CreateSpeiInput): Promise<BlindpayApiResponse<CreateSpeiResponse>>;
|
|
445
|
+
createColombiaAch({ customer_id, ...data }: CreateColombiaAchInput): Promise<BlindpayApiResponse<CreateColombiaAchResponse>>;
|
|
446
|
+
createAch({ customer_id, ...data }: CreateAchInput): Promise<BlindpayApiResponse<CreateAchResponse>>;
|
|
447
|
+
createWire({ customer_id, ...data }: CreateWireInput): Promise<BlindpayApiResponse<CreateWireResponse>>;
|
|
448
|
+
createInternationalSwift({ customer_id, ...data }: CreateInternationalSwiftInput): Promise<BlindpayApiResponse<CreateInternationalSwiftResponse>>;
|
|
449
|
+
createRtp({ customer_id, ...data }: CreateRtpInput): Promise<BlindpayApiResponse<CreateRtpResponse>>;
|
|
450
|
+
createTed({ customer_id, ...data }: CreateTedInput): Promise<BlindpayApiResponse<CreateTedResponse>>;
|
|
451
|
+
createSepa({ customer_id, ...data }: CreateSepaInput): Promise<BlindpayApiResponse<CreateSepaResponse>>;
|
|
452
452
|
};
|
|
453
453
|
|
|
454
454
|
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 CreateSepaInput, type CreateSepaResponse, type CreateSpeiInput, type CreateSpeiResponse, type CreateTedInput, type CreateTedResponse, type CreateWireInput, type CreateWireResponse, type DeleteBankAccountInput, type GetBankAccountInput, type GetBankAccountResponse, type ListBankAccountsInput, type ListBankAccountsResponse, type RecipientRelationship, createBankAccountsResource };
|
|
@@ -4,7 +4,7 @@ import { SpeiProtocol } from '../payouts/index.js';
|
|
|
4
4
|
|
|
5
5
|
type RecipientRelationship = "first_party" | "employee" | "independent_contractor" | "vendor_or_supplier" | "subsidiary_or_affiliate" | "merchant_or_partner" | "customer" | "landlord" | "family" | "other";
|
|
6
6
|
type ListBankAccountsInput = {
|
|
7
|
-
|
|
7
|
+
customer_id: string;
|
|
8
8
|
status?: string;
|
|
9
9
|
type?: Rail;
|
|
10
10
|
name?: string;
|
|
@@ -85,12 +85,12 @@ type ListBankAccountsResponse = {
|
|
|
85
85
|
}>;
|
|
86
86
|
};
|
|
87
87
|
type GetBankAccountInput = {
|
|
88
|
-
|
|
88
|
+
customer_id: string;
|
|
89
89
|
id: string;
|
|
90
90
|
};
|
|
91
91
|
type GetBankAccountResponse = {
|
|
92
92
|
id: string;
|
|
93
|
-
|
|
93
|
+
customer_id: string;
|
|
94
94
|
account_holder_name: string;
|
|
95
95
|
account_number: string;
|
|
96
96
|
routing_number: string;
|
|
@@ -104,11 +104,11 @@ type GetBankAccountResponse = {
|
|
|
104
104
|
updated_at: string;
|
|
105
105
|
};
|
|
106
106
|
type DeleteBankAccountInput = {
|
|
107
|
-
|
|
107
|
+
customer_id: string;
|
|
108
108
|
id: string;
|
|
109
109
|
};
|
|
110
110
|
type CreatePixInput = {
|
|
111
|
-
|
|
111
|
+
customer_id: string;
|
|
112
112
|
name: string;
|
|
113
113
|
pix_key: string;
|
|
114
114
|
};
|
|
@@ -120,7 +120,7 @@ type CreatePixResponse = {
|
|
|
120
120
|
created_at: string;
|
|
121
121
|
};
|
|
122
122
|
type CreatePixSafeInput = {
|
|
123
|
-
|
|
123
|
+
customer_id: string;
|
|
124
124
|
name: string;
|
|
125
125
|
beneficiary_name: string;
|
|
126
126
|
account_number: string;
|
|
@@ -142,7 +142,7 @@ type CreatePixSafeResponse = {
|
|
|
142
142
|
created_at: string;
|
|
143
143
|
};
|
|
144
144
|
type CreateArgentinaTransfersInput = {
|
|
145
|
-
|
|
145
|
+
customer_id: string;
|
|
146
146
|
name: string;
|
|
147
147
|
beneficiary_name: string;
|
|
148
148
|
transfers_account: string;
|
|
@@ -158,7 +158,7 @@ type CreateArgentinaTransfersResponse = {
|
|
|
158
158
|
created_at: string;
|
|
159
159
|
};
|
|
160
160
|
type CreateSpeiInput = {
|
|
161
|
-
|
|
161
|
+
customer_id: string;
|
|
162
162
|
beneficiary_name: string;
|
|
163
163
|
name: string;
|
|
164
164
|
spei_clabe: string;
|
|
@@ -176,7 +176,7 @@ type CreateSpeiResponse = {
|
|
|
176
176
|
created_at: string;
|
|
177
177
|
};
|
|
178
178
|
type CreateColombiaAchInput = {
|
|
179
|
-
|
|
179
|
+
customer_id: string;
|
|
180
180
|
name: string;
|
|
181
181
|
account_type: BankAccountType;
|
|
182
182
|
ach_cop_beneficiary_first_name: string;
|
|
@@ -202,7 +202,7 @@ type CreateColombiaAchResponse = {
|
|
|
202
202
|
created_at: string;
|
|
203
203
|
};
|
|
204
204
|
type CreateAchInput = {
|
|
205
|
-
|
|
205
|
+
customer_id: string;
|
|
206
206
|
name: string;
|
|
207
207
|
account_class: AccountClass;
|
|
208
208
|
account_number: string;
|
|
@@ -247,7 +247,7 @@ type CreateAchResponse = {
|
|
|
247
247
|
created_at: string;
|
|
248
248
|
};
|
|
249
249
|
type CreateWireInput = {
|
|
250
|
-
|
|
250
|
+
customer_id: string;
|
|
251
251
|
name: string;
|
|
252
252
|
account_class: AccountClass;
|
|
253
253
|
account_number: string;
|
|
@@ -283,7 +283,7 @@ type CreateWireResponse = {
|
|
|
283
283
|
created_at: string;
|
|
284
284
|
};
|
|
285
285
|
type CreateInternationalSwiftInput = {
|
|
286
|
-
|
|
286
|
+
customer_id: string;
|
|
287
287
|
name: string;
|
|
288
288
|
account_class: AccountClass;
|
|
289
289
|
recipient_relationship: RecipientRelationship;
|
|
@@ -350,7 +350,7 @@ type CreateInternationalSwiftResponse = {
|
|
|
350
350
|
created_at: string;
|
|
351
351
|
};
|
|
352
352
|
type CreateRtpInput = {
|
|
353
|
-
|
|
353
|
+
customer_id: string;
|
|
354
354
|
name: string;
|
|
355
355
|
account_class: AccountClass;
|
|
356
356
|
beneficiary_name: string;
|
|
@@ -386,7 +386,7 @@ type CreateRtpResponse = {
|
|
|
386
386
|
created_at: string;
|
|
387
387
|
};
|
|
388
388
|
type CreateSepaInput = {
|
|
389
|
-
|
|
389
|
+
customer_id: string;
|
|
390
390
|
name: string;
|
|
391
391
|
account_class: AccountClass;
|
|
392
392
|
sepa_iban: string;
|
|
@@ -417,7 +417,7 @@ type CreateSepaResponse = {
|
|
|
417
417
|
created_at: string;
|
|
418
418
|
};
|
|
419
419
|
type CreateTedInput = {
|
|
420
|
-
|
|
420
|
+
customer_id: string;
|
|
421
421
|
name: string;
|
|
422
422
|
beneficiary_name: string;
|
|
423
423
|
ted_bank_code: string;
|
|
@@ -435,20 +435,20 @@ type CreateTedResponse = {
|
|
|
435
435
|
created_at: string;
|
|
436
436
|
};
|
|
437
437
|
declare function createBankAccountsResource(instanceId: string, client: InternalApiClient): {
|
|
438
|
-
list({
|
|
439
|
-
get({
|
|
440
|
-
delete({
|
|
441
|
-
createPix({
|
|
442
|
-
createPixSafe({
|
|
443
|
-
createArgentinaTransfers({
|
|
444
|
-
createSpei({
|
|
445
|
-
createColombiaAch({
|
|
446
|
-
createAch({
|
|
447
|
-
createWire({
|
|
448
|
-
createInternationalSwift({
|
|
449
|
-
createRtp({
|
|
450
|
-
createTed({
|
|
451
|
-
createSepa({
|
|
438
|
+
list({ customer_id, ...params }: ListBankAccountsInput): Promise<BlindpayApiResponse<ListBankAccountsResponse>>;
|
|
439
|
+
get({ customer_id, id, }: GetBankAccountInput): Promise<BlindpayApiResponse<GetBankAccountResponse>>;
|
|
440
|
+
delete({ customer_id, id }: DeleteBankAccountInput): Promise<BlindpayApiResponse<void>>;
|
|
441
|
+
createPix({ customer_id, ...data }: CreatePixInput): Promise<BlindpayApiResponse<CreatePixResponse>>;
|
|
442
|
+
createPixSafe({ customer_id, ...data }: CreatePixSafeInput): Promise<BlindpayApiResponse<CreatePixSafeResponse>>;
|
|
443
|
+
createArgentinaTransfers({ customer_id, ...data }: CreateArgentinaTransfersInput): Promise<BlindpayApiResponse<CreateArgentinaTransfersResponse>>;
|
|
444
|
+
createSpei({ customer_id, ...data }: CreateSpeiInput): Promise<BlindpayApiResponse<CreateSpeiResponse>>;
|
|
445
|
+
createColombiaAch({ customer_id, ...data }: CreateColombiaAchInput): Promise<BlindpayApiResponse<CreateColombiaAchResponse>>;
|
|
446
|
+
createAch({ customer_id, ...data }: CreateAchInput): Promise<BlindpayApiResponse<CreateAchResponse>>;
|
|
447
|
+
createWire({ customer_id, ...data }: CreateWireInput): Promise<BlindpayApiResponse<CreateWireResponse>>;
|
|
448
|
+
createInternationalSwift({ customer_id, ...data }: CreateInternationalSwiftInput): Promise<BlindpayApiResponse<CreateInternationalSwiftResponse>>;
|
|
449
|
+
createRtp({ customer_id, ...data }: CreateRtpInput): Promise<BlindpayApiResponse<CreateRtpResponse>>;
|
|
450
|
+
createTed({ customer_id, ...data }: CreateTedInput): Promise<BlindpayApiResponse<CreateTedResponse>>;
|
|
451
|
+
createSepa({ customer_id, ...data }: CreateSepaInput): Promise<BlindpayApiResponse<CreateSepaResponse>>;
|
|
452
452
|
};
|
|
453
453
|
|
|
454
454
|
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 CreateSepaInput, type CreateSepaResponse, type CreateSpeiInput, type CreateSpeiResponse, type CreateTedInput, type CreateTedResponse, type CreateWireInput, type CreateWireResponse, type DeleteBankAccountInput, type GetBankAccountInput, type GetBankAccountResponse, type ListBankAccountsInput, type ListBankAccountsResponse, type RecipientRelationship, createBankAccountsResource };
|