@blindpay/node 3.11.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/{api-client-5N_7-zad.d.ts → api-client-BWImXDBx.d.ts} +1 -1
- package/dist/{api-client-DYqrodZr.d.mts → api-client-L9eGwH1U.d.mts} +1 -1
- package/dist/{chunk-IM2L5L4B.mjs → chunk-ECYZLQUR.mjs} +16 -24
- package/dist/{chunk-N4F3FBNB.mjs → chunk-L23IOSI3.mjs} +40 -40
- 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-CGeWvXXq.d.mts → index.d-DK8eD9f3.d.mts} +1 -1
- package/dist/{index.d-CGeWvXXq.d.ts → index.d-DK8eD9f3.d.ts} +1 -1
- package/dist/index.d.mts +4 -16
- package/dist/index.d.ts +4 -16
- package/dist/index.js +83 -153
- package/dist/index.mjs +14 -20
- package/dist/resources/api-keys/api-keys.test.js +83 -151
- package/dist/resources/api-keys/api-keys.test.mjs +9 -10
- package/dist/resources/api-keys/index.d.mts +2 -2
- package/dist/resources/api-keys/index.d.ts +2 -2
- package/dist/resources/available/available.test.js +83 -151
- package/dist/resources/available/available.test.mjs +9 -10
- package/dist/resources/available/index.d.mts +2 -2
- package/dist/resources/available/index.d.ts +2 -2
- package/dist/resources/bank-accounts/bank-accounts.test.js +110 -178
- package/dist/resources/bank-accounts/bank-accounts.test.mjs +36 -37
- package/dist/resources/bank-accounts/index.d.mts +31 -31
- package/dist/resources/bank-accounts/index.d.ts +31 -31
- package/dist/resources/bank-accounts/index.js +40 -40
- package/dist/resources/bank-accounts/index.mjs +1 -1
- package/dist/resources/customers/customers.test.js +83 -151
- package/dist/resources/customers/customers.test.mjs +9 -10
- package/dist/resources/customers/index.d.mts +70 -69
- package/dist/resources/customers/index.d.ts +70 -69
- package/dist/resources/fees/fees.test.js +83 -151
- package/dist/resources/fees/fees.test.mjs +9 -10
- package/dist/resources/fees/index.d.mts +2 -2
- package/dist/resources/fees/index.d.ts +2 -2
- package/dist/resources/instances/index.d.mts +2 -2
- package/dist/resources/instances/index.d.ts +2 -2
- package/dist/resources/instances/instances.test.js +83 -151
- package/dist/resources/instances/instances.test.mjs +9 -10
- package/dist/resources/partner-fees/index.d.mts +2 -2
- package/dist/resources/partner-fees/index.d.ts +2 -2
- package/dist/resources/partner-fees/partner-fees.test.js +83 -151
- package/dist/resources/partner-fees/partner-fees.test.mjs +9 -10
- package/dist/resources/payins/index.d.mts +2 -2
- package/dist/resources/payins/index.d.ts +2 -2
- package/dist/resources/payins/payins-quotes.test.js +83 -151
- package/dist/resources/payins/payins-quotes.test.mjs +9 -10
- package/dist/resources/payins/payins.test.js +83 -151
- package/dist/resources/payins/payins.test.mjs +9 -10
- package/dist/resources/payins/quotes.d.mts +2 -2
- package/dist/resources/payins/quotes.d.ts +2 -2
- package/dist/resources/payouts/index.d.mts +2 -2
- package/dist/resources/payouts/index.d.ts +2 -2
- package/dist/resources/payouts/payouts.test.js +83 -151
- package/dist/resources/payouts/payouts.test.mjs +9 -10
- package/dist/resources/quotes/index.d.mts +2 -2
- package/dist/resources/quotes/index.d.ts +2 -2
- package/dist/resources/quotes/quotes.test.js +83 -151
- package/dist/resources/quotes/quotes.test.mjs +9 -10
- package/dist/resources/terms-of-service/index.d.mts +2 -2
- package/dist/resources/terms-of-service/index.d.ts +2 -2
- package/dist/resources/terms-of-service/terms-of-service.test.js +83 -151
- package/dist/resources/terms-of-service/terms-of-service.test.mjs +9 -10
- package/dist/resources/transfers/index.d.mts +2 -2
- package/dist/resources/transfers/index.d.ts +2 -2
- package/dist/resources/transfers/transfers.test.js +83 -151
- package/dist/resources/transfers/transfers.test.mjs +9 -10
- package/dist/resources/upload/index.d.mts +1 -1
- package/dist/resources/upload/index.d.ts +1 -1
- package/dist/resources/upload/upload.test.js +83 -151
- package/dist/resources/upload/upload.test.mjs +9 -10
- package/dist/resources/virtual-accounts/index.d.mts +9 -9
- package/dist/resources/virtual-accounts/index.d.ts +9 -9
- 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 +87 -155
- package/dist/resources/virtual-accounts/virtual-accounts.test.mjs +13 -14
- package/dist/resources/wallets/blockchain.d.mts +15 -15
- package/dist/resources/wallets/blockchain.d.ts +15 -15
- package/dist/resources/wallets/blockchain.js +14 -14
- package/dist/resources/wallets/blockchain.mjs +1 -1
- package/dist/resources/wallets/blockchain.test.js +91 -159
- package/dist/resources/wallets/blockchain.test.mjs +17 -18
- package/dist/resources/wallets/custodial.d.mts +11 -11
- package/dist/resources/wallets/custodial.d.ts +11 -11
- package/dist/resources/wallets/custodial.js +11 -11
- package/dist/resources/wallets/custodial.mjs +1 -1
- package/dist/resources/wallets/custodial.test.js +87 -155
- package/dist/resources/wallets/custodial.test.mjs +13 -14
- package/dist/resources/wallets/offramp.d.mts +9 -9
- package/dist/resources/wallets/offramp.d.ts +9 -9
- package/dist/resources/wallets/offramp.js +7 -7
- package/dist/resources/wallets/offramp.mjs +1 -1
- package/dist/resources/wallets/offramp.test.js +89 -157
- package/dist/resources/wallets/offramp.test.mjs +15 -16
- package/dist/resources/webhooks/index.d.mts +2 -2
- package/dist/resources/webhooks/index.d.ts +2 -2
- package/dist/resources/webhooks/webhooks.test.js +83 -151
- package/dist/resources/webhooks/webhooks.test.mjs +9 -10
- package/package.json +1 -1
- package/dist/chunk-NAGY6BLL.mjs +0 -79
- package/dist/resources/receivers/index.d.mts +0 -513
- package/dist/resources/receivers/index.d.ts +0 -513
- package/dist/resources/receivers/index.js +0 -118
- package/dist/resources/receivers/index.mjs +0 -9
- package/dist/resources/receivers/receivers.test.d.mts +0 -2
- package/dist/resources/receivers/receivers.test.d.ts +0 -2
- package/dist/resources/receivers/receivers.test.js +0 -20510
- package/dist/resources/receivers/receivers.test.mjs +0 -652
- package/dist/strict-omit-ByJhzKNC.d.mts +0 -3
- package/dist/strict-omit-ByJhzKNC.d.ts +0 -3
|
@@ -8,27 +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
|
-
import "../../chunk-Z6EYX4D3.mjs";
|
|
17
16
|
import "../../chunk-ISHZTBAN.mjs";
|
|
18
17
|
import "../../chunk-UDRMLZWT.mjs";
|
|
19
|
-
import "../../chunk-
|
|
20
|
-
import "../../chunk-VGU72ZNI.mjs";
|
|
18
|
+
import "../../chunk-SWTOSLUI.mjs";
|
|
21
19
|
import "../../chunk-E7M4CJKR.mjs";
|
|
20
|
+
import "../../chunk-F5Z45GCA.mjs";
|
|
22
21
|
import "../../chunk-TBTA7A2P.mjs";
|
|
23
|
-
import "../../chunk-
|
|
22
|
+
import "../../chunk-Z6EYX4D3.mjs";
|
|
24
23
|
import "../../chunk-SLKVEQUY.mjs";
|
|
25
24
|
import "../../chunk-ALHMJWQN.mjs";
|
|
26
25
|
import "../../chunk-KYOUR4KX.mjs";
|
|
27
26
|
import "../../chunk-RC5NN5UF.mjs";
|
|
28
|
-
import "../../chunk-
|
|
27
|
+
import "../../chunk-VGU72ZNI.mjs";
|
|
29
28
|
import "../../chunk-LRHWT4JU.mjs";
|
|
30
29
|
import "../../chunk-WE73MTQL.mjs";
|
|
31
|
-
import "../../chunk-
|
|
30
|
+
import "../../chunk-L23IOSI3.mjs";
|
|
32
31
|
import {
|
|
33
32
|
__async,
|
|
34
33
|
__commonJS
|
|
@@ -54,8 +53,8 @@ var require_bank_accounts_test = __commonJS({
|
|
|
54
53
|
fetchMock.mockResponseOnce(JSON.stringify(mockedPixAccount), {
|
|
55
54
|
headers: { "Content-Type": "application/json" }
|
|
56
55
|
});
|
|
57
|
-
const { data, error } = yield blindpay.
|
|
58
|
-
|
|
56
|
+
const { data, error } = yield blindpay.customers.bankAccounts.createPix({
|
|
57
|
+
customer_id: "re_000000000000",
|
|
59
58
|
name: "PIX Account",
|
|
60
59
|
pix_key: "14947677768"
|
|
61
60
|
});
|
|
@@ -77,8 +76,8 @@ var require_bank_accounts_test = __commonJS({
|
|
|
77
76
|
fetchMock.mockResponseOnce(JSON.stringify(mockedArgentinaTransfersAccount), {
|
|
78
77
|
headers: { "Content-Type": "application/json" }
|
|
79
78
|
});
|
|
80
|
-
const { data, error } = yield blindpay.
|
|
81
|
-
|
|
79
|
+
const { data, error } = yield blindpay.customers.bankAccounts.createArgentinaTransfers({
|
|
80
|
+
customer_id: "re_000000000000",
|
|
82
81
|
name: "Argentina Transfers Account",
|
|
83
82
|
beneficiary_name: "Individual full name or business name",
|
|
84
83
|
transfers_type: "CVU",
|
|
@@ -103,8 +102,8 @@ var require_bank_accounts_test = __commonJS({
|
|
|
103
102
|
fetchMock.mockResponseOnce(JSON.stringify(mockedSpeiAccount), {
|
|
104
103
|
headers: { "Content-Type": "application/json" }
|
|
105
104
|
});
|
|
106
|
-
const { data, error } = yield blindpay.
|
|
107
|
-
|
|
105
|
+
const { data, error } = yield blindpay.customers.bankAccounts.createSpei({
|
|
106
|
+
customer_id: "re_000000000000",
|
|
108
107
|
name: "SPEI Account",
|
|
109
108
|
beneficiary_name: "Individual full name or business name",
|
|
110
109
|
spei_protocol: "clabe",
|
|
@@ -134,8 +133,8 @@ var require_bank_accounts_test = __commonJS({
|
|
|
134
133
|
fetchMock.mockResponseOnce(JSON.stringify(mockedColombiaAchAccount), {
|
|
135
134
|
headers: { "Content-Type": "application/json" }
|
|
136
135
|
});
|
|
137
|
-
const { data, error } = yield blindpay.
|
|
138
|
-
|
|
136
|
+
const { data, error } = yield blindpay.customers.bankAccounts.createColombiaAch({
|
|
137
|
+
customer_id: "re_000000000000",
|
|
139
138
|
name: "Colombia ACH Account",
|
|
140
139
|
account_type: "checking",
|
|
141
140
|
ach_cop_beneficiary_first_name: "Fernando",
|
|
@@ -180,8 +179,8 @@ var require_bank_accounts_test = __commonJS({
|
|
|
180
179
|
fetchMock.mockResponseOnce(JSON.stringify(mockedAchAccount), {
|
|
181
180
|
headers: { "Content-Type": "application/json" }
|
|
182
181
|
});
|
|
183
|
-
const { data, error } = yield blindpay.
|
|
184
|
-
|
|
182
|
+
const { data, error } = yield blindpay.customers.bankAccounts.createAch({
|
|
183
|
+
customer_id: "re_000000000000",
|
|
185
184
|
name: "ACH Account",
|
|
186
185
|
account_class: "individual",
|
|
187
186
|
account_number: "1001001234",
|
|
@@ -221,8 +220,8 @@ var require_bank_accounts_test = __commonJS({
|
|
|
221
220
|
fetchMock.mockResponseOnce(JSON.stringify(mockedWireAccount), {
|
|
222
221
|
headers: { "Content-Type": "application/json" }
|
|
223
222
|
});
|
|
224
|
-
const { data, error } = yield blindpay.
|
|
225
|
-
|
|
223
|
+
const { data, error } = yield blindpay.customers.bankAccounts.createWire({
|
|
224
|
+
customer_id: "re_000000000000",
|
|
226
225
|
name: "Wire Account",
|
|
227
226
|
account_class: "individual",
|
|
228
227
|
account_number: "1001001234",
|
|
@@ -281,8 +280,8 @@ var require_bank_accounts_test = __commonJS({
|
|
|
281
280
|
fetchMock.mockResponseOnce(JSON.stringify(mockedInternationalSwiftAccount), {
|
|
282
281
|
headers: { "Content-Type": "application/json" }
|
|
283
282
|
});
|
|
284
|
-
const { data, error } = yield blindpay.
|
|
285
|
-
|
|
283
|
+
const { data, error } = yield blindpay.customers.bankAccounts.createInternationalSwift({
|
|
284
|
+
customer_id: "re_000000000000",
|
|
286
285
|
name: "International Swift Account",
|
|
287
286
|
account_class: "individual",
|
|
288
287
|
recipient_relationship: "first_party",
|
|
@@ -331,8 +330,8 @@ var require_bank_accounts_test = __commonJS({
|
|
|
331
330
|
fetchMock.mockResponseOnce(JSON.stringify(mockedRtpAccount), {
|
|
332
331
|
headers: { "Content-Type": "application/json" }
|
|
333
332
|
});
|
|
334
|
-
const { data, error } = yield blindpay.
|
|
335
|
-
|
|
333
|
+
const { data, error } = yield blindpay.customers.bankAccounts.createRtp({
|
|
334
|
+
customer_id: "re_000000000000",
|
|
336
335
|
name: "John Doe RTP",
|
|
337
336
|
account_class: "individual",
|
|
338
337
|
beneficiary_name: "John Doe",
|
|
@@ -353,7 +352,7 @@ var require_bank_accounts_test = __commonJS({
|
|
|
353
352
|
it("should get a bank account", () => __async(null, null, function* () {
|
|
354
353
|
const mockedBankAccount = {
|
|
355
354
|
id: "ba_000000000000",
|
|
356
|
-
|
|
355
|
+
customer_id: "rcv_123",
|
|
357
356
|
account_holder_name: "Individual full name or business name",
|
|
358
357
|
account_number: "1001001234",
|
|
359
358
|
routing_number: "012345678",
|
|
@@ -368,8 +367,8 @@ var require_bank_accounts_test = __commonJS({
|
|
|
368
367
|
fetchMock.mockResponseOnce(JSON.stringify(mockedBankAccount), {
|
|
369
368
|
headers: { "Content-Type": "application/json" }
|
|
370
369
|
});
|
|
371
|
-
const { data, error } = yield blindpay.
|
|
372
|
-
|
|
370
|
+
const { data, error } = yield blindpay.customers.bankAccounts.get({
|
|
371
|
+
customer_id: "re_000000000000",
|
|
373
372
|
id: "ba_000000000000"
|
|
374
373
|
});
|
|
375
374
|
globalExpect(error).toBeNull();
|
|
@@ -444,8 +443,8 @@ var require_bank_accounts_test = __commonJS({
|
|
|
444
443
|
fetchMock.mockResponseOnce(JSON.stringify(mockedBankAccounts), {
|
|
445
444
|
headers: { "Content-Type": "application/json" }
|
|
446
445
|
});
|
|
447
|
-
const { data, error } = yield blindpay.
|
|
448
|
-
|
|
446
|
+
const { data, error } = yield blindpay.customers.bankAccounts.list({
|
|
447
|
+
customer_id: "re_000000000000"
|
|
449
448
|
});
|
|
450
449
|
globalExpect(error).toBeNull();
|
|
451
450
|
globalExpect(data).toEqual(mockedBankAccounts);
|
|
@@ -468,8 +467,8 @@ var require_bank_accounts_test = __commonJS({
|
|
|
468
467
|
fetchMock.mockResponseOnce(JSON.stringify(mockedPixSafeAccount), {
|
|
469
468
|
headers: { "Content-Type": "application/json" }
|
|
470
469
|
});
|
|
471
|
-
const { data, error } = yield blindpay.
|
|
472
|
-
|
|
470
|
+
const { data, error } = yield blindpay.customers.bankAccounts.createPixSafe({
|
|
471
|
+
customer_id: "re_000000000000",
|
|
473
472
|
name: "PIX Safe Account",
|
|
474
473
|
beneficiary_name: "Maria Silva",
|
|
475
474
|
account_number: "123456789",
|
|
@@ -504,8 +503,8 @@ var require_bank_accounts_test = __commonJS({
|
|
|
504
503
|
fetchMock.mockResponseOnce(JSON.stringify(mockedSepaAccount), {
|
|
505
504
|
headers: { "Content-Type": "application/json" }
|
|
506
505
|
});
|
|
507
|
-
const { data, error } = yield blindpay.
|
|
508
|
-
|
|
506
|
+
const { data, error } = yield blindpay.customers.bankAccounts.createSepa({
|
|
507
|
+
customer_id: "re_000000000000",
|
|
509
508
|
name: "SEPA Account",
|
|
510
509
|
account_class: "individual",
|
|
511
510
|
sepa_iban: "BE68539007547034",
|
|
@@ -525,8 +524,8 @@ var require_bank_accounts_test = __commonJS({
|
|
|
525
524
|
fetchMock.mockResponseOnce(JSON.stringify({ data: null }), {
|
|
526
525
|
headers: { "Content-Type": "application/json" }
|
|
527
526
|
});
|
|
528
|
-
const { data, error } = yield blindpay.
|
|
529
|
-
|
|
527
|
+
const { data, error } = yield blindpay.customers.bankAccounts.delete({
|
|
528
|
+
customer_id: "re_000000000000",
|
|
530
529
|
id: "ba_000000000000"
|
|
531
530
|
});
|
|
532
531
|
globalExpect(error).toBeNull();
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { R as Rail, C as Country, B as BlindpayApiResponse, a as BankAccountType, A as AccountClass, b as AchCopDocument, c as ArgentinaTransfers, d as BusinessIndustry } from '../../index.d-
|
|
2
|
-
import { I as InternalApiClient } from '../../api-client-
|
|
1
|
+
import { R as Rail, C as Country, B as BlindpayApiResponse, a as BankAccountType, A as AccountClass, b as AchCopDocument, c as ArgentinaTransfers, d as BusinessIndustry } from '../../index.d-DK8eD9f3.mjs';
|
|
2
|
+
import { I as InternalApiClient } from '../../api-client-L9eGwH1U.mjs';
|
|
3
3
|
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 };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { R as Rail, C as Country, B as BlindpayApiResponse, a as BankAccountType, A as AccountClass, b as AchCopDocument, c as ArgentinaTransfers, d as BusinessIndustry } from '../../index.d-
|
|
2
|
-
import { I as InternalApiClient } from '../../api-client-
|
|
1
|
+
import { R as Rail, C as Country, B as BlindpayApiResponse, a as BankAccountType, A as AccountClass, b as AchCopDocument, c as ArgentinaTransfers, d as BusinessIndustry } from '../../index.d-DK8eD9f3.js';
|
|
2
|
+
import { I as InternalApiClient } from '../../api-client-BWImXDBx.js';
|
|
3
3
|
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 };
|