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