@blindpay/node 3.11.0 → 4.0.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/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-IJSACZHV.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 +171 -241
- package/dist/resources/bank-accounts/bank-accounts.test.mjs +97 -100
- package/dist/resources/bank-accounts/index.d.mts +100 -102
- package/dist/resources/bank-accounts/index.d.ts +100 -102
- 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
|
@@ -1,96 +1,94 @@
|
|
|
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;
|
|
11
11
|
bank_account_id?: string;
|
|
12
12
|
country?: Country;
|
|
13
13
|
};
|
|
14
|
-
type ListBankAccountsResponse = {
|
|
15
|
-
|
|
14
|
+
type ListBankAccountsResponse = Array<{
|
|
15
|
+
id: string;
|
|
16
|
+
type: Rail;
|
|
17
|
+
name: string;
|
|
18
|
+
pix_key?: string;
|
|
19
|
+
beneficiary_name?: string;
|
|
20
|
+
routing_number?: string;
|
|
21
|
+
account_number?: string;
|
|
22
|
+
account_type?: BankAccountType;
|
|
23
|
+
account_class?: AccountClass;
|
|
24
|
+
address_line_1?: string;
|
|
25
|
+
address_line_2?: string;
|
|
26
|
+
city?: string;
|
|
27
|
+
state_province_region?: string;
|
|
28
|
+
country?: Country;
|
|
29
|
+
postal_code?: string;
|
|
30
|
+
spei_protocol?: string;
|
|
31
|
+
spei_institution_code?: string;
|
|
32
|
+
spei_clabe?: string;
|
|
33
|
+
transfers_type?: "CVU" | "CBU" | "ALIAS";
|
|
34
|
+
transfers_account?: string;
|
|
35
|
+
ach_cop_beneficiary_first_name?: string;
|
|
36
|
+
ach_cop_beneficiary_last_name?: string;
|
|
37
|
+
ach_cop_document_id?: string;
|
|
38
|
+
ach_cop_document_type?: AchCopDocument;
|
|
39
|
+
ach_cop_email?: string;
|
|
40
|
+
ach_cop_bank_code?: string;
|
|
41
|
+
ach_cop_bank_account?: string;
|
|
42
|
+
swift_code_bic?: string;
|
|
43
|
+
swift_account_holder_name?: string;
|
|
44
|
+
swift_account_number_iban?: string;
|
|
45
|
+
swift_beneficiary_address_line_1?: string;
|
|
46
|
+
swift_beneficiary_address_line_2?: string;
|
|
47
|
+
swift_beneficiary_country?: Country;
|
|
48
|
+
swift_beneficiary_city?: string;
|
|
49
|
+
swift_beneficiary_state_province_region?: string;
|
|
50
|
+
swift_beneficiary_postal_code?: string;
|
|
51
|
+
swift_bank_name?: string;
|
|
52
|
+
swift_bank_address_line_1?: string;
|
|
53
|
+
swift_bank_address_line_2?: string;
|
|
54
|
+
swift_bank_country?: Country;
|
|
55
|
+
swift_bank_city?: string;
|
|
56
|
+
swift_bank_state_province_region?: string;
|
|
57
|
+
swift_bank_postal_code?: string;
|
|
58
|
+
swift_intermediary_bank_swift_code_bic?: string;
|
|
59
|
+
swift_intermediary_bank_account_number_iban?: string;
|
|
60
|
+
swift_intermediary_bank_name?: string;
|
|
61
|
+
swift_intermediary_bank_country?: Country;
|
|
62
|
+
pix_safe_bank_code?: string;
|
|
63
|
+
pix_safe_branch_code?: string;
|
|
64
|
+
pix_safe_cpf_cnpj?: string;
|
|
65
|
+
tron_wallet_hash?: string;
|
|
66
|
+
sepa_beneficiary_bic?: string | null;
|
|
67
|
+
offramp_wallets?: Array<{
|
|
68
|
+
address: string;
|
|
16
69
|
id: string;
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
pix_key?: string;
|
|
20
|
-
beneficiary_name?: string;
|
|
21
|
-
routing_number?: string;
|
|
22
|
-
account_number?: string;
|
|
23
|
-
account_type?: BankAccountType;
|
|
24
|
-
account_class?: AccountClass;
|
|
25
|
-
address_line_1?: string;
|
|
26
|
-
address_line_2?: string;
|
|
27
|
-
city?: string;
|
|
28
|
-
state_province_region?: string;
|
|
29
|
-
country?: Country;
|
|
30
|
-
postal_code?: string;
|
|
31
|
-
spei_protocol?: string;
|
|
32
|
-
spei_institution_code?: string;
|
|
33
|
-
spei_clabe?: string;
|
|
34
|
-
transfers_type?: "CVU" | "CBU" | "ALIAS";
|
|
35
|
-
transfers_account?: string;
|
|
36
|
-
ach_cop_beneficiary_first_name?: string;
|
|
37
|
-
ach_cop_beneficiary_last_name?: string;
|
|
38
|
-
ach_cop_document_id?: string;
|
|
39
|
-
ach_cop_document_type?: AchCopDocument;
|
|
40
|
-
ach_cop_email?: string;
|
|
41
|
-
ach_cop_bank_code?: string;
|
|
42
|
-
ach_cop_bank_account?: string;
|
|
43
|
-
swift_code_bic?: string;
|
|
44
|
-
swift_account_holder_name?: string;
|
|
45
|
-
swift_account_number_iban?: string;
|
|
46
|
-
swift_beneficiary_address_line_1?: string;
|
|
47
|
-
swift_beneficiary_address_line_2?: string;
|
|
48
|
-
swift_beneficiary_country?: Country;
|
|
49
|
-
swift_beneficiary_city?: string;
|
|
50
|
-
swift_beneficiary_state_province_region?: string;
|
|
51
|
-
swift_beneficiary_postal_code?: string;
|
|
52
|
-
swift_bank_name?: string;
|
|
53
|
-
swift_bank_address_line_1?: string;
|
|
54
|
-
swift_bank_address_line_2?: string;
|
|
55
|
-
swift_bank_country?: Country;
|
|
56
|
-
swift_bank_city?: string;
|
|
57
|
-
swift_bank_state_province_region?: string;
|
|
58
|
-
swift_bank_postal_code?: string;
|
|
59
|
-
swift_intermediary_bank_swift_code_bic?: string;
|
|
60
|
-
swift_intermediary_bank_account_number_iban?: string;
|
|
61
|
-
swift_intermediary_bank_name?: string;
|
|
62
|
-
swift_intermediary_bank_country?: Country;
|
|
63
|
-
pix_safe_bank_code?: string;
|
|
64
|
-
pix_safe_branch_code?: string;
|
|
65
|
-
pix_safe_cpf_cnpj?: string;
|
|
66
|
-
tron_wallet_hash?: string;
|
|
67
|
-
sepa_beneficiary_bic?: string | null;
|
|
68
|
-
offramp_wallets?: Array<{
|
|
69
|
-
address: string;
|
|
70
|
-
id: string;
|
|
71
|
-
network: "tron";
|
|
72
|
-
external_id: string;
|
|
73
|
-
}>;
|
|
74
|
-
business_industry?: string | null;
|
|
75
|
-
phone_number?: string | null;
|
|
76
|
-
tax_id?: string | null;
|
|
77
|
-
date_of_birth?: string | null;
|
|
78
|
-
status?: string | null;
|
|
79
|
-
recipient_relationship?: RecipientRelationship | null;
|
|
80
|
-
swift_payment_code?: string | null;
|
|
81
|
-
ted_bank_code?: string | null;
|
|
82
|
-
ted_branch_code?: string | null;
|
|
83
|
-
ted_cpf_cnpj?: string | null;
|
|
84
|
-
created_at: string;
|
|
70
|
+
network: "tron";
|
|
71
|
+
external_id: string;
|
|
85
72
|
}>;
|
|
86
|
-
|
|
73
|
+
business_industry?: string | null;
|
|
74
|
+
phone_number?: string | null;
|
|
75
|
+
tax_id?: string | null;
|
|
76
|
+
date_of_birth?: string | null;
|
|
77
|
+
status?: string | null;
|
|
78
|
+
recipient_relationship?: RecipientRelationship | null;
|
|
79
|
+
swift_payment_code?: string | null;
|
|
80
|
+
ted_bank_code?: string | null;
|
|
81
|
+
ted_branch_code?: string | null;
|
|
82
|
+
ted_cpf_cnpj?: string | null;
|
|
83
|
+
created_at: string;
|
|
84
|
+
}>;
|
|
87
85
|
type GetBankAccountInput = {
|
|
88
|
-
|
|
86
|
+
customer_id: string;
|
|
89
87
|
id: string;
|
|
90
88
|
};
|
|
91
89
|
type GetBankAccountResponse = {
|
|
92
90
|
id: string;
|
|
93
|
-
|
|
91
|
+
customer_id: string;
|
|
94
92
|
account_holder_name: string;
|
|
95
93
|
account_number: string;
|
|
96
94
|
routing_number: string;
|
|
@@ -104,11 +102,11 @@ type GetBankAccountResponse = {
|
|
|
104
102
|
updated_at: string;
|
|
105
103
|
};
|
|
106
104
|
type DeleteBankAccountInput = {
|
|
107
|
-
|
|
105
|
+
customer_id: string;
|
|
108
106
|
id: string;
|
|
109
107
|
};
|
|
110
108
|
type CreatePixInput = {
|
|
111
|
-
|
|
109
|
+
customer_id: string;
|
|
112
110
|
name: string;
|
|
113
111
|
pix_key: string;
|
|
114
112
|
};
|
|
@@ -120,7 +118,7 @@ type CreatePixResponse = {
|
|
|
120
118
|
created_at: string;
|
|
121
119
|
};
|
|
122
120
|
type CreatePixSafeInput = {
|
|
123
|
-
|
|
121
|
+
customer_id: string;
|
|
124
122
|
name: string;
|
|
125
123
|
beneficiary_name: string;
|
|
126
124
|
account_number: string;
|
|
@@ -142,7 +140,7 @@ type CreatePixSafeResponse = {
|
|
|
142
140
|
created_at: string;
|
|
143
141
|
};
|
|
144
142
|
type CreateArgentinaTransfersInput = {
|
|
145
|
-
|
|
143
|
+
customer_id: string;
|
|
146
144
|
name: string;
|
|
147
145
|
beneficiary_name: string;
|
|
148
146
|
transfers_account: string;
|
|
@@ -158,7 +156,7 @@ type CreateArgentinaTransfersResponse = {
|
|
|
158
156
|
created_at: string;
|
|
159
157
|
};
|
|
160
158
|
type CreateSpeiInput = {
|
|
161
|
-
|
|
159
|
+
customer_id: string;
|
|
162
160
|
beneficiary_name: string;
|
|
163
161
|
name: string;
|
|
164
162
|
spei_clabe: string;
|
|
@@ -176,7 +174,7 @@ type CreateSpeiResponse = {
|
|
|
176
174
|
created_at: string;
|
|
177
175
|
};
|
|
178
176
|
type CreateColombiaAchInput = {
|
|
179
|
-
|
|
177
|
+
customer_id: string;
|
|
180
178
|
name: string;
|
|
181
179
|
account_type: BankAccountType;
|
|
182
180
|
ach_cop_beneficiary_first_name: string;
|
|
@@ -202,7 +200,7 @@ type CreateColombiaAchResponse = {
|
|
|
202
200
|
created_at: string;
|
|
203
201
|
};
|
|
204
202
|
type CreateAchInput = {
|
|
205
|
-
|
|
203
|
+
customer_id: string;
|
|
206
204
|
name: string;
|
|
207
205
|
account_class: AccountClass;
|
|
208
206
|
account_number: string;
|
|
@@ -247,7 +245,7 @@ type CreateAchResponse = {
|
|
|
247
245
|
created_at: string;
|
|
248
246
|
};
|
|
249
247
|
type CreateWireInput = {
|
|
250
|
-
|
|
248
|
+
customer_id: string;
|
|
251
249
|
name: string;
|
|
252
250
|
account_class: AccountClass;
|
|
253
251
|
account_number: string;
|
|
@@ -283,7 +281,7 @@ type CreateWireResponse = {
|
|
|
283
281
|
created_at: string;
|
|
284
282
|
};
|
|
285
283
|
type CreateInternationalSwiftInput = {
|
|
286
|
-
|
|
284
|
+
customer_id: string;
|
|
287
285
|
name: string;
|
|
288
286
|
account_class: AccountClass;
|
|
289
287
|
recipient_relationship: RecipientRelationship;
|
|
@@ -350,7 +348,7 @@ type CreateInternationalSwiftResponse = {
|
|
|
350
348
|
created_at: string;
|
|
351
349
|
};
|
|
352
350
|
type CreateRtpInput = {
|
|
353
|
-
|
|
351
|
+
customer_id: string;
|
|
354
352
|
name: string;
|
|
355
353
|
account_class: AccountClass;
|
|
356
354
|
beneficiary_name: string;
|
|
@@ -386,7 +384,7 @@ type CreateRtpResponse = {
|
|
|
386
384
|
created_at: string;
|
|
387
385
|
};
|
|
388
386
|
type CreateSepaInput = {
|
|
389
|
-
|
|
387
|
+
customer_id: string;
|
|
390
388
|
name: string;
|
|
391
389
|
account_class: AccountClass;
|
|
392
390
|
sepa_iban: string;
|
|
@@ -417,7 +415,7 @@ type CreateSepaResponse = {
|
|
|
417
415
|
created_at: string;
|
|
418
416
|
};
|
|
419
417
|
type CreateTedInput = {
|
|
420
|
-
|
|
418
|
+
customer_id: string;
|
|
421
419
|
name: string;
|
|
422
420
|
beneficiary_name: string;
|
|
423
421
|
ted_bank_code: string;
|
|
@@ -435,20 +433,20 @@ type CreateTedResponse = {
|
|
|
435
433
|
created_at: string;
|
|
436
434
|
};
|
|
437
435
|
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({
|
|
436
|
+
list({ customer_id, ...params }: ListBankAccountsInput): Promise<BlindpayApiResponse<ListBankAccountsResponse>>;
|
|
437
|
+
get({ customer_id, id, }: GetBankAccountInput): Promise<BlindpayApiResponse<GetBankAccountResponse>>;
|
|
438
|
+
delete({ customer_id, id }: DeleteBankAccountInput): Promise<BlindpayApiResponse<void>>;
|
|
439
|
+
createPix({ customer_id, ...data }: CreatePixInput): Promise<BlindpayApiResponse<CreatePixResponse>>;
|
|
440
|
+
createPixSafe({ customer_id, ...data }: CreatePixSafeInput): Promise<BlindpayApiResponse<CreatePixSafeResponse>>;
|
|
441
|
+
createArgentinaTransfers({ customer_id, ...data }: CreateArgentinaTransfersInput): Promise<BlindpayApiResponse<CreateArgentinaTransfersResponse>>;
|
|
442
|
+
createSpei({ customer_id, ...data }: CreateSpeiInput): Promise<BlindpayApiResponse<CreateSpeiResponse>>;
|
|
443
|
+
createColombiaAch({ customer_id, ...data }: CreateColombiaAchInput): Promise<BlindpayApiResponse<CreateColombiaAchResponse>>;
|
|
444
|
+
createAch({ customer_id, ...data }: CreateAchInput): Promise<BlindpayApiResponse<CreateAchResponse>>;
|
|
445
|
+
createWire({ customer_id, ...data }: CreateWireInput): Promise<BlindpayApiResponse<CreateWireResponse>>;
|
|
446
|
+
createInternationalSwift({ customer_id, ...data }: CreateInternationalSwiftInput): Promise<BlindpayApiResponse<CreateInternationalSwiftResponse>>;
|
|
447
|
+
createRtp({ customer_id, ...data }: CreateRtpInput): Promise<BlindpayApiResponse<CreateRtpResponse>>;
|
|
448
|
+
createTed({ customer_id, ...data }: CreateTedInput): Promise<BlindpayApiResponse<CreateTedResponse>>;
|
|
449
|
+
createSepa({ customer_id, ...data }: CreateSepaInput): Promise<BlindpayApiResponse<CreateSepaResponse>>;
|
|
452
450
|
};
|
|
453
451
|
|
|
454
452
|
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 };
|
|
@@ -53,135 +53,135 @@ function createBankAccountsResource(instanceId, client) {
|
|
|
53
53
|
return {
|
|
54
54
|
list(_a) {
|
|
55
55
|
var _b = _a, {
|
|
56
|
-
|
|
56
|
+
customer_id
|
|
57
57
|
} = _b, params = __objRest(_b, [
|
|
58
|
-
"
|
|
58
|
+
"customer_id"
|
|
59
59
|
]);
|
|
60
60
|
const queryParams = Object.keys(params).length ? `?${new URLSearchParams(params)}` : "";
|
|
61
61
|
return client.get(
|
|
62
|
-
`/instances/${instanceId}/
|
|
62
|
+
`/instances/${instanceId}/customers/${customer_id}/bank-accounts${queryParams}`
|
|
63
63
|
);
|
|
64
64
|
},
|
|
65
65
|
get({
|
|
66
|
-
|
|
66
|
+
customer_id,
|
|
67
67
|
id
|
|
68
68
|
}) {
|
|
69
69
|
return client.get(
|
|
70
|
-
`/instances/${instanceId}/
|
|
70
|
+
`/instances/${instanceId}/customers/${customer_id}/bank-accounts/${id}`
|
|
71
71
|
);
|
|
72
72
|
},
|
|
73
|
-
delete({
|
|
73
|
+
delete({ customer_id, id }) {
|
|
74
74
|
return client.delete(
|
|
75
|
-
`/instances/${instanceId}/
|
|
75
|
+
`/instances/${instanceId}/customers/${customer_id}/bank-accounts/${id}`
|
|
76
76
|
);
|
|
77
77
|
},
|
|
78
78
|
createPix(_c) {
|
|
79
79
|
var _d = _c, {
|
|
80
|
-
|
|
80
|
+
customer_id
|
|
81
81
|
} = _d, data = __objRest(_d, [
|
|
82
|
-
"
|
|
82
|
+
"customer_id"
|
|
83
83
|
]);
|
|
84
|
-
return client.post(`/instances/${instanceId}/
|
|
84
|
+
return client.post(`/instances/${instanceId}/customers/${customer_id}/bank-accounts`, __spreadValues({
|
|
85
85
|
type: "pix"
|
|
86
86
|
}, data));
|
|
87
87
|
},
|
|
88
88
|
createPixSafe(_e) {
|
|
89
89
|
var _f = _e, {
|
|
90
|
-
|
|
90
|
+
customer_id
|
|
91
91
|
} = _f, data = __objRest(_f, [
|
|
92
|
-
"
|
|
92
|
+
"customer_id"
|
|
93
93
|
]);
|
|
94
|
-
return client.post(`/instances/${instanceId}/
|
|
94
|
+
return client.post(`/instances/${instanceId}/customers/${customer_id}/bank-accounts`, __spreadValues({
|
|
95
95
|
type: "pix_safe"
|
|
96
96
|
}, data));
|
|
97
97
|
},
|
|
98
98
|
createArgentinaTransfers(_g) {
|
|
99
99
|
var _h = _g, {
|
|
100
|
-
|
|
100
|
+
customer_id
|
|
101
101
|
} = _h, data = __objRest(_h, [
|
|
102
|
-
"
|
|
102
|
+
"customer_id"
|
|
103
103
|
]);
|
|
104
|
-
return client.post(`/instances/${instanceId}/
|
|
104
|
+
return client.post(`/instances/${instanceId}/customers/${customer_id}/bank-accounts`, __spreadValues({
|
|
105
105
|
type: "transfers_bitso"
|
|
106
106
|
}, data));
|
|
107
107
|
},
|
|
108
108
|
createSpei(_i) {
|
|
109
109
|
var _j = _i, {
|
|
110
|
-
|
|
110
|
+
customer_id
|
|
111
111
|
} = _j, data = __objRest(_j, [
|
|
112
|
-
"
|
|
112
|
+
"customer_id"
|
|
113
113
|
]);
|
|
114
|
-
return client.post(`/instances/${instanceId}/
|
|
114
|
+
return client.post(`/instances/${instanceId}/customers/${customer_id}/bank-accounts`, __spreadValues({
|
|
115
115
|
type: "spei_bitso"
|
|
116
116
|
}, data));
|
|
117
117
|
},
|
|
118
118
|
createColombiaAch(_k) {
|
|
119
119
|
var _l = _k, {
|
|
120
|
-
|
|
120
|
+
customer_id
|
|
121
121
|
} = _l, data = __objRest(_l, [
|
|
122
|
-
"
|
|
122
|
+
"customer_id"
|
|
123
123
|
]);
|
|
124
|
-
return client.post(`/instances/${instanceId}/
|
|
124
|
+
return client.post(`/instances/${instanceId}/customers/${customer_id}/bank-accounts`, __spreadValues({
|
|
125
125
|
type: "ach_cop_bitso"
|
|
126
126
|
}, data));
|
|
127
127
|
},
|
|
128
128
|
createAch(_m) {
|
|
129
129
|
var _n = _m, {
|
|
130
|
-
|
|
130
|
+
customer_id
|
|
131
131
|
} = _n, data = __objRest(_n, [
|
|
132
|
-
"
|
|
132
|
+
"customer_id"
|
|
133
133
|
]);
|
|
134
|
-
return client.post(`/instances/${instanceId}/
|
|
134
|
+
return client.post(`/instances/${instanceId}/customers/${customer_id}/bank-accounts`, __spreadValues({
|
|
135
135
|
type: "ach"
|
|
136
136
|
}, data));
|
|
137
137
|
},
|
|
138
138
|
createWire(_o) {
|
|
139
139
|
var _p = _o, {
|
|
140
|
-
|
|
140
|
+
customer_id
|
|
141
141
|
} = _p, data = __objRest(_p, [
|
|
142
|
-
"
|
|
142
|
+
"customer_id"
|
|
143
143
|
]);
|
|
144
|
-
return client.post(`/instances/${instanceId}/
|
|
144
|
+
return client.post(`/instances/${instanceId}/customers/${customer_id}/bank-accounts`, __spreadValues({
|
|
145
145
|
type: "wire"
|
|
146
146
|
}, data));
|
|
147
147
|
},
|
|
148
148
|
createInternationalSwift(_q) {
|
|
149
149
|
var _r = _q, {
|
|
150
|
-
|
|
150
|
+
customer_id
|
|
151
151
|
} = _r, data = __objRest(_r, [
|
|
152
|
-
"
|
|
152
|
+
"customer_id"
|
|
153
153
|
]);
|
|
154
|
-
return client.post(`/instances/${instanceId}/
|
|
154
|
+
return client.post(`/instances/${instanceId}/customers/${customer_id}/bank-accounts`, __spreadValues({
|
|
155
155
|
type: "international_swift"
|
|
156
156
|
}, data));
|
|
157
157
|
},
|
|
158
158
|
createRtp(_s) {
|
|
159
159
|
var _t = _s, {
|
|
160
|
-
|
|
160
|
+
customer_id
|
|
161
161
|
} = _t, data = __objRest(_t, [
|
|
162
|
-
"
|
|
162
|
+
"customer_id"
|
|
163
163
|
]);
|
|
164
|
-
return client.post(`/instances/${instanceId}/
|
|
164
|
+
return client.post(`/instances/${instanceId}/customers/${customer_id}/bank-accounts`, __spreadValues({
|
|
165
165
|
type: "rtp"
|
|
166
166
|
}, data));
|
|
167
167
|
},
|
|
168
168
|
createTed(_u) {
|
|
169
169
|
var _v = _u, {
|
|
170
|
-
|
|
170
|
+
customer_id
|
|
171
171
|
} = _v, data = __objRest(_v, [
|
|
172
|
-
"
|
|
172
|
+
"customer_id"
|
|
173
173
|
]);
|
|
174
|
-
return client.post(`/instances/${instanceId}/
|
|
174
|
+
return client.post(`/instances/${instanceId}/customers/${customer_id}/bank-accounts`, __spreadValues({
|
|
175
175
|
type: "ted"
|
|
176
176
|
}, data));
|
|
177
177
|
},
|
|
178
178
|
createSepa(_w) {
|
|
179
179
|
var _x = _w, {
|
|
180
|
-
|
|
180
|
+
customer_id
|
|
181
181
|
} = _x, data = __objRest(_x, [
|
|
182
|
-
"
|
|
182
|
+
"customer_id"
|
|
183
183
|
]);
|
|
184
|
-
return client.post(`/instances/${instanceId}/
|
|
184
|
+
return client.post(`/instances/${instanceId}/customers/${customer_id}/bank-accounts`, __spreadValues({
|
|
185
185
|
type: "sepa"
|
|
186
186
|
}, data));
|
|
187
187
|
}
|