@cuenca-mx/cuenca-js 1.2.2-dev0 → 2.0.0-dev0

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 (183) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/build/data-91da6d58.mjs +625 -0
  3. package/build/data-ca00ac2d.cjs +669 -0
  4. package/build/dts/client/client.d.ts +86 -0
  5. package/build/dts/client/index.d.ts +1 -0
  6. package/build/dts/errors.d.ts +25 -0
  7. package/build/dts/helpers/case.d.ts +5 -0
  8. package/build/dts/helpers/data.d.ts +3 -0
  9. package/build/dts/helpers/env.d.ts +7 -0
  10. package/build/dts/index.d.ts +52 -0
  11. package/build/dts/jwt.d.ts +8 -0
  12. package/build/dts/models/account.d.ts +12 -0
  13. package/build/dts/models/alert.d.ts +32 -0
  14. package/build/dts/models/apiKey.d.ts +13 -0
  15. package/build/dts/models/arpc.d.ts +10 -0
  16. package/build/dts/models/balanceEntry.d.ts +15 -0
  17. package/build/dts/models/baseUser.d.ts +23 -0
  18. package/build/dts/models/billPayment.d.ts +10 -0
  19. package/build/dts/models/bridgeAccount.d.ts +27 -0
  20. package/build/dts/models/bridgeBankAccount.d.ts +16 -0
  21. package/build/dts/models/bridgeClabe.d.ts +12 -0
  22. package/build/dts/models/bridgeTransaction.d.ts +32 -0
  23. package/build/dts/models/card.d.ts +19 -0
  24. package/build/dts/models/cardActivation.d.ts +12 -0
  25. package/build/dts/models/cardTransaction.d.ts +15 -0
  26. package/build/dts/models/cardValidation.d.ts +19 -0
  27. package/build/dts/models/commission.d.ts +9 -0
  28. package/build/dts/models/deposit.d.ts +11 -0
  29. package/build/dts/models/file.d.ts +10 -0
  30. package/build/dts/models/fraudFundsTransfer.d.ts +9 -0
  31. package/build/dts/models/index.d.ts +38 -0
  32. package/build/dts/models/kycValidations.d.ts +22 -0
  33. package/build/dts/models/loginToken.d.ts +7 -0
  34. package/build/dts/models/partner.d.ts +25 -0
  35. package/build/dts/models/postalCode.d.ts +14 -0
  36. package/build/dts/models/saving.d.ts +11 -0
  37. package/build/dts/models/serviceProvider.d.ts +10 -0
  38. package/build/dts/models/session.d.ts +14 -0
  39. package/build/dts/models/statement.d.ts +10 -0
  40. package/build/dts/models/transaction.d.ts +7 -0
  41. package/build/dts/models/transactionalProfile.d.ts +14 -0
  42. package/build/dts/models/transfer.d.ts +15 -0
  43. package/build/dts/models/user.d.ts +42 -0
  44. package/build/dts/models/userCredential.d.ts +10 -0
  45. package/build/dts/models/userLogin.d.ts +9 -0
  46. package/build/dts/models/userReport.d.ts +48 -0
  47. package/build/dts/models/userTosAgreement.d.ts +13 -0
  48. package/build/dts/models/verification.d.ts +12 -0
  49. package/build/dts/models/wallet.d.ts +8 -0
  50. package/build/dts/models/walletTransaction.d.ts +10 -0
  51. package/build/dts/models/whatsAppTransfer.d.ts +16 -0
  52. package/build/dts/requests/addressUpdateRequest.d.ts +17 -0
  53. package/build/dts/requests/alertRequest.d.ts +31 -0
  54. package/build/dts/requests/apiKeyRequest.d.ts +9 -0
  55. package/build/dts/requests/arpcRequest.d.ts +16 -0
  56. package/build/dts/requests/base.d.ts +2 -0
  57. package/build/dts/requests/cardActivationRequest.d.ts +11 -0
  58. package/build/dts/requests/cardRequest.d.ts +18 -0
  59. package/build/dts/requests/cardValidationRequest.d.ts +15 -0
  60. package/build/dts/requests/fileUploadRequest.d.ts +12 -0
  61. package/build/dts/requests/fraudFundsTransferRequest.d.ts +13 -0
  62. package/build/dts/requests/index.d.ts +24 -0
  63. package/build/dts/requests/kycValidationsRequest.d.ts +10 -0
  64. package/build/dts/requests/partnerUserRequest.d.ts +100 -0
  65. package/build/dts/requests/reportGenerateRequest.d.ts +8 -0
  66. package/build/dts/requests/savingRequest.d.ts +11 -0
  67. package/build/dts/requests/sessionRequest.d.ts +12 -0
  68. package/build/dts/requests/tosUpdateRequest.d.ts +11 -0
  69. package/build/dts/requests/transferRequest.d.ts +12 -0
  70. package/build/dts/requests/transferUpdateRequest.d.ts +8 -0
  71. package/build/dts/requests/userCredentialRequest.d.ts +15 -0
  72. package/build/dts/requests/userLoginRequest.d.ts +8 -0
  73. package/build/dts/requests/userReportCreateRequest.d.ts +9 -0
  74. package/build/dts/requests/userReportUpdateRequest.d.ts +28 -0
  75. package/build/dts/requests/userRequest.d.ts +39 -0
  76. package/build/dts/requests/verificationRequest.d.ts +17 -0
  77. package/build/dts/requests/walletTransactionRequest.d.ts +9 -0
  78. package/build/dts/resources/accounts.d.ts +33 -0
  79. package/build/dts/resources/alerts.d.ts +54 -0
  80. package/build/dts/resources/apiKeys.d.ts +63 -0
  81. package/build/dts/resources/arpc.d.ts +18 -0
  82. package/build/dts/resources/balanceEntries.d.ts +37 -0
  83. package/build/dts/resources/base.d.ts +135 -0
  84. package/build/dts/resources/billPayments.d.ts +34 -0
  85. package/build/dts/resources/bridgeAccounts.d.ts +49 -0
  86. package/build/dts/resources/bridgeBankAccounts.d.ts +33 -0
  87. package/build/dts/resources/bridgeClabes.d.ts +27 -0
  88. package/build/dts/resources/bridgeTransactions.d.ts +36 -0
  89. package/build/dts/resources/cardActivations.d.ts +19 -0
  90. package/build/dts/resources/cardTransactions.d.ts +34 -0
  91. package/build/dts/resources/cardValidations.d.ts +19 -0
  92. package/build/dts/resources/cards.d.ts +63 -0
  93. package/build/dts/resources/commissions.d.ts +34 -0
  94. package/build/dts/resources/deposits.d.ts +34 -0
  95. package/build/dts/resources/files.d.ts +30 -0
  96. package/build/dts/resources/fraudFundsTransfers.d.ts +18 -0
  97. package/build/dts/resources/index.d.ts +36 -0
  98. package/build/dts/resources/kycValidations.d.ts +53 -0
  99. package/build/dts/resources/loginTokens.d.ts +17 -0
  100. package/build/dts/resources/partners.d.ts +54 -0
  101. package/build/dts/resources/postalCodes.d.ts +24 -0
  102. package/build/dts/resources/reports.d.ts +8 -0
  103. package/build/dts/resources/savings.d.ts +62 -0
  104. package/build/dts/resources/serviceProviders.d.ts +32 -0
  105. package/build/dts/resources/sessions.d.ts +43 -0
  106. package/build/dts/resources/statements.d.ts +44 -0
  107. package/build/dts/resources/transfers.d.ts +64 -0
  108. package/build/dts/resources/userCredentials.d.ts +30 -0
  109. package/build/dts/resources/userLogins.d.ts +28 -0
  110. package/build/dts/resources/userReports.d.ts +54 -0
  111. package/build/dts/resources/users.d.ts +56 -0
  112. package/build/dts/resources/usersTosAgreements.d.ts +16 -0
  113. package/build/dts/resources/verifications.d.ts +31 -0
  114. package/build/dts/resources/walletTransactions.d.ts +48 -0
  115. package/build/dts/resources/whatsAppTransfers.d.ts +34 -0
  116. package/build/dts/types/enums.d.ts +579 -0
  117. package/build/dts/types/identities/address.d.ts +25 -0
  118. package/build/dts/types/identities/alertLog.d.ts +11 -0
  119. package/build/dts/types/identities/audit.d.ts +10 -0
  120. package/build/dts/types/identities/businessDetails.d.ts +9 -0
  121. package/build/dts/types/identities/externalAccount.d.ts +8 -0
  122. package/build/dts/types/identities/index.d.ts +17 -0
  123. package/build/dts/types/identities/kycFile.d.ts +14 -0
  124. package/build/dts/types/identities/legalRepresentatives.d.ts +12 -0
  125. package/build/dts/types/identities/license.d.ts +10 -0
  126. package/build/dts/types/identities/moralOperation.d.ts +8 -0
  127. package/build/dts/types/identities/physicalPerson.d.ts +12 -0
  128. package/build/dts/types/identities/shareholderMoral.d.ts +12 -0
  129. package/build/dts/types/identities/shareholderPhysical.d.ts +9 -0
  130. package/build/dts/types/identities/tosAgreements.d.ts +10 -0
  131. package/build/dts/types/identities/transactionalProfileServices.d.ts +10 -0
  132. package/build/dts/types/identities/verificationError.d.ts +10 -0
  133. package/build/dts/types/identities/vulnerableActivity.d.ts +10 -0
  134. package/build/dts/types/index.d.ts +3 -0
  135. package/build/dts/types/queries/accountQuery.d.ts +4 -0
  136. package/build/dts/types/queries/alertQuery.d.ts +12 -0
  137. package/build/dts/types/queries/apiKeyQuery.d.ts +4 -0
  138. package/build/dts/types/queries/balanceEntryQuery.d.ts +5 -0
  139. package/build/dts/types/queries/billPaymentQuery.d.ts +4 -0
  140. package/build/dts/types/queries/bridgeAccountQuery.d.ts +4 -0
  141. package/build/dts/types/queries/bridgeBankAccountQuery.d.ts +4 -0
  142. package/build/dts/types/queries/bridgeQuery.d.ts +7 -0
  143. package/build/dts/types/queries/bridgeTransactionQuery.d.ts +6 -0
  144. package/build/dts/types/queries/cardTransactionQuery.d.ts +4 -0
  145. package/build/dts/types/queries/cardsQuery.d.ts +4 -0
  146. package/build/dts/types/queries/depositQuery.d.ts +5 -0
  147. package/build/dts/types/queries/index.d.ts +26 -0
  148. package/build/dts/types/queries/partnerQuery.d.ts +4 -0
  149. package/build/dts/types/queries/postalCodeQuery.d.ts +4 -0
  150. package/build/dts/types/queries/queryParams.d.ts +15 -0
  151. package/build/dts/types/queries/statementQuery.d.ts +6 -0
  152. package/build/dts/types/queries/transactionQuery.d.ts +4 -0
  153. package/build/dts/types/queries/transferQuery.d.ts +7 -0
  154. package/build/dts/types/queries/userQuery.d.ts +11 -0
  155. package/build/dts/types/queries/userReportQuery.d.ts +4 -0
  156. package/build/dts/types/queries/walletQuery.d.ts +4 -0
  157. package/build/dts/types/queries/walletTransactionQuery.d.ts +4 -0
  158. package/build/errors/index.cjs +10 -0
  159. package/build/errors/index.mjs +10 -1
  160. package/build/index.cjs +1305 -2894
  161. package/build/index.mjs +1307 -2895
  162. package/build/jwt/index.cjs +11 -8
  163. package/build/jwt/index.mjs +11 -8
  164. package/build/requests/index.cjs +4 -22
  165. package/build/requests/index.mjs +2 -26
  166. package/build/types/index.cjs +18 -56
  167. package/build/types/index.mjs +9 -34
  168. package/build/umd/cuenca.umd.js +1 -1
  169. package/build/vulnerableActivity-61dc2846.mjs +278 -0
  170. package/build/vulnerableActivity-d5aed4a7.cjs +299 -0
  171. package/build/walletTransactionRequest-aab46c5e.cjs +461 -0
  172. package/build/walletTransactionRequest-dc11fc69.mjs +433 -0
  173. package/errors/index.d.ts +1 -0
  174. package/jwt/index.d.ts +1 -0
  175. package/package.json +26 -8
  176. package/requests/index.d.ts +1 -0
  177. package/types/index.d.ts +1 -0
  178. package/build/data-1fd00e5c.mjs +0 -1199
  179. package/build/data-72c37b60.cjs +0 -1240
  180. package/build/vulnerableActivity-7cc1734f.cjs +0 -867
  181. package/build/vulnerableActivity-bd344332.mjs +0 -831
  182. package/build/walletTransactionRequest-05d5305a.mjs +0 -1512
  183. package/build/walletTransactionRequest-c6a5c64d.cjs +0 -1539
@@ -1,1199 +0,0 @@
1
- class AlertStatus {
2
- static Created = new AlertStatus('created');
3
-
4
- static ReadyForAnalysis = new AlertStatus('ready_for_analysis');
5
-
6
- static Analysis = new AlertStatus('analysis');
7
-
8
- static Dictum = new AlertStatus('dictum');
9
-
10
- static Justified = new AlertStatus('justified');
11
-
12
- static Unusual = new AlertStatus('unusual');
13
-
14
- static Reported = new AlertStatus('reported');
15
-
16
- static Questionary = new AlertStatus('questionary');
17
-
18
- static JustifiedByTime = new AlertStatus('justified_by_time');
19
-
20
- static AdditionalInformation = new AlertStatus('additional_information');
21
-
22
- static Documentation = new AlertStatus('documentation');
23
-
24
- static Xml = new AlertStatus('xml');
25
-
26
- constructor(value) {
27
- this.value = value;
28
- }
29
- }
30
-
31
- class BridgeAccountStatus {
32
- static Succeeded = new BridgeAccountStatus('succeeded');
33
-
34
- static NotValidated = new BridgeAccountStatus('not_validated');
35
-
36
- static Failed = new BridgeAccountStatus('failed');
37
-
38
- static OnWaitList = new BridgeAccountStatus('on_wait_list');
39
-
40
- constructor(value) {
41
- this.value = value;
42
- }
43
- }
44
-
45
- class BridgeBankAccountStatus {
46
- static Created = new BridgeBankAccountStatus('created');
47
-
48
- static Failed = new BridgeBankAccountStatus('failed');
49
-
50
- static Pending = new BridgeBankAccountStatus('pending');
51
-
52
- static Succeeded = new BridgeBankAccountStatus('succeeded');
53
-
54
- constructor(value) {
55
- this.value = value;
56
- }
57
- }
58
-
59
- class CardErrorType {
60
- static Blocked = new CardErrorType('blocked');
61
-
62
- static Comunication = new CardErrorType('comunication');
63
-
64
- static ContactlesAmountLimit = new CardErrorType('contactles_amount_limit');
65
-
66
- static FraudDetection = new CardErrorType('fraud_detection');
67
-
68
- static FraudDetectionUncertain = new CardErrorType(
69
- 'fraud_detection_uncertain',
70
- );
71
-
72
- static InsufficientFounds = new CardErrorType('insufficient_founds');
73
-
74
- static InvalidPin = new CardErrorType('invalid_pin');
75
-
76
- static Notification = new CardErrorType('notification');
77
-
78
- static NotificationDeactivatedCard = new CardErrorType(
79
- 'notification_deactivated_card',
80
- );
81
-
82
- constructor(value) {
83
- this.value = value;
84
- }
85
- }
86
-
87
- class CardFundingType {
88
- static Credit = new CardFundingType('credit');
89
-
90
- static Debit = new CardFundingType('debit');
91
-
92
- constructor(value) {
93
- this.value = value;
94
- }
95
- }
96
-
97
- class CardIssuer {
98
- static Accendo = new CardIssuer('accendo');
99
-
100
- static Cuenca = new CardIssuer('cuenca');
101
-
102
- constructor(value) {
103
- this.value = value;
104
- }
105
- }
106
-
107
- class BridgeTransactionType {
108
- static Buy = new BridgeTransactionType('buy');
109
-
110
- static Sell = new BridgeTransactionType('sell');
111
-
112
- constructor(value) {
113
- this.value = value;
114
- }
115
- }
116
-
117
- class CardStatus {
118
- static Active = new CardStatus('active');
119
-
120
- static Blocked = new CardStatus('blocked');
121
-
122
- static Created = new CardStatus('created');
123
-
124
- static Deactivated = new CardStatus('deactivated');
125
-
126
- static Printing = new CardStatus('printing');
127
-
128
- constructor(value) {
129
- this.value = value;
130
- }
131
- }
132
-
133
- class CardTransactionType {
134
- static Auth = new CardTransactionType('auth');
135
-
136
- static Capture = new CardTransactionType('capture');
137
-
138
- static Chargeback = new CardTransactionType('chargeback');
139
-
140
- static Expiration = new CardTransactionType('expiration');
141
-
142
- static Refund = new CardTransactionType('refund');
143
-
144
- static Void = new CardTransactionType('void');
145
-
146
- constructor(value) {
147
- this.value = value;
148
- }
149
- }
150
-
151
- class Currency {
152
- static Mxn = new Currency('mxn');
153
-
154
- static Usdc = new Currency('usdc');
155
-
156
- static Sol = new Currency('sol');
157
-
158
- constructor(value) {
159
- this.value = value;
160
- }
161
- }
162
-
163
- class CardType {
164
- static Physical = new CardType('physical');
165
-
166
- static Virtual = new CardType('virtual');
167
-
168
- constructor(value) {
169
- this.value = value;
170
- }
171
- }
172
-
173
- class CommissionType {
174
- static CardRequest = new CommissionType('card_request');
175
-
176
- static CashDeposit = new CommissionType('cash_deposit');
177
-
178
- static OutgoingSpei = new CommissionType('outgoing_spei');
179
-
180
- constructor(value) {
181
- this.value = value;
182
- }
183
- }
184
-
185
- class DepositNetwork {
186
- static Cash = new DepositNetwork('cash');
187
-
188
- static Internal = new DepositNetwork('internal');
189
-
190
- static Spei = new DepositNetwork('spei');
191
-
192
- constructor(value) {
193
- this.value = value;
194
- }
195
- }
196
-
197
- class EntryType {
198
- static Credit = new EntryType('credit');
199
-
200
- static Debit = new EntryType('debit');
201
-
202
- constructor(value) {
203
- this.value = value;
204
- }
205
- }
206
-
207
- class FileFormat {
208
- static Pdf = new FileFormat('application/pdf');
209
-
210
- static Xml = new FileFormat('application/xml');
211
-
212
- static Json = new FileFormat('application/json');
213
-
214
- static Any = new FileFormat('*/*');
215
-
216
- constructor(value) {
217
- this.value = value;
218
- }
219
- }
220
-
221
- class KYCFileType {
222
- static Curp = new KYCFileType('curp');
223
-
224
- static Dni = new KYCFileType('dni');
225
-
226
- static Ine = new KYCFileType('ine');
227
-
228
- static Passport = new KYCFileType('passport');
229
-
230
- static Residency = new KYCFileType('residency');
231
-
232
- static MatriculaConsular = new KYCFileType('matricula_consular');
233
-
234
- static ProofOfLiveness = new KYCFileType('proof_of_liveness');
235
-
236
- static ProofOfAddress = new KYCFileType('proof_of_address');
237
-
238
- constructor(value) {
239
- this.value = value;
240
- }
241
- }
242
-
243
- class KYCValidationSource {
244
- static Client = new KYCValidationSource('client');
245
-
246
- static Server = new KYCValidationSource('server');
247
-
248
- constructor(value) {
249
- this.value = value;
250
- }
251
- }
252
-
253
- class MLIndicatorLevel {
254
- static Low = new MLIndicatorLevel('low');
255
-
256
- static Medium = new MLIndicatorLevel('medium');
257
-
258
- static High = new MLIndicatorLevel('high');
259
-
260
- constructor(value) {
261
- this.value = value;
262
- }
263
- }
264
-
265
- class MLIndicatorType {
266
- static Deposit = new MLIndicatorType('deposit');
267
-
268
- static Withdrawal = new MLIndicatorType('withdrawal');
269
-
270
- constructor(value) {
271
- this.value = value;
272
- }
273
- }
274
-
275
- class MLIndicatorPeriod {
276
- static Bimester = new MLIndicatorPeriod('bimester');
277
-
278
- static Trimester = new MLIndicatorPeriod('trimester');
279
-
280
- static Semester = new MLIndicatorPeriod('semester');
281
-
282
- constructor(value) {
283
- this.value = value;
284
- }
285
- }
286
-
287
- class Network {
288
- static Polygon = new Network('polygon');
289
-
290
- static Solana = new Network('solana');
291
-
292
- constructor(value) {
293
- this.value = value;
294
- }
295
- }
296
-
297
- class Phase {
298
- static Sandbox = new Phase('sandbox');
299
-
300
- static Stage = new Phase('stage');
301
-
302
- static Api = new Phase('api');
303
-
304
- constructor(value) {
305
- this.value = value;
306
- }
307
- }
308
-
309
- class PLDFilterType {
310
- static Amount = new PLDFilterType('amount');
311
-
312
- static Volume = new PLDFilterType('volume');
313
-
314
- constructor(value) {
315
- this.value = value;
316
- }
317
- }
318
-
319
- class Country {
320
- static AW = new Country('AW');
321
-
322
- static AF = new Country('AF');
323
-
324
- static AO = new Country('AO');
325
-
326
- static AI = new Country('AI');
327
-
328
- static AX = new Country('AX');
329
-
330
- static AL = new Country('AL');
331
-
332
- static AD = new Country('AD');
333
-
334
- static AE = new Country('AE');
335
-
336
- static AR = new Country('AR');
337
-
338
- static AM = new Country('AM');
339
-
340
- static AS = new Country('AS');
341
-
342
- static AQ = new Country('AQ');
343
-
344
- static TF = new Country('TF');
345
-
346
- static AG = new Country('AG');
347
-
348
- static AU = new Country('AU');
349
-
350
- static AT = new Country('AT');
351
-
352
- static AZ = new Country('AZ');
353
-
354
- static BI = new Country('BI');
355
-
356
- static BE = new Country('BE');
357
-
358
- static BJ = new Country('BJ');
359
-
360
- static BQ = new Country('BQ');
361
-
362
- static BF = new Country('BF');
363
-
364
- static BD = new Country('BD');
365
-
366
- static BG = new Country('BG');
367
-
368
- static BH = new Country('BH');
369
-
370
- static BS = new Country('BS');
371
-
372
- static BA = new Country('BA');
373
-
374
- static BL = new Country('BL');
375
-
376
- static BY = new Country('BY');
377
-
378
- static BZ = new Country('BZ');
379
-
380
- static BM = new Country('BM');
381
-
382
- static BO = new Country('BO');
383
-
384
- static BR = new Country('BR');
385
-
386
- static BB = new Country('BB');
387
-
388
- static BN = new Country('BN');
389
-
390
- static BT = new Country('BT');
391
-
392
- static BV = new Country('BV');
393
-
394
- static BW = new Country('BW');
395
-
396
- static CF = new Country('CF');
397
-
398
- static CA = new Country('CA');
399
-
400
- static CC = new Country('CC');
401
-
402
- static CH = new Country('CH');
403
-
404
- static CL = new Country('CL');
405
-
406
- static CN = new Country('CN');
407
-
408
- static CI = new Country('CI');
409
-
410
- static CM = new Country('CM');
411
-
412
- static CD = new Country('CD');
413
-
414
- static CG = new Country('CG');
415
-
416
- static CK = new Country('CK');
417
-
418
- static CO = new Country('CO');
419
-
420
- static KM = new Country('KM');
421
-
422
- static CV = new Country('CV');
423
-
424
- static CR = new Country('CR');
425
-
426
- static CU = new Country('CU');
427
-
428
- static CW = new Country('CW');
429
-
430
- static CX = new Country('CX');
431
-
432
- static KY = new Country('KY');
433
-
434
- static CY = new Country('CY');
435
-
436
- static CZ = new Country('CZ');
437
-
438
- static DE = new Country('DE');
439
-
440
- static DJ = new Country('DJ');
441
-
442
- static DM = new Country('DM');
443
-
444
- static DK = new Country('DK');
445
-
446
- static DO = new Country('DO');
447
-
448
- static DZ = new Country('DZ');
449
-
450
- static EC = new Country('EC');
451
-
452
- static EG = new Country('EG');
453
-
454
- static ER = new Country('ER');
455
-
456
- static EH = new Country('EH');
457
-
458
- static ES = new Country('ES');
459
-
460
- static EE = new Country('EE');
461
-
462
- static ET = new Country('ET');
463
-
464
- static FI = new Country('FI');
465
-
466
- static FJ = new Country('FJ');
467
-
468
- static FK = new Country('FK');
469
-
470
- static FR = new Country('FR');
471
-
472
- static FO = new Country('FO');
473
-
474
- static FM = new Country('FM');
475
-
476
- static GA = new Country('GA');
477
-
478
- static GB = new Country('GB');
479
-
480
- static GE = new Country('GE');
481
-
482
- static GG = new Country('GG');
483
-
484
- static GH = new Country('GH');
485
-
486
- static GI = new Country('GI');
487
-
488
- static GN = new Country('GN');
489
-
490
- static GP = new Country('GP');
491
-
492
- static GM = new Country('GM');
493
-
494
- static GW = new Country('GW');
495
-
496
- static GQ = new Country('GQ');
497
-
498
- static GR = new Country('GR');
499
-
500
- static GD = new Country('GD');
501
-
502
- static GL = new Country('GL');
503
-
504
- static GT = new Country('GT');
505
-
506
- static GF = new Country('GF');
507
-
508
- static GU = new Country('GU');
509
-
510
- static GY = new Country('GY');
511
-
512
- static HK = new Country('HK');
513
-
514
- static HM = new Country('HM');
515
-
516
- static HN = new Country('HN');
517
-
518
- static HR = new Country('HR');
519
-
520
- static HT = new Country('HT');
521
-
522
- static HU = new Country('HU');
523
-
524
- static ID = new Country('ID');
525
-
526
- static IM = new Country('IM');
527
-
528
- static IN = new Country('IN');
529
-
530
- static IO = new Country('IO');
531
-
532
- static IE = new Country('IE');
533
-
534
- static IR = new Country('IR');
535
-
536
- static IQ = new Country('IQ');
537
-
538
- static IS = new Country('IS');
539
-
540
- static IL = new Country('IL');
541
-
542
- static IT = new Country('IT');
543
-
544
- static JM = new Country('JM');
545
-
546
- static JE = new Country('JE');
547
-
548
- static JO = new Country('JO');
549
-
550
- static JP = new Country('JP');
551
-
552
- static KZ = new Country('KZ');
553
-
554
- static KE = new Country('KE');
555
-
556
- static KG = new Country('KG');
557
-
558
- static KH = new Country('KH');
559
-
560
- static KI = new Country('KI');
561
-
562
- static KN = new Country('KN');
563
-
564
- static KR = new Country('KR');
565
-
566
- static KW = new Country('KW');
567
-
568
- static LA = new Country('LA');
569
-
570
- static LB = new Country('LB');
571
-
572
- static LC = new Country('LC');
573
-
574
- static LI = new Country('LI');
575
-
576
- static LK = new Country('LK');
577
-
578
- static LR = new Country('LR');
579
-
580
- static LS = new Country('LS');
581
-
582
- static LT = new Country('LT');
583
-
584
- static LU = new Country('LU');
585
-
586
- static LV = new Country('LV');
587
-
588
- static LY = new Country('LY');
589
-
590
- static MA = new Country('MA');
591
-
592
- static MC = new Country('MC');
593
-
594
- static MD = new Country('MD');
595
-
596
- static MG = new Country('MG');
597
-
598
- static MV = new Country('MV');
599
-
600
- static MX = new Country('MX');
601
-
602
- static MH = new Country('MH');
603
-
604
- static MK = new Country('MK');
605
-
606
- static ML = new Country('ML');
607
-
608
- static MT = new Country('MT');
609
-
610
- static MM = new Country('MM');
611
-
612
- static ME = new Country('ME');
613
-
614
- static MN = new Country('MN');
615
-
616
- static MP = new Country('MP');
617
-
618
- static MZ = new Country('MZ');
619
-
620
- static MR = new Country('MR');
621
-
622
- static MS = new Country('MS');
623
-
624
- static MQ = new Country('MQ');
625
-
626
- static MU = new Country('MU');
627
-
628
- static MW = new Country('MW');
629
-
630
- static MY = new Country('MY');
631
-
632
- static YT = new Country('YT');
633
-
634
- static NA = new Country('NA');
635
-
636
- static NC = new Country('NC');
637
-
638
- static NE = new Country('NE');
639
-
640
- static NF = new Country('NF');
641
-
642
- static NG = new Country('NG');
643
-
644
- static NI = new Country('NI');
645
-
646
- static NU = new Country('NU');
647
-
648
- static NL = new Country('NL');
649
-
650
- static NO = new Country('NO');
651
-
652
- static NP = new Country('NP');
653
-
654
- static NR = new Country('NR');
655
-
656
- static NZ = new Country('NZ');
657
-
658
- static OM = new Country('OM');
659
-
660
- static PK = new Country('PK');
661
-
662
- static PA = new Country('PA');
663
-
664
- static PN = new Country('PN');
665
-
666
- static PE = new Country('PE');
667
-
668
- static PH = new Country('PH');
669
-
670
- static PW = new Country('PW');
671
-
672
- static PG = new Country('PG');
673
-
674
- static PL = new Country('PL');
675
-
676
- static PR = new Country('PR');
677
-
678
- static KP = new Country('KP');
679
-
680
- static PT = new Country('PT');
681
-
682
- static PY = new Country('PY');
683
-
684
- static PS = new Country('PS');
685
-
686
- static PF = new Country('PF');
687
-
688
- static QA = new Country('QA');
689
-
690
- static RE = new Country('RE');
691
-
692
- static RO = new Country('RO');
693
-
694
- static RU = new Country('RU');
695
-
696
- static RW = new Country('RW');
697
-
698
- static SA = new Country('SA');
699
-
700
- static SD = new Country('SD');
701
-
702
- static SN = new Country('SN');
703
-
704
- static SG = new Country('SG');
705
-
706
- static GS = new Country('GS');
707
-
708
- static SH = new Country('SH');
709
-
710
- static SJ = new Country('SJ');
711
-
712
- static SB = new Country('SB');
713
-
714
- static SL = new Country('SL');
715
-
716
- static SV = new Country('SV');
717
-
718
- static SM = new Country('SM');
719
-
720
- static SO = new Country('SO');
721
-
722
- static PM = new Country('PM');
723
-
724
- static RS = new Country('RS');
725
-
726
- static SS = new Country('SS');
727
-
728
- static ST = new Country('ST');
729
-
730
- static SR = new Country('SR');
731
-
732
- static SK = new Country('SK');
733
-
734
- static SI = new Country('SI');
735
-
736
- static SE = new Country('SE');
737
-
738
- static SZ = new Country('SZ');
739
-
740
- static SX = new Country('SX');
741
-
742
- static SC = new Country('SC');
743
-
744
- static SY = new Country('SY');
745
-
746
- static TC = new Country('TC');
747
-
748
- static TD = new Country('TD');
749
-
750
- static TG = new Country('TG');
751
-
752
- static TH = new Country('TH');
753
-
754
- static TJ = new Country('TJ');
755
-
756
- static TK = new Country('TK');
757
-
758
- static TM = new Country('TM');
759
-
760
- static TL = new Country('TL');
761
-
762
- static TO = new Country('TO');
763
-
764
- static TT = new Country('TT');
765
-
766
- static TN = new Country('TN');
767
-
768
- static TR = new Country('TR');
769
-
770
- static TV = new Country('TV');
771
-
772
- static TW = new Country('TW');
773
-
774
- static TZ = new Country('TZ');
775
-
776
- static UG = new Country('UG');
777
-
778
- static UA = new Country('UA');
779
-
780
- static UM = new Country('UM');
781
-
782
- static UY = new Country('UY');
783
-
784
- static US = new Country('US');
785
-
786
- static UZ = new Country('UZ');
787
-
788
- static VA = new Country('VA');
789
-
790
- static VC = new Country('VC');
791
-
792
- static VE = new Country('VE');
793
-
794
- static VG = new Country('VG');
795
-
796
- static VI = new Country('VI');
797
-
798
- static VN = new Country('VN');
799
-
800
- static VU = new Country('VU');
801
-
802
- static WF = new Country('WF');
803
-
804
- static WS = new Country('WS');
805
-
806
- static YE = new Country('YE');
807
-
808
- static ZA = new Country('ZA');
809
-
810
- static ZM = new Country('ZM');
811
-
812
- static ZW = new Country('ZW');
813
-
814
- static XA = new Country('XA');
815
-
816
- constructor(value) {
817
- this.value = value;
818
- }
819
- }
820
-
821
- class State {
822
- static NE = new State('NE');
823
-
824
- static AS = new State('AS');
825
-
826
- static BC = new State('BC');
827
-
828
- static BS = new State('BS');
829
-
830
- static CC = new State('CC');
831
-
832
- static CS = new State('CS');
833
-
834
- static CH = new State('CH');
835
-
836
- static CL = new State('CL');
837
-
838
- static CM = new State('CM');
839
-
840
- static DF = new State('DF');
841
-
842
- static DG = new State('DG');
843
-
844
- static GT = new State('GT');
845
-
846
- static GR = new State('GR');
847
-
848
- static HG = new State('HG');
849
-
850
- static JC = new State('JC');
851
-
852
- static MC = new State('MC');
853
-
854
- static MN = new State('MN');
855
-
856
- static MS = new State('MS');
857
-
858
- static NT = new State('NT');
859
-
860
- static NL = new State('NL');
861
-
862
- static OC = new State('OC');
863
-
864
- static PL = new State('PL');
865
-
866
- static QT = new State('QT');
867
-
868
- static QR = new State('QR');
869
-
870
- static SP = new State('SP');
871
-
872
- static SL = new State('SL');
873
-
874
- static SR = new State('SR');
875
-
876
- static TC = new State('TC');
877
-
878
- static TL = new State('TL');
879
-
880
- static TS = new State('TS');
881
-
882
- static VZ = new State('VZ');
883
-
884
- static YN = new State('YN');
885
-
886
- static ZS = new State('ZS');
887
-
888
- constructor(value) {
889
- this.value = value;
890
- }
891
- }
892
-
893
- class ServiceProviderCategory {
894
- static Cable = new ServiceProviderCategory('cable');
895
-
896
- static CreditCard = new ServiceProviderCategory('credit_card');
897
-
898
- static Electricity = new ServiceProviderCategory('electricity');
899
-
900
- static Gas = new ServiceProviderCategory('gas');
901
-
902
- static Internet = new ServiceProviderCategory('internet');
903
-
904
- static LandlineTelephone = new ServiceProviderCategory('landline_telephone');
905
-
906
- static MobileTelephonePostpaid = new ServiceProviderCategory(
907
- 'mobile_telephone_postpaid',
908
- );
909
-
910
- static MobileTelephonePrepaid = new ServiceProviderCategory(
911
- 'mobile_telephone_prepaid',
912
- );
913
-
914
- static SateliteTelevision = new ServiceProviderCategory(
915
- 'satelite_television',
916
- );
917
-
918
- static Water = new ServiceProviderCategory('water');
919
-
920
- constructor(value) {
921
- this.value = value;
922
- }
923
- }
924
-
925
- class SavingCategory {
926
- static General = new SavingCategory('general');
927
-
928
- static Home = new SavingCategory('home');
929
-
930
- static Vehicle = new SavingCategory('vehicle');
931
-
932
- static Travel = new SavingCategory('travel');
933
-
934
- static Clothing = new SavingCategory('clothing');
935
-
936
- static Other = new SavingCategory('other');
937
-
938
- static Medical = new SavingCategory('medical');
939
-
940
- static Accident = new SavingCategory('accident');
941
-
942
- static Education = new SavingCategory('education');
943
-
944
- constructor(value) {
945
- this.value = value;
946
- }
947
- }
948
-
949
- class SessionType {
950
- static AccountEntries = new SessionType('session.account_entries');
951
-
952
- static DownloadFile = new SessionType('session.download_file');
953
-
954
- static Registration = new SessionType('session.registration');
955
-
956
- static ShowCard = new SessionType('session.show_card');
957
-
958
- static UploadFile = new SessionType('session.upload_file');
959
-
960
- constructor(value) {
961
- this.value = value;
962
- }
963
- }
964
-
965
- class SourceAlertType {
966
- static Chester = new SourceAlertType('chester');
967
-
968
- static External = new SourceAlertType('external');
969
-
970
- static Manual = new SourceAlertType('manual');
971
-
972
- constructor(value) {
973
- this.value = value;
974
- }
975
- }
976
-
977
- class TrackDataMethod {
978
- static NotSet = new TrackDataMethod('not_set');
979
-
980
- static Terminal = new TrackDataMethod('terminal');
981
-
982
- static Manual = new TrackDataMethod('manual');
983
-
984
- static Unknown = new TrackDataMethod('unknown');
985
-
986
- static Contactless = new TrackDataMethod('contactless');
987
-
988
- static FallBack = new TrackDataMethod('fall_back');
989
-
990
- static MagneticStripe = new TrackDataMethod('magnetic_stripe');
991
-
992
- static RecurringCharge = new TrackDataMethod('recurring_charge');
993
-
994
- constructor(value) {
995
- this.value = value;
996
- }
997
- }
998
-
999
- class TransactionStatus {
1000
- static Created = new TransactionStatus('created');
1001
-
1002
- static Failed = new TransactionStatus('failed');
1003
-
1004
- static InReview = new TransactionStatus('in_review');
1005
-
1006
- static Submitted = new TransactionStatus('submitted');
1007
-
1008
- static Succeeded = new TransactionStatus('succeeded');
1009
-
1010
- constructor(value) {
1011
- this.value = value;
1012
- }
1013
- }
1014
-
1015
- class TransferNetwork {
1016
- static Internal = new TransferNetwork('internal');
1017
-
1018
- static Spei = new TransferNetwork('spei');
1019
-
1020
- constructor(value) {
1021
- this.value = value;
1022
- }
1023
- }
1024
-
1025
- class UserStatus {
1026
- static Active = new UserStatus('active');
1027
-
1028
- static Deactivated = new UserStatus('deactivated');
1029
-
1030
- static InReview = new UserStatus('in_review');
1031
-
1032
- static Fraud = new UserStatus('fraud');
1033
-
1034
- static PldBlocked = new UserStatus('pld_blocked');
1035
-
1036
- static UserBlocked = new UserStatus('user_blocked');
1037
-
1038
- static Inactive = new UserStatus('inactive');
1039
-
1040
- constructor(value) {
1041
- this.value = value;
1042
- }
1043
- }
1044
-
1045
- class UserType {
1046
- static Moral = new UserType('moral');
1047
-
1048
- static Physical = new UserType('physical');
1049
-
1050
- constructor(value) {
1051
- this.value = value;
1052
- }
1053
- }
1054
-
1055
- class VerificationStatus {
1056
- static Created = new VerificationStatus('created');
1057
-
1058
- static NotVerified = new VerificationStatus('not_verified');
1059
-
1060
- static Rejected = new VerificationStatus('rejected');
1061
-
1062
- static ReviewNeeded = new VerificationStatus('review_needed');
1063
-
1064
- static Submitted = new VerificationStatus('submitted');
1065
-
1066
- static Succeeded = new VerificationStatus('succeeded');
1067
-
1068
- static UploadAgain = new VerificationStatus('upload_again');
1069
-
1070
- constructor(value) {
1071
- this.value = value;
1072
- }
1073
- }
1074
-
1075
- class VerificationType {
1076
- static Phone = new VerificationType('phone');
1077
-
1078
- static Email = new VerificationType('email');
1079
-
1080
- constructor(value) {
1081
- this.value = value;
1082
- }
1083
- }
1084
-
1085
- class WalletTransactionType {
1086
- static Deposit = new WalletTransactionType('deposit');
1087
-
1088
- static Withdrawal = new WalletTransactionType('withdrawal');
1089
-
1090
- constructor(value) {
1091
- this.value = value;
1092
- }
1093
- }
1094
-
1095
- class SATRegimeCode {
1096
- static GRL_PM = new SATRegimeCode('601', 'General de Ley Personas Morales');
1097
-
1098
- static PM_FN = new SATRegimeCode(
1099
- '603',
1100
- 'Personas Morales con Fines no Lucrativos',
1101
- );
1102
-
1103
- static SAL_IS = new SATRegimeCode(
1104
- '605',
1105
- 'Sueldos y Salarios e Ingresos Asimilados a Salarios',
1106
- );
1107
-
1108
- static ARR = new SATRegimeCode('606', 'Arrendamiento');
1109
-
1110
- static ENAJ_ADQ = new SATRegimeCode(
1111
- '607',
1112
- 'Régimen de Enajenación o Adquisición de Bienes',
1113
- );
1114
-
1115
- static DEM_ING = new SATRegimeCode('608', 'Demás ingresos');
1116
-
1117
- static CONS = new SATRegimeCode('609', 'Consolidación');
1118
-
1119
- static RES_EXT = new SATRegimeCode(
1120
- '610',
1121
- 'Residentes en el Extranjero sin Establecimiento Permanente',
1122
- );
1123
-
1124
- static DIV = new SATRegimeCode(
1125
- '611',
1126
- 'Ingresos por Dividendos (socios y accionistas)',
1127
- );
1128
-
1129
- static PF_AEP = new SATRegimeCode(
1130
- '612',
1131
- 'Personas Físicas con Actividades Empresariales y Profesionales',
1132
- );
1133
-
1134
- static INT = new SATRegimeCode('614', 'Ingresos por intereses');
1135
-
1136
- static ING_PREM = new SATRegimeCode(
1137
- '615',
1138
- 'Régimen de los ingresos por obtención de premios',
1139
- );
1140
-
1141
- static SIN_OBL = new SATRegimeCode('616', 'Sin obligaciones fiscales');
1142
-
1143
- static SCP_DIF = new SATRegimeCode(
1144
- '620',
1145
- 'Sociedades Cooperativas de Producción que optan por diferir',
1146
- );
1147
-
1148
- static INC_FISC = new SATRegimeCode('621', 'Incorporación Fiscal');
1149
-
1150
- static AGRO_GAN_SILV_PES = new SATRegimeCode(
1151
- '622',
1152
- 'Actividades Agrícolas, Ganaderas, Silvícolas y Pesqueras',
1153
- );
1154
-
1155
- static OP_GRUPO_SOC = new SATRegimeCode(
1156
- '623',
1157
- 'Opcional para Grupos de Sociedades',
1158
- );
1159
-
1160
- static COOR = new SATRegimeCode('624', 'Coordinados');
1161
-
1162
- static AE_PLAT_TEC = new SATRegimeCode(
1163
- '625',
1164
- 'Régimen de las Actividades Empresariales con ingresos a través de Plataformas Tecnológicas',
1165
- );
1166
-
1167
- static RS_CONF = new SATRegimeCode(
1168
- '626',
1169
- 'Régimen Simplificado de Confianza',
1170
- );
1171
-
1172
- static HID = new SATRegimeCode('628', 'Hidrocarburos');
1173
-
1174
- static PREF_EM_MULT = new SATRegimeCode(
1175
- '629',
1176
- 'De los Regímenes Fiscales Preferentes y de las Empresas Multinacionales',
1177
- );
1178
-
1179
- static ENAJ_ACC_BOL = new SATRegimeCode(
1180
- '630',
1181
- 'Enajenación de acciones en bolsa de valores',
1182
- );
1183
-
1184
- constructor(value, name) {
1185
- this.value = value;
1186
- this.name = name;
1187
- }
1188
- }
1189
-
1190
- const dateToUTC = (date) => {
1191
- if (!date) return null;
1192
- const dateObj = new Date(date);
1193
- return new Date(dateObj.getTime());
1194
- };
1195
-
1196
- const enumValueFromString = (enumValue, value) =>
1197
- Object.values(enumValue).find((enumV) => enumV.value === value);
1198
-
1199
- export { AlertStatus as A, BridgeAccountStatus as B, Currency as C, DepositNetwork as D, EntryType as E, FileFormat as F, KYCFileType as K, MLIndicatorLevel as M, Network as N, Phase as P, SourceAlertType as S, TransactionStatus as T, UserStatus as U, VerificationStatus as V, WalletTransactionType as W, MLIndicatorPeriod as a, MLIndicatorType as b, PLDFilterType as c, dateToUTC as d, enumValueFromString as e, BridgeBankAccountStatus as f, BridgeTransactionType as g, CardFundingType as h, CardIssuer as i, CardStatus as j, CardType as k, CardErrorType as l, CardTransactionType as m, CommissionType as n, KYCValidationSource as o, State as p, Country as q, SavingCategory as r, ServiceProviderCategory as s, SessionType as t, TransferNetwork as u, SATRegimeCode as v, VerificationType as w, TrackDataMethod as x, UserType as y };