@cuenca-mx/cuenca-js 0.0.14-dev18 → 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-8c8b6b85.mjs → walletTransactionRequest-ad6ac01a.mjs} +82 -72
- package/build/{walletTransactionRequest-fb66d805.cjs → walletTransactionRequest-fcd89391.cjs} +82 -72
- package/package.json +1 -1
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
|
|
6
|
-
import { A as AlertLog, a as Address, K as KYCFile, T as TOSAgreements, b as TransactionalProfileServices, S as ShareholderMoral, L as LegalRepresentatives, 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, W as WalletQuery, o as StatementQuery, p as TransferQuery, U as UserQuery, q as WalletTransactionQuery } from './vulnerableActivity-
|
|
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-
|
|
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, U as UserStatus, o as SavingCategory, p as ServiceProviderCategory, q as SessionType, r as TransferNetwork, V as VerificationStatus, s as VerificationType, W as WalletTransactionType } from './data-e39b51f5.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, W as WalletQuery, o as StatementQuery, p as TransferQuery, U as UserQuery, q as WalletTransactionQuery } from './vulnerableActivity-7321f7ee.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-ad6ac01a.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="0.0.14-
|
|
20
|
+
const name="@cuenca-mx/cuenca-js";const version="0.0.14-dev19";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({
|
|
@@ -284,10 +284,10 @@ class Alert {
|
|
|
284
284
|
this.sourceType = enumValueFromString(SourceAlertType, sourceType);
|
|
285
285
|
this.transactionDate = dateToUTC(transactionDate);
|
|
286
286
|
this.type = enumValueFromString(MLIndicatorType, type);
|
|
287
|
-
this.typeOfFilter = enumValueFromString(
|
|
287
|
+
this.typeOfFilter = enumValueFromString(PLDFilterType, typeOfFilter);
|
|
288
288
|
this.updatedAt = dateToUTC(updatedAt);
|
|
289
289
|
this.userId = userId;
|
|
290
|
-
this.
|
|
290
|
+
this.changeLog = changeLog;
|
|
291
291
|
}
|
|
292
292
|
|
|
293
293
|
static fromObject = ({
|
|
@@ -334,9 +334,9 @@ class Alert {
|
|
|
334
334
|
return this._changeLog;
|
|
335
335
|
}
|
|
336
336
|
|
|
337
|
-
set
|
|
337
|
+
set changeLog(value) {
|
|
338
338
|
if (!value || Object.keys(value).length === 0) return;
|
|
339
|
-
this._changeLog = value.map((
|
|
339
|
+
this._changeLog = value.map((entry) => AlertLog.fromObject(entry));
|
|
340
340
|
}
|
|
341
341
|
}
|
|
342
342
|
|
|
@@ -496,7 +496,7 @@ class BridgeAccount {
|
|
|
496
496
|
this.updatedAt = dateToUTC(updatedAt);
|
|
497
497
|
this.emailAddress = emailAddress;
|
|
498
498
|
this.clientClabe = clientClabe;
|
|
499
|
-
this.
|
|
499
|
+
this.govtId = govtId;
|
|
500
500
|
this.names = names;
|
|
501
501
|
this.firstSurname = firstSurname;
|
|
502
502
|
this.secondSurname = secondSurname;
|
|
@@ -507,10 +507,10 @@ class BridgeAccount {
|
|
|
507
507
|
this.userId = userId;
|
|
508
508
|
this.gender = gender;
|
|
509
509
|
this.phoneNumber = phoneNumber;
|
|
510
|
-
this.
|
|
510
|
+
this.proofOfAddress = proofOfAddress;
|
|
511
511
|
this.status = enumValueFromString(BridgeAccountStatus, status);
|
|
512
|
-
this.
|
|
513
|
-
this.
|
|
512
|
+
this.termsOfService = termsOfService;
|
|
513
|
+
this.address = address;
|
|
514
514
|
}
|
|
515
515
|
|
|
516
516
|
static fromObject = ({ status, address, ...obj }) =>
|
|
@@ -541,7 +541,7 @@ class BridgeAccount {
|
|
|
541
541
|
return this._address;
|
|
542
542
|
}
|
|
543
543
|
|
|
544
|
-
set
|
|
544
|
+
set address(value) {
|
|
545
545
|
if (!value || Object.keys(value).length === 0) return;
|
|
546
546
|
this._address = Address.fromObject(value);
|
|
547
547
|
}
|
|
@@ -550,7 +550,7 @@ class BridgeAccount {
|
|
|
550
550
|
return this._proofOfAddress;
|
|
551
551
|
}
|
|
552
552
|
|
|
553
|
-
set
|
|
553
|
+
set proofOfAddress(value) {
|
|
554
554
|
if (!value || Object.keys(value).length === 0) return;
|
|
555
555
|
this._proofOfAddress = KYCFile.fromObject(value);
|
|
556
556
|
}
|
|
@@ -559,7 +559,7 @@ class BridgeAccount {
|
|
|
559
559
|
return this._govtId;
|
|
560
560
|
}
|
|
561
561
|
|
|
562
|
-
set
|
|
562
|
+
set govtId(value) {
|
|
563
563
|
if (!value || Object.keys(value).length === 0) return;
|
|
564
564
|
this._govtId = KYCFile.fromObject(value);
|
|
565
565
|
}
|
|
@@ -568,7 +568,7 @@ class BridgeAccount {
|
|
|
568
568
|
return this._termsOfService;
|
|
569
569
|
}
|
|
570
570
|
|
|
571
|
-
set
|
|
571
|
+
set termsOfService(value) {
|
|
572
572
|
if (!value || Object.keys(value).length === 0) return;
|
|
573
573
|
this._termsOfService = TOSAgreements.fromObject(value);
|
|
574
574
|
}
|
|
@@ -1052,15 +1052,15 @@ class TransactionalProfile {
|
|
|
1052
1052
|
this.recipientsNum = recipientsNum;
|
|
1053
1053
|
this.payersNum = payersNum;
|
|
1054
1054
|
|
|
1055
|
-
this.
|
|
1056
|
-
this.
|
|
1055
|
+
this.deposits = deposits;
|
|
1056
|
+
this.withdrawal = withdrawal;
|
|
1057
1057
|
}
|
|
1058
1058
|
|
|
1059
1059
|
get deposits() {
|
|
1060
1060
|
return this._deposits;
|
|
1061
1061
|
}
|
|
1062
1062
|
|
|
1063
|
-
set
|
|
1063
|
+
set deposits(value) {
|
|
1064
1064
|
if (!value) return;
|
|
1065
1065
|
this._deposits = TransactionalProfileServices.fromObject(value);
|
|
1066
1066
|
}
|
|
@@ -1069,7 +1069,7 @@ class TransactionalProfile {
|
|
|
1069
1069
|
return this._withdrawal;
|
|
1070
1070
|
}
|
|
1071
1071
|
|
|
1072
|
-
set
|
|
1072
|
+
set withdrawal(value) {
|
|
1073
1073
|
if (!value) return;
|
|
1074
1074
|
this._withdrawal = TransactionalProfileServices.fromObject(value);
|
|
1075
1075
|
}
|
|
@@ -1103,7 +1103,7 @@ class BaseUser {
|
|
|
1103
1103
|
updatedAt,
|
|
1104
1104
|
userType,
|
|
1105
1105
|
}) {
|
|
1106
|
-
this.
|
|
1106
|
+
this.address = address;
|
|
1107
1107
|
this.clabe = clabe;
|
|
1108
1108
|
this.createdAt = dateToUTC(createdAt);
|
|
1109
1109
|
this.emailAddress = emailAddress;
|
|
@@ -1124,7 +1124,7 @@ class BaseUser {
|
|
|
1124
1124
|
return this._address;
|
|
1125
1125
|
}
|
|
1126
1126
|
|
|
1127
|
-
set
|
|
1127
|
+
set address(value) {
|
|
1128
1128
|
if (!value) return;
|
|
1129
1129
|
this._address = Address.fromObject(value);
|
|
1130
1130
|
}
|
|
@@ -1162,6 +1162,7 @@ class Partner extends BaseUser {
|
|
|
1162
1162
|
address,
|
|
1163
1163
|
audit,
|
|
1164
1164
|
businessDetails,
|
|
1165
|
+
businessModel,
|
|
1165
1166
|
businessName,
|
|
1166
1167
|
clabe,
|
|
1167
1168
|
createdAt,
|
|
@@ -1208,20 +1209,21 @@ class Partner extends BaseUser {
|
|
|
1208
1209
|
updatedAt,
|
|
1209
1210
|
userType,
|
|
1210
1211
|
});
|
|
1211
|
-
this.
|
|
1212
|
+
this.audit = audit;
|
|
1213
|
+
this.businessModel = businessModel;
|
|
1212
1214
|
this.businessName = businessName;
|
|
1213
|
-
this.
|
|
1215
|
+
this.businessDetails = businessDetails;
|
|
1214
1216
|
this.documentationUrl = documentationUrl;
|
|
1215
1217
|
this.incorporationDate = dateToUTC(incorporationDate);
|
|
1216
1218
|
this.externalAccount = externalAccount;
|
|
1217
1219
|
this.folio = folio;
|
|
1218
1220
|
this.legalName = legalName;
|
|
1219
|
-
this.
|
|
1220
|
-
this.
|
|
1221
|
-
this.
|
|
1222
|
-
this.
|
|
1221
|
+
this.license = license;
|
|
1222
|
+
this.shareholders = shareholders;
|
|
1223
|
+
this.legalRepresentatives = legalRepresentatives;
|
|
1224
|
+
this.transactionalProfile = transactionalProfile;
|
|
1223
1225
|
this.userId = userId;
|
|
1224
|
-
this.
|
|
1226
|
+
this.vulnerableActivity = vulnerableActivity;
|
|
1225
1227
|
this.webSite = webSite;
|
|
1226
1228
|
}
|
|
1227
1229
|
|
|
@@ -1229,7 +1231,7 @@ class Partner extends BaseUser {
|
|
|
1229
1231
|
return this._shareholders;
|
|
1230
1232
|
}
|
|
1231
1233
|
|
|
1232
|
-
set
|
|
1234
|
+
set shareholders(value) {
|
|
1233
1235
|
if (!value) return;
|
|
1234
1236
|
this._shareholders = value.map((sh) => ShareholderMoral.fromObject(sh));
|
|
1235
1237
|
}
|
|
@@ -1238,18 +1240,27 @@ class Partner extends BaseUser {
|
|
|
1238
1240
|
return this._legalRepresentatives;
|
|
1239
1241
|
}
|
|
1240
1242
|
|
|
1241
|
-
set
|
|
1243
|
+
set legalRepresentatives(value) {
|
|
1242
1244
|
if (!value) return;
|
|
1243
1245
|
this._legalRepresentatives = value.map((lr) =>
|
|
1244
1246
|
LegalRepresentatives.fromObject(lr),
|
|
1245
1247
|
);
|
|
1246
1248
|
}
|
|
1247
1249
|
|
|
1250
|
+
get externalAccount() {
|
|
1251
|
+
return this._externalAccount;
|
|
1252
|
+
}
|
|
1253
|
+
|
|
1254
|
+
set externalAccount(value) {
|
|
1255
|
+
if (!value) return;
|
|
1256
|
+
this._externalAccount = ExternalAccount.fromObject(value);
|
|
1257
|
+
}
|
|
1258
|
+
|
|
1248
1259
|
get vulnerableActivity() {
|
|
1249
1260
|
return this._vulnerableActivity;
|
|
1250
1261
|
}
|
|
1251
1262
|
|
|
1252
|
-
set
|
|
1263
|
+
set vulnerableActivity(value) {
|
|
1253
1264
|
if (!value) return;
|
|
1254
1265
|
this._vulnerableActivity = VulnerableActivity.fromObject(value);
|
|
1255
1266
|
}
|
|
@@ -1258,7 +1269,7 @@ class Partner extends BaseUser {
|
|
|
1258
1269
|
return this._audit;
|
|
1259
1270
|
}
|
|
1260
1271
|
|
|
1261
|
-
set
|
|
1272
|
+
set audit(value) {
|
|
1262
1273
|
if (!value) return;
|
|
1263
1274
|
this._audit = Audit.fromObject(value);
|
|
1264
1275
|
}
|
|
@@ -1267,7 +1278,7 @@ class Partner extends BaseUser {
|
|
|
1267
1278
|
return this._license;
|
|
1268
1279
|
}
|
|
1269
1280
|
|
|
1270
|
-
set
|
|
1281
|
+
set license(value) {
|
|
1271
1282
|
if (!value) return;
|
|
1272
1283
|
this._license = License.fromObject(value);
|
|
1273
1284
|
}
|
|
@@ -1276,7 +1287,7 @@ class Partner extends BaseUser {
|
|
|
1276
1287
|
return this._transactionalProfile;
|
|
1277
1288
|
}
|
|
1278
1289
|
|
|
1279
|
-
set
|
|
1290
|
+
set transactionalProfile(value) {
|
|
1280
1291
|
if (!value) return;
|
|
1281
1292
|
this._transactionalProfile = TransactionalProfile.fromObject(value);
|
|
1282
1293
|
}
|
|
@@ -1285,7 +1296,7 @@ class Partner extends BaseUser {
|
|
|
1285
1296
|
return this._businessDetails;
|
|
1286
1297
|
}
|
|
1287
1298
|
|
|
1288
|
-
set
|
|
1299
|
+
set businessDetails(value) {
|
|
1289
1300
|
if (!value) return;
|
|
1290
1301
|
this._businessDetails = BusinessDetails.fromObject(value);
|
|
1291
1302
|
}
|
|
@@ -1547,7 +1558,7 @@ class User {
|
|
|
1547
1558
|
userType,
|
|
1548
1559
|
verificationId,
|
|
1549
1560
|
}) {
|
|
1550
|
-
this.
|
|
1561
|
+
this.address = address;
|
|
1551
1562
|
this.blacklistValidationStatus = enumValueFromString(
|
|
1552
1563
|
VerificationStatus,
|
|
1553
1564
|
blacklistValidationStatus,
|
|
@@ -1556,7 +1567,7 @@ class User {
|
|
|
1556
1567
|
this.countryOfBirth = countryOfBirth;
|
|
1557
1568
|
this.createdAt = dateToUTC(createdAt);
|
|
1558
1569
|
this.curp = curp;
|
|
1559
|
-
this.
|
|
1570
|
+
this.curpDocument = curpDocument;
|
|
1560
1571
|
this.dateOfBirth = dateOfBirth;
|
|
1561
1572
|
this.emailAddress = emailAddress;
|
|
1562
1573
|
this.firstSurname = firstSurname;
|
|
@@ -1566,15 +1577,15 @@ class User {
|
|
|
1566
1577
|
this.names = names;
|
|
1567
1578
|
this.nationality = nationality;
|
|
1568
1579
|
this.phoneNumber = phoneNumber;
|
|
1569
|
-
this.
|
|
1570
|
-
this.
|
|
1571
|
-
this.
|
|
1580
|
+
this.govtId = govtId;
|
|
1581
|
+
this.proofOfAddress = proofOfAddress;
|
|
1582
|
+
this.proofOfLife = proofOfLife;
|
|
1572
1583
|
this.requiredLevel = requiredLevel;
|
|
1573
1584
|
this.rfc = rfc;
|
|
1574
1585
|
this.secondSurname = secondSurname;
|
|
1575
1586
|
this.stateOfBirth = stateOfBirth;
|
|
1576
1587
|
this.status = enumValueFromString(UserStatus, status);
|
|
1577
|
-
this.
|
|
1588
|
+
this.termsOfService = termsOfService;
|
|
1578
1589
|
this.updatedAt = dateToUTC(updatedAt);
|
|
1579
1590
|
this.userType = userType;
|
|
1580
1591
|
this.verificationId = verificationId;
|
|
@@ -1584,7 +1595,7 @@ class User {
|
|
|
1584
1595
|
return this._address;
|
|
1585
1596
|
}
|
|
1586
1597
|
|
|
1587
|
-
set
|
|
1598
|
+
set address(value) {
|
|
1588
1599
|
if (!value) return;
|
|
1589
1600
|
this._address = Address.fromObject(value);
|
|
1590
1601
|
}
|
|
@@ -1593,7 +1604,7 @@ class User {
|
|
|
1593
1604
|
return this._proofOfAddress;
|
|
1594
1605
|
}
|
|
1595
1606
|
|
|
1596
|
-
set
|
|
1607
|
+
set proofOfAddress(value) {
|
|
1597
1608
|
if (!value) return;
|
|
1598
1609
|
this._proofOfAddress = KYCFile.fromObject(value);
|
|
1599
1610
|
}
|
|
@@ -1602,7 +1613,7 @@ class User {
|
|
|
1602
1613
|
return this._proofOfLife;
|
|
1603
1614
|
}
|
|
1604
1615
|
|
|
1605
|
-
set
|
|
1616
|
+
set proofOfLife(value) {
|
|
1606
1617
|
if (!value) return;
|
|
1607
1618
|
this._proofOfLife = KYCFile.fromObject(value);
|
|
1608
1619
|
}
|
|
@@ -1611,7 +1622,7 @@ class User {
|
|
|
1611
1622
|
return this._govtId;
|
|
1612
1623
|
}
|
|
1613
1624
|
|
|
1614
|
-
set
|
|
1625
|
+
set govtId(value) {
|
|
1615
1626
|
if (!value) return;
|
|
1616
1627
|
this._govtId = KYCFile.fromObject(value);
|
|
1617
1628
|
}
|
|
@@ -1620,7 +1631,7 @@ class User {
|
|
|
1620
1631
|
return this._termsOfService;
|
|
1621
1632
|
}
|
|
1622
1633
|
|
|
1623
|
-
set
|
|
1634
|
+
set termsOfService(value) {
|
|
1624
1635
|
if (!value) return;
|
|
1625
1636
|
this._termsOfService = TOSAgreements.fromObject(value);
|
|
1626
1637
|
}
|
|
@@ -1629,7 +1640,7 @@ class User {
|
|
|
1629
1640
|
return this._curpDocument;
|
|
1630
1641
|
}
|
|
1631
1642
|
|
|
1632
|
-
set
|
|
1643
|
+
set curpDocument(value) {
|
|
1633
1644
|
if (!value) return;
|
|
1634
1645
|
this._curpDocument = KYCFile.fromObject(value);
|
|
1635
1646
|
}
|
|
@@ -2034,15 +2045,15 @@ class AlertResource extends mix(Resource).with(
|
|
|
2034
2045
|
super('alerts', AlertQuery, client);
|
|
2035
2046
|
}
|
|
2036
2047
|
|
|
2037
|
-
async create(
|
|
2038
|
-
const request = new AlertUpdateRequest(
|
|
2039
|
-
const alert = await this._create(request.
|
|
2048
|
+
async create(req) {
|
|
2049
|
+
const request = new AlertUpdateRequest(req);
|
|
2050
|
+
const alert = await this._create(request.toCleanObject());
|
|
2040
2051
|
return alert;
|
|
2041
2052
|
}
|
|
2042
2053
|
|
|
2043
|
-
async update(alertId,
|
|
2054
|
+
async update(alertId, req) {
|
|
2044
2055
|
const request = new AlertUpdateRequest(req);
|
|
2045
|
-
const alert = await this._update(alertId, request.
|
|
2056
|
+
const alert = await this._update(alertId, request.toCleanObject());
|
|
2046
2057
|
return alert;
|
|
2047
2058
|
}
|
|
2048
2059
|
}
|
|
@@ -2376,15 +2387,15 @@ class PartnerResource extends mix(Resource).with(
|
|
|
2376
2387
|
super('partners', PartnerQuery, client);
|
|
2377
2388
|
}
|
|
2378
2389
|
|
|
2379
|
-
async create(
|
|
2380
|
-
const request = new PartnerUserRequest(
|
|
2390
|
+
async create(req) {
|
|
2391
|
+
const request = new PartnerUserRequest(req);
|
|
2381
2392
|
const partner = await this._create(request.toCleanObject());
|
|
2382
2393
|
return partner;
|
|
2383
2394
|
}
|
|
2384
2395
|
|
|
2385
|
-
async update(partnerId,
|
|
2396
|
+
async update(partnerId, req) {
|
|
2386
2397
|
const request = new PartnerUserRequest(req);
|
|
2387
|
-
const partner = await this._update(partnerId, request.
|
|
2398
|
+
const partner = await this._update(partnerId, request.toCleanObject());
|
|
2388
2399
|
return partner;
|
|
2389
2400
|
}
|
|
2390
2401
|
}
|
package/build/requests/index.cjs
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var walletTransactionRequest = require('../walletTransactionRequest-
|
|
5
|
+
var walletTransactionRequest = require('../walletTransactionRequest-fcd89391.cjs');
|
|
6
6
|
require('../errors/index.cjs');
|
|
7
|
-
require('../data-
|
|
7
|
+
require('../data-d64999cb.cjs');
|
|
8
8
|
|
|
9
9
|
class UploadRequest extends walletTransactionRequest.BaseRequest {
|
|
10
10
|
constructor({ isBack = false, file, extension, type, userId = 'me' }) {
|
package/build/requests/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { B as BaseRequest } from '../walletTransactionRequest-
|
|
2
|
-
export { A as AlertUpdateRequest, a as ApiKeyUpdateRequest, b as ArpcRequest, 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, U as UserUpdateRequest, j as VerificationAttemptRequest, V as VerificationRequest, W as WalletTransactionRequest } from '../walletTransactionRequest-
|
|
1
|
+
import { B as BaseRequest } from '../walletTransactionRequest-ad6ac01a.mjs';
|
|
2
|
+
export { A as AlertUpdateRequest, a as ApiKeyUpdateRequest, b as ArpcRequest, 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, U as UserUpdateRequest, j as VerificationAttemptRequest, V as VerificationRequest, W as WalletTransactionRequest } from '../walletTransactionRequest-ad6ac01a.mjs';
|
|
3
3
|
import '../errors/index.mjs';
|
|
4
|
-
import '../data-
|
|
4
|
+
import '../data-e39b51f5.mjs';
|
|
5
5
|
|
|
6
6
|
class UploadRequest extends BaseRequest {
|
|
7
7
|
constructor({ isBack = false, file, extension, type, userId = 'me' }) {
|
package/build/types/index.cjs
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var data = require('../data-
|
|
6
|
-
var vulnerableActivity = require('../vulnerableActivity-
|
|
5
|
+
var data = require('../data-d64999cb.cjs');
|
|
6
|
+
var vulnerableActivity = require('../vulnerableActivity-c777ffc0.cjs');
|
|
7
7
|
require('../errors/index.cjs');
|
|
8
8
|
|
|
9
9
|
class PageSize {
|
|
@@ -25,19 +25,6 @@ class PageSize {
|
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
-
class ExternalAccount {
|
|
29
|
-
constructor({ bank, account }) {
|
|
30
|
-
this.bank = bank;
|
|
31
|
-
this.account = account;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
static fromObject = ({ account, bank }) =>
|
|
35
|
-
new ExternalAccount({
|
|
36
|
-
bank,
|
|
37
|
-
account,
|
|
38
|
-
});
|
|
39
|
-
}
|
|
40
|
-
|
|
41
28
|
class MoralOperation {
|
|
42
29
|
constructor({ transactions, amount }) {
|
|
43
30
|
this.transactions = transactions;
|
|
@@ -71,7 +58,7 @@ exports.MLIndicatorLevel = data.MLIndicatorLevel;
|
|
|
71
58
|
exports.MLIndicatorPeriod = data.MLIndicatorPeriod;
|
|
72
59
|
exports.MLIndicatorType = data.MLIndicatorType;
|
|
73
60
|
exports.Network = data.Network;
|
|
74
|
-
exports.
|
|
61
|
+
exports.PLDFilterType = data.PLDFilterType;
|
|
75
62
|
exports.Phase = data.Phase;
|
|
76
63
|
exports.SavingCategory = data.SavingCategory;
|
|
77
64
|
exports.ServiceProviderCategory = data.ServiceProviderCategory;
|
|
@@ -101,6 +88,7 @@ exports.BusinessDetails = vulnerableActivity.BusinessDetails;
|
|
|
101
88
|
exports.CardTransactionQuery = vulnerableActivity.CardTransactionQuery;
|
|
102
89
|
exports.CardsQuery = vulnerableActivity.CardsQuery;
|
|
103
90
|
exports.DepositQuery = vulnerableActivity.DepositQuery;
|
|
91
|
+
exports.ExternalAccount = vulnerableActivity.ExternalAccount;
|
|
104
92
|
exports.KYCFile = vulnerableActivity.KYCFile;
|
|
105
93
|
exports.LegalRepresentatives = vulnerableActivity.LegalRepresentatives;
|
|
106
94
|
exports.License = vulnerableActivity.License;
|
|
@@ -117,6 +105,5 @@ exports.VerificationError = vulnerableActivity.VerificationError;
|
|
|
117
105
|
exports.VulnerableActivity = vulnerableActivity.VulnerableActivity;
|
|
118
106
|
exports.WalletQuery = vulnerableActivity.WalletQuery;
|
|
119
107
|
exports.WalletTransactionQuery = vulnerableActivity.WalletTransactionQuery;
|
|
120
|
-
exports.ExternalAccount = ExternalAccount;
|
|
121
108
|
exports.MoralOperation = MoralOperation;
|
|
122
109
|
exports.PageSize = PageSize;
|
package/build/types/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { A as AlertStatus, B as BridgeAccountStatus, f as BridgeBankAccountStatus, g as BridgeTransactionType, l as CardErrorType, h as CardFundingType, i as CardIssuer, j as CardStatus, m as CardTransactionType, k as CardType, n as CommissionType, C as Currency, D as DepositNetwork, E as EntryType, F as FileFormat, K as KYCFileType, M as MLIndicatorLevel, a as MLIndicatorPeriod, b as MLIndicatorType, N as Network, c as
|
|
2
|
-
export { e as AccountQuery, a as Address, A as AlertLog, f as AlertQuery, g as ApiKeyQuery, c as Audit, h as BalanceEntryQuery, i as BillPaymentQuery, j as BridgeAccountQuery, k as BridgeBankAccountQuery, l as BridgeQuery, m as BridgeTransactionQuery, B as BusinessDetails, n as CardTransactionQuery, C as CardsQuery, D as DepositQuery, K as KYCFile, L as LegalRepresentatives, d as License, P as PartnerQuery, Q as QueryParams, S as ShareholderMoral, o as StatementQuery, T as TOSAgreements, r as TransactionQuery, b as TransactionalProfileServices, p as TransferQuery, U as UserQuery, s as VerificationError, V as VulnerableActivity, W as WalletQuery, q as WalletTransactionQuery } from '../vulnerableActivity-
|
|
1
|
+
export { A as AlertStatus, B as BridgeAccountStatus, f as BridgeBankAccountStatus, g as BridgeTransactionType, l as CardErrorType, h as CardFundingType, i as CardIssuer, j as CardStatus, m as CardTransactionType, k as CardType, n as CommissionType, C as Currency, D as DepositNetwork, E as EntryType, F as FileFormat, K as KYCFileType, M as MLIndicatorLevel, a as MLIndicatorPeriod, b as MLIndicatorType, N as Network, c as PLDFilterType, P as Phase, o as SavingCategory, p as ServiceProviderCategory, q as SessionType, S as SourceAlertType, t as TrackDataMethod, T as TransactionStatus, r as TransferNetwork, U as UserStatus, u as UserType, V as VerificationStatus, s as VerificationType, W as WalletTransactionType } from '../data-e39b51f5.mjs';
|
|
2
|
+
export { e as AccountQuery, a as Address, A as AlertLog, f as AlertQuery, g as ApiKeyQuery, c as Audit, h as BalanceEntryQuery, i as BillPaymentQuery, j as BridgeAccountQuery, k as BridgeBankAccountQuery, l as BridgeQuery, m as BridgeTransactionQuery, B as BusinessDetails, n as CardTransactionQuery, C as CardsQuery, D as DepositQuery, E as ExternalAccount, K as KYCFile, L as LegalRepresentatives, d as License, P as PartnerQuery, Q as QueryParams, S as ShareholderMoral, o as StatementQuery, T as TOSAgreements, r as TransactionQuery, b as TransactionalProfileServices, p as TransferQuery, U as UserQuery, s as VerificationError, V as VulnerableActivity, W as WalletQuery, q as WalletTransactionQuery } from '../vulnerableActivity-7321f7ee.mjs';
|
|
3
3
|
import '../errors/index.mjs';
|
|
4
4
|
|
|
5
5
|
class PageSize {
|
|
@@ -21,19 +21,6 @@ class PageSize {
|
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
-
class ExternalAccount {
|
|
25
|
-
constructor({ bank, account }) {
|
|
26
|
-
this.bank = bank;
|
|
27
|
-
this.account = account;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
static fromObject = ({ account, bank }) =>
|
|
31
|
-
new ExternalAccount({
|
|
32
|
-
bank,
|
|
33
|
-
account,
|
|
34
|
-
});
|
|
35
|
-
}
|
|
36
|
-
|
|
37
24
|
class MoralOperation {
|
|
38
25
|
constructor({ transactions, amount }) {
|
|
39
26
|
this.transactions = transactions;
|
|
@@ -47,4 +34,4 @@ class MoralOperation {
|
|
|
47
34
|
});
|
|
48
35
|
}
|
|
49
36
|
|
|
50
|
-
export {
|
|
37
|
+
export { MoralOperation, PageSize };
|