@cuenca-mx/cuenca-js 0.0.14-dev13 → 0.0.14-dev15

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.
@@ -409,13 +409,472 @@ class KYCValidationsRequest extends BaseRequest {
409
409
  }
410
410
  }
411
411
 
412
+ class TosUpdateRequest extends BaseRequest {
413
+ constructor({ ip, location, type, version }) {
414
+ super();
415
+ this.ipAddress = ip;
416
+ this.location = location;
417
+ this.type = type;
418
+ this.version = version;
419
+ }
420
+
421
+ get ip() {
422
+ return this._ip;
423
+ }
424
+
425
+ set ipAddress(value) {
426
+ if (!value) throw new errors_index.ValidationError('missing ip address');
427
+ const ipBlocks = value.split('.');
428
+ const blocks = ipBlocks.every((block) => {
429
+ return block >= 0 && block <= 255;
430
+ });
431
+ if (blocks) {
432
+ this._ip = value;
433
+ } else {
434
+ throw new errors_index.ValidationError('Invalid ip address');
435
+ }
436
+ }
437
+
438
+ toObject() {
439
+ return {
440
+ ip: this.ip,
441
+ location: this.location,
442
+ type: this.type,
443
+ version: this.version,
444
+ };
445
+ }
446
+ }
447
+
448
+ class AddressUpdateRequest extends BaseRequest {
449
+ constructor({
450
+ city,
451
+ colonia,
452
+ country,
453
+ extNumber,
454
+ fullName,
455
+ intNumber,
456
+ postalCode,
457
+ state,
458
+ street,
459
+ } = {}) {
460
+ super();
461
+ this.city = city;
462
+ this.colonia = colonia;
463
+ this.country = country;
464
+ this.extNumber = extNumber;
465
+ this.fullName = fullName;
466
+ this.intNumber = intNumber;
467
+ this.postalCode = postalCode;
468
+ this.state = state;
469
+ this.street = street;
470
+ }
471
+
472
+ toObject() {
473
+ return {
474
+ city: this.city,
475
+ colonia: this.colonia,
476
+ country: this.country,
477
+ ext_number: this.extNumber,
478
+ full_name: this.fullName,
479
+ int_number: this.intNumber,
480
+ postal_code: this.postalCode,
481
+ state: this.state,
482
+ street: this.street,
483
+ };
484
+ }
485
+ }
486
+
487
+ class KycFileRequest extends BaseRequest {
488
+ constructor({ data, isMx, status, type, uriBack, uriFront }) {
489
+ super();
490
+ this.data = data;
491
+ this.isMx = isMx;
492
+ this.status = status;
493
+ this.type = type;
494
+ this.uriBack = uriBack;
495
+ this.uriFront = uriFront;
496
+ }
497
+
498
+ toObject() {
499
+ return {
500
+ data: this.data,
501
+ is_mx: this.isMx,
502
+ status: this.status,
503
+ type: this.type,
504
+ uri_back: this.uriBack,
505
+ uri_front: this.uriFront,
506
+ };
507
+ }
508
+ }
509
+
510
+ class UserUpdateRequest extends BaseRequest {
511
+ constructor({
512
+ address,
513
+ curpDocumentUri,
514
+ govtId,
515
+ profession,
516
+ proofOfAddress,
517
+ proofOfLife,
518
+ requiredLevel,
519
+ termsOfService,
520
+ phoneNumber,
521
+ userType,
522
+ verificationId,
523
+ }) {
524
+ super();
525
+ this.addressProofs = proofOfAddress;
526
+ this.adrs = address;
527
+ this.curpDocumentUri = curpDocumentUri;
528
+ this.govstIds = govtId;
529
+ this.lifeProofs = proofOfLife;
530
+ this.profession = profession;
531
+ this.phoneNumber = phoneNumber;
532
+ this.requiredLevel = requiredLevel;
533
+ this.termsOfService = termsOfService;
534
+ this.userType = userType;
535
+ this.verificationId = verificationId;
536
+ }
537
+
538
+ get termsOfService() {
539
+ return this._termsOfService;
540
+ }
541
+
542
+ set termsOfService(value) {
543
+ if (!value) return;
544
+ this._termsOfService = new TosUpdateRequest(value).toObject();
545
+ }
546
+
547
+ get address() {
548
+ return this._address;
549
+ }
550
+
551
+ set adrs(value) {
552
+ if (!value) return;
553
+ this._address = new AddressUpdateRequest(value).toCleanObject();
554
+ }
555
+
556
+ get proofOfLife() {
557
+ return this._proofOfLife;
558
+ }
559
+
560
+ set lifeProofs(value) {
561
+ if (!value) return;
562
+ this._proofOfLife = new KycFileRequest(value).toCleanObject();
563
+ }
564
+
565
+ get proofOfAddress() {
566
+ return this._proofOfAddress;
567
+ }
568
+
569
+ set addressProofs(value) {
570
+ if (!value) return;
571
+ this._proofOfAddress = new KycFileRequest(value).toCleanObject();
572
+ }
573
+
574
+ get govtId() {
575
+ return this._govtId;
576
+ }
577
+
578
+ set govstIds(value) {
579
+ if (!value) return;
580
+ this._govtId = new KycFileRequest(value).toCleanObject();
581
+ }
582
+
583
+ toObject() {
584
+ return {
585
+ address: this.address,
586
+ curp_document_uri: this.curpDocumentUri,
587
+ profession: this.profession,
588
+ phone_number: this.phoneNumber,
589
+ requiredLevel: this.requiredLevel,
590
+ terms_of_service: this.termsOfService,
591
+ verification_id: this.verificationId,
592
+ proof_of_life: this.proofOfLife,
593
+ proof_of_address: this.proofOfAddress,
594
+ govt_id: this.govtId,
595
+ user_type: this.userType,
596
+ };
597
+ }
598
+ }
599
+
600
+ class TransactionalProfileServicesRequest extends BaseRequest {
601
+ constructor({
602
+ speiTransfersNum,
603
+ speiTransfersAmount,
604
+ internalTransfersNum,
605
+ internalTransfersAmount,
606
+ }) {
607
+ super();
608
+ this.speiTransfersNum = speiTransfersNum;
609
+ this.speiTransfersAmount = speiTransfersAmount;
610
+ this.internalTransfersNum = internalTransfersNum;
611
+ this.internalTransfersAmount = internalTransfersAmount;
612
+ }
613
+
614
+ toObject() {
615
+ const response = {
616
+ spei_transfers_num: this.speiTransfersNum,
617
+ spei_transfers_amount: this.speiTransfersAmount,
618
+ internal_transfers_num: this.internalTransfersNum,
619
+ internal_transfers_amount: this.internalTransfersAmount,
620
+ };
621
+ return response;
622
+ }
623
+ }
624
+
625
+ class TransactionalProfileRequest {
626
+ constructor({
627
+ currency,
628
+ monthlyAmount,
629
+ recipientsNum,
630
+ payersNum,
631
+ deposits,
632
+ withdrawal,
633
+ }) {
634
+ this.currency = currency;
635
+ this.monthlyAmount = monthlyAmount;
636
+
637
+ this.recipientsNum = recipientsNum;
638
+ this.payersNum = payersNum;
639
+
640
+ this.setDeposits = deposits;
641
+ this.setWithdrawal = withdrawal;
642
+ }
643
+
644
+ get deposits() {
645
+ return this._deposits;
646
+ }
647
+
648
+ set setDeposits(value) {
649
+ if (!value) return;
650
+ this._deposits = new TransactionalProfileServicesRequest(value).toObject();
651
+ }
652
+
653
+ get withdrawal() {
654
+ return this._withdrawal;
655
+ }
656
+
657
+ set setWithdrawal(value) {
658
+ if (!value) return;
659
+ this._withdrawal = new TransactionalProfileServicesRequest(
660
+ value,
661
+ ).toObject();
662
+ }
663
+
664
+ toObject() {
665
+ return {
666
+ currency: this.currency,
667
+ monthly_amount: this.monthlyAmount,
668
+ recipients_num: this.recipientsNum,
669
+ payers_num: this.payersNum,
670
+ deposits: this.deposits,
671
+ withdrawal: this.withdrawal,
672
+ };
673
+ }
674
+ }
675
+
676
+ class BusinessDetailsRequest extends BaseRequest {
677
+ constructor({ accountUsageDescription, businessDescription }) {
678
+ super();
679
+ this.accountUsageDescription = accountUsageDescription;
680
+ this.businessDescription = businessDescription;
681
+ }
682
+
683
+ toObject() {
684
+ return {
685
+ account_usage_description: this.accountUsageDescription,
686
+ business_description: this.businessDescription,
687
+ };
688
+ }
689
+ }
690
+
691
+ class ShareholderPhysicalRequest extends BaseRequest {
692
+ constructor({
693
+ names,
694
+ curp,
695
+ rfc,
696
+ firstSurname,
697
+ percentage,
698
+ secondSurname,
699
+ shareCapital,
700
+ }) {
701
+ super();
702
+ this.names = names;
703
+ this.curp = curp;
704
+ this.percentage = percentage;
705
+ this.rfc = rfc;
706
+ this.shareCapital = shareCapital;
707
+ this.firstSurname = firstSurname;
708
+ this.secondSurname = secondSurname;
709
+ }
710
+
711
+ toObject() {
712
+ return {
713
+ curp: this.curp,
714
+ names: this.names,
715
+ percentage: this.percentage,
716
+ rfc: this.rfc,
717
+ share_capital: this.shareCapital,
718
+ first_surname: this.firstSurname,
719
+ second_surname: this.secondSurname,
720
+ };
721
+ }
722
+ }
723
+
724
+ class LegalRepresentativesRequest extends ShareholderPhysicalRequest {
725
+ constructor({
726
+ address,
727
+ curp,
728
+ emailAddress,
729
+ firstSurname,
730
+ job,
731
+ names,
732
+ percentage,
733
+ phoneNumber,
734
+ rfc,
735
+ secondSurname,
736
+ }) {
737
+ super({ curp, firstSurname, names, percentage, rfc, secondSurname });
738
+ this.job = job;
739
+ this.phoneNumber = phoneNumber;
740
+ this.emailAddress = emailAddress;
741
+ this.setAddress = address;
742
+ }
743
+
744
+ get address() {
745
+ return this._address;
746
+ }
747
+
748
+ set setAddress(value) {
749
+ if (!value) return;
750
+ this._address = new AddressUpdateRequest(value).toCleanObject();
751
+ }
752
+
753
+ toObject() {
754
+ return {
755
+ ...super.toObject(),
756
+ job: this.job,
757
+ phone_number: this.phoneNumber,
758
+ email_address: this.emailAddress,
759
+ address: this.address,
760
+ };
761
+ }
762
+ }
763
+
764
+ class ShareholderMoralRequest extends BaseRequest {
765
+ constructor({ name, percentage, shareholders, legalRepresentatives }) {
766
+ super();
767
+ this.name = name;
768
+ this.percentage = percentage;
769
+ this.setShareholders = shareholders;
770
+ this.setLegalRepresentatives = legalRepresentatives;
771
+ }
772
+
773
+ get shareholders() {
774
+ return this._shareholders;
775
+ }
776
+
777
+ set setShareholders(value) {
778
+ if (!value) return;
779
+ this._shareholders = value.map((sh) =>
780
+ new ShareholderPhysicalRequest(sh).toObject(),
781
+ );
782
+ }
783
+
784
+ get legalRepresentatives() {
785
+ return this._legalRepresentatives;
786
+ }
787
+
788
+ set setLegalRepresentatives(value) {
789
+ if (!value) return;
790
+ this._legalRepresentatives = value.map((lr) =>
791
+ new LegalRepresentativesRequest(lr).toObject(),
792
+ );
793
+ }
794
+
795
+ toObject() {
796
+ return {
797
+ name: this.name,
798
+ percentage: this.percentage,
799
+ shareholders: this.shareholders,
800
+ legal_representatives: this.legalRepresentatives,
801
+ };
802
+ }
803
+ }
804
+
805
+ class VulnerableActivityRequest extends BaseRequest {
806
+ constructor({
807
+ isVulnerableActivity,
808
+ hasSatRegister,
809
+ satRegisteredDate,
810
+ isInCompliance,
811
+ }) {
812
+ super();
813
+ this.isVulnerableActivity = isVulnerableActivity;
814
+ this.hasSatRegister = hasSatRegister;
815
+ this.satRegisteredDate = satRegisteredDate;
816
+ this.isInCompliance = isInCompliance;
817
+ }
818
+
819
+ toObject() {
820
+ return {
821
+ is_vulnerable_activity: this.isVulnerableActivity,
822
+ has_sat_register: this.hasSatRegister,
823
+ sat_registered_date: this.satRegisteredDate,
824
+ is_in_compliance: this.isInCompliance,
825
+ };
826
+ }
827
+ }
828
+
829
+ class LicenseRequest extends BaseRequest {
830
+ constructor({
831
+ licenseRequired,
832
+ supervisoryEntity,
833
+ licenseType,
834
+ licenseDate,
835
+ }) {
836
+ super();
837
+ this.licenseRequired = licenseRequired;
838
+ this.supervisoryEntity = supervisoryEntity;
839
+ this.licenseType = licenseType;
840
+ this.licenseDate = licenseDate;
841
+ }
842
+
843
+ toObject() {
844
+ return {
845
+ license_required: this.licenseRequired,
846
+ supervisory_entity: this.supervisoryEntity,
847
+ license_type: this.licenseType,
848
+ license_date: this.licenseDate,
849
+ };
850
+ }
851
+ }
852
+
853
+ class AuditRequest extends BaseRequest {
854
+ constructor({ hasAudit, auditProvider, auditDate, auditComments }) {
855
+ super();
856
+ this.hasAudit = hasAudit;
857
+ this.auditProvider = auditProvider;
858
+ this.auditDate = auditDate;
859
+ this.auditComments = auditComments;
860
+ }
861
+
862
+ toObject() {
863
+ return {
864
+ has_audit: this.hasAudit,
865
+ audit_provider: this.auditProvider,
866
+ audit_date: this.auditDate,
867
+ audit_comments: this.auditComments,
868
+ };
869
+ }
870
+ }
871
+
412
872
  class PartnerUserRequest extends BaseRequest {
413
873
  constructor({
414
874
  address,
415
875
  audit,
416
876
  businessDetails,
417
877
  businessName,
418
- cert,
419
878
  clabe,
420
879
  createdAt,
421
880
  documentationUrl,
@@ -429,9 +888,11 @@ class PartnerUserRequest extends BaseRequest {
429
888
  level,
430
889
  license,
431
890
  meta,
891
+ nationality,
432
892
  phoneNumber,
433
893
  platformId,
434
894
  requiredLevel,
895
+ rfc,
435
896
  shareholders,
436
897
  status,
437
898
  transactionalProfile,
@@ -442,11 +903,10 @@ class PartnerUserRequest extends BaseRequest {
442
903
  webSite,
443
904
  } = {}) {
444
905
  super(); // Asegúrate de pasar cualquier argumento necesario al constructor de la clase base, si es aplicable
445
- this.address = address;
446
- this.audit = audit;
447
- this.businessDetails = businessDetails;
906
+ this.adrs = address;
907
+ this.auditMap = audit;
908
+ this.businessDetailsMap = businessDetails;
448
909
  this.businessName = businessName;
449
- this.cert = cert;
450
910
  this.clabe = clabe;
451
911
  this.createdAt = createdAt;
452
912
  this.documentationUrl = documentationUrl;
@@ -456,30 +916,109 @@ class PartnerUserRequest extends BaseRequest {
456
916
  this.id = id;
457
917
  this.incorporationDate = incorporationDate;
458
918
  this.legalName = legalName;
459
- this.legalRepresentatives = legalRepresentatives; // Asegúrate de manejar correctamente las listas de objetos
919
+ this.legalRepresentativesMap = legalRepresentatives; // Asegúrate de manejar correctamente las listas de objetos
460
920
  this.level = level;
461
- this.license = license;
921
+ this.licenseMap = license;
462
922
  this.meta = meta;
923
+ this.nationality = nationality;
463
924
  this.phoneNumber = phoneNumber;
464
925
  this.platformId = platformId;
465
926
  this.requiredLevel = requiredLevel;
466
- this.shareholders = shareholders; // Asegúrate de manejar correctamente las listas de objetos
927
+ this.rfc = rfc;
928
+ this.shareholdersMap = shareholders;
467
929
  this.status = status;
468
- this.transactionalProfile = transactionalProfile;
930
+ this.transactionalProfileMap = transactionalProfile;
469
931
  this.updatedAt = updatedAt;
470
932
  this.userId = userId;
471
933
  this.userType = userType;
472
- this.vulnerableActivity = vulnerableActivity;
934
+ this.vulnerableActivitMAP = vulnerableActivity;
473
935
  this.webSite = webSite;
474
936
  }
475
937
 
938
+ get businessDetails() {
939
+ return this._businessDetails;
940
+ }
941
+
942
+ set businessDetailsMap(value) {
943
+ if (!value) return;
944
+ this._businessDetails = new BusinessDetailsRequest(value).toObject();
945
+ }
946
+
947
+ get address() {
948
+ return this._address;
949
+ }
950
+
951
+ set adrs(value) {
952
+ if (!value) return;
953
+ this._address = new AddressUpdateRequest(value).toCleanObject();
954
+ }
955
+
956
+ get transactionalProfile() {
957
+ return this._transactionalProfile;
958
+ }
959
+
960
+ set transactionalProfileMap(value) {
961
+ if (!value) return;
962
+ this._transactionalProfile = new TransactionalProfileRequest(
963
+ value,
964
+ ).toObject();
965
+ }
966
+
967
+ get shareholders() {
968
+ return this._shareholders;
969
+ }
970
+
971
+ set shareholdersMap(value) {
972
+ if (!value) return;
973
+ this._shareholders = value.map((sh) =>
974
+ new ShareholderMoralRequest(sh).toObject(),
975
+ );
976
+ }
977
+
978
+ get legalRepresentatives() {
979
+ return this._legalRepresentatives;
980
+ }
981
+
982
+ set legalRepresentativesMap(value) {
983
+ if (!value) return;
984
+ this._legalRepresentatives = value.map((lr) =>
985
+ new LegalRepresentativesRequest(lr).toObject(),
986
+ );
987
+ }
988
+
989
+ get vulnerableActivity() {
990
+ return this._vulnerableActivity;
991
+ }
992
+
993
+ set vulnerableActivitMAP(value) {
994
+ if (!value) return;
995
+ this._vulnerableActivity = new VulnerableActivityRequest(value).toObject();
996
+ }
997
+
998
+ get license() {
999
+ return this._license;
1000
+ }
1001
+
1002
+ set licenseMap(value) {
1003
+ if (!value) return;
1004
+ this._license = new LicenseRequest(value).toObject();
1005
+ }
1006
+
1007
+ get audit() {
1008
+ return this._audit;
1009
+ }
1010
+
1011
+ set auditMap(value) {
1012
+ if (!value) return;
1013
+ this._audit = new AuditRequest(value).toObject();
1014
+ }
1015
+
476
1016
  toObject() {
477
- return {
1017
+ const obj = {
478
1018
  address: this.address,
479
1019
  audit: this.audit,
480
1020
  business_details: this.businessDetails,
481
1021
  business_name: this.businessName,
482
- cert: this.cert,
483
1022
  clabe: this.clabe,
484
1023
  created_at: this.createdAt,
485
1024
  documentation_url: this.documentationUrl,
@@ -489,16 +1028,16 @@ class PartnerUserRequest extends BaseRequest {
489
1028
  id: this.id,
490
1029
  incorporation_date: this.incorporationDate,
491
1030
  legal_name: this.legalName,
492
- legal_representatives: this.legalRepresentatives.map((lr) =>
493
- lr.toObject(),
494
- ),
1031
+ legal_representatives: this.legalRepresentatives,
495
1032
  level: this.level,
496
1033
  license: this.license,
497
1034
  meta: this.meta,
1035
+ nationality: this.nationality,
498
1036
  phone_number: this.phoneNumber,
499
1037
  platform_id: this.platformId,
500
1038
  required_level: this.requiredLevel,
501
- shareholders: this.shareholders.map((sh) => sh.toObject()),
1039
+ rfc: this.rfc,
1040
+ shareholders: this.shareholders,
502
1041
  status: this.status,
503
1042
  transactional_profile: this.transactionalProfile,
504
1043
  updated_at: this.updatedAt,
@@ -507,6 +1046,7 @@ class PartnerUserRequest extends BaseRequest {
507
1046
  vulnerable_activity: this.vulnerableActivity,
508
1047
  web_site: this.webSite,
509
1048
  };
1049
+ return obj;
510
1050
  }
511
1051
  }
512
1052
 
@@ -688,191 +1228,6 @@ class UserLoginRequest extends BaseRequest {
688
1228
  }
689
1229
  }
690
1230
 
691
- class TosUpdateRequest extends BaseRequest {
692
- constructor({ ip, location, type, version }) {
693
- super();
694
- this.ipAddress = ip;
695
- this.location = location;
696
- this.type = type;
697
- this.version = version;
698
- }
699
-
700
- get ip() {
701
- return this._ip;
702
- }
703
-
704
- set ipAddress(value) {
705
- if (!value) throw new errors_index.ValidationError('missing ip address');
706
- const ipBlocks = value.split('.');
707
- const blocks = ipBlocks.every((block) => {
708
- return block >= 0 && block <= 255;
709
- });
710
- if (blocks) {
711
- this._ip = value;
712
- } else {
713
- throw new errors_index.ValidationError('Invalid ip address');
714
- }
715
- }
716
-
717
- toObject() {
718
- return {
719
- ip: this.ip,
720
- location: this.location,
721
- type: this.type,
722
- version: this.version,
723
- };
724
- }
725
- }
726
-
727
- class AddressUpdateRequest extends BaseRequest {
728
- constructor({
729
- city,
730
- colonia,
731
- country,
732
- extNumber,
733
- fullName,
734
- intNumber,
735
- postalCode,
736
- state,
737
- street,
738
- } = {}) {
739
- super();
740
- this.city = city;
741
- this.colonia = colonia;
742
- this.country = country;
743
- this.extNumber = extNumber;
744
- this.fullName = fullName;
745
- this.intNumber = intNumber;
746
- this.postalCode = postalCode;
747
- this.state = state;
748
- this.street = street;
749
- }
750
-
751
- toObject() {
752
- return {
753
- city: this.city,
754
- colonia: this.colonia,
755
- country: this.country,
756
- ext_number: this.extNumber,
757
- full_name: this.fullName,
758
- int_number: this.intNumber,
759
- postal_code: this.postalCode,
760
- state: this.state,
761
- street: this.street,
762
- };
763
- }
764
- }
765
-
766
- class KycFileRequest extends BaseRequest {
767
- constructor({ data, isMx, status, type, uriBack, uriFront }) {
768
- super();
769
- this.data = data;
770
- this.isMx = isMx;
771
- this.status = status;
772
- this.type = type;
773
- this.uriBack = uriBack;
774
- this.uriFront = uriFront;
775
- }
776
-
777
- toObject() {
778
- return {
779
- data: this.data,
780
- is_mx: this.isMx,
781
- status: this.status,
782
- type: this.type,
783
- uri_back: this.uriBack,
784
- uri_front: this.uriFront,
785
- };
786
- }
787
- }
788
-
789
- class UserUpdateRequest extends BaseRequest {
790
- constructor({
791
- address,
792
- curpDocumentUri,
793
- govtId,
794
- profession,
795
- proofOfAddress,
796
- proofOfLife,
797
- requiredLevel,
798
- termsOfService,
799
- userType,
800
- verificationId,
801
- }) {
802
- super();
803
- this.adrs = address;
804
- this.curpDocumentUri = curpDocumentUri;
805
- this.govstIds = govtId;
806
- this.profession = profession;
807
- this.addressProofs = proofOfAddress;
808
- this.lifeProofs = proofOfLife;
809
- this.requiredLevel = requiredLevel;
810
- this.terms = termsOfService;
811
- this.userType = userType;
812
- this.verificationId = verificationId;
813
- }
814
-
815
- get termsOfService() {
816
- return this._termsOfService;
817
- }
818
-
819
- set terms(value) {
820
- if (!value) return;
821
- this._termsOfService = new TosUpdateRequest(value).toObject();
822
- }
823
-
824
- get address() {
825
- return this._address;
826
- }
827
-
828
- set adrs(value) {
829
- if (!value) return;
830
- this._address = new AddressUpdateRequest(value).toCleanObject();
831
- }
832
-
833
- get proofOfLife() {
834
- return this._proofOfLife;
835
- }
836
-
837
- set lifeProofs(value) {
838
- if (!value) return;
839
- this._proofOfLife = new KycFileRequest(value).toCleanObject();
840
- }
841
-
842
- get proofOfAddress() {
843
- return this._proofOfAddress;
844
- }
845
-
846
- set addressProofs(value) {
847
- if (!value) return;
848
- this._proofOfAddress = new KycFileRequest(value).toCleanObject();
849
- }
850
-
851
- get govtId() {
852
- return this._govtId;
853
- }
854
-
855
- set govstIds(value) {
856
- if (!value) return;
857
- this._govtId = new KycFileRequest(value).toCleanObject();
858
- }
859
-
860
- toObject() {
861
- return {
862
- address: this.address,
863
- curp_document_uri: this.curpDocumentUri,
864
- profession: this.profession,
865
- requiredLevel: this.requiredLevel,
866
- terms_of_service: this.termsOfService,
867
- verification_id: this.verificationId,
868
- proof_of_life: this.proofOfLife,
869
- proof_of_address: this.proofOfAddress,
870
- govt_id: this.govtId,
871
- user_type: this.userType,
872
- };
873
- }
874
- }
875
-
876
1231
  class VerificationRequest extends BaseRequest {
877
1232
  constructor({ platformId, recipient, type }) {
878
1233
  super();