@cuenca-mx/cuenca-js 0.0.14-dev17 → 0.0.14-dev19
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/build/{data-e4c28528.cjs → data-d64999cb.cjs} +4 -4
- package/build/{data-fa5e8a84.mjs → data-e39b51f5.mjs} +4 -4
- package/build/index.cjs +68 -57
- package/build/index.mjs +68 -57
- package/build/requests/index.cjs +2 -2
- package/build/requests/index.mjs +3 -3
- package/build/types/index.cjs +4 -17
- package/build/types/index.mjs +3 -16
- package/build/umd/cuenca.umd.js +1 -1
- package/build/{vulnerableActivity-f14186ae.mjs → vulnerableActivity-7321f7ee.mjs} +21 -11
- package/build/{vulnerableActivity-88dfbcae.cjs → vulnerableActivity-c777ffc0.cjs} +21 -10
- package/build/{walletTransactionRequest-fe908fc3.mjs → walletTransactionRequest-ad6ac01a.mjs} +85 -75
- package/build/{walletTransactionRequest-eb864d03.cjs → walletTransactionRequest-fcd89391.cjs} +85 -75
- package/package.json +1 -1
package/build/{walletTransactionRequest-fe908fc3.mjs → walletTransactionRequest-ad6ac01a.mjs}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ValidationError } from './errors/index.mjs';
|
|
2
|
-
import { d as dateToUTC, e as enumValueFromString, s as VerificationType } from './data-
|
|
2
|
+
import { d as dateToUTC, e as enumValueFromString, s as VerificationType } from './data-e39b51f5.mjs';
|
|
3
3
|
|
|
4
4
|
class BaseRequest {
|
|
5
5
|
toObject() {
|
|
@@ -15,6 +15,21 @@ class BaseRequest {
|
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
+
class ApiKeyUpdateRequest extends BaseRequest {
|
|
19
|
+
constructor(userId, metadata) {
|
|
20
|
+
super();
|
|
21
|
+
this.userId = userId;
|
|
22
|
+
this.metadata = metadata;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
toObject() {
|
|
26
|
+
return {
|
|
27
|
+
user_id: this.userId,
|
|
28
|
+
metadata: this.metadata,
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
18
33
|
class AlertUpdateRequest extends BaseRequest {
|
|
19
34
|
constructor({
|
|
20
35
|
accountNumber,
|
|
@@ -99,21 +114,6 @@ class AlertUpdateRequest extends BaseRequest {
|
|
|
99
114
|
}
|
|
100
115
|
}
|
|
101
116
|
|
|
102
|
-
class ApiKeyUpdateRequest extends BaseRequest {
|
|
103
|
-
constructor(userId, metadata) {
|
|
104
|
-
super();
|
|
105
|
-
this.userId = userId;
|
|
106
|
-
this.metadata = metadata;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
toObject() {
|
|
110
|
-
return {
|
|
111
|
-
user_id: this.userId,
|
|
112
|
-
metadata: this.metadata,
|
|
113
|
-
};
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
|
|
117
117
|
class ArpcRequest extends BaseRequest {
|
|
118
118
|
constructor({
|
|
119
119
|
arpcMethod,
|
|
@@ -510,7 +510,7 @@ class UserUpdateRequest extends BaseRequest {
|
|
|
510
510
|
address,
|
|
511
511
|
curpDocumentUri,
|
|
512
512
|
govtId,
|
|
513
|
-
|
|
513
|
+
emailAddress,
|
|
514
514
|
profession,
|
|
515
515
|
proofOfAddress,
|
|
516
516
|
proofOfLife,
|
|
@@ -525,7 +525,7 @@ class UserUpdateRequest extends BaseRequest {
|
|
|
525
525
|
this.addressProofs = proofOfAddress;
|
|
526
526
|
this.adrs = address;
|
|
527
527
|
this.curpDocumentUri = curpDocumentUri;
|
|
528
|
-
this.
|
|
528
|
+
this.emailAddress = emailAddress;
|
|
529
529
|
this.govstIds = govtId;
|
|
530
530
|
this.lifeProofs = proofOfLife;
|
|
531
531
|
this.profession = profession;
|
|
@@ -586,7 +586,7 @@ class UserUpdateRequest extends BaseRequest {
|
|
|
586
586
|
return {
|
|
587
587
|
address: this.address,
|
|
588
588
|
curp_document_uri: this.curpDocumentUri,
|
|
589
|
-
|
|
589
|
+
email_address: this.emailAddress,
|
|
590
590
|
govt_id: this.govtId,
|
|
591
591
|
phone_number: this.phoneNumber,
|
|
592
592
|
profession: this.profession,
|
|
@@ -616,13 +616,12 @@ class TransactionalProfileServicesRequest extends BaseRequest {
|
|
|
616
616
|
}
|
|
617
617
|
|
|
618
618
|
toObject() {
|
|
619
|
-
|
|
619
|
+
return {
|
|
620
620
|
spei_transfers_num: this.speiTransfersNum,
|
|
621
621
|
spei_transfers_amount: this.speiTransfersAmount,
|
|
622
622
|
internal_transfers_num: this.internalTransfersNum,
|
|
623
623
|
internal_transfers_amount: this.internalTransfersAmount,
|
|
624
624
|
};
|
|
625
|
-
return response;
|
|
626
625
|
}
|
|
627
626
|
}
|
|
628
627
|
|
|
@@ -641,15 +640,15 @@ class TransactionalProfileRequest {
|
|
|
641
640
|
this.recipientsNum = recipientsNum;
|
|
642
641
|
this.payersNum = payersNum;
|
|
643
642
|
|
|
644
|
-
this.
|
|
645
|
-
this.
|
|
643
|
+
this.deposits = deposits;
|
|
644
|
+
this.withdrawal = withdrawal;
|
|
646
645
|
}
|
|
647
646
|
|
|
648
647
|
get deposits() {
|
|
649
648
|
return this._deposits;
|
|
650
649
|
}
|
|
651
650
|
|
|
652
|
-
set
|
|
651
|
+
set deposits(value) {
|
|
653
652
|
if (!value) return;
|
|
654
653
|
this._deposits = new TransactionalProfileServicesRequest(value).toObject();
|
|
655
654
|
}
|
|
@@ -658,7 +657,7 @@ class TransactionalProfileRequest {
|
|
|
658
657
|
return this._withdrawal;
|
|
659
658
|
}
|
|
660
659
|
|
|
661
|
-
set
|
|
660
|
+
set withdrawal(value) {
|
|
662
661
|
if (!value) return;
|
|
663
662
|
this._withdrawal = new TransactionalProfileServicesRequest(
|
|
664
663
|
value,
|
|
@@ -742,14 +741,14 @@ class LegalRepresentativesRequest extends ShareholderPhysicalRequest {
|
|
|
742
741
|
this.job = job;
|
|
743
742
|
this.phoneNumber = phoneNumber;
|
|
744
743
|
this.emailAddress = emailAddress;
|
|
745
|
-
this.
|
|
744
|
+
this.address = address;
|
|
746
745
|
}
|
|
747
746
|
|
|
748
747
|
get address() {
|
|
749
748
|
return this._address;
|
|
750
749
|
}
|
|
751
750
|
|
|
752
|
-
set
|
|
751
|
+
set address(value) {
|
|
753
752
|
if (!value) return;
|
|
754
753
|
this._address = new AddressUpdateRequest(value).toCleanObject();
|
|
755
754
|
}
|
|
@@ -770,15 +769,15 @@ class ShareholderMoralRequest extends BaseRequest {
|
|
|
770
769
|
super();
|
|
771
770
|
this.name = name;
|
|
772
771
|
this.percentage = percentage;
|
|
773
|
-
this.
|
|
774
|
-
this.
|
|
772
|
+
this.shareholders = shareholders;
|
|
773
|
+
this.legalRepresentatives = legalRepresentatives;
|
|
775
774
|
}
|
|
776
775
|
|
|
777
776
|
get shareholders() {
|
|
778
777
|
return this._shareholders;
|
|
779
778
|
}
|
|
780
779
|
|
|
781
|
-
set
|
|
780
|
+
set shareholders(value) {
|
|
782
781
|
if (!value) return;
|
|
783
782
|
this._shareholders = value.map((sh) =>
|
|
784
783
|
new ShareholderPhysicalRequest(sh).toObject(),
|
|
@@ -789,7 +788,7 @@ class ShareholderMoralRequest extends BaseRequest {
|
|
|
789
788
|
return this._legalRepresentatives;
|
|
790
789
|
}
|
|
791
790
|
|
|
792
|
-
set
|
|
791
|
+
set legalRepresentatives(value) {
|
|
793
792
|
if (!value) return;
|
|
794
793
|
this._legalRepresentatives = value.map((lr) =>
|
|
795
794
|
new LegalRepresentativesRequest(lr).toObject(),
|
|
@@ -906,119 +905,131 @@ class PartnerUserRequest extends BaseRequest {
|
|
|
906
905
|
vulnerableActivity,
|
|
907
906
|
webSite,
|
|
908
907
|
} = {}) {
|
|
909
|
-
super();
|
|
910
|
-
this.
|
|
911
|
-
this.
|
|
912
|
-
this.
|
|
908
|
+
super();
|
|
909
|
+
this.addressRequest = address;
|
|
910
|
+
this.auditRequest = audit;
|
|
911
|
+
this.businessDetailsRequest = businessDetails;
|
|
913
912
|
this.businessName = businessName;
|
|
914
913
|
this.clabe = clabe;
|
|
915
914
|
this.createdAt = createdAt;
|
|
916
915
|
this.documentationUrl = documentationUrl;
|
|
917
916
|
this.emailAddress = emailAddress;
|
|
918
|
-
this.
|
|
917
|
+
this.externalAccountRequest = externalAccount;
|
|
919
918
|
this.folio = folio;
|
|
920
919
|
this.id = id;
|
|
921
920
|
this.incorporationDate = incorporationDate;
|
|
922
921
|
this.legalName = legalName;
|
|
923
|
-
this.
|
|
922
|
+
this.legalRepresentativesRequest = legalRepresentatives;
|
|
924
923
|
this.level = level;
|
|
925
|
-
this.
|
|
924
|
+
this.licenseRequest = license;
|
|
926
925
|
this.meta = meta;
|
|
927
926
|
this.nationality = nationality;
|
|
928
927
|
this.phoneNumber = phoneNumber;
|
|
929
928
|
this.platformId = platformId;
|
|
930
929
|
this.requiredLevel = requiredLevel;
|
|
931
930
|
this.rfc = rfc;
|
|
932
|
-
this.
|
|
931
|
+
this.shareholdersRequest = shareholders;
|
|
933
932
|
this.status = status;
|
|
934
|
-
this.
|
|
933
|
+
this.transactionalProfileRequest = transactionalProfile;
|
|
935
934
|
this.updatedAt = updatedAt;
|
|
936
935
|
this.userId = userId;
|
|
937
936
|
this.userType = userType;
|
|
938
|
-
this.
|
|
937
|
+
this.vulnerableActivityRequest = vulnerableActivity;
|
|
939
938
|
this.webSite = webSite;
|
|
940
939
|
}
|
|
941
940
|
|
|
941
|
+
get address() {
|
|
942
|
+
return this._address;
|
|
943
|
+
}
|
|
944
|
+
|
|
945
|
+
set addressRequest(value) {
|
|
946
|
+
if (!value) return;
|
|
947
|
+
this._address = new AddressUpdateRequest(value).toCleanObject();
|
|
948
|
+
}
|
|
949
|
+
|
|
950
|
+
get audit() {
|
|
951
|
+
return this._audit;
|
|
952
|
+
}
|
|
953
|
+
|
|
954
|
+
set auditRequest(value) {
|
|
955
|
+
if (!value) return;
|
|
956
|
+
this._audit = new AuditRequest(value).toObject();
|
|
957
|
+
}
|
|
958
|
+
|
|
942
959
|
get businessDetails() {
|
|
943
960
|
return this._businessDetails;
|
|
944
961
|
}
|
|
945
962
|
|
|
946
|
-
set
|
|
963
|
+
set businessDetailsRequest(value) {
|
|
947
964
|
if (!value) return;
|
|
948
965
|
this._businessDetails = new BusinessDetailsRequest(value).toObject();
|
|
949
966
|
}
|
|
950
967
|
|
|
951
|
-
get
|
|
952
|
-
return this.
|
|
968
|
+
get legalRepresentatives() {
|
|
969
|
+
return this._legalRepresentatives;
|
|
953
970
|
}
|
|
954
971
|
|
|
955
|
-
set
|
|
972
|
+
set legalRepresentativesRequest(value) {
|
|
956
973
|
if (!value) return;
|
|
957
|
-
this.
|
|
974
|
+
this._legalRepresentatives = value.map((lr) =>
|
|
975
|
+
new LegalRepresentativesRequest(lr).toObject(),
|
|
976
|
+
);
|
|
958
977
|
}
|
|
959
978
|
|
|
960
|
-
get
|
|
961
|
-
return this.
|
|
979
|
+
get license() {
|
|
980
|
+
return this._license;
|
|
962
981
|
}
|
|
963
982
|
|
|
964
|
-
set
|
|
983
|
+
set licenseRequest(value) {
|
|
965
984
|
if (!value) return;
|
|
966
|
-
this.
|
|
967
|
-
value,
|
|
968
|
-
).toObject();
|
|
985
|
+
this._license = new LicenseRequest(value).toObject();
|
|
969
986
|
}
|
|
970
987
|
|
|
971
988
|
get shareholders() {
|
|
972
989
|
return this._shareholders;
|
|
973
990
|
}
|
|
974
991
|
|
|
975
|
-
set
|
|
992
|
+
set shareholdersRequest(value) {
|
|
976
993
|
if (!value) return;
|
|
977
994
|
this._shareholders = value.map((sh) =>
|
|
978
995
|
new ShareholderMoralRequest(sh).toObject(),
|
|
979
996
|
);
|
|
980
997
|
}
|
|
981
998
|
|
|
982
|
-
get
|
|
983
|
-
return this.
|
|
999
|
+
get transactionalProfile() {
|
|
1000
|
+
return this._transactionalProfile;
|
|
984
1001
|
}
|
|
985
1002
|
|
|
986
|
-
set
|
|
1003
|
+
set transactionalProfileRequest(value) {
|
|
987
1004
|
if (!value) return;
|
|
988
|
-
this.
|
|
989
|
-
|
|
990
|
-
);
|
|
1005
|
+
this._transactionalProfile = new TransactionalProfileRequest(
|
|
1006
|
+
value,
|
|
1007
|
+
).toObject();
|
|
991
1008
|
}
|
|
992
1009
|
|
|
993
1010
|
get vulnerableActivity() {
|
|
994
1011
|
return this._vulnerableActivity;
|
|
995
1012
|
}
|
|
996
1013
|
|
|
997
|
-
set
|
|
1014
|
+
set vulnerableActivityRequest(value) {
|
|
998
1015
|
if (!value) return;
|
|
999
1016
|
this._vulnerableActivity = new VulnerableActivityRequest(value).toObject();
|
|
1000
1017
|
}
|
|
1001
1018
|
|
|
1002
|
-
get
|
|
1003
|
-
return this.
|
|
1019
|
+
get externalAccount() {
|
|
1020
|
+
return this._externalAccount;
|
|
1004
1021
|
}
|
|
1005
1022
|
|
|
1006
|
-
set
|
|
1023
|
+
set externalAccountRequest(value) {
|
|
1007
1024
|
if (!value) return;
|
|
1008
|
-
this.
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
return this._audit;
|
|
1013
|
-
}
|
|
1014
|
-
|
|
1015
|
-
set auditMap(value) {
|
|
1016
|
-
if (!value) return;
|
|
1017
|
-
this._audit = new AuditRequest(value).toObject();
|
|
1025
|
+
this._externalAccount = {
|
|
1026
|
+
account: value.account,
|
|
1027
|
+
bank: value.bank,
|
|
1028
|
+
};
|
|
1018
1029
|
}
|
|
1019
1030
|
|
|
1020
1031
|
toObject() {
|
|
1021
|
-
|
|
1032
|
+
return {
|
|
1022
1033
|
address: this.address,
|
|
1023
1034
|
audit: this.audit,
|
|
1024
1035
|
business_details: this.businessDetails,
|
|
@@ -1050,7 +1061,6 @@ class PartnerUserRequest extends BaseRequest {
|
|
|
1050
1061
|
vulnerable_activity: this.vulnerableActivity,
|
|
1051
1062
|
web_site: this.webSite,
|
|
1052
1063
|
};
|
|
1053
|
-
return obj;
|
|
1054
1064
|
}
|
|
1055
1065
|
}
|
|
1056
1066
|
|
package/build/{walletTransactionRequest-eb864d03.cjs → walletTransactionRequest-fcd89391.cjs}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var errors_index = require('./errors/index.cjs');
|
|
4
|
-
var data = require('./data-
|
|
4
|
+
var data = require('./data-d64999cb.cjs');
|
|
5
5
|
|
|
6
6
|
class BaseRequest {
|
|
7
7
|
toObject() {
|
|
@@ -17,6 +17,21 @@ class BaseRequest {
|
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
+
class ApiKeyUpdateRequest extends BaseRequest {
|
|
21
|
+
constructor(userId, metadata) {
|
|
22
|
+
super();
|
|
23
|
+
this.userId = userId;
|
|
24
|
+
this.metadata = metadata;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
toObject() {
|
|
28
|
+
return {
|
|
29
|
+
user_id: this.userId,
|
|
30
|
+
metadata: this.metadata,
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
20
35
|
class AlertUpdateRequest extends BaseRequest {
|
|
21
36
|
constructor({
|
|
22
37
|
accountNumber,
|
|
@@ -101,21 +116,6 @@ class AlertUpdateRequest extends BaseRequest {
|
|
|
101
116
|
}
|
|
102
117
|
}
|
|
103
118
|
|
|
104
|
-
class ApiKeyUpdateRequest extends BaseRequest {
|
|
105
|
-
constructor(userId, metadata) {
|
|
106
|
-
super();
|
|
107
|
-
this.userId = userId;
|
|
108
|
-
this.metadata = metadata;
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
toObject() {
|
|
112
|
-
return {
|
|
113
|
-
user_id: this.userId,
|
|
114
|
-
metadata: this.metadata,
|
|
115
|
-
};
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
|
|
119
119
|
class ArpcRequest extends BaseRequest {
|
|
120
120
|
constructor({
|
|
121
121
|
arpcMethod,
|
|
@@ -512,7 +512,7 @@ class UserUpdateRequest extends BaseRequest {
|
|
|
512
512
|
address,
|
|
513
513
|
curpDocumentUri,
|
|
514
514
|
govtId,
|
|
515
|
-
|
|
515
|
+
emailAddress,
|
|
516
516
|
profession,
|
|
517
517
|
proofOfAddress,
|
|
518
518
|
proofOfLife,
|
|
@@ -527,7 +527,7 @@ class UserUpdateRequest extends BaseRequest {
|
|
|
527
527
|
this.addressProofs = proofOfAddress;
|
|
528
528
|
this.adrs = address;
|
|
529
529
|
this.curpDocumentUri = curpDocumentUri;
|
|
530
|
-
this.
|
|
530
|
+
this.emailAddress = emailAddress;
|
|
531
531
|
this.govstIds = govtId;
|
|
532
532
|
this.lifeProofs = proofOfLife;
|
|
533
533
|
this.profession = profession;
|
|
@@ -588,7 +588,7 @@ class UserUpdateRequest extends BaseRequest {
|
|
|
588
588
|
return {
|
|
589
589
|
address: this.address,
|
|
590
590
|
curp_document_uri: this.curpDocumentUri,
|
|
591
|
-
|
|
591
|
+
email_address: this.emailAddress,
|
|
592
592
|
govt_id: this.govtId,
|
|
593
593
|
phone_number: this.phoneNumber,
|
|
594
594
|
profession: this.profession,
|
|
@@ -618,13 +618,12 @@ class TransactionalProfileServicesRequest extends BaseRequest {
|
|
|
618
618
|
}
|
|
619
619
|
|
|
620
620
|
toObject() {
|
|
621
|
-
|
|
621
|
+
return {
|
|
622
622
|
spei_transfers_num: this.speiTransfersNum,
|
|
623
623
|
spei_transfers_amount: this.speiTransfersAmount,
|
|
624
624
|
internal_transfers_num: this.internalTransfersNum,
|
|
625
625
|
internal_transfers_amount: this.internalTransfersAmount,
|
|
626
626
|
};
|
|
627
|
-
return response;
|
|
628
627
|
}
|
|
629
628
|
}
|
|
630
629
|
|
|
@@ -643,15 +642,15 @@ class TransactionalProfileRequest {
|
|
|
643
642
|
this.recipientsNum = recipientsNum;
|
|
644
643
|
this.payersNum = payersNum;
|
|
645
644
|
|
|
646
|
-
this.
|
|
647
|
-
this.
|
|
645
|
+
this.deposits = deposits;
|
|
646
|
+
this.withdrawal = withdrawal;
|
|
648
647
|
}
|
|
649
648
|
|
|
650
649
|
get deposits() {
|
|
651
650
|
return this._deposits;
|
|
652
651
|
}
|
|
653
652
|
|
|
654
|
-
set
|
|
653
|
+
set deposits(value) {
|
|
655
654
|
if (!value) return;
|
|
656
655
|
this._deposits = new TransactionalProfileServicesRequest(value).toObject();
|
|
657
656
|
}
|
|
@@ -660,7 +659,7 @@ class TransactionalProfileRequest {
|
|
|
660
659
|
return this._withdrawal;
|
|
661
660
|
}
|
|
662
661
|
|
|
663
|
-
set
|
|
662
|
+
set withdrawal(value) {
|
|
664
663
|
if (!value) return;
|
|
665
664
|
this._withdrawal = new TransactionalProfileServicesRequest(
|
|
666
665
|
value,
|
|
@@ -744,14 +743,14 @@ class LegalRepresentativesRequest extends ShareholderPhysicalRequest {
|
|
|
744
743
|
this.job = job;
|
|
745
744
|
this.phoneNumber = phoneNumber;
|
|
746
745
|
this.emailAddress = emailAddress;
|
|
747
|
-
this.
|
|
746
|
+
this.address = address;
|
|
748
747
|
}
|
|
749
748
|
|
|
750
749
|
get address() {
|
|
751
750
|
return this._address;
|
|
752
751
|
}
|
|
753
752
|
|
|
754
|
-
set
|
|
753
|
+
set address(value) {
|
|
755
754
|
if (!value) return;
|
|
756
755
|
this._address = new AddressUpdateRequest(value).toCleanObject();
|
|
757
756
|
}
|
|
@@ -772,15 +771,15 @@ class ShareholderMoralRequest extends BaseRequest {
|
|
|
772
771
|
super();
|
|
773
772
|
this.name = name;
|
|
774
773
|
this.percentage = percentage;
|
|
775
|
-
this.
|
|
776
|
-
this.
|
|
774
|
+
this.shareholders = shareholders;
|
|
775
|
+
this.legalRepresentatives = legalRepresentatives;
|
|
777
776
|
}
|
|
778
777
|
|
|
779
778
|
get shareholders() {
|
|
780
779
|
return this._shareholders;
|
|
781
780
|
}
|
|
782
781
|
|
|
783
|
-
set
|
|
782
|
+
set shareholders(value) {
|
|
784
783
|
if (!value) return;
|
|
785
784
|
this._shareholders = value.map((sh) =>
|
|
786
785
|
new ShareholderPhysicalRequest(sh).toObject(),
|
|
@@ -791,7 +790,7 @@ class ShareholderMoralRequest extends BaseRequest {
|
|
|
791
790
|
return this._legalRepresentatives;
|
|
792
791
|
}
|
|
793
792
|
|
|
794
|
-
set
|
|
793
|
+
set legalRepresentatives(value) {
|
|
795
794
|
if (!value) return;
|
|
796
795
|
this._legalRepresentatives = value.map((lr) =>
|
|
797
796
|
new LegalRepresentativesRequest(lr).toObject(),
|
|
@@ -908,119 +907,131 @@ class PartnerUserRequest extends BaseRequest {
|
|
|
908
907
|
vulnerableActivity,
|
|
909
908
|
webSite,
|
|
910
909
|
} = {}) {
|
|
911
|
-
super();
|
|
912
|
-
this.
|
|
913
|
-
this.
|
|
914
|
-
this.
|
|
910
|
+
super();
|
|
911
|
+
this.addressRequest = address;
|
|
912
|
+
this.auditRequest = audit;
|
|
913
|
+
this.businessDetailsRequest = businessDetails;
|
|
915
914
|
this.businessName = businessName;
|
|
916
915
|
this.clabe = clabe;
|
|
917
916
|
this.createdAt = createdAt;
|
|
918
917
|
this.documentationUrl = documentationUrl;
|
|
919
918
|
this.emailAddress = emailAddress;
|
|
920
|
-
this.
|
|
919
|
+
this.externalAccountRequest = externalAccount;
|
|
921
920
|
this.folio = folio;
|
|
922
921
|
this.id = id;
|
|
923
922
|
this.incorporationDate = incorporationDate;
|
|
924
923
|
this.legalName = legalName;
|
|
925
|
-
this.
|
|
924
|
+
this.legalRepresentativesRequest = legalRepresentatives;
|
|
926
925
|
this.level = level;
|
|
927
|
-
this.
|
|
926
|
+
this.licenseRequest = license;
|
|
928
927
|
this.meta = meta;
|
|
929
928
|
this.nationality = nationality;
|
|
930
929
|
this.phoneNumber = phoneNumber;
|
|
931
930
|
this.platformId = platformId;
|
|
932
931
|
this.requiredLevel = requiredLevel;
|
|
933
932
|
this.rfc = rfc;
|
|
934
|
-
this.
|
|
933
|
+
this.shareholdersRequest = shareholders;
|
|
935
934
|
this.status = status;
|
|
936
|
-
this.
|
|
935
|
+
this.transactionalProfileRequest = transactionalProfile;
|
|
937
936
|
this.updatedAt = updatedAt;
|
|
938
937
|
this.userId = userId;
|
|
939
938
|
this.userType = userType;
|
|
940
|
-
this.
|
|
939
|
+
this.vulnerableActivityRequest = vulnerableActivity;
|
|
941
940
|
this.webSite = webSite;
|
|
942
941
|
}
|
|
943
942
|
|
|
943
|
+
get address() {
|
|
944
|
+
return this._address;
|
|
945
|
+
}
|
|
946
|
+
|
|
947
|
+
set addressRequest(value) {
|
|
948
|
+
if (!value) return;
|
|
949
|
+
this._address = new AddressUpdateRequest(value).toCleanObject();
|
|
950
|
+
}
|
|
951
|
+
|
|
952
|
+
get audit() {
|
|
953
|
+
return this._audit;
|
|
954
|
+
}
|
|
955
|
+
|
|
956
|
+
set auditRequest(value) {
|
|
957
|
+
if (!value) return;
|
|
958
|
+
this._audit = new AuditRequest(value).toObject();
|
|
959
|
+
}
|
|
960
|
+
|
|
944
961
|
get businessDetails() {
|
|
945
962
|
return this._businessDetails;
|
|
946
963
|
}
|
|
947
964
|
|
|
948
|
-
set
|
|
965
|
+
set businessDetailsRequest(value) {
|
|
949
966
|
if (!value) return;
|
|
950
967
|
this._businessDetails = new BusinessDetailsRequest(value).toObject();
|
|
951
968
|
}
|
|
952
969
|
|
|
953
|
-
get
|
|
954
|
-
return this.
|
|
970
|
+
get legalRepresentatives() {
|
|
971
|
+
return this._legalRepresentatives;
|
|
955
972
|
}
|
|
956
973
|
|
|
957
|
-
set
|
|
974
|
+
set legalRepresentativesRequest(value) {
|
|
958
975
|
if (!value) return;
|
|
959
|
-
this.
|
|
976
|
+
this._legalRepresentatives = value.map((lr) =>
|
|
977
|
+
new LegalRepresentativesRequest(lr).toObject(),
|
|
978
|
+
);
|
|
960
979
|
}
|
|
961
980
|
|
|
962
|
-
get
|
|
963
|
-
return this.
|
|
981
|
+
get license() {
|
|
982
|
+
return this._license;
|
|
964
983
|
}
|
|
965
984
|
|
|
966
|
-
set
|
|
985
|
+
set licenseRequest(value) {
|
|
967
986
|
if (!value) return;
|
|
968
|
-
this.
|
|
969
|
-
value,
|
|
970
|
-
).toObject();
|
|
987
|
+
this._license = new LicenseRequest(value).toObject();
|
|
971
988
|
}
|
|
972
989
|
|
|
973
990
|
get shareholders() {
|
|
974
991
|
return this._shareholders;
|
|
975
992
|
}
|
|
976
993
|
|
|
977
|
-
set
|
|
994
|
+
set shareholdersRequest(value) {
|
|
978
995
|
if (!value) return;
|
|
979
996
|
this._shareholders = value.map((sh) =>
|
|
980
997
|
new ShareholderMoralRequest(sh).toObject(),
|
|
981
998
|
);
|
|
982
999
|
}
|
|
983
1000
|
|
|
984
|
-
get
|
|
985
|
-
return this.
|
|
1001
|
+
get transactionalProfile() {
|
|
1002
|
+
return this._transactionalProfile;
|
|
986
1003
|
}
|
|
987
1004
|
|
|
988
|
-
set
|
|
1005
|
+
set transactionalProfileRequest(value) {
|
|
989
1006
|
if (!value) return;
|
|
990
|
-
this.
|
|
991
|
-
|
|
992
|
-
);
|
|
1007
|
+
this._transactionalProfile = new TransactionalProfileRequest(
|
|
1008
|
+
value,
|
|
1009
|
+
).toObject();
|
|
993
1010
|
}
|
|
994
1011
|
|
|
995
1012
|
get vulnerableActivity() {
|
|
996
1013
|
return this._vulnerableActivity;
|
|
997
1014
|
}
|
|
998
1015
|
|
|
999
|
-
set
|
|
1016
|
+
set vulnerableActivityRequest(value) {
|
|
1000
1017
|
if (!value) return;
|
|
1001
1018
|
this._vulnerableActivity = new VulnerableActivityRequest(value).toObject();
|
|
1002
1019
|
}
|
|
1003
1020
|
|
|
1004
|
-
get
|
|
1005
|
-
return this.
|
|
1021
|
+
get externalAccount() {
|
|
1022
|
+
return this._externalAccount;
|
|
1006
1023
|
}
|
|
1007
1024
|
|
|
1008
|
-
set
|
|
1025
|
+
set externalAccountRequest(value) {
|
|
1009
1026
|
if (!value) return;
|
|
1010
|
-
this.
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
return this._audit;
|
|
1015
|
-
}
|
|
1016
|
-
|
|
1017
|
-
set auditMap(value) {
|
|
1018
|
-
if (!value) return;
|
|
1019
|
-
this._audit = new AuditRequest(value).toObject();
|
|
1027
|
+
this._externalAccount = {
|
|
1028
|
+
account: value.account,
|
|
1029
|
+
bank: value.bank,
|
|
1030
|
+
};
|
|
1020
1031
|
}
|
|
1021
1032
|
|
|
1022
1033
|
toObject() {
|
|
1023
|
-
|
|
1034
|
+
return {
|
|
1024
1035
|
address: this.address,
|
|
1025
1036
|
audit: this.audit,
|
|
1026
1037
|
business_details: this.businessDetails,
|
|
@@ -1052,7 +1063,6 @@ class PartnerUserRequest extends BaseRequest {
|
|
|
1052
1063
|
vulnerable_activity: this.vulnerableActivity,
|
|
1053
1064
|
web_site: this.webSite,
|
|
1054
1065
|
};
|
|
1055
|
-
return obj;
|
|
1056
1066
|
}
|
|
1057
1067
|
}
|
|
1058
1068
|
|