@blindpay/node 3.10.0 → 3.11.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 (100) hide show
  1. package/dist/{api-client-BWImXDBx.d.ts → api-client-5N_7-zad.d.ts} +1 -1
  2. package/dist/{api-client-L9eGwH1U.d.mts → api-client-DYqrodZr.d.mts} +1 -1
  3. package/dist/{chunk-7PWF4J3Z.mjs → chunk-IM2L5L4B.mjs} +20 -12
  4. package/dist/{chunk-YIZJM2GU.mjs → chunk-NAGY6BLL.mjs} +10 -0
  5. package/dist/chunk-SLKVEQUY.mjs +76 -0
  6. package/dist/{index.d-DK8eD9f3.d.mts → index.d-CGeWvXXq.d.mts} +1 -1
  7. package/dist/{index.d-DK8eD9f3.d.ts → index.d-CGeWvXXq.d.ts} +1 -1
  8. package/dist/index.d.mts +15 -3
  9. package/dist/index.d.ts +15 -3
  10. package/dist/index.js +78 -1
  11. package/dist/index.mjs +16 -10
  12. package/dist/resources/api-keys/api-keys.test.js +76 -1
  13. package/dist/resources/api-keys/api-keys.test.mjs +6 -5
  14. package/dist/resources/api-keys/index.d.mts +2 -2
  15. package/dist/resources/api-keys/index.d.ts +2 -2
  16. package/dist/resources/available/available.test.js +76 -1
  17. package/dist/resources/available/available.test.mjs +6 -5
  18. package/dist/resources/available/index.d.mts +2 -2
  19. package/dist/resources/available/index.d.ts +2 -2
  20. package/dist/resources/bank-accounts/bank-accounts.test.js +76 -1
  21. package/dist/resources/bank-accounts/bank-accounts.test.mjs +6 -5
  22. package/dist/resources/bank-accounts/index.d.mts +2 -2
  23. package/dist/resources/bank-accounts/index.d.ts +2 -2
  24. package/dist/resources/customers/customers.test.d.mts +2 -0
  25. package/dist/resources/customers/customers.test.d.ts +2 -0
  26. package/dist/resources/customers/customers.test.js +20510 -0
  27. package/dist/resources/customers/customers.test.mjs +652 -0
  28. package/dist/resources/customers/index.d.mts +466 -0
  29. package/dist/resources/customers/index.d.ts +466 -0
  30. package/dist/resources/customers/index.js +115 -0
  31. package/dist/resources/customers/index.mjs +9 -0
  32. package/dist/resources/fees/fees.test.js +76 -1
  33. package/dist/resources/fees/fees.test.mjs +6 -5
  34. package/dist/resources/fees/index.d.mts +2 -2
  35. package/dist/resources/fees/index.d.ts +2 -2
  36. package/dist/resources/instances/index.d.mts +2 -2
  37. package/dist/resources/instances/index.d.ts +2 -2
  38. package/dist/resources/instances/instances.test.js +76 -1
  39. package/dist/resources/instances/instances.test.mjs +6 -5
  40. package/dist/resources/partner-fees/index.d.mts +2 -2
  41. package/dist/resources/partner-fees/index.d.ts +2 -2
  42. package/dist/resources/partner-fees/partner-fees.test.js +76 -1
  43. package/dist/resources/partner-fees/partner-fees.test.mjs +6 -5
  44. package/dist/resources/payins/index.d.mts +2 -2
  45. package/dist/resources/payins/index.d.ts +2 -2
  46. package/dist/resources/payins/payins-quotes.test.js +76 -1
  47. package/dist/resources/payins/payins-quotes.test.mjs +6 -5
  48. package/dist/resources/payins/payins.test.js +76 -1
  49. package/dist/resources/payins/payins.test.mjs +6 -5
  50. package/dist/resources/payins/quotes.d.mts +2 -2
  51. package/dist/resources/payins/quotes.d.ts +2 -2
  52. package/dist/resources/payouts/index.d.mts +2 -2
  53. package/dist/resources/payouts/index.d.ts +2 -2
  54. package/dist/resources/payouts/payouts.test.js +76 -1
  55. package/dist/resources/payouts/payouts.test.mjs +6 -5
  56. package/dist/resources/quotes/index.d.mts +2 -2
  57. package/dist/resources/quotes/index.d.ts +2 -2
  58. package/dist/resources/quotes/quotes.test.js +76 -1
  59. package/dist/resources/quotes/quotes.test.mjs +6 -5
  60. package/dist/resources/receivers/index.d.mts +50 -4
  61. package/dist/resources/receivers/index.d.ts +50 -4
  62. package/dist/resources/receivers/index.js +10 -0
  63. package/dist/resources/receivers/index.mjs +1 -1
  64. package/dist/resources/receivers/receivers.test.js +76 -1
  65. package/dist/resources/receivers/receivers.test.mjs +6 -5
  66. package/dist/resources/terms-of-service/index.d.mts +2 -2
  67. package/dist/resources/terms-of-service/index.d.ts +2 -2
  68. package/dist/resources/terms-of-service/terms-of-service.test.js +76 -1
  69. package/dist/resources/terms-of-service/terms-of-service.test.mjs +6 -5
  70. package/dist/resources/transfers/index.d.mts +2 -2
  71. package/dist/resources/transfers/index.d.ts +2 -2
  72. package/dist/resources/transfers/transfers.test.js +76 -1
  73. package/dist/resources/transfers/transfers.test.mjs +6 -5
  74. package/dist/resources/upload/index.d.mts +1 -1
  75. package/dist/resources/upload/index.d.ts +1 -1
  76. package/dist/resources/upload/upload.test.js +76 -1
  77. package/dist/resources/upload/upload.test.mjs +6 -5
  78. package/dist/resources/virtual-accounts/index.d.mts +2 -2
  79. package/dist/resources/virtual-accounts/index.d.ts +2 -2
  80. package/dist/resources/virtual-accounts/virtual-accounts.test.js +76 -1
  81. package/dist/resources/virtual-accounts/virtual-accounts.test.mjs +6 -5
  82. package/dist/resources/wallets/blockchain.d.mts +2 -2
  83. package/dist/resources/wallets/blockchain.d.ts +2 -2
  84. package/dist/resources/wallets/blockchain.test.js +76 -1
  85. package/dist/resources/wallets/blockchain.test.mjs +6 -5
  86. package/dist/resources/wallets/custodial.d.mts +2 -2
  87. package/dist/resources/wallets/custodial.d.ts +2 -2
  88. package/dist/resources/wallets/custodial.test.js +76 -1
  89. package/dist/resources/wallets/custodial.test.mjs +6 -5
  90. package/dist/resources/wallets/offramp.d.mts +2 -2
  91. package/dist/resources/wallets/offramp.d.ts +2 -2
  92. package/dist/resources/wallets/offramp.test.js +76 -1
  93. package/dist/resources/wallets/offramp.test.mjs +6 -5
  94. package/dist/resources/webhooks/index.d.mts +2 -2
  95. package/dist/resources/webhooks/index.d.ts +2 -2
  96. package/dist/resources/webhooks/webhooks.test.js +76 -1
  97. package/dist/resources/webhooks/webhooks.test.mjs +6 -5
  98. package/dist/strict-omit-ByJhzKNC.d.mts +3 -0
  99. package/dist/strict-omit-ByJhzKNC.d.ts +3 -0
  100. package/package.json +1 -1
@@ -0,0 +1,466 @@
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
+ type CustomerProofOfAddressDocType = "UTILITY_BILL" | "BANK_STATEMENT" | "RENTAL_AGREEMENT" | "TAX_DOCUMENT" | "GOVERNMENT_CORRESPONDENCE";
6
+ type CustomerIdentificationDocument = "PASSPORT" | "ID_CARD" | "DRIVERS";
7
+ type CustomerAmlStatus = "clear" | "hit" | "error";
8
+ type CustomerAmlHits = {
9
+ has_sanction_match: boolean;
10
+ has_pep_match: boolean;
11
+ has_watchlist_match: boolean;
12
+ has_crimelist_match: boolean;
13
+ has_adversemedia_match: boolean;
14
+ };
15
+ type CustomerFraudWarning = {
16
+ id: string | null;
17
+ name: string | null;
18
+ operation: string | null;
19
+ score: number | null;
20
+ };
21
+ type CustomerOwnerTaxType = "SSN" | "ITIN";
22
+ type CustomerKycType = "light" | "standard" | "enhanced";
23
+ type CustomerOwnerRole = "beneficial_controlling" | "beneficial_owner" | "controlling_person";
24
+ type CustomerOwner = {
25
+ id: string;
26
+ role: CustomerOwnerRole;
27
+ first_name: string;
28
+ last_name: string;
29
+ date_of_birth: string;
30
+ tax_id: string;
31
+ address_line_1: string;
32
+ address_line_2: string | null;
33
+ city: string;
34
+ state_province_region: string;
35
+ country: Country;
36
+ postal_code: string;
37
+ id_doc_country: Country;
38
+ id_doc_type: CustomerIdentificationDocument;
39
+ id_doc_front_file: string;
40
+ id_doc_back_file: string | null;
41
+ proof_of_address_doc_type: CustomerProofOfAddressDocType;
42
+ proof_of_address_doc_file: string | null;
43
+ ownership_percentage: number | null;
44
+ title: string | null;
45
+ tax_type?: CustomerOwnerTaxType | null;
46
+ instance_id?: string;
47
+ customer_id?: string;
48
+ };
49
+ type CustomerIndividualWithStandardKYC = {
50
+ id: string;
51
+ is_tos_accepted: boolean;
52
+ type: Extract<AccountClass, "individual">;
53
+ kyc_type: Extract<CustomerKycType, "standard">;
54
+ kyc_status: KycStatus;
55
+ kyc_warnings: Array<{
56
+ code: string | null;
57
+ message: string | null;
58
+ resolution_status: string | null;
59
+ warning_id: string | null;
60
+ }> | null;
61
+ email: string;
62
+ tax_id: string;
63
+ address_line_1: string;
64
+ address_line_2?: string | null;
65
+ city: string;
66
+ state_province_region: string;
67
+ country: Country;
68
+ postal_code: string;
69
+ ip_address: string | null;
70
+ image_url: string | null;
71
+ phone_number: string;
72
+ proof_of_address_doc_type: CustomerProofOfAddressDocType;
73
+ proof_of_address_doc_file: string;
74
+ first_name: string;
75
+ last_name: string;
76
+ date_of_birth: string;
77
+ id_doc_country: Country;
78
+ id_doc_type: CustomerIdentificationDocument;
79
+ id_doc_front_file: string;
80
+ id_doc_back_file: string;
81
+ aiprise_validation_key: string;
82
+ instance_id: string;
83
+ tos_id: string | null;
84
+ created_at: string;
85
+ updated_at: string;
86
+ limit: {
87
+ per_transaction: number;
88
+ daily: number;
89
+ monthly: number;
90
+ };
91
+ fraud_warnings?: CustomerFraudWarning[] | null;
92
+ aml_status?: CustomerAmlStatus | null;
93
+ aml_hits?: CustomerAmlHits | null;
94
+ account_purpose?: AccountPurpose | null;
95
+ account_purpose_other?: string | null;
96
+ occupation?: string | null;
97
+ external_id?: string | null;
98
+ is_fbo?: boolean | null;
99
+ selfie_file?: string | null;
100
+ source_of_funds_doc_type?: SourceOfFundsDocType | null;
101
+ source_of_funds_doc_file?: string | null;
102
+ business_description?: string | null;
103
+ business_industry?: BusinessIndustry | null;
104
+ estimated_annual_revenue?: EstimatedAnnualRevenue | null;
105
+ source_of_wealth?: SourceOfWealth | null;
106
+ recipient_relationship?: RecipientRelationship | null;
107
+ sole_proprietor_doc_type?: SoleProprietorDocType | null;
108
+ publicly_traded?: boolean | null;
109
+ };
110
+ type CustomerIndividualWithEnhancedKYC = {
111
+ id: string;
112
+ is_tos_accepted: boolean;
113
+ type: Extract<AccountClass, "individual">;
114
+ kyc_type: Extract<CustomerKycType, "enhanced">;
115
+ kyc_status: KycStatus;
116
+ kyc_warnings: Array<{
117
+ code: string | null;
118
+ message: string | null;
119
+ resolution_status: string | null;
120
+ warning_id: string | null;
121
+ }> | null;
122
+ email: string;
123
+ tax_id: string;
124
+ address_line_1: string;
125
+ address_line_2?: string | null;
126
+ city: string;
127
+ state_province_region: string;
128
+ country: Country;
129
+ postal_code: string;
130
+ ip_address: string | null;
131
+ image_url: string | null;
132
+ phone_number: string | null;
133
+ proof_of_address_doc_type: CustomerProofOfAddressDocType;
134
+ proof_of_address_doc_file: string;
135
+ first_name: string;
136
+ last_name: string;
137
+ date_of_birth: string;
138
+ id_doc_country: Country;
139
+ id_doc_type: CustomerIdentificationDocument;
140
+ id_doc_front_file: string;
141
+ id_doc_back_file: string | null;
142
+ aiprise_validation_key: string;
143
+ instance_id: string;
144
+ source_of_funds_doc_type: string;
145
+ source_of_funds_doc_file: string;
146
+ individual_holding_doc_front_file: string;
147
+ purpose_of_transactions: PurposeOfTransactions;
148
+ purpose_of_transactions_explanation: string | null;
149
+ tos_id: string | null;
150
+ created_at: string;
151
+ updated_at: string;
152
+ limit: {
153
+ per_transaction: number;
154
+ daily: number;
155
+ monthly: number;
156
+ };
157
+ fraud_warnings?: CustomerFraudWarning[] | null;
158
+ aml_status?: CustomerAmlStatus | null;
159
+ aml_hits?: CustomerAmlHits | null;
160
+ account_purpose?: AccountPurpose | null;
161
+ account_purpose_other?: string | null;
162
+ occupation?: string | null;
163
+ external_id?: string | null;
164
+ is_fbo?: boolean | null;
165
+ selfie_file?: string | null;
166
+ business_description?: string | null;
167
+ business_industry?: BusinessIndustry | null;
168
+ estimated_annual_revenue?: EstimatedAnnualRevenue | null;
169
+ source_of_wealth?: SourceOfWealth | null;
170
+ recipient_relationship?: RecipientRelationship | null;
171
+ sole_proprietor_doc_type?: SoleProprietorDocType | null;
172
+ publicly_traded?: boolean | null;
173
+ };
174
+ type CustomerBusinessWithStandardKYB = {
175
+ id: string;
176
+ is_tos_accepted: boolean;
177
+ is_fbo: boolean;
178
+ type: Extract<AccountClass, "business">;
179
+ kyc_type: Extract<CustomerKycType, "standard">;
180
+ kyc_status: KycStatus;
181
+ kyc_warnings: Array<{
182
+ code: string | null;
183
+ message: string | null;
184
+ resolution_status: string | null;
185
+ warning_id: string | null;
186
+ }> | null;
187
+ email: string;
188
+ tax_id: string;
189
+ address_line_1: string;
190
+ address_line_2?: string | null;
191
+ city: string;
192
+ state_province_region: string;
193
+ country: Country;
194
+ postal_code: string;
195
+ ip_address: string | null;
196
+ image_url: string | null;
197
+ phone_number: string | null;
198
+ proof_of_address_doc_type: CustomerProofOfAddressDocType;
199
+ proof_of_address_doc_file: string;
200
+ legal_name: string;
201
+ alternate_name: string | null;
202
+ formation_date: string;
203
+ website: string | null;
204
+ owners: CustomerOwner[];
205
+ incorporation_doc_file: string;
206
+ proof_of_ownership_doc_file: string;
207
+ external_id: string | null;
208
+ instance_id: string;
209
+ tos_id: string | null;
210
+ aiprise_validation_key: string;
211
+ created_at: string;
212
+ updated_at: string;
213
+ limit: {
214
+ per_transaction: number;
215
+ daily: number;
216
+ monthly: number;
217
+ };
218
+ fraud_warnings?: CustomerFraudWarning[] | null;
219
+ aml_status?: CustomerAmlStatus | null;
220
+ aml_hits?: CustomerAmlHits | null;
221
+ account_purpose?: AccountPurpose | null;
222
+ account_purpose_other?: string | null;
223
+ occupation?: string | null;
224
+ selfie_file?: string | null;
225
+ source_of_funds_doc_type?: SourceOfFundsDocType | null;
226
+ source_of_funds_doc_file?: string | null;
227
+ business_description?: string | null;
228
+ business_industry?: BusinessIndustry | null;
229
+ estimated_annual_revenue?: EstimatedAnnualRevenue | null;
230
+ source_of_wealth?: SourceOfWealth | null;
231
+ recipient_relationship?: RecipientRelationship | null;
232
+ sole_proprietor_doc_type?: SoleProprietorDocType | null;
233
+ };
234
+ type CreateCustomerIndividualWithStandardKYCInput = {
235
+ country: Country;
236
+ email: string;
237
+ account_purpose?: AccountPurpose | null;
238
+ address_line_1?: string | null;
239
+ address_line_2?: string | null;
240
+ city?: string | null;
241
+ date_of_birth?: string | null;
242
+ external_id?: string | null;
243
+ first_name?: string | null;
244
+ id_doc_back_file?: string | null;
245
+ id_doc_country?: Country | null;
246
+ id_doc_front_file?: string | null;
247
+ id_doc_type?: CustomerIdentificationDocument | null;
248
+ image_url?: string | null;
249
+ ip_address?: string | null;
250
+ last_name?: string | null;
251
+ phone_number?: string | null;
252
+ postal_code?: string | null;
253
+ proof_of_address_doc_file?: string | null;
254
+ proof_of_address_doc_type?: CustomerProofOfAddressDocType | null;
255
+ selfie_file?: string | null;
256
+ source_of_funds_doc_file?: string | null;
257
+ source_of_funds_doc_type?: SourceOfFundsDocType | null;
258
+ source_of_wealth?: SourceOfWealth | null;
259
+ state_province_region?: string | null;
260
+ tax_id?: string | null;
261
+ tos_id?: string | null;
262
+ account_purpose_other?: string | null;
263
+ occupation?: string | null;
264
+ recipient_relationship?: RecipientRelationship | null;
265
+ sole_proprietor_doc_type?: SoleProprietorDocType | null;
266
+ };
267
+ type CreateCustomerIndividualWithStandardKYCResponse = {
268
+ id: string;
269
+ };
270
+ type CreateCustomerIndividualWithEnhancedKYCInput = {
271
+ country: Country;
272
+ email: string;
273
+ account_purpose?: AccountPurpose | null;
274
+ address_line_1?: string | null;
275
+ address_line_2?: string | null;
276
+ city?: string | null;
277
+ date_of_birth?: string | null;
278
+ external_id?: string | null;
279
+ first_name?: string | null;
280
+ id_doc_back_file?: string | null;
281
+ id_doc_country?: Country | null;
282
+ id_doc_front_file?: string | null;
283
+ id_doc_type?: CustomerIdentificationDocument | null;
284
+ image_url?: string | null;
285
+ ip_address?: string | null;
286
+ last_name?: string | null;
287
+ phone_number?: string | null;
288
+ postal_code?: string | null;
289
+ proof_of_address_doc_file?: string | null;
290
+ proof_of_address_doc_type?: CustomerProofOfAddressDocType | null;
291
+ purpose_of_transactions?: PurposeOfTransactions | null;
292
+ purpose_of_transactions_explanation?: string | null;
293
+ selfie_file?: string | null;
294
+ source_of_funds_doc_file?: string | null;
295
+ source_of_funds_doc_type?: SourceOfFundsDocType | null;
296
+ source_of_wealth?: SourceOfWealth | null;
297
+ state_province_region?: string | null;
298
+ tax_id?: string | null;
299
+ tos_id?: string | null;
300
+ account_purpose_other?: string | null;
301
+ occupation?: string | null;
302
+ recipient_relationship?: RecipientRelationship | null;
303
+ sole_proprietor_doc_type?: SoleProprietorDocType | null;
304
+ };
305
+ type CreateCustomerIndividualWithEnhancedKYCResponse = {
306
+ id: string;
307
+ };
308
+ type CreateCustomerBusinessWithStandardKYBInput = {
309
+ country: Country;
310
+ email: string;
311
+ account_purpose?: AccountPurpose | null;
312
+ address_line_1?: string | null;
313
+ address_line_2?: string | null;
314
+ alternate_name?: string | null;
315
+ business_description?: string | null;
316
+ business_industry?: BusinessIndustry | null;
317
+ business_type?: BusinessType | null;
318
+ city?: string | null;
319
+ estimated_annual_revenue?: EstimatedAnnualRevenue | null;
320
+ external_id?: string | null;
321
+ formation_date?: string | null;
322
+ image_url?: string | null;
323
+ incorporation_doc_file?: string | null;
324
+ ip_address?: string | null;
325
+ legal_name?: string | null;
326
+ owners?: Array<StrictOmit<CustomerOwner, "id">> | null;
327
+ phone_number?: string | null;
328
+ postal_code?: string | null;
329
+ proof_of_address_doc_file?: string | null;
330
+ proof_of_address_doc_type?: CustomerProofOfAddressDocType | null;
331
+ proof_of_ownership_doc_file?: string | null;
332
+ publicly_traded?: boolean | null;
333
+ source_of_funds_doc_file?: string | null;
334
+ source_of_funds_doc_type?: SourceOfFundsDocType | null;
335
+ source_of_wealth?: SourceOfWealth | null;
336
+ state_province_region?: string | null;
337
+ tax_id?: string | null;
338
+ tos_id?: string | null;
339
+ website?: string | null;
340
+ account_purpose_other?: string | null;
341
+ occupation?: string | null;
342
+ recipient_relationship?: RecipientRelationship | null;
343
+ sole_proprietor_doc_type?: SoleProprietorDocType | null;
344
+ };
345
+ type CreateCustomerBusinessWithStandardKYBResponse = {
346
+ id: string;
347
+ };
348
+ type ListCustomersInput = PaginationParams & {
349
+ full_name?: string;
350
+ customer_name?: string;
351
+ status?: string;
352
+ customer_id?: string;
353
+ bank_account_id?: string;
354
+ country?: Country;
355
+ };
356
+ type ListCustomersResponse = {
357
+ data: Array<CustomerIndividualWithStandardKYC | CustomerIndividualWithEnhancedKYC | CustomerBusinessWithStandardKYB>;
358
+ pagination: PaginationMetadata;
359
+ };
360
+ type GetCustomerInput = string;
361
+ type GetCustomerResponse = CustomerIndividualWithStandardKYC | CustomerIndividualWithEnhancedKYC | CustomerBusinessWithStandardKYB;
362
+ type UpdateCustomerInput = {
363
+ customer_id: string;
364
+ account_purpose?: AccountPurpose | null;
365
+ address_line_1?: string;
366
+ address_line_2?: string;
367
+ alternate_name?: string;
368
+ business_description?: string;
369
+ business_industry?: BusinessIndustry | null;
370
+ business_type?: BusinessType | null;
371
+ city?: string;
372
+ country?: Country;
373
+ date_of_birth?: string;
374
+ email?: string;
375
+ estimated_annual_revenue?: EstimatedAnnualRevenue | null;
376
+ external_id?: string;
377
+ first_name?: string;
378
+ formation_date?: string;
379
+ id_doc_back_file?: string;
380
+ id_doc_country?: Country;
381
+ id_doc_front_file?: string;
382
+ id_doc_type?: CustomerIdentificationDocument;
383
+ image_url?: string;
384
+ incorporation_doc_file?: string;
385
+ ip_address?: string;
386
+ last_name?: string;
387
+ legal_name?: string;
388
+ owners?: Array<StrictOmit<CustomerOwner, "id">>;
389
+ phone_number?: string;
390
+ postal_code?: string;
391
+ proof_of_address_doc_file?: string;
392
+ proof_of_address_doc_type?: CustomerProofOfAddressDocType;
393
+ proof_of_ownership_doc_file?: string;
394
+ publicly_traded?: boolean | null;
395
+ purpose_of_transactions?: PurposeOfTransactions;
396
+ purpose_of_transactions_explanation?: string;
397
+ selfie_file?: string;
398
+ source_of_funds_doc_file?: string;
399
+ source_of_funds_doc_type?: SourceOfFundsDocType;
400
+ source_of_wealth?: SourceOfWealth | null;
401
+ state_province_region?: string;
402
+ tax_id?: string;
403
+ tos_id?: string;
404
+ website?: string;
405
+ account_purpose_other?: string | null;
406
+ occupation?: string | null;
407
+ recipient_relationship?: RecipientRelationship | null;
408
+ sole_proprietor_doc_type?: SoleProprietorDocType | null;
409
+ };
410
+ type DeleteCustomerInput = string;
411
+ type GetCustomerLimitsInput = string;
412
+ type GetCustomerLimitsResponse = {
413
+ limits: {
414
+ payin: {
415
+ daily: number;
416
+ monthly: number;
417
+ };
418
+ payout: {
419
+ daily: number;
420
+ monthly: number;
421
+ };
422
+ };
423
+ };
424
+ type GetCustomerLimitIncreaseRequestsInput = string;
425
+ type CustomerLimitIncreaseRequestStatus = "in_review" | "approved" | "rejected";
426
+ type CustomerLimitIncreaseRequestSupportingDocumentType = "individual_bank_statement" | "individual_tax_return" | "individual_proof_of_income" | "business_bank_statement" | "business_financial_statements" | "business_tax_return";
427
+ type GetCustomerLimitIncreaseRequestsResponse = Array<{
428
+ id: string;
429
+ customer_id: string;
430
+ status: CustomerLimitIncreaseRequestStatus;
431
+ daily: number;
432
+ monthly: number;
433
+ per_transaction: number;
434
+ supporting_document_file: string;
435
+ supporting_document_type: CustomerLimitIncreaseRequestSupportingDocumentType;
436
+ created_at: string;
437
+ updated_at: string;
438
+ approved_per_transaction?: number | null;
439
+ approved_daily?: number | null;
440
+ approved_monthly?: number | null;
441
+ }>;
442
+ type RequestCustomerLimitIncreaseInput = {
443
+ customer_id: string;
444
+ daily: number;
445
+ monthly: number;
446
+ per_transaction: number;
447
+ supporting_document_file: string;
448
+ supporting_document_type: CustomerLimitIncreaseRequestSupportingDocumentType;
449
+ };
450
+ type RequestCustomerLimitIncreaseResponse = {
451
+ id: string;
452
+ };
453
+ declare function createCustomersResource(instanceId: string, client: InternalApiClient): {
454
+ list(params?: ListCustomersInput): Promise<BlindpayApiResponse<ListCustomersResponse>>;
455
+ createIndividualWithStandardKYC(data: CreateCustomerIndividualWithStandardKYCInput): Promise<BlindpayApiResponse<CreateCustomerIndividualWithStandardKYCResponse>>;
456
+ createIndividualWithEnhancedKYC(data: CreateCustomerIndividualWithEnhancedKYCInput): Promise<BlindpayApiResponse<CreateCustomerIndividualWithEnhancedKYCResponse>>;
457
+ createBusinessWithStandardKYB(data: CreateCustomerBusinessWithStandardKYBInput): Promise<BlindpayApiResponse<CreateCustomerBusinessWithStandardKYBResponse>>;
458
+ get(customer_id: GetCustomerInput): Promise<BlindpayApiResponse<GetCustomerResponse>>;
459
+ update({ customer_id, ...data }: UpdateCustomerInput): Promise<BlindpayApiResponse<void>>;
460
+ delete(customer_id: DeleteCustomerInput): Promise<BlindpayApiResponse<void>>;
461
+ getLimits(customer_id: GetCustomerLimitsInput): Promise<BlindpayApiResponse<GetCustomerLimitsResponse>>;
462
+ getLimitIncreaseRequests(customer_id: GetCustomerLimitIncreaseRequestsInput): Promise<BlindpayApiResponse<GetCustomerLimitIncreaseRequestsResponse>>;
463
+ requestLimitIncrease({ customer_id, ...data }: RequestCustomerLimitIncreaseInput): Promise<BlindpayApiResponse<RequestCustomerLimitIncreaseResponse>>;
464
+ };
465
+
466
+ export { type CreateCustomerBusinessWithStandardKYBInput, type CreateCustomerBusinessWithStandardKYBResponse, type CreateCustomerIndividualWithEnhancedKYCInput, type CreateCustomerIndividualWithEnhancedKYCResponse, type CreateCustomerIndividualWithStandardKYCInput, type CreateCustomerIndividualWithStandardKYCResponse, type CustomerAmlHits, type CustomerAmlStatus, type CustomerBusinessWithStandardKYB, type CustomerFraudWarning, type CustomerIdentificationDocument, type CustomerIndividualWithEnhancedKYC, type CustomerIndividualWithStandardKYC, type CustomerKycType, type CustomerLimitIncreaseRequestStatus, type CustomerLimitIncreaseRequestSupportingDocumentType, type CustomerOwner, type CustomerOwnerRole, type CustomerOwnerTaxType, type CustomerProofOfAddressDocType, type DeleteCustomerInput, type GetCustomerInput, type GetCustomerLimitIncreaseRequestsInput, type GetCustomerLimitIncreaseRequestsResponse, type GetCustomerLimitsInput, type GetCustomerLimitsResponse, type GetCustomerResponse, type ListCustomersInput, type ListCustomersResponse, type RequestCustomerLimitIncreaseInput, type RequestCustomerLimitIncreaseResponse, type UpdateCustomerInput, createCustomersResource };
@@ -0,0 +1,115 @@
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/customers/index.ts
47
+ var customers_exports = {};
48
+ __export(customers_exports, {
49
+ createCustomersResource: () => createCustomersResource
50
+ });
51
+ module.exports = __toCommonJS(customers_exports);
52
+ function createCustomersResource(instanceId, client) {
53
+ return {
54
+ list(params) {
55
+ const wireParams = params ? Object.fromEntries(
56
+ Object.entries(params).map(([k, v]) => {
57
+ if (k === "customer_id") return ["receiver_id", v];
58
+ if (k === "customer_name") return ["receiver_name", v];
59
+ return [k, v];
60
+ })
61
+ ) : void 0;
62
+ const queryParams = wireParams ? `?${new URLSearchParams(wireParams)}` : "";
63
+ return client.get(`/instances/${instanceId}/customers${queryParams}`);
64
+ },
65
+ createIndividualWithStandardKYC(data) {
66
+ return client.post(`/instances/${instanceId}/customers`, __spreadValues({
67
+ kyc_type: "standard",
68
+ type: "individual"
69
+ }, data));
70
+ },
71
+ createIndividualWithEnhancedKYC(data) {
72
+ return client.post(`/instances/${instanceId}/customers`, __spreadValues({
73
+ kyc_type: "enhanced",
74
+ type: "individual"
75
+ }, data));
76
+ },
77
+ createBusinessWithStandardKYB(data) {
78
+ return client.post(`/instances/${instanceId}/customers`, __spreadValues({
79
+ kyc_type: "standard",
80
+ type: "business"
81
+ }, data));
82
+ },
83
+ get(customer_id) {
84
+ return client.get(`/instances/${instanceId}/customers/${customer_id}`);
85
+ },
86
+ update(_a) {
87
+ var _b = _a, { customer_id } = _b, data = __objRest(_b, ["customer_id"]);
88
+ return client.put(`/instances/${instanceId}/customers/${customer_id}`, data);
89
+ },
90
+ delete(customer_id) {
91
+ return client.delete(`/instances/${instanceId}/customers/${customer_id}`);
92
+ },
93
+ getLimits(customer_id) {
94
+ return client.get(`/instances/${instanceId}/limits/customers/${customer_id}`);
95
+ },
96
+ getLimitIncreaseRequests(customer_id) {
97
+ return client.get(`/instances/${instanceId}/customers/${customer_id}/limit-increase`);
98
+ },
99
+ requestLimitIncrease(_c) {
100
+ var _d = _c, {
101
+ customer_id
102
+ } = _d, data = __objRest(_d, [
103
+ "customer_id"
104
+ ]);
105
+ return client.post(
106
+ `/instances/${instanceId}/customers/${customer_id}/limit-increase`,
107
+ data
108
+ );
109
+ }
110
+ };
111
+ }
112
+ // Annotate the CommonJS export names for ESM import in node:
113
+ 0 && (module.exports = {
114
+ createCustomersResource
115
+ });
@@ -0,0 +1,9 @@
1
+ import {
2
+ createCustomersResource,
3
+ init_customers
4
+ } from "../../chunk-SLKVEQUY.mjs";
5
+ import "../../chunk-OBKEW4AQ.mjs";
6
+ init_customers();
7
+ export {
8
+ createCustomersResource
9
+ };