@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.
Files changed (112) hide show
  1. package/dist/{api-client-5N_7-zad.d.ts → api-client-BWImXDBx.d.ts} +1 -1
  2. package/dist/{api-client-DYqrodZr.d.mts → api-client-L9eGwH1U.d.mts} +1 -1
  3. package/dist/{chunk-IM2L5L4B.mjs → chunk-ECYZLQUR.mjs} +16 -24
  4. package/dist/{chunk-N4F3FBNB.mjs → chunk-L23IOSI3.mjs} +40 -40
  5. package/dist/{chunk-LEPGLH7Q.mjs → chunk-SWTOSLUI.mjs} +10 -10
  6. package/dist/{chunk-KMU6V4LW.mjs → chunk-TVOMVVOO.mjs} +11 -11
  7. package/dist/{chunk-FG25JHDX.mjs → chunk-VAVDEV6P.mjs} +14 -14
  8. package/dist/{chunk-QGNLMN6Z.mjs → chunk-YHI3J2CL.mjs} +7 -7
  9. package/dist/{index.d-CGeWvXXq.d.mts → index.d-DK8eD9f3.d.mts} +1 -1
  10. package/dist/{index.d-CGeWvXXq.d.ts → index.d-DK8eD9f3.d.ts} +1 -1
  11. package/dist/index.d.mts +4 -16
  12. package/dist/index.d.ts +4 -16
  13. package/dist/index.js +83 -153
  14. package/dist/index.mjs +14 -20
  15. package/dist/resources/api-keys/api-keys.test.js +83 -151
  16. package/dist/resources/api-keys/api-keys.test.mjs +9 -10
  17. package/dist/resources/api-keys/index.d.mts +2 -2
  18. package/dist/resources/api-keys/index.d.ts +2 -2
  19. package/dist/resources/available/available.test.js +83 -151
  20. package/dist/resources/available/available.test.mjs +9 -10
  21. package/dist/resources/available/index.d.mts +2 -2
  22. package/dist/resources/available/index.d.ts +2 -2
  23. package/dist/resources/bank-accounts/bank-accounts.test.js +110 -178
  24. package/dist/resources/bank-accounts/bank-accounts.test.mjs +36 -37
  25. package/dist/resources/bank-accounts/index.d.mts +31 -31
  26. package/dist/resources/bank-accounts/index.d.ts +31 -31
  27. package/dist/resources/bank-accounts/index.js +40 -40
  28. package/dist/resources/bank-accounts/index.mjs +1 -1
  29. package/dist/resources/customers/customers.test.js +83 -151
  30. package/dist/resources/customers/customers.test.mjs +9 -10
  31. package/dist/resources/customers/index.d.mts +70 -69
  32. package/dist/resources/customers/index.d.ts +70 -69
  33. package/dist/resources/fees/fees.test.js +83 -151
  34. package/dist/resources/fees/fees.test.mjs +9 -10
  35. package/dist/resources/fees/index.d.mts +2 -2
  36. package/dist/resources/fees/index.d.ts +2 -2
  37. package/dist/resources/instances/index.d.mts +2 -2
  38. package/dist/resources/instances/index.d.ts +2 -2
  39. package/dist/resources/instances/instances.test.js +83 -151
  40. package/dist/resources/instances/instances.test.mjs +9 -10
  41. package/dist/resources/partner-fees/index.d.mts +2 -2
  42. package/dist/resources/partner-fees/index.d.ts +2 -2
  43. package/dist/resources/partner-fees/partner-fees.test.js +83 -151
  44. package/dist/resources/partner-fees/partner-fees.test.mjs +9 -10
  45. package/dist/resources/payins/index.d.mts +2 -2
  46. package/dist/resources/payins/index.d.ts +2 -2
  47. package/dist/resources/payins/payins-quotes.test.js +83 -151
  48. package/dist/resources/payins/payins-quotes.test.mjs +9 -10
  49. package/dist/resources/payins/payins.test.js +83 -151
  50. package/dist/resources/payins/payins.test.mjs +9 -10
  51. package/dist/resources/payins/quotes.d.mts +2 -2
  52. package/dist/resources/payins/quotes.d.ts +2 -2
  53. package/dist/resources/payouts/index.d.mts +2 -2
  54. package/dist/resources/payouts/index.d.ts +2 -2
  55. package/dist/resources/payouts/payouts.test.js +83 -151
  56. package/dist/resources/payouts/payouts.test.mjs +9 -10
  57. package/dist/resources/quotes/index.d.mts +2 -2
  58. package/dist/resources/quotes/index.d.ts +2 -2
  59. package/dist/resources/quotes/quotes.test.js +83 -151
  60. package/dist/resources/quotes/quotes.test.mjs +9 -10
  61. package/dist/resources/terms-of-service/index.d.mts +2 -2
  62. package/dist/resources/terms-of-service/index.d.ts +2 -2
  63. package/dist/resources/terms-of-service/terms-of-service.test.js +83 -151
  64. package/dist/resources/terms-of-service/terms-of-service.test.mjs +9 -10
  65. package/dist/resources/transfers/index.d.mts +2 -2
  66. package/dist/resources/transfers/index.d.ts +2 -2
  67. package/dist/resources/transfers/transfers.test.js +83 -151
  68. package/dist/resources/transfers/transfers.test.mjs +9 -10
  69. package/dist/resources/upload/index.d.mts +1 -1
  70. package/dist/resources/upload/index.d.ts +1 -1
  71. package/dist/resources/upload/upload.test.js +83 -151
  72. package/dist/resources/upload/upload.test.mjs +9 -10
  73. package/dist/resources/virtual-accounts/index.d.mts +9 -9
  74. package/dist/resources/virtual-accounts/index.d.ts +9 -9
  75. package/dist/resources/virtual-accounts/index.js +10 -10
  76. package/dist/resources/virtual-accounts/index.mjs +1 -1
  77. package/dist/resources/virtual-accounts/virtual-accounts.test.js +87 -155
  78. package/dist/resources/virtual-accounts/virtual-accounts.test.mjs +13 -14
  79. package/dist/resources/wallets/blockchain.d.mts +15 -15
  80. package/dist/resources/wallets/blockchain.d.ts +15 -15
  81. package/dist/resources/wallets/blockchain.js +14 -14
  82. package/dist/resources/wallets/blockchain.mjs +1 -1
  83. package/dist/resources/wallets/blockchain.test.js +91 -159
  84. package/dist/resources/wallets/blockchain.test.mjs +17 -18
  85. package/dist/resources/wallets/custodial.d.mts +11 -11
  86. package/dist/resources/wallets/custodial.d.ts +11 -11
  87. package/dist/resources/wallets/custodial.js +11 -11
  88. package/dist/resources/wallets/custodial.mjs +1 -1
  89. package/dist/resources/wallets/custodial.test.js +87 -155
  90. package/dist/resources/wallets/custodial.test.mjs +13 -14
  91. package/dist/resources/wallets/offramp.d.mts +9 -9
  92. package/dist/resources/wallets/offramp.d.ts +9 -9
  93. package/dist/resources/wallets/offramp.js +7 -7
  94. package/dist/resources/wallets/offramp.mjs +1 -1
  95. package/dist/resources/wallets/offramp.test.js +89 -157
  96. package/dist/resources/wallets/offramp.test.mjs +15 -16
  97. package/dist/resources/webhooks/index.d.mts +2 -2
  98. package/dist/resources/webhooks/index.d.ts +2 -2
  99. package/dist/resources/webhooks/webhooks.test.js +83 -151
  100. package/dist/resources/webhooks/webhooks.test.mjs +9 -10
  101. package/package.json +1 -1
  102. package/dist/chunk-NAGY6BLL.mjs +0 -79
  103. package/dist/resources/receivers/index.d.mts +0 -513
  104. package/dist/resources/receivers/index.d.ts +0 -513
  105. package/dist/resources/receivers/index.js +0 -118
  106. package/dist/resources/receivers/index.mjs +0 -9
  107. package/dist/resources/receivers/receivers.test.d.mts +0 -2
  108. package/dist/resources/receivers/receivers.test.d.ts +0 -2
  109. package/dist/resources/receivers/receivers.test.js +0 -20510
  110. package/dist/resources/receivers/receivers.test.mjs +0 -652
  111. package/dist/strict-omit-ByJhzKNC.d.mts +0 -3
  112. package/dist/strict-omit-ByJhzKNC.d.ts +0 -3
@@ -1,513 +0,0 @@
1
- import { P as PaginationParams, C as Country, B as BlindpayApiResponse, A as AccountClass, K as KycStatus, e as AccountPurpose, S as SourceOfFundsDocType, d as BusinessIndustry, E as EstimatedAnnualRevenue, f as SourceOfWealth, g as RecipientRelationship, h as SoleProprietorDocType, i as PurposeOfTransactions, j as PaginationMetadata, k as BusinessType } from '../../index.d-CGeWvXXq.js';
2
- import { I as InternalApiClient } from '../../api-client-5N_7-zad.js';
3
- import { S as StrictOmit } from '../../strict-omit-ByJhzKNC.js';
4
-
5
- /** @deprecated Renamed to customers. https://www.blindpay.com/changelog/2026-06-04-customers-rename */
6
- type ProofOfAddressDocType = "UTILITY_BILL" | "BANK_STATEMENT" | "RENTAL_AGREEMENT" | "TAX_DOCUMENT" | "GOVERNMENT_CORRESPONDENCE";
7
- /** @deprecated Renamed to customers. https://www.blindpay.com/changelog/2026-06-04-customers-rename */
8
- type IdentificationDocument = "PASSPORT" | "ID_CARD" | "DRIVERS";
9
- /** @deprecated Renamed to customers. https://www.blindpay.com/changelog/2026-06-04-customers-rename */
10
- type AmlStatus = "clear" | "hit" | "error";
11
- /** @deprecated Renamed to customers. https://www.blindpay.com/changelog/2026-06-04-customers-rename */
12
- type AmlHits = {
13
- has_sanction_match: boolean;
14
- has_pep_match: boolean;
15
- has_watchlist_match: boolean;
16
- has_crimelist_match: boolean;
17
- has_adversemedia_match: boolean;
18
- };
19
- /** @deprecated Renamed to customers. https://www.blindpay.com/changelog/2026-06-04-customers-rename */
20
- type FraudWarning = {
21
- id: string | null;
22
- name: string | null;
23
- operation: string | null;
24
- score: number | null;
25
- };
26
- /** @deprecated Renamed to customers. https://www.blindpay.com/changelog/2026-06-04-customers-rename */
27
- type OwnerTaxType = "SSN" | "ITIN";
28
- /** @deprecated Renamed to customers. https://www.blindpay.com/changelog/2026-06-04-customers-rename */
29
- type KycType = "light" | "standard" | "enhanced";
30
- /** @deprecated Renamed to customers. https://www.blindpay.com/changelog/2026-06-04-customers-rename */
31
- type OwnerRole = "beneficial_controlling" | "beneficial_owner" | "controlling_person";
32
- /** @deprecated Renamed to customers. https://www.blindpay.com/changelog/2026-06-04-customers-rename */
33
- type Owner = {
34
- id: string;
35
- role: OwnerRole;
36
- first_name: string;
37
- last_name: string;
38
- date_of_birth: string;
39
- tax_id: string;
40
- address_line_1: string;
41
- address_line_2: string | null;
42
- city: string;
43
- state_province_region: string;
44
- country: Country;
45
- postal_code: string;
46
- id_doc_country: Country;
47
- id_doc_type: IdentificationDocument;
48
- id_doc_front_file: string;
49
- id_doc_back_file: string | null;
50
- proof_of_address_doc_type: ProofOfAddressDocType;
51
- proof_of_address_doc_file: string | null;
52
- ownership_percentage: number | null;
53
- title: string | null;
54
- tax_type?: OwnerTaxType | null;
55
- instance_id?: string;
56
- receiver_id?: string;
57
- };
58
- /** @deprecated Renamed to customers. https://www.blindpay.com/changelog/2026-06-04-customers-rename */
59
- type IndividualWithStandardKYC = {
60
- id: string;
61
- is_tos_accepted: boolean;
62
- type: Extract<AccountClass, "individual">;
63
- kyc_type: Extract<KycType, "standard">;
64
- kyc_status: KycStatus;
65
- kyc_warnings: Array<{
66
- code: string | null;
67
- message: string | null;
68
- resolution_status: string | null;
69
- warning_id: string | null;
70
- }> | null;
71
- email: string;
72
- tax_id: string;
73
- address_line_1: string;
74
- address_line_2?: string | null;
75
- city: string;
76
- state_province_region: string;
77
- country: Country;
78
- postal_code: string;
79
- ip_address: string | null;
80
- image_url: string | null;
81
- phone_number: string;
82
- proof_of_address_doc_type: ProofOfAddressDocType;
83
- proof_of_address_doc_file: string;
84
- first_name: string;
85
- last_name: string;
86
- date_of_birth: string;
87
- id_doc_country: Country;
88
- id_doc_type: IdentificationDocument;
89
- id_doc_front_file: string;
90
- id_doc_back_file: string;
91
- aiprise_validation_key: string;
92
- instance_id: string;
93
- tos_id: string | null;
94
- created_at: string;
95
- updated_at: string;
96
- limit: {
97
- per_transaction: number;
98
- daily: number;
99
- monthly: number;
100
- };
101
- fraud_warnings?: FraudWarning[] | null;
102
- aml_status?: AmlStatus | null;
103
- aml_hits?: AmlHits | null;
104
- account_purpose?: AccountPurpose | null;
105
- account_purpose_other?: string | null;
106
- occupation?: string | null;
107
- external_id?: string | null;
108
- is_fbo?: boolean | null;
109
- selfie_file?: string | null;
110
- source_of_funds_doc_type?: SourceOfFundsDocType | null;
111
- source_of_funds_doc_file?: string | null;
112
- business_description?: string | null;
113
- business_industry?: BusinessIndustry | null;
114
- estimated_annual_revenue?: EstimatedAnnualRevenue | null;
115
- source_of_wealth?: SourceOfWealth | null;
116
- recipient_relationship?: RecipientRelationship | null;
117
- sole_proprietor_doc_type?: SoleProprietorDocType | null;
118
- publicly_traded?: boolean | null;
119
- };
120
- /** @deprecated Renamed to customers. https://www.blindpay.com/changelog/2026-06-04-customers-rename */
121
- type IndividualWithEnhancedKYC = {
122
- id: string;
123
- is_tos_accepted: boolean;
124
- type: Extract<AccountClass, "individual">;
125
- kyc_type: Extract<KycType, "enhanced">;
126
- kyc_status: KycStatus;
127
- kyc_warnings: Array<{
128
- code: string | null;
129
- message: string | null;
130
- resolution_status: string | null;
131
- warning_id: string | null;
132
- }> | null;
133
- email: string;
134
- tax_id: string;
135
- address_line_1: string;
136
- address_line_2?: string | null;
137
- city: string;
138
- state_province_region: string;
139
- country: Country;
140
- postal_code: string;
141
- ip_address: string | null;
142
- image_url: string | null;
143
- phone_number: string | null;
144
- proof_of_address_doc_type: ProofOfAddressDocType;
145
- proof_of_address_doc_file: string;
146
- first_name: string;
147
- last_name: string;
148
- date_of_birth: string;
149
- id_doc_country: Country;
150
- id_doc_type: IdentificationDocument;
151
- id_doc_front_file: string;
152
- id_doc_back_file: string | null;
153
- aiprise_validation_key: string;
154
- instance_id: string;
155
- source_of_funds_doc_type: string;
156
- source_of_funds_doc_file: string;
157
- individual_holding_doc_front_file: string;
158
- purpose_of_transactions: PurposeOfTransactions;
159
- purpose_of_transactions_explanation: string | null;
160
- tos_id: string | null;
161
- created_at: string;
162
- updated_at: string;
163
- limit: {
164
- per_transaction: number;
165
- daily: number;
166
- monthly: number;
167
- };
168
- fraud_warnings?: FraudWarning[] | null;
169
- aml_status?: AmlStatus | null;
170
- aml_hits?: AmlHits | null;
171
- account_purpose?: AccountPurpose | null;
172
- account_purpose_other?: string | null;
173
- occupation?: string | null;
174
- external_id?: string | null;
175
- is_fbo?: boolean | null;
176
- selfie_file?: string | null;
177
- business_description?: string | null;
178
- business_industry?: BusinessIndustry | null;
179
- estimated_annual_revenue?: EstimatedAnnualRevenue | null;
180
- source_of_wealth?: SourceOfWealth | null;
181
- recipient_relationship?: RecipientRelationship | null;
182
- sole_proprietor_doc_type?: SoleProprietorDocType | null;
183
- publicly_traded?: boolean | null;
184
- };
185
- /** @deprecated Renamed to customers. https://www.blindpay.com/changelog/2026-06-04-customers-rename */
186
- type BusinessWithStandardKYB = {
187
- id: string;
188
- is_tos_accepted: boolean;
189
- is_fbo: boolean;
190
- type: Extract<AccountClass, "business">;
191
- kyc_type: Extract<KycType, "standard">;
192
- kyc_status: KycStatus;
193
- kyc_warnings: Array<{
194
- code: string | null;
195
- message: string | null;
196
- resolution_status: string | null;
197
- warning_id: string | null;
198
- }> | null;
199
- email: string;
200
- tax_id: string;
201
- address_line_1: string;
202
- address_line_2?: string | null;
203
- city: string;
204
- state_province_region: string;
205
- country: Country;
206
- postal_code: string;
207
- ip_address: string | null;
208
- image_url: string | null;
209
- phone_number: string | null;
210
- proof_of_address_doc_type: ProofOfAddressDocType;
211
- proof_of_address_doc_file: string;
212
- legal_name: string;
213
- alternate_name: string | null;
214
- formation_date: string;
215
- website: string | null;
216
- owners: Owner[];
217
- incorporation_doc_file: string;
218
- proof_of_ownership_doc_file: string;
219
- external_id: string | null;
220
- instance_id: string;
221
- tos_id: string | null;
222
- aiprise_validation_key: string;
223
- created_at: string;
224
- updated_at: string;
225
- limit: {
226
- per_transaction: number;
227
- daily: number;
228
- monthly: number;
229
- };
230
- fraud_warnings?: FraudWarning[] | null;
231
- aml_status?: AmlStatus | null;
232
- aml_hits?: AmlHits | null;
233
- account_purpose?: AccountPurpose | null;
234
- account_purpose_other?: string | null;
235
- occupation?: string | null;
236
- selfie_file?: string | null;
237
- source_of_funds_doc_type?: SourceOfFundsDocType | null;
238
- source_of_funds_doc_file?: string | null;
239
- business_description?: string | null;
240
- business_industry?: BusinessIndustry | null;
241
- estimated_annual_revenue?: EstimatedAnnualRevenue | null;
242
- source_of_wealth?: SourceOfWealth | null;
243
- recipient_relationship?: RecipientRelationship | null;
244
- sole_proprietor_doc_type?: SoleProprietorDocType | null;
245
- };
246
- /** @deprecated Renamed to customers. https://www.blindpay.com/changelog/2026-06-04-customers-rename */
247
- type CreateIndividualWithStandardKYCInput = {
248
- country: Country;
249
- email: string;
250
- account_purpose?: AccountPurpose | null;
251
- address_line_1?: string | null;
252
- address_line_2?: string | null;
253
- city?: string | null;
254
- date_of_birth?: string | null;
255
- external_id?: string | null;
256
- first_name?: string | null;
257
- id_doc_back_file?: string | null;
258
- id_doc_country?: Country | null;
259
- id_doc_front_file?: string | null;
260
- id_doc_type?: IdentificationDocument | null;
261
- image_url?: string | null;
262
- ip_address?: string | null;
263
- last_name?: string | null;
264
- phone_number?: string | null;
265
- postal_code?: string | null;
266
- proof_of_address_doc_file?: string | null;
267
- proof_of_address_doc_type?: ProofOfAddressDocType | null;
268
- selfie_file?: string | null;
269
- source_of_funds_doc_file?: string | null;
270
- source_of_funds_doc_type?: SourceOfFundsDocType | null;
271
- source_of_wealth?: SourceOfWealth | null;
272
- state_province_region?: string | null;
273
- tax_id?: string | null;
274
- tos_id?: string | null;
275
- account_purpose_other?: string | null;
276
- occupation?: string | null;
277
- recipient_relationship?: RecipientRelationship | null;
278
- sole_proprietor_doc_type?: SoleProprietorDocType | null;
279
- };
280
- /** @deprecated Renamed to customers. https://www.blindpay.com/changelog/2026-06-04-customers-rename */
281
- type CreateIndividualWithStandardKYCResponse = {
282
- id: string;
283
- };
284
- /** @deprecated Renamed to customers. https://www.blindpay.com/changelog/2026-06-04-customers-rename */
285
- type CreateIndividualWithEnhancedKYCInput = {
286
- country: Country;
287
- email: string;
288
- account_purpose?: AccountPurpose | null;
289
- address_line_1?: string | null;
290
- address_line_2?: string | null;
291
- city?: string | null;
292
- date_of_birth?: string | null;
293
- external_id?: string | null;
294
- first_name?: string | null;
295
- id_doc_back_file?: string | null;
296
- id_doc_country?: Country | null;
297
- id_doc_front_file?: string | null;
298
- id_doc_type?: IdentificationDocument | null;
299
- image_url?: string | null;
300
- ip_address?: string | null;
301
- last_name?: string | null;
302
- phone_number?: string | null;
303
- postal_code?: string | null;
304
- proof_of_address_doc_file?: string | null;
305
- proof_of_address_doc_type?: ProofOfAddressDocType | null;
306
- purpose_of_transactions?: PurposeOfTransactions | null;
307
- purpose_of_transactions_explanation?: string | null;
308
- selfie_file?: string | null;
309
- source_of_funds_doc_file?: string | null;
310
- source_of_funds_doc_type?: SourceOfFundsDocType | null;
311
- source_of_wealth?: SourceOfWealth | null;
312
- state_province_region?: string | null;
313
- tax_id?: string | null;
314
- tos_id?: string | null;
315
- account_purpose_other?: string | null;
316
- occupation?: string | null;
317
- recipient_relationship?: RecipientRelationship | null;
318
- sole_proprietor_doc_type?: SoleProprietorDocType | null;
319
- };
320
- /** @deprecated Renamed to customers. https://www.blindpay.com/changelog/2026-06-04-customers-rename */
321
- type CreateIndividualWithEnhancedKYCResponse = {
322
- id: string;
323
- };
324
- /** @deprecated Renamed to customers. https://www.blindpay.com/changelog/2026-06-04-customers-rename */
325
- type CreateBusinessWithStandardKYBInput = {
326
- country: Country;
327
- email: string;
328
- account_purpose?: AccountPurpose | null;
329
- address_line_1?: string | null;
330
- address_line_2?: string | null;
331
- alternate_name?: string | null;
332
- business_description?: string | null;
333
- business_industry?: BusinessIndustry | null;
334
- business_type?: BusinessType | null;
335
- city?: string | null;
336
- estimated_annual_revenue?: EstimatedAnnualRevenue | null;
337
- external_id?: string | null;
338
- formation_date?: string | null;
339
- image_url?: string | null;
340
- incorporation_doc_file?: string | null;
341
- ip_address?: string | null;
342
- legal_name?: string | null;
343
- owners?: Array<StrictOmit<Owner, "id">> | null;
344
- phone_number?: string | null;
345
- postal_code?: string | null;
346
- proof_of_address_doc_file?: string | null;
347
- proof_of_address_doc_type?: ProofOfAddressDocType | null;
348
- proof_of_ownership_doc_file?: string | null;
349
- publicly_traded?: boolean | null;
350
- source_of_funds_doc_file?: string | null;
351
- source_of_funds_doc_type?: SourceOfFundsDocType | null;
352
- source_of_wealth?: SourceOfWealth | null;
353
- state_province_region?: string | null;
354
- tax_id?: string | null;
355
- tos_id?: string | null;
356
- website?: string | null;
357
- account_purpose_other?: string | null;
358
- occupation?: string | null;
359
- recipient_relationship?: RecipientRelationship | null;
360
- sole_proprietor_doc_type?: SoleProprietorDocType | null;
361
- };
362
- /** @deprecated Renamed to customers. https://www.blindpay.com/changelog/2026-06-04-customers-rename */
363
- type CreateBusinessWithStandardKYBResponse = {
364
- id: string;
365
- };
366
- /** @deprecated Renamed to customers. https://www.blindpay.com/changelog/2026-06-04-customers-rename */
367
- type ListReceiversInput = PaginationParams & {
368
- full_name?: string;
369
- receiver_name?: string;
370
- status?: string;
371
- receiver_id?: string;
372
- bank_account_id?: string;
373
- country?: Country;
374
- };
375
- /** @deprecated Renamed to customers. https://www.blindpay.com/changelog/2026-06-04-customers-rename */
376
- type ListReceiversResponse = {
377
- data: Array<IndividualWithStandardKYC | IndividualWithEnhancedKYC | BusinessWithStandardKYB>;
378
- pagination: PaginationMetadata;
379
- };
380
- /** @deprecated Renamed to customers. https://www.blindpay.com/changelog/2026-06-04-customers-rename */
381
- type GetReceiverInput = string;
382
- /** @deprecated Renamed to customers. https://www.blindpay.com/changelog/2026-06-04-customers-rename */
383
- type GetReceiverResponse = IndividualWithStandardKYC | IndividualWithEnhancedKYC | BusinessWithStandardKYB;
384
- /** @deprecated Renamed to customers. https://www.blindpay.com/changelog/2026-06-04-customers-rename */
385
- type UpdateReceiverInput = {
386
- receiver_id: string;
387
- account_purpose?: AccountPurpose | null;
388
- address_line_1?: string;
389
- address_line_2?: string;
390
- alternate_name?: string;
391
- business_description?: string;
392
- business_industry?: BusinessIndustry | null;
393
- business_type?: BusinessType | null;
394
- city?: string;
395
- country?: Country;
396
- date_of_birth?: string;
397
- email?: string;
398
- estimated_annual_revenue?: EstimatedAnnualRevenue | null;
399
- external_id?: string;
400
- first_name?: string;
401
- formation_date?: string;
402
- id_doc_back_file?: string;
403
- id_doc_country?: Country;
404
- id_doc_front_file?: string;
405
- id_doc_type?: IdentificationDocument;
406
- image_url?: string;
407
- incorporation_doc_file?: string;
408
- ip_address?: string;
409
- last_name?: string;
410
- legal_name?: string;
411
- owners?: Array<StrictOmit<Owner, "id">>;
412
- phone_number?: string;
413
- postal_code?: string;
414
- proof_of_address_doc_file?: string;
415
- proof_of_address_doc_type?: ProofOfAddressDocType;
416
- proof_of_ownership_doc_file?: string;
417
- publicly_traded?: boolean | null;
418
- purpose_of_transactions?: PurposeOfTransactions;
419
- purpose_of_transactions_explanation?: string;
420
- selfie_file?: string;
421
- source_of_funds_doc_file?: string;
422
- source_of_funds_doc_type?: SourceOfFundsDocType;
423
- source_of_wealth?: SourceOfWealth | null;
424
- state_province_region?: string;
425
- tax_id?: string;
426
- tos_id?: string;
427
- website?: string;
428
- account_purpose_other?: string | null;
429
- occupation?: string | null;
430
- recipient_relationship?: RecipientRelationship | null;
431
- sole_proprietor_doc_type?: SoleProprietorDocType | null;
432
- };
433
- /** @deprecated Renamed to customers. https://www.blindpay.com/changelog/2026-06-04-customers-rename */
434
- type DeleteReceiverInput = string;
435
- /** @deprecated Renamed to customers. https://www.blindpay.com/changelog/2026-06-04-customers-rename */
436
- type GetReceiverLimitsInput = string;
437
- /** @deprecated Renamed to customers. https://www.blindpay.com/changelog/2026-06-04-customers-rename */
438
- type GetReceiverLimitsResponse = {
439
- limits: {
440
- payin: {
441
- daily: number;
442
- monthly: number;
443
- };
444
- payout: {
445
- daily: number;
446
- monthly: number;
447
- };
448
- };
449
- };
450
- /** @deprecated Renamed to customers. https://www.blindpay.com/changelog/2026-06-04-customers-rename */
451
- type GetLimitIncreaseRequestsInput = string;
452
- /** @deprecated Renamed to customers. https://www.blindpay.com/changelog/2026-06-04-customers-rename */
453
- type LimitIncreaseRequestStatus = "in_review" | "approved" | "rejected";
454
- /** @deprecated Renamed to customers. https://www.blindpay.com/changelog/2026-06-04-customers-rename */
455
- type LimitIncreaseRequestSupportingDocumentType = "individual_bank_statement" | "individual_tax_return" | "individual_proof_of_income" | "business_bank_statement" | "business_financial_statements" | "business_tax_return";
456
- /** @deprecated Renamed to customers. https://www.blindpay.com/changelog/2026-06-04-customers-rename */
457
- type GetLimitIncreaseRequestsResponse = Array<{
458
- id: string;
459
- receiver_id: string;
460
- status: LimitIncreaseRequestStatus;
461
- daily: number;
462
- monthly: number;
463
- per_transaction: number;
464
- supporting_document_file: string;
465
- supporting_document_type: LimitIncreaseRequestSupportingDocumentType;
466
- created_at: string;
467
- updated_at: string;
468
- approved_per_transaction?: number | null;
469
- approved_daily?: number | null;
470
- approved_monthly?: number | null;
471
- }>;
472
- /** @deprecated Renamed to customers. https://www.blindpay.com/changelog/2026-06-04-customers-rename */
473
- type RequestLimitIncreaseInput = {
474
- receiver_id: string;
475
- daily: number;
476
- monthly: number;
477
- per_transaction: number;
478
- supporting_document_file: string;
479
- supporting_document_type: LimitIncreaseRequestSupportingDocumentType;
480
- };
481
- /** @deprecated Renamed to customers. https://www.blindpay.com/changelog/2026-06-04-customers-rename */
482
- type RequestLimitIncreaseResponse = {
483
- id: string;
484
- };
485
- /**
486
- * @deprecated Use `customers` instead. The `/receivers` API surface is being
487
- * renamed to `/customers` and will be removed in v4.0.0.
488
- * https://www.blindpay.com/changelog/2026-06-04-customers-rename
489
- */
490
- declare function createReceiversResource(instanceId: string, client: InternalApiClient): {
491
- /** @deprecated Use `customers.list` instead. https://www.blindpay.com/changelog/2026-06-04-customers-rename */
492
- list(params?: ListReceiversInput): Promise<BlindpayApiResponse<ListReceiversResponse>>;
493
- /** @deprecated Use `customers.createIndividualWithStandardKYC` instead. https://www.blindpay.com/changelog/2026-06-04-customers-rename */
494
- createIndividualWithStandardKYC(data: CreateIndividualWithStandardKYCInput): Promise<BlindpayApiResponse<CreateIndividualWithStandardKYCResponse>>;
495
- /** @deprecated Use `customers.createIndividualWithEnhancedKYC` instead. https://www.blindpay.com/changelog/2026-06-04-customers-rename */
496
- createIndividualWithEnhancedKYC(data: CreateIndividualWithEnhancedKYCInput): Promise<BlindpayApiResponse<CreateIndividualWithEnhancedKYCResponse>>;
497
- /** @deprecated Use `customers.createBusinessWithStandardKYB` instead. https://www.blindpay.com/changelog/2026-06-04-customers-rename */
498
- createBusinessWithStandardKYB(data: CreateBusinessWithStandardKYBInput): Promise<BlindpayApiResponse<CreateBusinessWithStandardKYBResponse>>;
499
- /** @deprecated Use `customers.get` instead. https://www.blindpay.com/changelog/2026-06-04-customers-rename */
500
- get(receiver_id: GetReceiverInput): Promise<BlindpayApiResponse<GetReceiverResponse>>;
501
- /** @deprecated Use `customers.update` instead. https://www.blindpay.com/changelog/2026-06-04-customers-rename */
502
- update({ receiver_id, ...data }: UpdateReceiverInput): Promise<BlindpayApiResponse<void>>;
503
- /** @deprecated Use `customers.delete` instead. https://www.blindpay.com/changelog/2026-06-04-customers-rename */
504
- delete(receiver_id: DeleteReceiverInput): Promise<BlindpayApiResponse<void>>;
505
- /** @deprecated Use `customers.getLimits` instead. https://www.blindpay.com/changelog/2026-06-04-customers-rename */
506
- getLimits(receiver_id: GetReceiverLimitsInput): Promise<BlindpayApiResponse<GetReceiverLimitsResponse>>;
507
- /** @deprecated Use `customers.getLimitIncreaseRequests` instead. https://www.blindpay.com/changelog/2026-06-04-customers-rename */
508
- getLimitIncreaseRequests(receiver_id: GetLimitIncreaseRequestsInput): Promise<BlindpayApiResponse<GetLimitIncreaseRequestsResponse>>;
509
- /** @deprecated Use `customers.requestLimitIncrease` instead. https://www.blindpay.com/changelog/2026-06-04-customers-rename */
510
- requestLimitIncrease({ receiver_id, ...data }: RequestLimitIncreaseInput): Promise<BlindpayApiResponse<RequestLimitIncreaseResponse>>;
511
- };
512
-
513
- export { type AmlHits, type AmlStatus, type BusinessWithStandardKYB, type CreateBusinessWithStandardKYBInput, type CreateBusinessWithStandardKYBResponse, type CreateIndividualWithEnhancedKYCInput, type CreateIndividualWithEnhancedKYCResponse, type CreateIndividualWithStandardKYCInput, type CreateIndividualWithStandardKYCResponse, type DeleteReceiverInput, type FraudWarning, type GetLimitIncreaseRequestsInput, type GetLimitIncreaseRequestsResponse, type GetReceiverInput, type GetReceiverLimitsInput, type GetReceiverLimitsResponse, type GetReceiverResponse, type IdentificationDocument, type IndividualWithEnhancedKYC, type IndividualWithStandardKYC, type KycType, type LimitIncreaseRequestStatus, type LimitIncreaseRequestSupportingDocumentType, type ListReceiversInput, type ListReceiversResponse, type Owner, type OwnerRole, type OwnerTaxType, type ProofOfAddressDocType, type RequestLimitIncreaseInput, type RequestLimitIncreaseResponse, type UpdateReceiverInput, createReceiversResource };
@@ -1,118 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __getOwnPropSymbols = Object.getOwnPropertySymbols;
6
- var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __propIsEnum = Object.prototype.propertyIsEnumerable;
8
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
9
- var __spreadValues = (a, b) => {
10
- for (var prop in b || (b = {}))
11
- if (__hasOwnProp.call(b, prop))
12
- __defNormalProp(a, prop, b[prop]);
13
- if (__getOwnPropSymbols)
14
- for (var prop of __getOwnPropSymbols(b)) {
15
- if (__propIsEnum.call(b, prop))
16
- __defNormalProp(a, prop, b[prop]);
17
- }
18
- return a;
19
- };
20
- var __objRest = (source, exclude) => {
21
- var target = {};
22
- for (var prop in source)
23
- if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
24
- target[prop] = source[prop];
25
- if (source != null && __getOwnPropSymbols)
26
- for (var prop of __getOwnPropSymbols(source)) {
27
- if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
28
- target[prop] = source[prop];
29
- }
30
- return target;
31
- };
32
- var __export = (target, all) => {
33
- for (var name in all)
34
- __defProp(target, name, { get: all[name], enumerable: true });
35
- };
36
- var __copyProps = (to, from, except, desc) => {
37
- if (from && typeof from === "object" || typeof from === "function") {
38
- for (let key of __getOwnPropNames(from))
39
- if (!__hasOwnProp.call(to, key) && key !== except)
40
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
41
- }
42
- return to;
43
- };
44
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
45
-
46
- // src/resources/receivers/index.ts
47
- var receivers_exports = {};
48
- __export(receivers_exports, {
49
- createReceiversResource: () => createReceiversResource
50
- });
51
- module.exports = __toCommonJS(receivers_exports);
52
- function createReceiversResource(instanceId, client) {
53
- return {
54
- /** @deprecated Use `customers.list` instead. https://www.blindpay.com/changelog/2026-06-04-customers-rename */
55
- list(params) {
56
- const queryParams = params ? `?${new URLSearchParams(params)}` : "";
57
- return client.get(`/instances/${instanceId}/receivers${queryParams}`);
58
- },
59
- /** @deprecated Use `customers.createIndividualWithStandardKYC` instead. https://www.blindpay.com/changelog/2026-06-04-customers-rename */
60
- createIndividualWithStandardKYC(data) {
61
- return client.post(`/instances/${instanceId}/receivers`, __spreadValues({
62
- kyc_type: "standard",
63
- type: "individual"
64
- }, data));
65
- },
66
- /** @deprecated Use `customers.createIndividualWithEnhancedKYC` instead. https://www.blindpay.com/changelog/2026-06-04-customers-rename */
67
- createIndividualWithEnhancedKYC(data) {
68
- return client.post(`/instances/${instanceId}/receivers`, __spreadValues({
69
- kyc_type: "enhanced",
70
- type: "individual"
71
- }, data));
72
- },
73
- /** @deprecated Use `customers.createBusinessWithStandardKYB` instead. https://www.blindpay.com/changelog/2026-06-04-customers-rename */
74
- createBusinessWithStandardKYB(data) {
75
- return client.post(`/instances/${instanceId}/receivers`, __spreadValues({
76
- kyc_type: "standard",
77
- type: "business"
78
- }, data));
79
- },
80
- /** @deprecated Use `customers.get` instead. https://www.blindpay.com/changelog/2026-06-04-customers-rename */
81
- get(receiver_id) {
82
- return client.get(`/instances/${instanceId}/receivers/${receiver_id}`);
83
- },
84
- /** @deprecated Use `customers.update` instead. https://www.blindpay.com/changelog/2026-06-04-customers-rename */
85
- update(_a) {
86
- var _b = _a, { receiver_id } = _b, data = __objRest(_b, ["receiver_id"]);
87
- return client.put(`/instances/${instanceId}/receivers/${receiver_id}`, data);
88
- },
89
- /** @deprecated Use `customers.delete` instead. https://www.blindpay.com/changelog/2026-06-04-customers-rename */
90
- delete(receiver_id) {
91
- return client.delete(`/instances/${instanceId}/receivers/${receiver_id}`);
92
- },
93
- /** @deprecated Use `customers.getLimits` instead. https://www.blindpay.com/changelog/2026-06-04-customers-rename */
94
- getLimits(receiver_id) {
95
- return client.get(`/instances/${instanceId}/limits/receivers/${receiver_id}`);
96
- },
97
- /** @deprecated Use `customers.getLimitIncreaseRequests` instead. https://www.blindpay.com/changelog/2026-06-04-customers-rename */
98
- getLimitIncreaseRequests(receiver_id) {
99
- return client.get(`/instances/${instanceId}/receivers/${receiver_id}/limit-increase`);
100
- },
101
- /** @deprecated Use `customers.requestLimitIncrease` instead. https://www.blindpay.com/changelog/2026-06-04-customers-rename */
102
- requestLimitIncrease(_c) {
103
- var _d = _c, {
104
- receiver_id
105
- } = _d, data = __objRest(_d, [
106
- "receiver_id"
107
- ]);
108
- return client.post(
109
- `/instances/${instanceId}/receivers/${receiver_id}/limit-increase`,
110
- data
111
- );
112
- }
113
- };
114
- }
115
- // Annotate the CommonJS export names for ESM import in node:
116
- 0 && (module.exports = {
117
- createReceiversResource
118
- });
@@ -1,9 +0,0 @@
1
- import {
2
- createReceiversResource,
3
- init_receivers
4
- } from "../../chunk-NAGY6BLL.mjs";
5
- import "../../chunk-OBKEW4AQ.mjs";
6
- init_receivers();
7
- export {
8
- createReceiversResource
9
- };
@@ -1,2 +0,0 @@
1
-
2
- export { }
@@ -1,2 +0,0 @@
1
-
2
- export { }