@cuenca-mx/cuenca-js 0.0.14-dev8 → 1.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.
package/README.md CHANGED
@@ -147,7 +147,9 @@ Fork the repo and send your PR so we can review it! Any and all help is welcomed
147
147
  #### Testing
148
148
 
149
149
  Be sure to keep coverage at least 99%
150
-
150
+ ```js
151
+ cd packages/cuenca-js && node --experimental-vm-modules ./node_modules/.bin/jest
152
+ ```
151
153
 
152
154
  ## Contact
153
155
 
@@ -15,9 +15,9 @@ class AlertStatus {
15
15
 
16
16
  static Questionary = new AlertStatus('questionary');
17
17
 
18
- static JustifiedBbyTime = new AlertStatus('justified_by_time');
18
+ static JustifiedByTime = new AlertStatus('justified_by_time');
19
19
 
20
- static AditionalInformation = new AlertStatus('aditional_information');
20
+ static AdditionalInformation = new AlertStatus('additional_information');
21
21
 
22
22
  static Documentation = new AlertStatus('documentation');
23
23
 
@@ -296,10 +296,10 @@ class Phase {
296
296
  }
297
297
  }
298
298
 
299
- class PLDFinterType {
300
- static Amount = new PLDFinterType('amount');
299
+ class PLDFilterType {
300
+ static Amount = new PLDFilterType('amount');
301
301
 
302
- static Volume = new PLDFinterType('volume');
302
+ static Volume = new PLDFilterType('volume');
303
303
 
304
304
  constructor(value) {
305
305
  this.value = value;
@@ -443,6 +443,8 @@ class UserStatus {
443
443
 
444
444
  static Deactivated = new UserStatus('deactivated');
445
445
 
446
+ static InReview = new UserStatus('in_review');
447
+
446
448
  static Fraud = new UserStatus('fraud');
447
449
 
448
450
  static PldBlocked = new UserStatus('pld_blocked');
@@ -452,6 +454,16 @@ class UserStatus {
452
454
  }
453
455
  }
454
456
 
457
+ class UserType {
458
+ static Moral = new UserType('moral');
459
+
460
+ static Physical = new UserType('physical');
461
+
462
+ constructor(value) {
463
+ this.value = value;
464
+ }
465
+ }
466
+
455
467
  class VerificationStatus {
456
468
  static Created = new VerificationStatus('created');
457
469
 
@@ -501,4 +513,4 @@ const dateToUTC = (date) => {
501
513
  const enumValueFromString = (enumValue, value) =>
502
514
  Object.values(enumValue).find((enumV) => enumV.value === value);
503
515
 
504
- 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, PLDFinterType 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, SavingCategory as o, ServiceProviderCategory as p, SessionType as q, TransferNetwork as r, VerificationType as s, TrackDataMethod as t };
516
+ 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, SavingCategory as o, ServiceProviderCategory as p, SessionType as q, TransferNetwork as r, VerificationType as s, TrackDataMethod as t, UserType as u };
@@ -17,9 +17,9 @@ class AlertStatus {
17
17
 
18
18
  static Questionary = new AlertStatus('questionary');
19
19
 
20
- static JustifiedBbyTime = new AlertStatus('justified_by_time');
20
+ static JustifiedByTime = new AlertStatus('justified_by_time');
21
21
 
22
- static AditionalInformation = new AlertStatus('aditional_information');
22
+ static AdditionalInformation = new AlertStatus('additional_information');
23
23
 
24
24
  static Documentation = new AlertStatus('documentation');
25
25
 
@@ -298,10 +298,10 @@ class Phase {
298
298
  }
299
299
  }
300
300
 
301
- class PLDFinterType {
302
- static Amount = new PLDFinterType('amount');
301
+ class PLDFilterType {
302
+ static Amount = new PLDFilterType('amount');
303
303
 
304
- static Volume = new PLDFinterType('volume');
304
+ static Volume = new PLDFilterType('volume');
305
305
 
306
306
  constructor(value) {
307
307
  this.value = value;
@@ -445,6 +445,8 @@ class UserStatus {
445
445
 
446
446
  static Deactivated = new UserStatus('deactivated');
447
447
 
448
+ static InReview = new UserStatus('in_review');
449
+
448
450
  static Fraud = new UserStatus('fraud');
449
451
 
450
452
  static PldBlocked = new UserStatus('pld_blocked');
@@ -454,6 +456,16 @@ class UserStatus {
454
456
  }
455
457
  }
456
458
 
459
+ class UserType {
460
+ static Moral = new UserType('moral');
461
+
462
+ static Physical = new UserType('physical');
463
+
464
+ constructor(value) {
465
+ this.value = value;
466
+ }
467
+ }
468
+
457
469
  class VerificationStatus {
458
470
  static Created = new VerificationStatus('created');
459
471
 
@@ -523,7 +535,7 @@ exports.MLIndicatorLevel = MLIndicatorLevel;
523
535
  exports.MLIndicatorPeriod = MLIndicatorPeriod;
524
536
  exports.MLIndicatorType = MLIndicatorType;
525
537
  exports.Network = Network;
526
- exports.PLDFinterType = PLDFinterType;
538
+ exports.PLDFilterType = PLDFilterType;
527
539
  exports.Phase = Phase;
528
540
  exports.SavingCategory = SavingCategory;
529
541
  exports.ServiceProviderCategory = ServiceProviderCategory;
@@ -533,6 +545,7 @@ exports.TrackDataMethod = TrackDataMethod;
533
545
  exports.TransactionStatus = TransactionStatus;
534
546
  exports.TransferNetwork = TransferNetwork;
535
547
  exports.UserStatus = UserStatus;
548
+ exports.UserType = UserType;
536
549
  exports.VerificationStatus = VerificationStatus;
537
550
  exports.VerificationType = VerificationType;
538
551
  exports.WalletTransactionType = WalletTransactionType;