@cuenca-mx/cuenca-js 0.0.14-dev9 → 1.0.1-dev01
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 +3 -1
- package/build/{data-92aab1cc.cjs → data-05b2d807.cjs} +30 -6
- package/build/{data-7e8b28c6.mjs → data-efe9e071.mjs} +28 -6
- package/build/index.cjs +468 -74
- package/build/index.mjs +438 -44
- package/build/requests/index.cjs +3 -2
- package/build/requests/index.mjs +3 -3
- package/build/types/index.cjs +70 -28
- package/build/types/index.mjs +36 -2
- package/build/umd/cuenca.umd.js +1 -1
- package/build/{identities-240756bd.cjs → vulnerableActivity-15f3a6ad.cjs} +475 -215
- package/build/{identities-4686dc22.mjs → vulnerableActivity-a6c1d37e.mjs} +466 -214
- package/build/{walletTransactionRequest-da986c71.cjs → walletTransactionRequest-14260846.cjs} +680 -204
- package/build/{walletTransactionRequest-d05a25a9.mjs → walletTransactionRequest-2f6a4c0e.mjs} +680 -205
- package/package.json +4 -2
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-
|
|
10
|
-
var
|
|
11
|
-
var walletTransactionRequest = require('./walletTransactionRequest-
|
|
9
|
+
var data = require('./data-05b2d807.cjs');
|
|
10
|
+
var vulnerableActivity = require('./vulnerableActivity-15f3a6ad.cjs');
|
|
11
|
+
var walletTransactionRequest = require('./walletTransactionRequest-14260846.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="
|
|
29
|
+
const name="@cuenca-mx/cuenca-js";const version="1.0.1-dev01";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({
|
|
@@ -246,7 +246,7 @@ class Account {
|
|
|
246
246
|
|
|
247
247
|
class Alert {
|
|
248
248
|
constructor({
|
|
249
|
-
|
|
249
|
+
agent,
|
|
250
250
|
accountNumber,
|
|
251
251
|
actualPeriodCount,
|
|
252
252
|
actualPeriodSum,
|
|
@@ -275,7 +275,7 @@ class Alert {
|
|
|
275
275
|
this.accountNumber = accountNumber;
|
|
276
276
|
this.actualPeriodCount = actualPeriodCount;
|
|
277
277
|
this.actualPeriodSum = actualPeriodSum;
|
|
278
|
-
this.
|
|
278
|
+
this.agent = agent;
|
|
279
279
|
this.aggregationType = aggregationType;
|
|
280
280
|
this.comments = comments;
|
|
281
281
|
this.committeeMeetingDate = data.dateToUTC(committeeMeetingDate);
|
|
@@ -293,14 +293,14 @@ class Alert {
|
|
|
293
293
|
this.sourceType = data.enumValueFromString(data.SourceAlertType, sourceType);
|
|
294
294
|
this.transactionDate = data.dateToUTC(transactionDate);
|
|
295
295
|
this.type = data.enumValueFromString(data.MLIndicatorType, type);
|
|
296
|
-
this.typeOfFilter = data.enumValueFromString(data.
|
|
296
|
+
this.typeOfFilter = data.enumValueFromString(data.PLDFilterType, typeOfFilter);
|
|
297
297
|
this.updatedAt = data.dateToUTC(updatedAt);
|
|
298
298
|
this.userId = userId;
|
|
299
|
-
this.
|
|
299
|
+
this.changeLog = changeLog;
|
|
300
300
|
}
|
|
301
301
|
|
|
302
302
|
static fromObject = ({
|
|
303
|
-
|
|
303
|
+
agent,
|
|
304
304
|
comments,
|
|
305
305
|
description,
|
|
306
306
|
id,
|
|
@@ -312,7 +312,7 @@ class Alert {
|
|
|
312
312
|
...obj
|
|
313
313
|
}) =>
|
|
314
314
|
new Alert({
|
|
315
|
-
|
|
315
|
+
agent,
|
|
316
316
|
comments,
|
|
317
317
|
description,
|
|
318
318
|
id,
|
|
@@ -343,9 +343,9 @@ class Alert {
|
|
|
343
343
|
return this._changeLog;
|
|
344
344
|
}
|
|
345
345
|
|
|
346
|
-
set
|
|
347
|
-
if (!value ||
|
|
348
|
-
this._changeLog =
|
|
346
|
+
set changeLog(value) {
|
|
347
|
+
if (!value || !Array.isArray(value) || value.length === 0) return;
|
|
348
|
+
this._changeLog = value.map((entry) => vulnerableActivity.AlertLog.fromObject(entry));
|
|
349
349
|
}
|
|
350
350
|
}
|
|
351
351
|
|
|
@@ -505,7 +505,7 @@ class BridgeAccount {
|
|
|
505
505
|
this.updatedAt = data.dateToUTC(updatedAt);
|
|
506
506
|
this.emailAddress = emailAddress;
|
|
507
507
|
this.clientClabe = clientClabe;
|
|
508
|
-
this.
|
|
508
|
+
this.govtId = govtId;
|
|
509
509
|
this.names = names;
|
|
510
510
|
this.firstSurname = firstSurname;
|
|
511
511
|
this.secondSurname = secondSurname;
|
|
@@ -516,10 +516,10 @@ class BridgeAccount {
|
|
|
516
516
|
this.userId = userId;
|
|
517
517
|
this.gender = gender;
|
|
518
518
|
this.phoneNumber = phoneNumber;
|
|
519
|
-
this.
|
|
519
|
+
this.proofOfAddress = proofOfAddress;
|
|
520
520
|
this.status = data.enumValueFromString(data.BridgeAccountStatus, status);
|
|
521
|
-
this.
|
|
522
|
-
this.
|
|
521
|
+
this.termsOfService = termsOfService;
|
|
522
|
+
this.address = address;
|
|
523
523
|
}
|
|
524
524
|
|
|
525
525
|
static fromObject = ({ status, address, ...obj }) =>
|
|
@@ -550,36 +550,36 @@ class BridgeAccount {
|
|
|
550
550
|
return this._address;
|
|
551
551
|
}
|
|
552
552
|
|
|
553
|
-
set
|
|
553
|
+
set address(value) {
|
|
554
554
|
if (!value || Object.keys(value).length === 0) return;
|
|
555
|
-
this._address =
|
|
555
|
+
this._address = vulnerableActivity.Address.fromObject(value);
|
|
556
556
|
}
|
|
557
557
|
|
|
558
558
|
get proofOfAddress() {
|
|
559
559
|
return this._proofOfAddress;
|
|
560
560
|
}
|
|
561
561
|
|
|
562
|
-
set
|
|
562
|
+
set proofOfAddress(value) {
|
|
563
563
|
if (!value || Object.keys(value).length === 0) return;
|
|
564
|
-
this._proofOfAddress =
|
|
564
|
+
this._proofOfAddress = vulnerableActivity.KYCFile.fromObject(value);
|
|
565
565
|
}
|
|
566
566
|
|
|
567
567
|
get govtId() {
|
|
568
568
|
return this._govtId;
|
|
569
569
|
}
|
|
570
570
|
|
|
571
|
-
set
|
|
571
|
+
set govtId(value) {
|
|
572
572
|
if (!value || Object.keys(value).length === 0) return;
|
|
573
|
-
this._govtId =
|
|
573
|
+
this._govtId = vulnerableActivity.KYCFile.fromObject(value);
|
|
574
574
|
}
|
|
575
575
|
|
|
576
576
|
get termsOfService() {
|
|
577
577
|
return this._termsOfService;
|
|
578
578
|
}
|
|
579
579
|
|
|
580
|
-
set
|
|
580
|
+
set termsOfService(value) {
|
|
581
581
|
if (!value || Object.keys(value).length === 0) return;
|
|
582
|
-
this._termsOfService =
|
|
582
|
+
this._termsOfService = vulnerableActivity.TOSAgreements.fromObject(value);
|
|
583
583
|
}
|
|
584
584
|
}
|
|
585
585
|
|
|
@@ -1022,19 +1022,66 @@ class File {
|
|
|
1022
1022
|
}
|
|
1023
1023
|
|
|
1024
1024
|
class KYCValidations {
|
|
1025
|
-
constructor({
|
|
1026
|
-
|
|
1027
|
-
|
|
1025
|
+
constructor({
|
|
1026
|
+
id,
|
|
1027
|
+
createdAt,
|
|
1028
|
+
updatedAt,
|
|
1029
|
+
deactivatedAt,
|
|
1030
|
+
platformId,
|
|
1031
|
+
filesUri,
|
|
1032
|
+
userId,
|
|
1033
|
+
verificationId,
|
|
1034
|
+
identityId,
|
|
1035
|
+
govtIdStatus,
|
|
1036
|
+
proofOfAddressStatus,
|
|
1037
|
+
proofOfLifeStatus,
|
|
1038
|
+
sourceType,
|
|
1039
|
+
flowId,
|
|
1040
|
+
status,
|
|
1041
|
+
providerUrl,
|
|
1042
|
+
}) {
|
|
1043
|
+
this.id = id;
|
|
1044
|
+
this.createdAt = data.dateToUTC(createdAt);
|
|
1045
|
+
this.updatedAt = data.dateToUTC(updatedAt);
|
|
1046
|
+
this.deactivatedAt = data.dateToUTC(deactivatedAt);
|
|
1028
1047
|
this.platformId = platformId;
|
|
1048
|
+
this.filesUri = filesUri || [];
|
|
1049
|
+
this.userId = userId;
|
|
1029
1050
|
this.verificationId = verificationId;
|
|
1051
|
+
this.identityId = identityId;
|
|
1052
|
+
this.govtIdStatus = data.enumValueFromString(data.VerificationStatus, govtIdStatus);
|
|
1053
|
+
this.proofOfAddressStatus = data.enumValueFromString(
|
|
1054
|
+
data.VerificationStatus,
|
|
1055
|
+
proofOfAddressStatus,
|
|
1056
|
+
);
|
|
1057
|
+
this.proofOfLifeStatus = data.enumValueFromString(
|
|
1058
|
+
data.VerificationStatus,
|
|
1059
|
+
proofOfLifeStatus,
|
|
1060
|
+
);
|
|
1061
|
+
this.sourceType = data.enumValueFromString(data.KYCValidationSource, sourceType);
|
|
1062
|
+
this.flowId = flowId;
|
|
1063
|
+
this.status = data.enumValueFromString(data.VerificationStatus, status);
|
|
1064
|
+
this.providerUrl = providerUrl;
|
|
1030
1065
|
}
|
|
1031
1066
|
|
|
1032
|
-
static fromObject = ({
|
|
1067
|
+
static fromObject = ({ id, status, ...obj }) =>
|
|
1033
1068
|
new KYCValidations({
|
|
1034
|
-
|
|
1035
|
-
|
|
1069
|
+
id,
|
|
1070
|
+
status,
|
|
1071
|
+
createdAt: obj.created_at,
|
|
1072
|
+
updatedAt: obj.updated_at,
|
|
1073
|
+
deactivatedAt: obj.deactivated_at,
|
|
1036
1074
|
platformId: obj.platform_id,
|
|
1075
|
+
filesUri: obj.files_uri,
|
|
1076
|
+
userId: obj.user_id,
|
|
1037
1077
|
verificationId: obj.verification_id,
|
|
1078
|
+
identityId: obj.identity_id,
|
|
1079
|
+
govtIdStatus: obj.govt_id_status,
|
|
1080
|
+
proofOfAddressStatus: obj.proof_of_address_status,
|
|
1081
|
+
proofOfLifeStatus: obj.proof_of_life_status,
|
|
1082
|
+
sourceType: obj.source_type,
|
|
1083
|
+
flowId: obj.flow_id,
|
|
1084
|
+
providerUrl: obj.provider_url,
|
|
1038
1085
|
});
|
|
1039
1086
|
}
|
|
1040
1087
|
|
|
@@ -1046,6 +1093,319 @@ class LoginToken {
|
|
|
1046
1093
|
static fromObject = ({ id }) => new LoginToken({ id });
|
|
1047
1094
|
}
|
|
1048
1095
|
|
|
1096
|
+
class TransactionalProfile {
|
|
1097
|
+
constructor({
|
|
1098
|
+
currency,
|
|
1099
|
+
monthlyAmount,
|
|
1100
|
+
recipientsNum,
|
|
1101
|
+
payersNum,
|
|
1102
|
+
deposits,
|
|
1103
|
+
withdrawal,
|
|
1104
|
+
}) {
|
|
1105
|
+
this.currency = currency;
|
|
1106
|
+
this.monthlyAmount = monthlyAmount;
|
|
1107
|
+
|
|
1108
|
+
this.recipientsNum = recipientsNum;
|
|
1109
|
+
this.payersNum = payersNum;
|
|
1110
|
+
|
|
1111
|
+
this.deposits = deposits;
|
|
1112
|
+
this.withdrawal = withdrawal;
|
|
1113
|
+
}
|
|
1114
|
+
|
|
1115
|
+
get deposits() {
|
|
1116
|
+
return this._deposits;
|
|
1117
|
+
}
|
|
1118
|
+
|
|
1119
|
+
set deposits(value) {
|
|
1120
|
+
if (!value) return;
|
|
1121
|
+
this._deposits = vulnerableActivity.TransactionalProfileServices.fromObject(value);
|
|
1122
|
+
}
|
|
1123
|
+
|
|
1124
|
+
get withdrawal() {
|
|
1125
|
+
return this._withdrawal;
|
|
1126
|
+
}
|
|
1127
|
+
|
|
1128
|
+
set withdrawal(value) {
|
|
1129
|
+
if (!value) return;
|
|
1130
|
+
this._withdrawal = vulnerableActivity.TransactionalProfileServices.fromObject(value);
|
|
1131
|
+
}
|
|
1132
|
+
|
|
1133
|
+
static fromObject = ({ currency, deposits, withdrawal, ...obj }) =>
|
|
1134
|
+
new TransactionalProfile({
|
|
1135
|
+
currency,
|
|
1136
|
+
deposits,
|
|
1137
|
+
withdrawal,
|
|
1138
|
+
payersNum: obj.payers_num,
|
|
1139
|
+
recipientsNum: obj.recipients_num,
|
|
1140
|
+
monthlyAmount: obj.monthly_amount,
|
|
1141
|
+
});
|
|
1142
|
+
}
|
|
1143
|
+
|
|
1144
|
+
class BaseUser {
|
|
1145
|
+
constructor({
|
|
1146
|
+
address,
|
|
1147
|
+
clabe,
|
|
1148
|
+
emailAddress,
|
|
1149
|
+
id,
|
|
1150
|
+
level,
|
|
1151
|
+
meta,
|
|
1152
|
+
nationality,
|
|
1153
|
+
platformId,
|
|
1154
|
+
phoneNumber,
|
|
1155
|
+
requiredLevel,
|
|
1156
|
+
rfc,
|
|
1157
|
+
status,
|
|
1158
|
+
createdAt,
|
|
1159
|
+
updatedAt,
|
|
1160
|
+
userType,
|
|
1161
|
+
}) {
|
|
1162
|
+
this.address = address;
|
|
1163
|
+
this.clabe = clabe;
|
|
1164
|
+
this.createdAt = data.dateToUTC(createdAt);
|
|
1165
|
+
this.emailAddress = emailAddress;
|
|
1166
|
+
this.id = id;
|
|
1167
|
+
this.level = level;
|
|
1168
|
+
this.meta = meta;
|
|
1169
|
+
this.nationality = nationality;
|
|
1170
|
+
this.platformId = platformId;
|
|
1171
|
+
this.phoneNumber = phoneNumber;
|
|
1172
|
+
this.requiredLevel = requiredLevel;
|
|
1173
|
+
this.rfc = rfc;
|
|
1174
|
+
this.status = data.enumValueFromString(data.UserStatus, status);
|
|
1175
|
+
this.updatedAt = data.dateToUTC(updatedAt);
|
|
1176
|
+
this.userType = userType;
|
|
1177
|
+
}
|
|
1178
|
+
|
|
1179
|
+
get address() {
|
|
1180
|
+
return this._address;
|
|
1181
|
+
}
|
|
1182
|
+
|
|
1183
|
+
set address(value) {
|
|
1184
|
+
if (!value) return;
|
|
1185
|
+
this._address = vulnerableActivity.Address.fromObject(value);
|
|
1186
|
+
}
|
|
1187
|
+
|
|
1188
|
+
static fromObject = ({
|
|
1189
|
+
address,
|
|
1190
|
+
clabe,
|
|
1191
|
+
id,
|
|
1192
|
+
level,
|
|
1193
|
+
nationality,
|
|
1194
|
+
rfc,
|
|
1195
|
+
status,
|
|
1196
|
+
...obj
|
|
1197
|
+
}) =>
|
|
1198
|
+
new BaseUser({
|
|
1199
|
+
address,
|
|
1200
|
+
clabe,
|
|
1201
|
+
id,
|
|
1202
|
+
level,
|
|
1203
|
+
meta: obj.meta,
|
|
1204
|
+
nationality,
|
|
1205
|
+
rfc,
|
|
1206
|
+
status,
|
|
1207
|
+
createdAt: obj.created_at,
|
|
1208
|
+
emailAddress: obj.email_address,
|
|
1209
|
+
phoneNumber: obj.phone_number,
|
|
1210
|
+
platformId: obj.platform_id,
|
|
1211
|
+
requiredLevel: obj.required_level,
|
|
1212
|
+
updatedAt: obj.updated_at,
|
|
1213
|
+
userType: obj.user_type,
|
|
1214
|
+
});
|
|
1215
|
+
}
|
|
1216
|
+
|
|
1217
|
+
class Partner extends BaseUser {
|
|
1218
|
+
constructor({
|
|
1219
|
+
address,
|
|
1220
|
+
audit,
|
|
1221
|
+
businessDetails,
|
|
1222
|
+
businessModel,
|
|
1223
|
+
businessName,
|
|
1224
|
+
clabe,
|
|
1225
|
+
createdAt,
|
|
1226
|
+
documentationUrl,
|
|
1227
|
+
emailAddress,
|
|
1228
|
+
externalAccount,
|
|
1229
|
+
folio,
|
|
1230
|
+
id,
|
|
1231
|
+
incorporationDate,
|
|
1232
|
+
legalName,
|
|
1233
|
+
legalRepresentatives,
|
|
1234
|
+
level,
|
|
1235
|
+
license,
|
|
1236
|
+
meta,
|
|
1237
|
+
nationality,
|
|
1238
|
+
phoneNumber,
|
|
1239
|
+
platformId,
|
|
1240
|
+
requiredLevel,
|
|
1241
|
+
rfc,
|
|
1242
|
+
shareholders,
|
|
1243
|
+
status,
|
|
1244
|
+
transactionalProfile,
|
|
1245
|
+
updatedAt,
|
|
1246
|
+
userId,
|
|
1247
|
+
userType,
|
|
1248
|
+
vulnerableActivity,
|
|
1249
|
+
webSite,
|
|
1250
|
+
}) {
|
|
1251
|
+
super({
|
|
1252
|
+
address,
|
|
1253
|
+
clabe,
|
|
1254
|
+
emailAddress,
|
|
1255
|
+
rfc,
|
|
1256
|
+
id,
|
|
1257
|
+
level,
|
|
1258
|
+
meta,
|
|
1259
|
+
nationality,
|
|
1260
|
+
platformId,
|
|
1261
|
+
phoneNumber,
|
|
1262
|
+
requiredLevel,
|
|
1263
|
+
status,
|
|
1264
|
+
createdAt,
|
|
1265
|
+
updatedAt,
|
|
1266
|
+
userType,
|
|
1267
|
+
});
|
|
1268
|
+
this.audit = audit;
|
|
1269
|
+
this.businessModel = businessModel;
|
|
1270
|
+
this.businessName = businessName;
|
|
1271
|
+
this.businessDetails = businessDetails;
|
|
1272
|
+
this.documentationUrl = documentationUrl;
|
|
1273
|
+
this.incorporationDate = data.dateToUTC(incorporationDate);
|
|
1274
|
+
this.externalAccount = externalAccount;
|
|
1275
|
+
this.folio = folio;
|
|
1276
|
+
this.legalName = legalName;
|
|
1277
|
+
this.license = license;
|
|
1278
|
+
this.shareholders = shareholders;
|
|
1279
|
+
this.legalRepresentatives = legalRepresentatives;
|
|
1280
|
+
this.transactionalProfile = transactionalProfile;
|
|
1281
|
+
this.userId = userId;
|
|
1282
|
+
this.vulnerableActivity = vulnerableActivity;
|
|
1283
|
+
this.webSite = webSite;
|
|
1284
|
+
}
|
|
1285
|
+
|
|
1286
|
+
get shareholders() {
|
|
1287
|
+
return this._shareholders;
|
|
1288
|
+
}
|
|
1289
|
+
|
|
1290
|
+
set shareholders(value) {
|
|
1291
|
+
if (!value) return;
|
|
1292
|
+
this._shareholders = value.map((sh) => vulnerableActivity.ShareholderMoral.fromObject(sh));
|
|
1293
|
+
}
|
|
1294
|
+
|
|
1295
|
+
get legalRepresentatives() {
|
|
1296
|
+
return this._legalRepresentatives;
|
|
1297
|
+
}
|
|
1298
|
+
|
|
1299
|
+
set legalRepresentatives(value) {
|
|
1300
|
+
if (!value) return;
|
|
1301
|
+
this._legalRepresentatives = value.map((lr) =>
|
|
1302
|
+
vulnerableActivity.LegalRepresentatives.fromObject(lr),
|
|
1303
|
+
);
|
|
1304
|
+
}
|
|
1305
|
+
|
|
1306
|
+
get externalAccount() {
|
|
1307
|
+
return this._externalAccount;
|
|
1308
|
+
}
|
|
1309
|
+
|
|
1310
|
+
set externalAccount(value) {
|
|
1311
|
+
if (!value) return;
|
|
1312
|
+
this._externalAccount = vulnerableActivity.ExternalAccount.fromObject(value);
|
|
1313
|
+
}
|
|
1314
|
+
|
|
1315
|
+
get vulnerableActivity() {
|
|
1316
|
+
return this._vulnerableActivity;
|
|
1317
|
+
}
|
|
1318
|
+
|
|
1319
|
+
set vulnerableActivity(value) {
|
|
1320
|
+
if (!value) return;
|
|
1321
|
+
this._vulnerableActivity = vulnerableActivity.VulnerableActivity.fromObject(value);
|
|
1322
|
+
}
|
|
1323
|
+
|
|
1324
|
+
get audit() {
|
|
1325
|
+
return this._audit;
|
|
1326
|
+
}
|
|
1327
|
+
|
|
1328
|
+
set audit(value) {
|
|
1329
|
+
if (!value) return;
|
|
1330
|
+
this._audit = vulnerableActivity.Audit.fromObject(value);
|
|
1331
|
+
}
|
|
1332
|
+
|
|
1333
|
+
get license() {
|
|
1334
|
+
return this._license;
|
|
1335
|
+
}
|
|
1336
|
+
|
|
1337
|
+
set license(value) {
|
|
1338
|
+
if (!value) return;
|
|
1339
|
+
this._license = vulnerableActivity.License.fromObject(value);
|
|
1340
|
+
}
|
|
1341
|
+
|
|
1342
|
+
get transactionalProfile() {
|
|
1343
|
+
return this._transactionalProfile;
|
|
1344
|
+
}
|
|
1345
|
+
|
|
1346
|
+
set transactionalProfile(value) {
|
|
1347
|
+
if (!value) return;
|
|
1348
|
+
this._transactionalProfile = TransactionalProfile.fromObject(value);
|
|
1349
|
+
}
|
|
1350
|
+
|
|
1351
|
+
get businessDetails() {
|
|
1352
|
+
return this._businessDetails;
|
|
1353
|
+
}
|
|
1354
|
+
|
|
1355
|
+
set businessDetails(value) {
|
|
1356
|
+
if (!value) return;
|
|
1357
|
+
this._businessDetails = vulnerableActivity.BusinessDetails.fromObject(value);
|
|
1358
|
+
}
|
|
1359
|
+
|
|
1360
|
+
static fromObject = ({
|
|
1361
|
+
audit,
|
|
1362
|
+
address,
|
|
1363
|
+
clabe,
|
|
1364
|
+
folio,
|
|
1365
|
+
id,
|
|
1366
|
+
level,
|
|
1367
|
+
license,
|
|
1368
|
+
nationality,
|
|
1369
|
+
rfc,
|
|
1370
|
+
status,
|
|
1371
|
+
shareholders,
|
|
1372
|
+
...obj
|
|
1373
|
+
}) =>
|
|
1374
|
+
new Partner({
|
|
1375
|
+
address,
|
|
1376
|
+
audit,
|
|
1377
|
+
clabe,
|
|
1378
|
+
folio,
|
|
1379
|
+
id,
|
|
1380
|
+
level,
|
|
1381
|
+
license,
|
|
1382
|
+
nationality,
|
|
1383
|
+
rfc,
|
|
1384
|
+
shareholders,
|
|
1385
|
+
status,
|
|
1386
|
+
legalName: obj.legal_name,
|
|
1387
|
+
legalRepresentatives: obj.legal_representatives,
|
|
1388
|
+
businessModel: obj.business_model,
|
|
1389
|
+
businessName: obj.business_name,
|
|
1390
|
+
businessDetails: obj.business_details,
|
|
1391
|
+
createdAt: obj.created_at,
|
|
1392
|
+
documentationUrl: obj.documentation_url,
|
|
1393
|
+
emailAddress: obj.email_address,
|
|
1394
|
+
externalAccount: obj.external_account,
|
|
1395
|
+
incorporationDate: obj.incorporation_date,
|
|
1396
|
+
meta: obj.meta,
|
|
1397
|
+
phoneNumber: obj.phone_number,
|
|
1398
|
+
platformId: obj.platform_id,
|
|
1399
|
+
requiredLevel: obj.required_level,
|
|
1400
|
+
transactionalProfile: obj.transactional_profile,
|
|
1401
|
+
updatedAt: obj.updated_at,
|
|
1402
|
+
userId: obj.user_id,
|
|
1403
|
+
userType: obj.user_type,
|
|
1404
|
+
vulnerableActivity: obj.vulnerable_activity,
|
|
1405
|
+
webSite: obj.web_site,
|
|
1406
|
+
});
|
|
1407
|
+
}
|
|
1408
|
+
|
|
1049
1409
|
class Wallet {
|
|
1050
1410
|
constructor({ balance, createdAt, deactivatedAt, id, userId, updatedAt }) {
|
|
1051
1411
|
this.balance = balance;
|
|
@@ -1253,9 +1613,10 @@ class User {
|
|
|
1253
1613
|
status,
|
|
1254
1614
|
termsOfService,
|
|
1255
1615
|
updatedAt,
|
|
1616
|
+
userType,
|
|
1256
1617
|
verificationId,
|
|
1257
1618
|
}) {
|
|
1258
|
-
this.
|
|
1619
|
+
this.address = address;
|
|
1259
1620
|
this.blacklistValidationStatus = data.enumValueFromString(
|
|
1260
1621
|
data.VerificationStatus,
|
|
1261
1622
|
blacklistValidationStatus,
|
|
@@ -1264,7 +1625,7 @@ class User {
|
|
|
1264
1625
|
this.countryOfBirth = countryOfBirth;
|
|
1265
1626
|
this.createdAt = data.dateToUTC(createdAt);
|
|
1266
1627
|
this.curp = curp;
|
|
1267
|
-
this.
|
|
1628
|
+
this.curpDocument = curpDocument;
|
|
1268
1629
|
this.dateOfBirth = dateOfBirth;
|
|
1269
1630
|
this.emailAddress = emailAddress;
|
|
1270
1631
|
this.firstSurname = firstSurname;
|
|
@@ -1274,16 +1635,17 @@ class User {
|
|
|
1274
1635
|
this.names = names;
|
|
1275
1636
|
this.nationality = nationality;
|
|
1276
1637
|
this.phoneNumber = phoneNumber;
|
|
1277
|
-
this.
|
|
1278
|
-
this.
|
|
1279
|
-
this.
|
|
1638
|
+
this.govtId = govtId;
|
|
1639
|
+
this.proofOfAddress = proofOfAddress;
|
|
1640
|
+
this.proofOfLife = proofOfLife;
|
|
1280
1641
|
this.requiredLevel = requiredLevel;
|
|
1281
1642
|
this.rfc = rfc;
|
|
1282
1643
|
this.secondSurname = secondSurname;
|
|
1283
1644
|
this.stateOfBirth = stateOfBirth;
|
|
1284
1645
|
this.status = data.enumValueFromString(data.UserStatus, status);
|
|
1285
|
-
this.
|
|
1646
|
+
this.termsOfService = termsOfService;
|
|
1286
1647
|
this.updatedAt = data.dateToUTC(updatedAt);
|
|
1648
|
+
this.userType = userType;
|
|
1287
1649
|
this.verificationId = verificationId;
|
|
1288
1650
|
}
|
|
1289
1651
|
|
|
@@ -1291,54 +1653,54 @@ class User {
|
|
|
1291
1653
|
return this._address;
|
|
1292
1654
|
}
|
|
1293
1655
|
|
|
1294
|
-
set
|
|
1656
|
+
set address(value) {
|
|
1295
1657
|
if (!value) return;
|
|
1296
|
-
this._address =
|
|
1658
|
+
this._address = vulnerableActivity.Address.fromObject(value);
|
|
1297
1659
|
}
|
|
1298
1660
|
|
|
1299
1661
|
get proofOfAddress() {
|
|
1300
1662
|
return this._proofOfAddress;
|
|
1301
1663
|
}
|
|
1302
1664
|
|
|
1303
|
-
set
|
|
1665
|
+
set proofOfAddress(value) {
|
|
1304
1666
|
if (!value) return;
|
|
1305
|
-
this._proofOfAddress =
|
|
1667
|
+
this._proofOfAddress = vulnerableActivity.KYCFile.fromObject(value);
|
|
1306
1668
|
}
|
|
1307
1669
|
|
|
1308
1670
|
get proofOfLife() {
|
|
1309
1671
|
return this._proofOfLife;
|
|
1310
1672
|
}
|
|
1311
1673
|
|
|
1312
|
-
set
|
|
1674
|
+
set proofOfLife(value) {
|
|
1313
1675
|
if (!value) return;
|
|
1314
|
-
this._proofOfLife =
|
|
1676
|
+
this._proofOfLife = vulnerableActivity.KYCFile.fromObject(value);
|
|
1315
1677
|
}
|
|
1316
1678
|
|
|
1317
1679
|
get govtId() {
|
|
1318
1680
|
return this._govtId;
|
|
1319
1681
|
}
|
|
1320
1682
|
|
|
1321
|
-
set
|
|
1683
|
+
set govtId(value) {
|
|
1322
1684
|
if (!value) return;
|
|
1323
|
-
this._govtId =
|
|
1685
|
+
this._govtId = vulnerableActivity.KYCFile.fromObject(value);
|
|
1324
1686
|
}
|
|
1325
1687
|
|
|
1326
1688
|
get termsOfService() {
|
|
1327
1689
|
return this._termsOfService;
|
|
1328
1690
|
}
|
|
1329
1691
|
|
|
1330
|
-
set
|
|
1692
|
+
set termsOfService(value) {
|
|
1331
1693
|
if (!value) return;
|
|
1332
|
-
this._termsOfService =
|
|
1694
|
+
this._termsOfService = vulnerableActivity.TOSAgreements.fromObject(value);
|
|
1333
1695
|
}
|
|
1334
1696
|
|
|
1335
1697
|
get curpDocument() {
|
|
1336
1698
|
return this._curpDocument;
|
|
1337
1699
|
}
|
|
1338
1700
|
|
|
1339
|
-
set
|
|
1701
|
+
set curpDocument(value) {
|
|
1340
1702
|
if (!value) return;
|
|
1341
|
-
this._curpDocument =
|
|
1703
|
+
this._curpDocument = vulnerableActivity.KYCFile.fromObject(value);
|
|
1342
1704
|
}
|
|
1343
1705
|
|
|
1344
1706
|
static fromObject = ({
|
|
@@ -1381,6 +1743,7 @@ class User {
|
|
|
1381
1743
|
stateOfBirth: obj.state_of_birth,
|
|
1382
1744
|
termsOfService: obj.terms_of_service,
|
|
1383
1745
|
updatedAt: obj.updated_at,
|
|
1746
|
+
userType: obj.user_type,
|
|
1384
1747
|
verificationId: obj.verification_id,
|
|
1385
1748
|
});
|
|
1386
1749
|
}
|
|
@@ -1566,6 +1929,7 @@ const getModelFromPath = (path, obj) => {
|
|
|
1566
1929
|
files: () => File.fromObject(obj),
|
|
1567
1930
|
kyc_validations: () => KYCValidations.fromObject(obj),
|
|
1568
1931
|
login_tokens: () => LoginToken.fromObject(obj),
|
|
1932
|
+
partners: () => Partner.fromObject(obj),
|
|
1569
1933
|
savings: () => Saving.fromObject(obj),
|
|
1570
1934
|
service_providers: () => ServiceProvider.fromObject(obj),
|
|
1571
1935
|
sessions: () => Session.fromObject(obj),
|
|
@@ -1725,7 +2089,7 @@ const Queryable = (SuperClass) =>
|
|
|
1725
2089
|
|
|
1726
2090
|
class AccountResource extends mix(Resource).with(Queryable, Retrievable) {
|
|
1727
2091
|
constructor(client) {
|
|
1728
|
-
super('accounts',
|
|
2092
|
+
super('accounts', vulnerableActivity.AccountQuery, client);
|
|
1729
2093
|
}
|
|
1730
2094
|
}
|
|
1731
2095
|
|
|
@@ -1736,18 +2100,18 @@ class AlertResource extends mix(Resource).with(
|
|
|
1736
2100
|
Updateable,
|
|
1737
2101
|
) {
|
|
1738
2102
|
constructor(client) {
|
|
1739
|
-
super('alerts',
|
|
2103
|
+
super('alerts', vulnerableActivity.AlertQuery, client);
|
|
1740
2104
|
}
|
|
1741
2105
|
|
|
1742
|
-
async create(
|
|
1743
|
-
const request = new walletTransactionRequest.AlertUpdateRequest(
|
|
1744
|
-
const alert = await this._create(request.
|
|
2106
|
+
async create(req) {
|
|
2107
|
+
const request = new walletTransactionRequest.AlertUpdateRequest(req);
|
|
2108
|
+
const alert = await this._create(request.toCleanObject());
|
|
1745
2109
|
return alert;
|
|
1746
2110
|
}
|
|
1747
2111
|
|
|
1748
|
-
async update(alertId,
|
|
2112
|
+
async update(alertId, req) {
|
|
1749
2113
|
const request = new walletTransactionRequest.AlertUpdateRequest(req);
|
|
1750
|
-
const alert = await this._update(alertId, request.
|
|
2114
|
+
const alert = await this._update(alertId, request.toCleanObject());
|
|
1751
2115
|
return alert;
|
|
1752
2116
|
}
|
|
1753
2117
|
}
|
|
@@ -1760,7 +2124,7 @@ class ApiKeyResource extends mix(Resource).with(
|
|
|
1760
2124
|
Updateable,
|
|
1761
2125
|
) {
|
|
1762
2126
|
constructor(client) {
|
|
1763
|
-
super('api_keys',
|
|
2127
|
+
super('api_keys', vulnerableActivity.ApiKeyQuery, client);
|
|
1764
2128
|
}
|
|
1765
2129
|
|
|
1766
2130
|
async create() {
|
|
@@ -1814,7 +2178,7 @@ class ArpcResource extends mix(Resource).with(Creatable) {
|
|
|
1814
2178
|
|
|
1815
2179
|
class BalanceEntryResource extends mix(Resource).with(Queryable, Retrievable) {
|
|
1816
2180
|
constructor(client) {
|
|
1817
|
-
super('balance_entries',
|
|
2181
|
+
super('balance_entries', vulnerableActivity.BalanceEntryQuery, client);
|
|
1818
2182
|
}
|
|
1819
2183
|
|
|
1820
2184
|
async relatedTransaction(relatedTransactionUri) {
|
|
@@ -1840,7 +2204,7 @@ class BalanceEntryResource extends mix(Resource).with(Queryable, Retrievable) {
|
|
|
1840
2204
|
|
|
1841
2205
|
class BillPaymentResource extends mix(Resource).with(Queryable, Retrievable) {
|
|
1842
2206
|
constructor(client) {
|
|
1843
|
-
super('bill_payments',
|
|
2207
|
+
super('bill_payments', vulnerableActivity.BillPaymentQuery, client);
|
|
1844
2208
|
}
|
|
1845
2209
|
|
|
1846
2210
|
async serviceProvider(providerUri) {
|
|
@@ -1858,7 +2222,7 @@ class BridegAccountResource extends mix(Resource).with(
|
|
|
1858
2222
|
Retrievable,
|
|
1859
2223
|
) {
|
|
1860
2224
|
constructor(client) {
|
|
1861
|
-
super('bridge/accounts',
|
|
2225
|
+
super('bridge/accounts', vulnerableActivity.BridgeAccountQuery, client);
|
|
1862
2226
|
}
|
|
1863
2227
|
|
|
1864
2228
|
async update({ userId = 'me', ...req }) {
|
|
@@ -1873,13 +2237,13 @@ class BridgeBankAccountResource extends mix(Resource).with(
|
|
|
1873
2237
|
Retrievable,
|
|
1874
2238
|
) {
|
|
1875
2239
|
constructor(client) {
|
|
1876
|
-
super('bridge/bank_accounts',
|
|
2240
|
+
super('bridge/bank_accounts', vulnerableActivity.BridgeBankAccountQuery, client);
|
|
1877
2241
|
}
|
|
1878
2242
|
}
|
|
1879
2243
|
|
|
1880
2244
|
class BridgeClabeResource extends mix(Resource).with(Queryable) {
|
|
1881
2245
|
constructor(client) {
|
|
1882
|
-
super('bridge/clabes',
|
|
2246
|
+
super('bridge/clabes', vulnerableActivity.BridgeQuery, client);
|
|
1883
2247
|
}
|
|
1884
2248
|
}
|
|
1885
2249
|
|
|
@@ -1888,7 +2252,7 @@ class BridgeTransactionResource extends mix(Resource).with(
|
|
|
1888
2252
|
Retrievable,
|
|
1889
2253
|
) {
|
|
1890
2254
|
constructor(client) {
|
|
1891
|
-
super('bridge/transactions',
|
|
2255
|
+
super('bridge/transactions', vulnerableActivity.BridgeTransactionQuery, client);
|
|
1892
2256
|
}
|
|
1893
2257
|
}
|
|
1894
2258
|
|
|
@@ -1918,7 +2282,7 @@ class CardResource extends mix(Resource).with(
|
|
|
1918
2282
|
Updateable,
|
|
1919
2283
|
) {
|
|
1920
2284
|
constructor(client) {
|
|
1921
|
-
super('cards',
|
|
2285
|
+
super('cards', vulnerableActivity.CardsQuery, client);
|
|
1922
2286
|
}
|
|
1923
2287
|
|
|
1924
2288
|
async create(userId, issuer, fundingType) {
|
|
@@ -1944,7 +2308,7 @@ class CardTransactionResource extends mix(Resource).with(
|
|
|
1944
2308
|
Retrievable,
|
|
1945
2309
|
) {
|
|
1946
2310
|
constructor(client) {
|
|
1947
|
-
super('card_transactions',
|
|
2311
|
+
super('card_transactions', vulnerableActivity.CardTransactionQuery, client);
|
|
1948
2312
|
}
|
|
1949
2313
|
|
|
1950
2314
|
async relatedCard(relatedCardUri) {
|
|
@@ -1996,7 +2360,7 @@ class CardValidationResource extends mix(Resource).with(Creatable) {
|
|
|
1996
2360
|
|
|
1997
2361
|
class CommissionResource extends mix(Resource).with(Queryable, Retrievable) {
|
|
1998
2362
|
constructor(client) {
|
|
1999
|
-
super('commissions',
|
|
2363
|
+
super('commissions', vulnerableActivity.QueryParams, client);
|
|
2000
2364
|
}
|
|
2001
2365
|
|
|
2002
2366
|
async relatedTransaction(relatedTransactionUri) {
|
|
@@ -2010,7 +2374,7 @@ class CommissionResource extends mix(Resource).with(Queryable, Retrievable) {
|
|
|
2010
2374
|
|
|
2011
2375
|
class DepositResource extends mix(Resource).with(Queryable, Retrievable) {
|
|
2012
2376
|
constructor(client) {
|
|
2013
|
-
super('deposits',
|
|
2377
|
+
super('deposits', vulnerableActivity.DepositQuery, client);
|
|
2014
2378
|
}
|
|
2015
2379
|
|
|
2016
2380
|
async source(sourceUri) {
|
|
@@ -2038,6 +2402,7 @@ class FileResource extends mix(Resource).with(Downlodable, Uploadable) {
|
|
|
2038
2402
|
class KYCValidationsResource extends mix(Resource).with(
|
|
2039
2403
|
Creatable,
|
|
2040
2404
|
Retrievable,
|
|
2405
|
+
Deactivable,
|
|
2041
2406
|
Queryable,
|
|
2042
2407
|
) {
|
|
2043
2408
|
constructor(client, isBridge = false) {
|
|
@@ -2058,6 +2423,11 @@ class KYCValidationsResource extends mix(Resource).with(
|
|
|
2058
2423
|
const kycValidation = await this._create(request.toCleanObject());
|
|
2059
2424
|
return kycValidation;
|
|
2060
2425
|
}
|
|
2426
|
+
|
|
2427
|
+
async deactivate(kycValidationId) {
|
|
2428
|
+
const response = await this._deactivate(kycValidationId);
|
|
2429
|
+
return response;
|
|
2430
|
+
}
|
|
2061
2431
|
}
|
|
2062
2432
|
|
|
2063
2433
|
class LoginTokenResource extends mix(Resource).with(Creatable) {
|
|
@@ -2071,6 +2441,29 @@ class LoginTokenResource extends mix(Resource).with(Creatable) {
|
|
|
2071
2441
|
}
|
|
2072
2442
|
}
|
|
2073
2443
|
|
|
2444
|
+
class PartnerResource extends mix(Resource).with(
|
|
2445
|
+
Creatable,
|
|
2446
|
+
Queryable,
|
|
2447
|
+
Updateable,
|
|
2448
|
+
Retrievable,
|
|
2449
|
+
) {
|
|
2450
|
+
constructor(client) {
|
|
2451
|
+
super('partners', vulnerableActivity.PartnerQuery, client);
|
|
2452
|
+
}
|
|
2453
|
+
|
|
2454
|
+
async create(req) {
|
|
2455
|
+
const request = new walletTransactionRequest.PartnerUserRequest(req);
|
|
2456
|
+
const partner = await this._create(request.toCleanObject());
|
|
2457
|
+
return partner;
|
|
2458
|
+
}
|
|
2459
|
+
|
|
2460
|
+
async update(partnerId, req) {
|
|
2461
|
+
const request = new walletTransactionRequest.PartnerUserRequest(req);
|
|
2462
|
+
const partner = await this._update(partnerId, request.toCleanObject());
|
|
2463
|
+
return partner;
|
|
2464
|
+
}
|
|
2465
|
+
}
|
|
2466
|
+
|
|
2074
2467
|
class SavingResource extends mix(Resource).with(
|
|
2075
2468
|
Creatable,
|
|
2076
2469
|
Deactivable,
|
|
@@ -2079,7 +2472,7 @@ class SavingResource extends mix(Resource).with(
|
|
|
2079
2472
|
Updateable,
|
|
2080
2473
|
) {
|
|
2081
2474
|
constructor(client) {
|
|
2082
|
-
super('savings',
|
|
2475
|
+
super('savings', vulnerableActivity.WalletQuery, client);
|
|
2083
2476
|
}
|
|
2084
2477
|
|
|
2085
2478
|
async create(category, goalAmount, goalDate, name) {
|
|
@@ -2105,7 +2498,7 @@ class ServiceProviderResource extends mix(Resource).with(
|
|
|
2105
2498
|
Retrievable,
|
|
2106
2499
|
) {
|
|
2107
2500
|
constructor(client) {
|
|
2108
|
-
super('service_providers',
|
|
2501
|
+
super('service_providers', vulnerableActivity.QueryParams, client);
|
|
2109
2502
|
}
|
|
2110
2503
|
}
|
|
2111
2504
|
|
|
@@ -2134,7 +2527,7 @@ class SessionResource extends mix(Resource).with(
|
|
|
2134
2527
|
|
|
2135
2528
|
class StatementResource extends mix(Resource).with(Downlodable, Queryable) {
|
|
2136
2529
|
constructor(client) {
|
|
2137
|
-
super('statements',
|
|
2530
|
+
super('statements', vulnerableActivity.StatementQuery, client);
|
|
2138
2531
|
}
|
|
2139
2532
|
|
|
2140
2533
|
async pdf(id) {
|
|
@@ -2154,7 +2547,7 @@ class TransferResource extends mix(Resource).with(
|
|
|
2154
2547
|
Retrievable,
|
|
2155
2548
|
) {
|
|
2156
2549
|
constructor(client) {
|
|
2157
|
-
super('transfers',
|
|
2550
|
+
super('transfers', vulnerableActivity.TransferQuery, client);
|
|
2158
2551
|
}
|
|
2159
2552
|
|
|
2160
2553
|
async destination(destinationUri) {
|
|
@@ -2280,7 +2673,7 @@ class UserResourse extends mix(Resource).with(
|
|
|
2280
2673
|
Retrievable,
|
|
2281
2674
|
) {
|
|
2282
2675
|
constructor(client) {
|
|
2283
|
-
super('users',
|
|
2676
|
+
super('users', vulnerableActivity.UserQuery, client);
|
|
2284
2677
|
}
|
|
2285
2678
|
|
|
2286
2679
|
async update({ userId = 'me', ...req }) {
|
|
@@ -2314,7 +2707,7 @@ class WalletTransactionsResource extends mix(Resource).with(
|
|
|
2314
2707
|
Retrievable,
|
|
2315
2708
|
) {
|
|
2316
2709
|
constructor(client) {
|
|
2317
|
-
super('wallet_transactions',
|
|
2710
|
+
super('wallet_transactions', vulnerableActivity.WalletTransactionQuery, client);
|
|
2318
2711
|
}
|
|
2319
2712
|
|
|
2320
2713
|
async create(amount, transactionType, walletUri) {
|
|
@@ -2341,7 +2734,7 @@ class WhatsAppTransferResource extends mix(Resource).with(
|
|
|
2341
2734
|
Retrievable,
|
|
2342
2735
|
) {
|
|
2343
2736
|
constructor(client) {
|
|
2344
|
-
super('whatsapp_transfers',
|
|
2737
|
+
super('whatsapp_transfers', vulnerableActivity.QueryParams, client);
|
|
2345
2738
|
}
|
|
2346
2739
|
|
|
2347
2740
|
async accountDestination(destinationUri) {
|
|
@@ -2385,6 +2778,7 @@ class Cuenca {
|
|
|
2385
2778
|
this.files = new FileResource(client);
|
|
2386
2779
|
this.kycValidations = new KYCValidationsResource(client);
|
|
2387
2780
|
this.loginTokens = new LoginTokenResource(client);
|
|
2781
|
+
this.partners = new PartnerResource(client);
|
|
2388
2782
|
this.savings = new SavingResource(client);
|
|
2389
2783
|
this.serviceProviders = new ServiceProviderResource(client);
|
|
2390
2784
|
this.sessions = new SessionResource(client);
|