@cuenca-mx/cuenca-js 1.0.3 → 1.0.5

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.
@@ -318,6 +318,580 @@ class PLDFilterType {
318
318
  }
319
319
  }
320
320
 
321
+ class Country {
322
+ static AW = new Country('AW');
323
+
324
+ static AF = new Country('AF');
325
+
326
+ static AO = new Country('AO');
327
+
328
+ static AI = new Country('AI');
329
+
330
+ static AX = new Country('AX');
331
+
332
+ static AL = new Country('AL');
333
+
334
+ static AD = new Country('AD');
335
+
336
+ static AE = new Country('AE');
337
+
338
+ static AR = new Country('AR');
339
+
340
+ static AM = new Country('AM');
341
+
342
+ static AS = new Country('AS');
343
+
344
+ static AQ = new Country('AQ');
345
+
346
+ static TF = new Country('TF');
347
+
348
+ static AG = new Country('AG');
349
+
350
+ static AU = new Country('AU');
351
+
352
+ static AT = new Country('AT');
353
+
354
+ static AZ = new Country('AZ');
355
+
356
+ static BI = new Country('BI');
357
+
358
+ static BE = new Country('BE');
359
+
360
+ static BJ = new Country('BJ');
361
+
362
+ static BQ = new Country('BQ');
363
+
364
+ static BF = new Country('BF');
365
+
366
+ static BD = new Country('BD');
367
+
368
+ static BG = new Country('BG');
369
+
370
+ static BH = new Country('BH');
371
+
372
+ static BS = new Country('BS');
373
+
374
+ static BA = new Country('BA');
375
+
376
+ static BL = new Country('BL');
377
+
378
+ static BY = new Country('BY');
379
+
380
+ static BZ = new Country('BZ');
381
+
382
+ static BM = new Country('BM');
383
+
384
+ static BO = new Country('BO');
385
+
386
+ static BR = new Country('BR');
387
+
388
+ static BB = new Country('BB');
389
+
390
+ static BN = new Country('BN');
391
+
392
+ static BT = new Country('BT');
393
+
394
+ static BV = new Country('BV');
395
+
396
+ static BW = new Country('BW');
397
+
398
+ static CF = new Country('CF');
399
+
400
+ static CA = new Country('CA');
401
+
402
+ static CC = new Country('CC');
403
+
404
+ static CH = new Country('CH');
405
+
406
+ static CL = new Country('CL');
407
+
408
+ static CN = new Country('CN');
409
+
410
+ static CI = new Country('CI');
411
+
412
+ static CM = new Country('CM');
413
+
414
+ static CD = new Country('CD');
415
+
416
+ static CG = new Country('CG');
417
+
418
+ static CK = new Country('CK');
419
+
420
+ static CO = new Country('CO');
421
+
422
+ static KM = new Country('KM');
423
+
424
+ static CV = new Country('CV');
425
+
426
+ static CR = new Country('CR');
427
+
428
+ static CU = new Country('CU');
429
+
430
+ static CW = new Country('CW');
431
+
432
+ static CX = new Country('CX');
433
+
434
+ static KY = new Country('KY');
435
+
436
+ static CY = new Country('CY');
437
+
438
+ static CZ = new Country('CZ');
439
+
440
+ static DE = new Country('DE');
441
+
442
+ static DJ = new Country('DJ');
443
+
444
+ static DM = new Country('DM');
445
+
446
+ static DK = new Country('DK');
447
+
448
+ static DO = new Country('DO');
449
+
450
+ static DZ = new Country('DZ');
451
+
452
+ static EC = new Country('EC');
453
+
454
+ static EG = new Country('EG');
455
+
456
+ static ER = new Country('ER');
457
+
458
+ static EH = new Country('EH');
459
+
460
+ static ES = new Country('ES');
461
+
462
+ static EE = new Country('EE');
463
+
464
+ static ET = new Country('ET');
465
+
466
+ static FI = new Country('FI');
467
+
468
+ static FJ = new Country('FJ');
469
+
470
+ static FK = new Country('FK');
471
+
472
+ static FR = new Country('FR');
473
+
474
+ static FO = new Country('FO');
475
+
476
+ static FM = new Country('FM');
477
+
478
+ static GA = new Country('GA');
479
+
480
+ static GB = new Country('GB');
481
+
482
+ static GE = new Country('GE');
483
+
484
+ static GG = new Country('GG');
485
+
486
+ static GH = new Country('GH');
487
+
488
+ static GI = new Country('GI');
489
+
490
+ static GN = new Country('GN');
491
+
492
+ static GP = new Country('GP');
493
+
494
+ static GM = new Country('GM');
495
+
496
+ static GW = new Country('GW');
497
+
498
+ static GQ = new Country('GQ');
499
+
500
+ static GR = new Country('GR');
501
+
502
+ static GD = new Country('GD');
503
+
504
+ static GL = new Country('GL');
505
+
506
+ static GT = new Country('GT');
507
+
508
+ static GF = new Country('GF');
509
+
510
+ static GU = new Country('GU');
511
+
512
+ static GY = new Country('GY');
513
+
514
+ static HK = new Country('HK');
515
+
516
+ static HM = new Country('HM');
517
+
518
+ static HN = new Country('HN');
519
+
520
+ static HR = new Country('HR');
521
+
522
+ static HT = new Country('HT');
523
+
524
+ static HU = new Country('HU');
525
+
526
+ static ID = new Country('ID');
527
+
528
+ static IM = new Country('IM');
529
+
530
+ static IN = new Country('IN');
531
+
532
+ static IO = new Country('IO');
533
+
534
+ static IE = new Country('IE');
535
+
536
+ static IR = new Country('IR');
537
+
538
+ static IQ = new Country('IQ');
539
+
540
+ static IS = new Country('IS');
541
+
542
+ static IL = new Country('IL');
543
+
544
+ static IT = new Country('IT');
545
+
546
+ static JM = new Country('JM');
547
+
548
+ static JE = new Country('JE');
549
+
550
+ static JO = new Country('JO');
551
+
552
+ static JP = new Country('JP');
553
+
554
+ static KZ = new Country('KZ');
555
+
556
+ static KE = new Country('KE');
557
+
558
+ static KG = new Country('KG');
559
+
560
+ static KH = new Country('KH');
561
+
562
+ static KI = new Country('KI');
563
+
564
+ static KN = new Country('KN');
565
+
566
+ static KR = new Country('KR');
567
+
568
+ static KW = new Country('KW');
569
+
570
+ static LA = new Country('LA');
571
+
572
+ static LB = new Country('LB');
573
+
574
+ static LC = new Country('LC');
575
+
576
+ static LI = new Country('LI');
577
+
578
+ static LK = new Country('LK');
579
+
580
+ static LR = new Country('LR');
581
+
582
+ static LS = new Country('LS');
583
+
584
+ static LT = new Country('LT');
585
+
586
+ static LU = new Country('LU');
587
+
588
+ static LV = new Country('LV');
589
+
590
+ static LY = new Country('LY');
591
+
592
+ static MA = new Country('MA');
593
+
594
+ static MC = new Country('MC');
595
+
596
+ static MD = new Country('MD');
597
+
598
+ static MG = new Country('MG');
599
+
600
+ static MV = new Country('MV');
601
+
602
+ static MX = new Country('MX');
603
+
604
+ static MH = new Country('MH');
605
+
606
+ static MK = new Country('MK');
607
+
608
+ static ML = new Country('ML');
609
+
610
+ static MT = new Country('MT');
611
+
612
+ static MM = new Country('MM');
613
+
614
+ static ME = new Country('ME');
615
+
616
+ static MN = new Country('MN');
617
+
618
+ static MP = new Country('MP');
619
+
620
+ static MZ = new Country('MZ');
621
+
622
+ static MR = new Country('MR');
623
+
624
+ static MS = new Country('MS');
625
+
626
+ static MQ = new Country('MQ');
627
+
628
+ static MU = new Country('MU');
629
+
630
+ static MW = new Country('MW');
631
+
632
+ static MY = new Country('MY');
633
+
634
+ static YT = new Country('YT');
635
+
636
+ static NA = new Country('NA');
637
+
638
+ static NC = new Country('NC');
639
+
640
+ static NE = new Country('NE');
641
+
642
+ static NF = new Country('NF');
643
+
644
+ static NG = new Country('NG');
645
+
646
+ static NI = new Country('NI');
647
+
648
+ static NU = new Country('NU');
649
+
650
+ static NL = new Country('NL');
651
+
652
+ static NO = new Country('NO');
653
+
654
+ static NP = new Country('NP');
655
+
656
+ static NR = new Country('NR');
657
+
658
+ static NZ = new Country('NZ');
659
+
660
+ static OM = new Country('OM');
661
+
662
+ static PK = new Country('PK');
663
+
664
+ static PA = new Country('PA');
665
+
666
+ static PN = new Country('PN');
667
+
668
+ static PE = new Country('PE');
669
+
670
+ static PH = new Country('PH');
671
+
672
+ static PW = new Country('PW');
673
+
674
+ static PG = new Country('PG');
675
+
676
+ static PL = new Country('PL');
677
+
678
+ static PR = new Country('PR');
679
+
680
+ static KP = new Country('KP');
681
+
682
+ static PT = new Country('PT');
683
+
684
+ static PY = new Country('PY');
685
+
686
+ static PS = new Country('PS');
687
+
688
+ static PF = new Country('PF');
689
+
690
+ static QA = new Country('QA');
691
+
692
+ static RE = new Country('RE');
693
+
694
+ static RO = new Country('RO');
695
+
696
+ static RU = new Country('RU');
697
+
698
+ static RW = new Country('RW');
699
+
700
+ static SA = new Country('SA');
701
+
702
+ static SD = new Country('SD');
703
+
704
+ static SN = new Country('SN');
705
+
706
+ static SG = new Country('SG');
707
+
708
+ static GS = new Country('GS');
709
+
710
+ static SH = new Country('SH');
711
+
712
+ static SJ = new Country('SJ');
713
+
714
+ static SB = new Country('SB');
715
+
716
+ static SL = new Country('SL');
717
+
718
+ static SV = new Country('SV');
719
+
720
+ static SM = new Country('SM');
721
+
722
+ static SO = new Country('SO');
723
+
724
+ static PM = new Country('PM');
725
+
726
+ static RS = new Country('RS');
727
+
728
+ static SS = new Country('SS');
729
+
730
+ static ST = new Country('ST');
731
+
732
+ static SR = new Country('SR');
733
+
734
+ static SK = new Country('SK');
735
+
736
+ static SI = new Country('SI');
737
+
738
+ static SE = new Country('SE');
739
+
740
+ static SZ = new Country('SZ');
741
+
742
+ static SX = new Country('SX');
743
+
744
+ static SC = new Country('SC');
745
+
746
+ static SY = new Country('SY');
747
+
748
+ static TC = new Country('TC');
749
+
750
+ static TD = new Country('TD');
751
+
752
+ static TG = new Country('TG');
753
+
754
+ static TH = new Country('TH');
755
+
756
+ static TJ = new Country('TJ');
757
+
758
+ static TK = new Country('TK');
759
+
760
+ static TM = new Country('TM');
761
+
762
+ static TL = new Country('TL');
763
+
764
+ static TO = new Country('TO');
765
+
766
+ static TT = new Country('TT');
767
+
768
+ static TN = new Country('TN');
769
+
770
+ static TR = new Country('TR');
771
+
772
+ static TV = new Country('TV');
773
+
774
+ static TW = new Country('TW');
775
+
776
+ static TZ = new Country('TZ');
777
+
778
+ static UG = new Country('UG');
779
+
780
+ static UA = new Country('UA');
781
+
782
+ static UM = new Country('UM');
783
+
784
+ static UY = new Country('UY');
785
+
786
+ static US = new Country('US');
787
+
788
+ static UZ = new Country('UZ');
789
+
790
+ static VA = new Country('VA');
791
+
792
+ static VC = new Country('VC');
793
+
794
+ static VE = new Country('VE');
795
+
796
+ static VG = new Country('VG');
797
+
798
+ static VI = new Country('VI');
799
+
800
+ static VN = new Country('VN');
801
+
802
+ static VU = new Country('VU');
803
+
804
+ static WF = new Country('WF');
805
+
806
+ static WS = new Country('WS');
807
+
808
+ static YE = new Country('YE');
809
+
810
+ static ZA = new Country('ZA');
811
+
812
+ static ZM = new Country('ZM');
813
+
814
+ static ZW = new Country('ZW');
815
+
816
+ static XA = new Country('XA');
817
+
818
+ constructor(value) {
819
+ this.value = value;
820
+ }
821
+ }
822
+
823
+ class State {
824
+ static NE = new State('NE');
825
+
826
+ static AS = new State('AS');
827
+
828
+ static BC = new State('BC');
829
+
830
+ static BS = new State('BS');
831
+
832
+ static CC = new State('CC');
833
+
834
+ static CS = new State('CS');
835
+
836
+ static CH = new State('CH');
837
+
838
+ static CL = new State('CL');
839
+
840
+ static CM = new State('CM');
841
+
842
+ static DF = new State('DF');
843
+
844
+ static DG = new State('DG');
845
+
846
+ static GT = new State('GT');
847
+
848
+ static GR = new State('GR');
849
+
850
+ static HG = new State('HG');
851
+
852
+ static JC = new State('JC');
853
+
854
+ static MC = new State('MC');
855
+
856
+ static MN = new State('MN');
857
+
858
+ static MS = new State('MS');
859
+
860
+ static NT = new State('NT');
861
+
862
+ static NL = new State('NL');
863
+
864
+ static OC = new State('OC');
865
+
866
+ static PL = new State('PL');
867
+
868
+ static QT = new State('QT');
869
+
870
+ static QR = new State('QR');
871
+
872
+ static SP = new State('SP');
873
+
874
+ static SL = new State('SL');
875
+
876
+ static SR = new State('SR');
877
+
878
+ static TC = new State('TC');
879
+
880
+ static TL = new State('TL');
881
+
882
+ static TS = new State('TS');
883
+
884
+ static VZ = new State('VZ');
885
+
886
+ static YN = new State('YN');
887
+
888
+ static ZS = new State('ZS');
889
+
890
+ constructor(value) {
891
+ this.value = value;
892
+ }
893
+ }
894
+
321
895
  class ServiceProviderCategory {
322
896
  static Cable = new ServiceProviderCategory('cable');
323
897
 
@@ -540,6 +1114,7 @@ exports.CardStatus = CardStatus;
540
1114
  exports.CardTransactionType = CardTransactionType;
541
1115
  exports.CardType = CardType;
542
1116
  exports.CommissionType = CommissionType;
1117
+ exports.Country = Country;
543
1118
  exports.Currency = Currency;
544
1119
  exports.DepositNetwork = DepositNetwork;
545
1120
  exports.EntryType = EntryType;
@@ -556,6 +1131,7 @@ exports.SavingCategory = SavingCategory;
556
1131
  exports.ServiceProviderCategory = ServiceProviderCategory;
557
1132
  exports.SessionType = SessionType;
558
1133
  exports.SourceAlertType = SourceAlertType;
1134
+ exports.State = State;
559
1135
  exports.TrackDataMethod = TrackDataMethod;
560
1136
  exports.TransactionStatus = TransactionStatus;
561
1137
  exports.TransferNetwork = TransferNetwork;
package/build/index.cjs CHANGED
@@ -6,9 +6,9 @@ var axios = require('axios');
6
6
  var Buffer = require('buffer');
7
7
  var errors_index = require('./errors/index.cjs');
8
8
  var jwt_index = require('./jwt/index.cjs');
9
- var data = require('./data-05e6356c.cjs');
10
- var vulnerableActivity = require('./vulnerableActivity-1c803b4b.cjs');
11
- var walletTransactionRequest = require('./walletTransactionRequest-db9c27b7.cjs');
9
+ var data = require('./data-5a8f0772.cjs');
10
+ var vulnerableActivity = require('./vulnerableActivity-7ce02b65.cjs');
11
+ var walletTransactionRequest = require('./walletTransactionRequest-c14a5efd.cjs');
12
12
 
13
13
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
14
14
 
@@ -26,7 +26,7 @@ const isNode =
26
26
 
27
27
  const runtimeEnv = { isBrowser, isNode };
28
28
 
29
- const name="@cuenca-mx/cuenca-js";const version="1.0.3";const description="Cuenca client for JS";const main="./build/index.cjs";const module$1="./build/index.mjs";const browser="./build/umd/cuenca.umd.js";const files=["build/**/*"];const exports$1={".":{"import":"./build/index.mjs",require:"./build/index.cjs"},"./errors":{"import":"./build/errors/index.mjs",require:"./build/errors/index.cjs"},"./jwt":{"import":"./build/jwt/index.mjs",require:"./build/jwt/index.cjs"},"./requests":{"import":"./build/requests/index.mjs",require:"./build/requests/index.cjs"},"./types":{"import":"./build/types/index.mjs",require:"./build/types/index.cjs"}};const packageManager="yarn@3.0.2";const type="module";const repository={type:"git",url:"https://github.com/cuenca-mx/cuenca-js.git",directory:"packages/cuenca-js"};const keywords=["cuenca"];const license="MIT";const bugs={url:"https://github.com/cuenca-mx/cuenca-js/issues"};const homepage="https://cuenca.com";const scripts={build:"rm -rf build/ && yarn rollup --config",test:"yarn node --experimental-vm-modules $(yarn bin jest)",publish:"yarn build && yarn npm publish",dev:"rm -rf build/ && yarn rollup --config && yarn node ../example.cjs",example:"yarn node ../example.cjs"};const devDependencies={"@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^13.1.1",jest:"^27.4.5",rollup:"^2.61.1","rollup-plugin-terser":"^7.0.2"};const dependencies={axios:"^0.24.0",buffer:"^6.0.3"};var pkg = {name:name,version:version,description:description,main:main,module:module$1,browser:browser,files:files,exports:exports$1,packageManager:packageManager,type:type,repository:repository,keywords:keywords,license:license,bugs:bugs,homepage:homepage,scripts:scripts,devDependencies:devDependencies,dependencies:dependencies};
29
+ const name="@cuenca-mx/cuenca-js";const version="1.0.5";const description="Cuenca client for JS";const main="./build/index.cjs";const module$1="./build/index.mjs";const browser="./build/umd/cuenca.umd.js";const files=["build/**/*"];const exports$1={".":{"import":"./build/index.mjs",require:"./build/index.cjs"},"./errors":{"import":"./build/errors/index.mjs",require:"./build/errors/index.cjs"},"./jwt":{"import":"./build/jwt/index.mjs",require:"./build/jwt/index.cjs"},"./requests":{"import":"./build/requests/index.mjs",require:"./build/requests/index.cjs"},"./types":{"import":"./build/types/index.mjs",require:"./build/types/index.cjs"}};const packageManager="yarn@3.0.2";const type="module";const repository={type:"git",url:"https://github.com/cuenca-mx/cuenca-js.git",directory:"packages/cuenca-js"};const keywords=["cuenca"];const license="MIT";const bugs={url:"https://github.com/cuenca-mx/cuenca-js/issues"};const homepage="https://cuenca.com";const scripts={build:"rm -rf build/ && yarn rollup --config",test:"yarn node --experimental-vm-modules $(yarn bin jest)",publish:"yarn build && yarn npm publish",dev:"rm -rf build/ && yarn rollup --config && yarn node ../example.cjs",example:"yarn node ../example.cjs"};const devDependencies={"@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^13.1.1",jest:"^27.4.5",rollup:"^2.61.1","rollup-plugin-terser":"^7.0.2"};const dependencies={axios:"^0.24.0",buffer:"^6.0.3"};var pkg = {name:name,version:version,description:description,main:main,module:module$1,browser:browser,files:files,exports:exports$1,packageManager:packageManager,type:type,repository:repository,keywords:keywords,license:license,bugs:bugs,homepage:homepage,scripts:scripts,devDependencies:devDependencies,dependencies:dependencies};
30
30
 
31
31
  class Client {
32
32
  constructor({
@@ -1421,8 +1421,8 @@ class PostalCode {
1421
1421
  this.postalCode = postalCode;
1422
1422
  this.colonia = colonia;
1423
1423
  this.city = city;
1424
- this.state = state;
1425
- this.country = country;
1424
+ this.state = data.enumValueFromString(data.State, state);
1425
+ this.country = data.enumValueFromString(data.Country, country);
1426
1426
  this.createdAt = data.dateToUTC(createdAt);
1427
1427
  this.updatedAt = data.dateToUTC(updatedAt);
1428
1428
  }
package/build/index.mjs CHANGED
@@ -2,9 +2,9 @@ import axios from 'axios';
2
2
  import Buffer from 'buffer';
3
3
  import { CuencaResponseException, CuencaException, NoResultFound, MultipleResultsFound, InvalidPassword } from './errors/index.mjs';
4
4
  import { Jwt } from './jwt/index.mjs';
5
- import { P as Phase, F as FileFormat, d as dateToUTC, e as enumValueFromString, M as MLIndicatorLevel, a as MLIndicatorPeriod, A as AlertStatus, S as SourceAlertType, b as MLIndicatorType, c as PLDFilterType, E as EntryType, T as TransactionStatus, B as BridgeAccountStatus, f as BridgeBankAccountStatus, C as Currency, N as Network, g as BridgeTransactionType, h as CardFundingType, i as CardIssuer, j as CardStatus, k as CardType, l as CardErrorType, m as CardTransactionType, n as CommissionType, D as DepositNetwork, K as KYCFileType, V as VerificationStatus, o as KYCValidationSource, U as UserStatus, p as SavingCategory, q as ServiceProviderCategory, r as SessionType, s as TransferNetwork, t as VerificationType, W as WalletTransactionType } from './data-1407d97a.mjs';
6
- import { A as AlertLog, a as Address, K as KYCFile, T as TOSAgreements, b as TransactionalProfileServices, S as ShareholderMoral, L as LegalRepresentatives, E as ExternalAccount, V as VulnerableActivity, c as Audit, d as License, B as BusinessDetails, e as AccountQuery, f as AlertQuery, g as ApiKeyQuery, h as BalanceEntryQuery, i as BillPaymentQuery, j as BridgeAccountQuery, k as BridgeBankAccountQuery, l as BridgeQuery, m as BridgeTransactionQuery, C as CardsQuery, n as CardTransactionQuery, Q as QueryParams, D as DepositQuery, P as PartnerQuery, o as PostalCodeQuery, W as WalletQuery, p as StatementQuery, q as TransferQuery, U as UserQuery, r as WalletTransactionQuery } from './vulnerableActivity-682cac99.mjs';
7
- import { A as AlertUpdateRequest, a as ApiKeyUpdateRequest, b as ArpcRequest, U as UserUpdateRequest, C as CardActivationRequest, c as CardRequest, d as CardUpdateRequest, e as CardValidationRequest, K as KYCValidationsRequest, P as PartnerUserRequest, S as SavingRequest, f as SessionRequest, T as TransferRequest, g as UserCredentialRequest, h as UserCredentialUpdateRequest, i as UserLoginRequest, V as VerificationRequest, j as VerificationAttemptRequest, W as WalletTransactionRequest } from './walletTransactionRequest-ee13a264.mjs';
5
+ import { P as Phase, F as FileFormat, d as dateToUTC, e as enumValueFromString, M as MLIndicatorLevel, a as MLIndicatorPeriod, A as AlertStatus, S as SourceAlertType, b as MLIndicatorType, c as PLDFilterType, E as EntryType, T as TransactionStatus, B as BridgeAccountStatus, f as BridgeBankAccountStatus, C as Currency, N as Network, g as BridgeTransactionType, h as CardFundingType, i as CardIssuer, j as CardStatus, k as CardType, l as CardErrorType, m as CardTransactionType, n as CommissionType, D as DepositNetwork, K as KYCFileType, V as VerificationStatus, o as KYCValidationSource, U as UserStatus, p as State, q as Country, r as SavingCategory, s as ServiceProviderCategory, t as SessionType, u as TransferNetwork, v as VerificationType, W as WalletTransactionType } from './data-519413b2.mjs';
6
+ import { A as AlertLog, a as Address, K as KYCFile, T as TOSAgreements, b as TransactionalProfileServices, S as ShareholderMoral, L as LegalRepresentatives, E as ExternalAccount, V as VulnerableActivity, c as Audit, d as License, B as BusinessDetails, e as AccountQuery, f as AlertQuery, g as ApiKeyQuery, h as BalanceEntryQuery, i as BillPaymentQuery, j as BridgeAccountQuery, k as BridgeBankAccountQuery, l as BridgeQuery, m as BridgeTransactionQuery, C as CardsQuery, n as CardTransactionQuery, Q as QueryParams, D as DepositQuery, P as PartnerQuery, o as PostalCodeQuery, W as WalletQuery, p as StatementQuery, q as TransferQuery, U as UserQuery, r as WalletTransactionQuery } from './vulnerableActivity-cffffbc1.mjs';
7
+ import { A as AlertUpdateRequest, a as ApiKeyUpdateRequest, b as ArpcRequest, U as UserUpdateRequest, C as CardActivationRequest, c as CardRequest, d as CardUpdateRequest, e as CardValidationRequest, K as KYCValidationsRequest, P as PartnerUserRequest, S as SavingRequest, f as SessionRequest, T as TransferRequest, g as UserCredentialRequest, h as UserCredentialUpdateRequest, i as UserLoginRequest, V as VerificationRequest, j as VerificationAttemptRequest, W as WalletTransactionRequest } from './walletTransactionRequest-9092f2cf.mjs';
8
8
 
9
9
  /* global window */
10
10
 
@@ -17,7 +17,7 @@ const isNode =
17
17
 
18
18
  const runtimeEnv = { isBrowser, isNode };
19
19
 
20
- const name="@cuenca-mx/cuenca-js";const version="1.0.3";const description="Cuenca client for JS";const main="./build/index.cjs";const module="./build/index.mjs";const browser="./build/umd/cuenca.umd.js";const files=["build/**/*"];const exports={".":{"import":"./build/index.mjs",require:"./build/index.cjs"},"./errors":{"import":"./build/errors/index.mjs",require:"./build/errors/index.cjs"},"./jwt":{"import":"./build/jwt/index.mjs",require:"./build/jwt/index.cjs"},"./requests":{"import":"./build/requests/index.mjs",require:"./build/requests/index.cjs"},"./types":{"import":"./build/types/index.mjs",require:"./build/types/index.cjs"}};const packageManager="yarn@3.0.2";const type="module";const repository={type:"git",url:"https://github.com/cuenca-mx/cuenca-js.git",directory:"packages/cuenca-js"};const keywords=["cuenca"];const license="MIT";const bugs={url:"https://github.com/cuenca-mx/cuenca-js/issues"};const homepage="https://cuenca.com";const scripts={build:"rm -rf build/ && yarn rollup --config",test:"yarn node --experimental-vm-modules $(yarn bin jest)",publish:"yarn build && yarn npm publish",dev:"rm -rf build/ && yarn rollup --config && yarn node ../example.cjs",example:"yarn node ../example.cjs"};const devDependencies={"@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^13.1.1",jest:"^27.4.5",rollup:"^2.61.1","rollup-plugin-terser":"^7.0.2"};const dependencies={axios:"^0.24.0",buffer:"^6.0.3"};var pkg = {name:name,version:version,description:description,main:main,module:module,browser:browser,files:files,exports:exports,packageManager:packageManager,type:type,repository:repository,keywords:keywords,license:license,bugs:bugs,homepage:homepage,scripts:scripts,devDependencies:devDependencies,dependencies:dependencies};
20
+ const name="@cuenca-mx/cuenca-js";const version="1.0.5";const description="Cuenca client for JS";const main="./build/index.cjs";const module="./build/index.mjs";const browser="./build/umd/cuenca.umd.js";const files=["build/**/*"];const exports={".":{"import":"./build/index.mjs",require:"./build/index.cjs"},"./errors":{"import":"./build/errors/index.mjs",require:"./build/errors/index.cjs"},"./jwt":{"import":"./build/jwt/index.mjs",require:"./build/jwt/index.cjs"},"./requests":{"import":"./build/requests/index.mjs",require:"./build/requests/index.cjs"},"./types":{"import":"./build/types/index.mjs",require:"./build/types/index.cjs"}};const packageManager="yarn@3.0.2";const type="module";const repository={type:"git",url:"https://github.com/cuenca-mx/cuenca-js.git",directory:"packages/cuenca-js"};const keywords=["cuenca"];const license="MIT";const bugs={url:"https://github.com/cuenca-mx/cuenca-js/issues"};const homepage="https://cuenca.com";const scripts={build:"rm -rf build/ && yarn rollup --config",test:"yarn node --experimental-vm-modules $(yarn bin jest)",publish:"yarn build && yarn npm publish",dev:"rm -rf build/ && yarn rollup --config && yarn node ../example.cjs",example:"yarn node ../example.cjs"};const devDependencies={"@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^13.1.1",jest:"^27.4.5",rollup:"^2.61.1","rollup-plugin-terser":"^7.0.2"};const dependencies={axios:"^0.24.0",buffer:"^6.0.3"};var pkg = {name:name,version:version,description:description,main:main,module:module,browser:browser,files:files,exports:exports,packageManager:packageManager,type:type,repository:repository,keywords:keywords,license:license,bugs:bugs,homepage:homepage,scripts:scripts,devDependencies:devDependencies,dependencies:dependencies};
21
21
 
22
22
  class Client {
23
23
  constructor({
@@ -1412,8 +1412,8 @@ class PostalCode {
1412
1412
  this.postalCode = postalCode;
1413
1413
  this.colonia = colonia;
1414
1414
  this.city = city;
1415
- this.state = state;
1416
- this.country = country;
1415
+ this.state = enumValueFromString(State, state);
1416
+ this.country = enumValueFromString(Country, country);
1417
1417
  this.createdAt = dateToUTC(createdAt);
1418
1418
  this.updatedAt = dateToUTC(updatedAt);
1419
1419
  }
@@ -2,9 +2,9 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var walletTransactionRequest = require('../walletTransactionRequest-db9c27b7.cjs');
5
+ var walletTransactionRequest = require('../walletTransactionRequest-c14a5efd.cjs');
6
6
  require('../errors/index.cjs');
7
- require('../data-05e6356c.cjs');
7
+ require('../data-5a8f0772.cjs');
8
8
 
9
9
  class UploadRequest extends walletTransactionRequest.BaseRequest {
10
10
  constructor({ isBack = false, file, extension, type, userId = 'me' }) {