@marqeta/ux-toolkit-sdk-javascript 2.32.0 → 2.33.0
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/dist/{chunk-QU4EZRML.js → chunk-4WSQWFU7.js} +1084 -581
- package/dist/{chunk-KGVCSXN7.mjs → chunk-DO5SIEHV.mjs} +780 -308
- package/dist/index.d.mts +65 -28
- package/dist/index.d.ts +65 -28
- package/dist/index.js +512 -511
- package/dist/index.mjs +2 -2
- package/dist/react-native.d.mts +1 -1
- package/dist/react-native.d.ts +1 -1
- package/dist/react-native.js +570 -569
- package/dist/react-native.mjs +10 -10
- package/package.json +1 -1
|
@@ -1285,7 +1285,7 @@ function _getCardByToken() {
|
|
|
1285
1285
|
];
|
|
1286
1286
|
case 3:
|
|
1287
1287
|
error2 = _state.sent();
|
|
1288
|
-
|
|
1288
|
+
logInfo("[ERROR] Failed to get card by token", {
|
|
1289
1289
|
error: error2,
|
|
1290
1290
|
cardToken: cardToken,
|
|
1291
1291
|
shortCode: shortCode,
|
|
@@ -1337,7 +1337,7 @@ var _LocalStorageCacheService = /*#__PURE__*/ function() {
|
|
|
1337
1337
|
value
|
|
1338
1338
|
];
|
|
1339
1339
|
} catch (error2) {
|
|
1340
|
-
|
|
1340
|
+
logInfo("[ERROR] Failed to get item from localStorage", {
|
|
1341
1341
|
error: error2,
|
|
1342
1342
|
key: key,
|
|
1343
1343
|
adapter: "LocalStorageCacheService"
|
|
@@ -1367,7 +1367,7 @@ var _LocalStorageCacheService = /*#__PURE__*/ function() {
|
|
|
1367
1367
|
adapter: "LocalStorageCacheService"
|
|
1368
1368
|
});
|
|
1369
1369
|
} catch (error2) {
|
|
1370
|
-
|
|
1370
|
+
logInfo("[ERROR] Failed to set item in localStorage", {
|
|
1371
1371
|
error: error2,
|
|
1372
1372
|
key: key,
|
|
1373
1373
|
adapter: "LocalStorageCacheService"
|
|
@@ -1427,7 +1427,7 @@ var _WindowCacheService = /*#__PURE__*/ function() {
|
|
|
1427
1427
|
});
|
|
1428
1428
|
return value;
|
|
1429
1429
|
} catch (error2) {
|
|
1430
|
-
|
|
1430
|
+
logInfo("[ERROR] Failed to get item from window cache", {
|
|
1431
1431
|
error: error2,
|
|
1432
1432
|
key: key,
|
|
1433
1433
|
adapter: "WindowCacheService"
|
|
@@ -1450,7 +1450,7 @@ var _WindowCacheService = /*#__PURE__*/ function() {
|
|
|
1450
1450
|
adapter: "WindowCacheService"
|
|
1451
1451
|
});
|
|
1452
1452
|
} catch (error2) {
|
|
1453
|
-
|
|
1453
|
+
logInfo("[ERROR] Failed to set item in window cache", {
|
|
1454
1454
|
error: error2,
|
|
1455
1455
|
key: key,
|
|
1456
1456
|
adapter: "WindowCacheService"
|
|
@@ -1534,7 +1534,7 @@ function _cleanupOnUnload() {
|
|
|
1534
1534
|
interactor: "cleanupOnUnload"
|
|
1535
1535
|
});
|
|
1536
1536
|
} catch (error2) {
|
|
1537
|
-
|
|
1537
|
+
logInfo("[ERROR] Failed to cleanup on unload", {
|
|
1538
1538
|
error: error2,
|
|
1539
1539
|
interactor: "cleanupOnUnload"
|
|
1540
1540
|
});
|
|
@@ -1674,12 +1674,16 @@ __name(_ts_decorate9, "_ts_decorate");
|
|
|
1674
1674
|
var _MockCacheService = /*#__PURE__*/ function() {
|
|
1675
1675
|
function _MockCacheService() {
|
|
1676
1676
|
_class_call_check(this, _MockCacheService);
|
|
1677
|
+
__publicField(this, "shouldThrowError", false);
|
|
1677
1678
|
__publicField(this, "store", {});
|
|
1678
1679
|
}
|
|
1679
1680
|
_create_class(_MockCacheService, [
|
|
1680
1681
|
{
|
|
1681
1682
|
key: "get",
|
|
1682
1683
|
value: function get(key) {
|
|
1684
|
+
if (this.shouldThrowError) {
|
|
1685
|
+
throw new Error("Mock error for testing");
|
|
1686
|
+
}
|
|
1683
1687
|
var value = this.store[key];
|
|
1684
1688
|
if (value === "faultyValue") {
|
|
1685
1689
|
throw new Error("Testing faulty key");
|
|
@@ -1690,6 +1694,9 @@ var _MockCacheService = /*#__PURE__*/ function() {
|
|
|
1690
1694
|
{
|
|
1691
1695
|
key: "set",
|
|
1692
1696
|
value: function set(key, value) {
|
|
1697
|
+
if (this.shouldThrowError) {
|
|
1698
|
+
throw new Error("Mock error for testing");
|
|
1699
|
+
}
|
|
1693
1700
|
this.store[key] = value;
|
|
1694
1701
|
}
|
|
1695
1702
|
}
|
|
@@ -1767,12 +1774,16 @@ __name(_ts_decorate11, "_ts_decorate");
|
|
|
1767
1774
|
var _MockRegistryService = /*#__PURE__*/ function() {
|
|
1768
1775
|
function _MockRegistryService() {
|
|
1769
1776
|
_class_call_check(this, _MockRegistryService);
|
|
1777
|
+
__publicField(this, "shouldThrowError", false);
|
|
1770
1778
|
__publicField(this, "store", {});
|
|
1771
1779
|
}
|
|
1772
1780
|
_create_class(_MockRegistryService, [
|
|
1773
1781
|
{
|
|
1774
1782
|
key: "getAll",
|
|
1775
1783
|
value: function getAll() {
|
|
1784
|
+
if (this.shouldThrowError) {
|
|
1785
|
+
throw new Error("Mock error for testing");
|
|
1786
|
+
}
|
|
1776
1787
|
return this.store;
|
|
1777
1788
|
}
|
|
1778
1789
|
},
|
|
@@ -2061,7 +2072,7 @@ function _getCardsByUserToken() {
|
|
|
2061
2072
|
];
|
|
2062
2073
|
case 3:
|
|
2063
2074
|
error2 = _state.sent();
|
|
2064
|
-
|
|
2075
|
+
logInfo("[ERROR] Unable to get cards", {
|
|
2065
2076
|
error: error2,
|
|
2066
2077
|
interactor: "getCardsByUserToken"
|
|
2067
2078
|
});
|
|
@@ -2118,7 +2129,7 @@ function _getShowpanByCardToken() {
|
|
|
2118
2129
|
];
|
|
2119
2130
|
case 3:
|
|
2120
2131
|
error2 = _state.sent();
|
|
2121
|
-
|
|
2132
|
+
logInfo("[ERROR] Failed to get showpan by card token", {
|
|
2122
2133
|
error: error2,
|
|
2123
2134
|
cardToken: cardToken,
|
|
2124
2135
|
shortCode: shortCode,
|
|
@@ -2184,7 +2195,7 @@ function _activateCardByTokenOrPan() {
|
|
|
2184
2195
|
];
|
|
2185
2196
|
case 3:
|
|
2186
2197
|
error2 = _state.sent();
|
|
2187
|
-
|
|
2198
|
+
logInfo("[ERROR] Unable to activate card", {
|
|
2188
2199
|
error: error2,
|
|
2189
2200
|
cardToken: cardToken,
|
|
2190
2201
|
expiry: expiry,
|
|
@@ -2249,7 +2260,7 @@ function _lockCardByToken() {
|
|
|
2249
2260
|
];
|
|
2250
2261
|
case 3:
|
|
2251
2262
|
error2 = _state.sent();
|
|
2252
|
-
|
|
2263
|
+
logInfo("[ERROR] Unable to lock card", {
|
|
2253
2264
|
error: error2,
|
|
2254
2265
|
cardToken: cardToken,
|
|
2255
2266
|
interactor: "lockCardByToken"
|
|
@@ -2314,7 +2325,7 @@ function _replaceCardByToken() {
|
|
|
2314
2325
|
];
|
|
2315
2326
|
case 3:
|
|
2316
2327
|
error2 = _state.sent();
|
|
2317
|
-
|
|
2328
|
+
logInfo("[ERROR] Unable to replace card", {
|
|
2318
2329
|
error: error2,
|
|
2319
2330
|
cardToken: cardToken,
|
|
2320
2331
|
cardProductToken: cardProductToken,
|
|
@@ -2379,7 +2390,7 @@ function _unlockCardByToken() {
|
|
|
2379
2390
|
];
|
|
2380
2391
|
case 3:
|
|
2381
2392
|
error2 = _state.sent();
|
|
2382
|
-
|
|
2393
|
+
logInfo("[ERROR] Unable to unlock card", {
|
|
2383
2394
|
error: error2,
|
|
2384
2395
|
cardToken: cardToken,
|
|
2385
2396
|
interactor: "unlockCardByToken"
|
|
@@ -2401,7 +2412,7 @@ function updatePinByCardToken(pin, cardToken) {
|
|
|
2401
2412
|
function _updatePinByCardToken() {
|
|
2402
2413
|
_updatePinByCardToken = // src/cards/base/interactors/updatePinByCardToken.ts
|
|
2403
2414
|
_async_to_generator(function(pin, cardToken) {
|
|
2404
|
-
var container2, cardRepository,
|
|
2415
|
+
var container2, cardRepository, result, error2;
|
|
2405
2416
|
return _ts_generator(this, function(_state) {
|
|
2406
2417
|
switch(_state.label){
|
|
2407
2418
|
case 0:
|
|
@@ -2415,21 +2426,15 @@ function _updatePinByCardToken() {
|
|
|
2415
2426
|
case 1:
|
|
2416
2427
|
_state.trys.push([
|
|
2417
2428
|
1,
|
|
2418
|
-
|
|
2429
|
+
3,
|
|
2419
2430
|
,
|
|
2420
|
-
|
|
2431
|
+
4
|
|
2421
2432
|
]);
|
|
2422
|
-
return [
|
|
2423
|
-
4,
|
|
2424
|
-
cardRepository.getCardByToken(cardToken)
|
|
2425
|
-
];
|
|
2426
|
-
case 2:
|
|
2427
|
-
card = _state.sent();
|
|
2428
2433
|
return [
|
|
2429
2434
|
4,
|
|
2430
2435
|
cardRepository.updatePinByCardToken(pin, cardToken)
|
|
2431
2436
|
];
|
|
2432
|
-
case
|
|
2437
|
+
case 2:
|
|
2433
2438
|
result = _state.sent();
|
|
2434
2439
|
logInfo("PIN updated successfully", {
|
|
2435
2440
|
cardToken: cardToken,
|
|
@@ -2439,15 +2444,15 @@ function _updatePinByCardToken() {
|
|
|
2439
2444
|
2,
|
|
2440
2445
|
result
|
|
2441
2446
|
];
|
|
2442
|
-
case
|
|
2447
|
+
case 3:
|
|
2443
2448
|
error2 = _state.sent();
|
|
2444
|
-
|
|
2449
|
+
logInfo("[ERROR] Unable to update PIN", {
|
|
2445
2450
|
error: error2,
|
|
2446
2451
|
cardToken: cardToken,
|
|
2447
2452
|
interactor: "updatePinByCardToken"
|
|
2448
2453
|
});
|
|
2449
2454
|
throw new MqSDKError("Unable to update PIN", error2);
|
|
2450
|
-
case
|
|
2455
|
+
case 4:
|
|
2451
2456
|
return [
|
|
2452
2457
|
2
|
|
2453
2458
|
];
|
|
@@ -2498,7 +2503,7 @@ function _getPinByCardToken() {
|
|
|
2498
2503
|
];
|
|
2499
2504
|
case 3:
|
|
2500
2505
|
error2 = _state.sent();
|
|
2501
|
-
|
|
2506
|
+
logInfo("[ERROR] Unable to get PIN", {
|
|
2502
2507
|
error: error2,
|
|
2503
2508
|
cardToken: cardToken,
|
|
2504
2509
|
cardholderVerificationMethod: cardholderVerificationMethod,
|
|
@@ -2556,7 +2561,7 @@ function _orderCard() {
|
|
|
2556
2561
|
];
|
|
2557
2562
|
case 3:
|
|
2558
2563
|
error2 = _state.sent();
|
|
2559
|
-
|
|
2564
|
+
logInfo("[ERROR] Failed to order card", {
|
|
2560
2565
|
error: error2,
|
|
2561
2566
|
idType: orderRequest.idType,
|
|
2562
2567
|
interactor: "orderCard"
|
|
@@ -2615,7 +2620,7 @@ function _replaceCardV2() {
|
|
|
2615
2620
|
];
|
|
2616
2621
|
case 3:
|
|
2617
2622
|
error2 = _state.sent();
|
|
2618
|
-
|
|
2623
|
+
logInfo("[ERROR] Failed to replace card", {
|
|
2619
2624
|
error: error2,
|
|
2620
2625
|
cardToken: replaceRequest.cardToken,
|
|
2621
2626
|
reason: replaceRequest.request.replacement_reason,
|
|
@@ -3315,14 +3320,19 @@ var TEST_WEAK_PINS = [
|
|
|
3315
3320
|
var _MockCardRepository = /*#__PURE__*/ function() {
|
|
3316
3321
|
function _MockCardRepository() {
|
|
3317
3322
|
_class_call_check(this, _MockCardRepository);
|
|
3323
|
+
__publicField(this, "shouldThrowError", false);
|
|
3318
3324
|
}
|
|
3319
3325
|
_create_class(_MockCardRepository, [
|
|
3320
3326
|
{
|
|
3321
3327
|
key: "lockCardByToken",
|
|
3322
3328
|
value: function lockCardByToken(cardToken) {
|
|
3329
|
+
var _this = this;
|
|
3323
3330
|
return _async_to_generator(function() {
|
|
3324
3331
|
var testCardTokenState;
|
|
3325
3332
|
return _ts_generator(this, function(_state) {
|
|
3333
|
+
if (_this.shouldThrowError) {
|
|
3334
|
+
throw new Error("Mock error for testing");
|
|
3335
|
+
}
|
|
3326
3336
|
testCardTokenState = CardStates.ACTIVE;
|
|
3327
3337
|
if (cardToken === TEST_CARD_TOKEN_IS_ACTIVE) {
|
|
3328
3338
|
testCardTokenState = CardStates.SUSPENDED;
|
|
@@ -3347,9 +3357,13 @@ var _MockCardRepository = /*#__PURE__*/ function() {
|
|
|
3347
3357
|
{
|
|
3348
3358
|
key: "replaceCardByToken",
|
|
3349
3359
|
value: function replaceCardByToken(cardToken, cardProductToken, reasonCode) {
|
|
3360
|
+
var _this = this;
|
|
3350
3361
|
return _async_to_generator(function() {
|
|
3351
3362
|
var testCardTokenState, replaceCardLostOrStolenReasonCodes, replaceCardDamagedReasonCodes;
|
|
3352
3363
|
return _ts_generator(this, function(_state) {
|
|
3364
|
+
if (_this.shouldThrowError) {
|
|
3365
|
+
throw new Error("Mock error for testing");
|
|
3366
|
+
}
|
|
3353
3367
|
testCardTokenState = CardStates.ACTIVE;
|
|
3354
3368
|
replaceCardLostOrStolenReasonCodes = [
|
|
3355
3369
|
"10",
|
|
@@ -3383,9 +3397,13 @@ var _MockCardRepository = /*#__PURE__*/ function() {
|
|
|
3383
3397
|
{
|
|
3384
3398
|
key: "unlockCardByToken",
|
|
3385
3399
|
value: function unlockCardByToken(cardToken) {
|
|
3400
|
+
var _this = this;
|
|
3386
3401
|
return _async_to_generator(function() {
|
|
3387
3402
|
var testCardTokenState;
|
|
3388
3403
|
return _ts_generator(this, function(_state) {
|
|
3404
|
+
if (_this.shouldThrowError) {
|
|
3405
|
+
throw new Error("Mock error for testing");
|
|
3406
|
+
}
|
|
3389
3407
|
testCardTokenState = CardStates.SUSPENDED;
|
|
3390
3408
|
if (cardToken === TEST_CARD_TOKEN_IS_SUSPENDED) {
|
|
3391
3409
|
testCardTokenState = CardStates.ACTIVE;
|
|
@@ -3410,9 +3428,13 @@ var _MockCardRepository = /*#__PURE__*/ function() {
|
|
|
3410
3428
|
{
|
|
3411
3429
|
key: "getShowpanByCardToken",
|
|
3412
3430
|
value: function getShowpanByCardToken(cardToken, shortCode) {
|
|
3431
|
+
var _this = this;
|
|
3413
3432
|
return _async_to_generator(function() {
|
|
3414
3433
|
var testCardTokenState;
|
|
3415
3434
|
return _ts_generator(this, function(_state) {
|
|
3435
|
+
if (_this.shouldThrowError) {
|
|
3436
|
+
throw new Error("Mock error for testing");
|
|
3437
|
+
}
|
|
3416
3438
|
testCardTokenState = TEST_CARD.state;
|
|
3417
3439
|
if (cardToken === TEST_CARD_TOKEN_IS_ACTIVE) {
|
|
3418
3440
|
testCardTokenState = "ACTIVE";
|
|
@@ -3434,9 +3456,13 @@ var _MockCardRepository = /*#__PURE__*/ function() {
|
|
|
3434
3456
|
{
|
|
3435
3457
|
key: "getCardByToken",
|
|
3436
3458
|
value: function getCardByToken(cardToken, shortCode) {
|
|
3459
|
+
var _this = this;
|
|
3437
3460
|
return _async_to_generator(function() {
|
|
3438
3461
|
var testCardTokenState, testInstrumentType;
|
|
3439
3462
|
return _ts_generator(this, function(_state) {
|
|
3463
|
+
if (_this.shouldThrowError) {
|
|
3464
|
+
throw new Error("Mock error for testing");
|
|
3465
|
+
}
|
|
3440
3466
|
testCardTokenState = TEST_CARD.state;
|
|
3441
3467
|
testInstrumentType = "PHYSICAL_MSR";
|
|
3442
3468
|
if (cardToken === TEST_CARD_TOKEN_IS_ACTIVE) {
|
|
@@ -3467,8 +3493,12 @@ var _MockCardRepository = /*#__PURE__*/ function() {
|
|
|
3467
3493
|
{
|
|
3468
3494
|
key: "getCardsByUserToken",
|
|
3469
3495
|
value: function getCardsByUserToken() {
|
|
3496
|
+
var _this = this;
|
|
3470
3497
|
return _async_to_generator(function() {
|
|
3471
3498
|
return _ts_generator(this, function(_state) {
|
|
3499
|
+
if (_this.shouldThrowError) {
|
|
3500
|
+
throw new Error("Mock error for testing");
|
|
3501
|
+
}
|
|
3472
3502
|
return [
|
|
3473
3503
|
2,
|
|
3474
3504
|
VALID_CUI_CARD_LIST_RESPONSE.data.map(function(c) {
|
|
@@ -3483,8 +3513,12 @@ var _MockCardRepository = /*#__PURE__*/ function() {
|
|
|
3483
3513
|
{
|
|
3484
3514
|
key: "activateCardByTokenOrPan",
|
|
3485
3515
|
value: function activateCardByTokenOrPan(cardToken, cvv, expiry, pan) {
|
|
3516
|
+
var _this = this;
|
|
3486
3517
|
return _async_to_generator(function() {
|
|
3487
3518
|
return _ts_generator(this, function(_state) {
|
|
3519
|
+
if (_this.shouldThrowError) {
|
|
3520
|
+
throw new Error("Mock error for testing");
|
|
3521
|
+
}
|
|
3488
3522
|
return [
|
|
3489
3523
|
2,
|
|
3490
3524
|
new CardEntity({
|
|
@@ -3505,9 +3539,13 @@ var _MockCardRepository = /*#__PURE__*/ function() {
|
|
|
3505
3539
|
{
|
|
3506
3540
|
key: "updatePinByCardToken",
|
|
3507
3541
|
value: function updatePinByCardToken(pin, cardToken) {
|
|
3542
|
+
var _this = this;
|
|
3508
3543
|
return _async_to_generator(function() {
|
|
3509
3544
|
var testCardTokenState, card;
|
|
3510
3545
|
return _ts_generator(this, function(_state) {
|
|
3546
|
+
if (_this.shouldThrowError) {
|
|
3547
|
+
throw new Error("Mock error for testing");
|
|
3548
|
+
}
|
|
3511
3549
|
testCardTokenState = TEST_CARD.state;
|
|
3512
3550
|
if (cardToken === TEST_CARD_TOKEN_IS_ACTIVE) {
|
|
3513
3551
|
testCardTokenState = "ACTIVE";
|
|
@@ -3536,8 +3574,12 @@ var _MockCardRepository = /*#__PURE__*/ function() {
|
|
|
3536
3574
|
{
|
|
3537
3575
|
key: "getPinByCardToken",
|
|
3538
3576
|
value: function getPinByCardToken(cardToken, cardholderVerificationMethod) {
|
|
3577
|
+
var _this = this;
|
|
3539
3578
|
return _async_to_generator(function() {
|
|
3540
3579
|
return _ts_generator(this, function(_state) {
|
|
3580
|
+
if (_this.shouldThrowError) {
|
|
3581
|
+
throw new Error("Mock error for testing");
|
|
3582
|
+
}
|
|
3541
3583
|
return [
|
|
3542
3584
|
2,
|
|
3543
3585
|
{
|
|
@@ -3551,8 +3593,12 @@ var _MockCardRepository = /*#__PURE__*/ function() {
|
|
|
3551
3593
|
{
|
|
3552
3594
|
key: "orderCard",
|
|
3553
3595
|
value: function orderCard(orderRequest) {
|
|
3596
|
+
var _this = this;
|
|
3554
3597
|
return _async_to_generator(function() {
|
|
3555
3598
|
return _ts_generator(this, function(_state) {
|
|
3599
|
+
if (_this.shouldThrowError) {
|
|
3600
|
+
throw new Error("Mock error for testing");
|
|
3601
|
+
}
|
|
3556
3602
|
return [
|
|
3557
3603
|
2,
|
|
3558
3604
|
{
|
|
@@ -3569,8 +3615,12 @@ var _MockCardRepository = /*#__PURE__*/ function() {
|
|
|
3569
3615
|
{
|
|
3570
3616
|
key: "replaceCardV2",
|
|
3571
3617
|
value: function replaceCardV2(replaceRequest) {
|
|
3618
|
+
var _this = this;
|
|
3572
3619
|
return _async_to_generator(function() {
|
|
3573
3620
|
return _ts_generator(this, function(_state) {
|
|
3621
|
+
if (_this.shouldThrowError) {
|
|
3622
|
+
throw new Error("Mock error for testing");
|
|
3623
|
+
}
|
|
3574
3624
|
return [
|
|
3575
3625
|
2,
|
|
3576
3626
|
{
|
|
@@ -3879,7 +3929,7 @@ function getActiveEnvName() {
|
|
|
3879
3929
|
var cacheService = container2.get(ITF_CACHE_SERVICE);
|
|
3880
3930
|
var activeEnvName = cacheService.get("activeEnvName");
|
|
3881
3931
|
if (!activeEnvName) {
|
|
3882
|
-
|
|
3932
|
+
logInfo("[ERROR] Missing Active Env Name", {
|
|
3883
3933
|
interactor: "getActiveEnvName"
|
|
3884
3934
|
});
|
|
3885
3935
|
throw new MqSDKError("Missing Active Env Name");
|
|
@@ -3890,7 +3940,7 @@ function getActiveEnvName() {
|
|
|
3890
3940
|
});
|
|
3891
3941
|
return activeEnvName;
|
|
3892
3942
|
} catch (error2) {
|
|
3893
|
-
|
|
3943
|
+
logInfo("[ERROR] Failed to get active environment name", {
|
|
3894
3944
|
error: error2,
|
|
3895
3945
|
interactor: "getActiveEnvName"
|
|
3896
3946
|
});
|
|
@@ -3965,7 +4015,7 @@ function _setActiveEnvName() {
|
|
|
3965
4015
|
interactor: "setActiveEnvName"
|
|
3966
4016
|
});
|
|
3967
4017
|
if (!envName || envName === "") {
|
|
3968
|
-
|
|
4018
|
+
logInfo("[ERROR] Missing environment name", {
|
|
3969
4019
|
envName: envName,
|
|
3970
4020
|
interactor: "setActiveEnvName"
|
|
3971
4021
|
});
|
|
@@ -3997,7 +4047,7 @@ function _setActiveEnvName() {
|
|
|
3997
4047
|
];
|
|
3998
4048
|
case 3:
|
|
3999
4049
|
error2 = _state.sent();
|
|
4000
|
-
|
|
4050
|
+
logInfo("[ERROR] Failed to set active environment name", {
|
|
4001
4051
|
error: error2,
|
|
4002
4052
|
envName: envName,
|
|
4003
4053
|
interactor: "setActiveEnvName"
|
|
@@ -4148,7 +4198,7 @@ var _BrowserMessageService = /*#__PURE__*/ function() {
|
|
|
4148
4198
|
expiresAt: expiresAt
|
|
4149
4199
|
});
|
|
4150
4200
|
} else {
|
|
4151
|
-
|
|
4201
|
+
logInfo("[ERROR] Request for new token failed", {
|
|
4152
4202
|
error: error2,
|
|
4153
4203
|
adapter: "BrowserMessageService"
|
|
4154
4204
|
});
|
|
@@ -4158,7 +4208,7 @@ var _BrowserMessageService = /*#__PURE__*/ function() {
|
|
|
4158
4208
|
};
|
|
4159
4209
|
timeout = setTimeout(function() {
|
|
4160
4210
|
channel.port1.close();
|
|
4161
|
-
|
|
4211
|
+
logInfo("[ERROR] Request for new token timed out", {
|
|
4162
4212
|
adapter: "BrowserMessageService"
|
|
4163
4213
|
});
|
|
4164
4214
|
reject(new MqSDKError("Request for new token timed out"));
|
|
@@ -4240,7 +4290,7 @@ var _BaseDpopAuthCredentialService = /*#__PURE__*/ function() {
|
|
|
4240
4290
|
];
|
|
4241
4291
|
case 3:
|
|
4242
4292
|
error2 = _state.sent();
|
|
4243
|
-
|
|
4293
|
+
logInfo("[ERROR] Failed to set cached auth token", {
|
|
4244
4294
|
error: error2,
|
|
4245
4295
|
expiresAt: expiresAt,
|
|
4246
4296
|
adapter: "BaseDpopAuthCredentialService"
|
|
@@ -4276,7 +4326,7 @@ var _BaseDpopAuthCredentialService = /*#__PURE__*/ function() {
|
|
|
4276
4326
|
});
|
|
4277
4327
|
return authToken;
|
|
4278
4328
|
} catch (error2) {
|
|
4279
|
-
|
|
4329
|
+
logInfo("[ERROR] Failed to get cached auth token", {
|
|
4280
4330
|
error: error2,
|
|
4281
4331
|
adapter: "BaseDpopAuthCredentialService"
|
|
4282
4332
|
});
|
|
@@ -4305,7 +4355,7 @@ var _BaseDpopAuthCredentialService = /*#__PURE__*/ function() {
|
|
|
4305
4355
|
});
|
|
4306
4356
|
return expiresAt;
|
|
4307
4357
|
} catch (error2) {
|
|
4308
|
-
|
|
4358
|
+
logInfo("[ERROR] Failed to get cached auth token expiration", {
|
|
4309
4359
|
error: error2,
|
|
4310
4360
|
adapter: "BaseDpopAuthCredentialService"
|
|
4311
4361
|
});
|
|
@@ -4327,7 +4377,7 @@ var _BaseDpopAuthCredentialService = /*#__PURE__*/ function() {
|
|
|
4327
4377
|
});
|
|
4328
4378
|
return keyPair;
|
|
4329
4379
|
} catch (error2) {
|
|
4330
|
-
|
|
4380
|
+
logInfo("[ERROR] Failed to get auth key pair", {
|
|
4331
4381
|
error: error2,
|
|
4332
4382
|
adapter: "BaseDpopAuthCredentialService"
|
|
4333
4383
|
});
|
|
@@ -4377,7 +4427,7 @@ var _BaseDpopAuthCredentialService = /*#__PURE__*/ function() {
|
|
|
4377
4427
|
});
|
|
4378
4428
|
return endpoint;
|
|
4379
4429
|
} catch (error2) {
|
|
4380
|
-
|
|
4430
|
+
logInfo("[ERROR] Failed to get cached auth API endpoint", {
|
|
4381
4431
|
error: error2,
|
|
4382
4432
|
adapter: "BaseDpopAuthCredentialService"
|
|
4383
4433
|
});
|
|
@@ -4399,7 +4449,7 @@ var _BaseDpopAuthCredentialService = /*#__PURE__*/ function() {
|
|
|
4399
4449
|
adapter: "BaseDpopAuthCredentialService"
|
|
4400
4450
|
});
|
|
4401
4451
|
} catch (error2) {
|
|
4402
|
-
|
|
4452
|
+
logInfo("[ERROR] Failed to set cached auth API endpoint", {
|
|
4403
4453
|
error: error2,
|
|
4404
4454
|
apiEndpoint: apiEndpoint,
|
|
4405
4455
|
adapter: "BaseDpopAuthCredentialService"
|
|
@@ -4422,7 +4472,7 @@ var _BaseDpopAuthCredentialService = /*#__PURE__*/ function() {
|
|
|
4422
4472
|
});
|
|
4423
4473
|
return resolver;
|
|
4424
4474
|
} catch (error2) {
|
|
4425
|
-
|
|
4475
|
+
logInfo("[ERROR] Failed to get cached auth API headers resolver", {
|
|
4426
4476
|
error: error2,
|
|
4427
4477
|
adapter: "BaseDpopAuthCredentialService"
|
|
4428
4478
|
});
|
|
@@ -4442,7 +4492,7 @@ var _BaseDpopAuthCredentialService = /*#__PURE__*/ function() {
|
|
|
4442
4492
|
adapter: "BaseDpopAuthCredentialService"
|
|
4443
4493
|
});
|
|
4444
4494
|
} catch (error2) {
|
|
4445
|
-
|
|
4495
|
+
logInfo("[ERROR] Failed to set cached auth API headers resolver", {
|
|
4446
4496
|
error: error2,
|
|
4447
4497
|
adapter: "BaseDpopAuthCredentialService"
|
|
4448
4498
|
});
|
|
@@ -4541,7 +4591,7 @@ var _DpopAuthCredentialService = /*#__PURE__*/ function(BaseDpopAuthCredentialSe
|
|
|
4541
4591
|
];
|
|
4542
4592
|
case 6:
|
|
4543
4593
|
error2 = _state.sent();
|
|
4544
|
-
|
|
4594
|
+
logInfo("[ERROR] Failed to generate DPoP auth key pair", {
|
|
4545
4595
|
error: error2,
|
|
4546
4596
|
adapter: "DpopAuthCredentialService"
|
|
4547
4597
|
});
|
|
@@ -4598,7 +4648,7 @@ var _DpopAuthCredentialService = /*#__PURE__*/ function(BaseDpopAuthCredentialSe
|
|
|
4598
4648
|
];
|
|
4599
4649
|
case 3:
|
|
4600
4650
|
error2 = _state.sent();
|
|
4601
|
-
|
|
4651
|
+
logInfo("[ERROR] Failed to set auth key pair", {
|
|
4602
4652
|
error: error2,
|
|
4603
4653
|
adapter: "DpopAuthCredentialService"
|
|
4604
4654
|
});
|
|
@@ -4626,7 +4676,7 @@ var _DpopAuthCredentialService = /*#__PURE__*/ function(BaseDpopAuthCredentialSe
|
|
|
4626
4676
|
});
|
|
4627
4677
|
return privateKey;
|
|
4628
4678
|
} catch (error2) {
|
|
4629
|
-
|
|
4679
|
+
logInfo("[ERROR] Failed to get auth private key", {
|
|
4630
4680
|
error: error2,
|
|
4631
4681
|
adapter: "DpopAuthCredentialService"
|
|
4632
4682
|
});
|
|
@@ -4677,7 +4727,7 @@ var _DpopAuthCredentialService = /*#__PURE__*/ function(BaseDpopAuthCredentialSe
|
|
|
4677
4727
|
case 3:
|
|
4678
4728
|
publicJwk = keyPair.publicJwk;
|
|
4679
4729
|
if (!publicJwk) {
|
|
4680
|
-
|
|
4730
|
+
logInfo("[ERROR] Auth keys not found after generation", {
|
|
4681
4731
|
adapter: "DpopAuthCredentialService"
|
|
4682
4732
|
});
|
|
4683
4733
|
throw new Error("Auth keys not found");
|
|
@@ -4718,7 +4768,7 @@ var _DpopAuthCredentialService = /*#__PURE__*/ function(BaseDpopAuthCredentialSe
|
|
|
4718
4768
|
];
|
|
4719
4769
|
case 6:
|
|
4720
4770
|
error2 = _state.sent();
|
|
4721
|
-
|
|
4771
|
+
logInfo("[ERROR] Failed to create DPoP proof token", {
|
|
4722
4772
|
error: error2,
|
|
4723
4773
|
method: method,
|
|
4724
4774
|
resourceUrl: resourceUrl,
|
|
@@ -5160,7 +5210,7 @@ var _FetchHttpClient = /*#__PURE__*/ function(BaseHttpClient) {
|
|
|
5160
5210
|
];
|
|
5161
5211
|
case 4:
|
|
5162
5212
|
error2 = _state.sent();
|
|
5163
|
-
|
|
5213
|
+
logInfo("[ERROR] HTTP request failed", {
|
|
5164
5214
|
error: error2,
|
|
5165
5215
|
method: method,
|
|
5166
5216
|
path: path,
|
|
@@ -5357,7 +5407,7 @@ function _setCachedAuthToken() {
|
|
|
5357
5407
|
];
|
|
5358
5408
|
case 3:
|
|
5359
5409
|
error2 = _state.sent();
|
|
5360
|
-
|
|
5410
|
+
logInfo("[ERROR] Failed to set cached auth token", {
|
|
5361
5411
|
error: error2,
|
|
5362
5412
|
expiresAt: expiresAt,
|
|
5363
5413
|
interactor: "setCachedAuthToken"
|
|
@@ -5509,7 +5559,7 @@ function _refreshToken() {
|
|
|
5509
5559
|
];
|
|
5510
5560
|
case 8:
|
|
5511
5561
|
error2 = _state.sent();
|
|
5512
|
-
|
|
5562
|
+
logInfo("[ERROR] Failed to refresh token", {
|
|
5513
5563
|
error: error2,
|
|
5514
5564
|
interactor: "checkAndRefreshAuthToken"
|
|
5515
5565
|
});
|
|
@@ -5653,7 +5703,7 @@ function _createProofToken() {
|
|
|
5653
5703
|
];
|
|
5654
5704
|
case 3:
|
|
5655
5705
|
error2 = _state.sent();
|
|
5656
|
-
|
|
5706
|
+
logInfo("[ERROR] Failed to create proof token", {
|
|
5657
5707
|
error: error2,
|
|
5658
5708
|
method: method,
|
|
5659
5709
|
resourceUrl: resourceUrl,
|
|
@@ -5708,7 +5758,7 @@ function _generateAuthKeyPair() {
|
|
|
5708
5758
|
];
|
|
5709
5759
|
case 3:
|
|
5710
5760
|
error2 = _state.sent();
|
|
5711
|
-
|
|
5761
|
+
logInfo("[ERROR] Failed to generate auth key pair", {
|
|
5712
5762
|
error: error2,
|
|
5713
5763
|
interactor: "generateAuthKeyPair"
|
|
5714
5764
|
});
|
|
@@ -5791,7 +5841,7 @@ function _getCardholderContext() {
|
|
|
5791
5841
|
];
|
|
5792
5842
|
case 3:
|
|
5793
5843
|
error2 = _state.sent();
|
|
5794
|
-
|
|
5844
|
+
logInfo("[ERROR] Failed to get cardholder context", {
|
|
5795
5845
|
error: error2,
|
|
5796
5846
|
interactor: "getCardholderContext"
|
|
5797
5847
|
});
|
|
@@ -5822,7 +5872,7 @@ function _getSsoAccessTokenHandler() {
|
|
|
5822
5872
|
ssoAccessTokenService = container2.get(ITF_SSO_ACCESS_TOKEN_SERVICE);
|
|
5823
5873
|
handler = ssoAccessTokenService.getHandler();
|
|
5824
5874
|
if (!handler) {
|
|
5825
|
-
|
|
5875
|
+
logInfo("[ERROR] No SSO access token handler set", {
|
|
5826
5876
|
interactor: "getSsoAccessTokenHandler"
|
|
5827
5877
|
});
|
|
5828
5878
|
throw new Error("No SSO access token handler set");
|
|
@@ -5835,7 +5885,7 @@ function _getSsoAccessTokenHandler() {
|
|
|
5835
5885
|
handler
|
|
5836
5886
|
];
|
|
5837
5887
|
} catch (error2) {
|
|
5838
|
-
|
|
5888
|
+
logInfo("[ERROR] Failed to get SSO access token handler", {
|
|
5839
5889
|
error: error2,
|
|
5840
5890
|
interactor: "getSsoAccessTokenHandler"
|
|
5841
5891
|
});
|
|
@@ -5888,7 +5938,7 @@ function _getUserProgram() {
|
|
|
5888
5938
|
];
|
|
5889
5939
|
case 3:
|
|
5890
5940
|
error2 = _state.sent();
|
|
5891
|
-
|
|
5941
|
+
logInfo("[ERROR] Failed to get user program", {
|
|
5892
5942
|
error: error2,
|
|
5893
5943
|
interactor: "getUserProgram"
|
|
5894
5944
|
});
|
|
@@ -5941,7 +5991,7 @@ function _getUserTokenHash() {
|
|
|
5941
5991
|
];
|
|
5942
5992
|
case 3:
|
|
5943
5993
|
error2 = _state.sent();
|
|
5944
|
-
|
|
5994
|
+
logInfo("[ERROR] Failed to get user token hash", {
|
|
5945
5995
|
error: error2,
|
|
5946
5996
|
interactor: "getUserTokenHash"
|
|
5947
5997
|
});
|
|
@@ -5994,7 +6044,7 @@ function _setAuthKeyPair() {
|
|
|
5994
6044
|
];
|
|
5995
6045
|
case 3:
|
|
5996
6046
|
error2 = _state.sent();
|
|
5997
|
-
|
|
6047
|
+
logInfo("[ERROR] Failed to set auth key pair", {
|
|
5998
6048
|
error: error2,
|
|
5999
6049
|
interactor: "setAuthKeyPair"
|
|
6000
6050
|
});
|
|
@@ -6063,7 +6113,7 @@ function _setAuthParams() {
|
|
|
6063
6113
|
]);
|
|
6064
6114
|
apiEndpoint = authParams.apiEndpoint, apiHeadersResolver = authParams.apiHeadersResolver, existingAuth = authParams.existingAuth;
|
|
6065
6115
|
if (!apiEndpoint && !existingAuth) {
|
|
6066
|
-
|
|
6116
|
+
logInfo("[ERROR] Missing API Endpoint or Existing Auth in AuthParams", {
|
|
6067
6117
|
interactor: "setAuthParams"
|
|
6068
6118
|
});
|
|
6069
6119
|
throw new MqSDKError("Missing API Endpoint or Existing Auth in AuthParams");
|
|
@@ -6123,7 +6173,7 @@ function _setAuthParams() {
|
|
|
6123
6173
|
];
|
|
6124
6174
|
case 6:
|
|
6125
6175
|
error2 = _state.sent();
|
|
6126
|
-
|
|
6176
|
+
logInfo("[ERROR] Failed to set auth params", {
|
|
6127
6177
|
error: error2,
|
|
6128
6178
|
interactor: "setAuthParams"
|
|
6129
6179
|
});
|
|
@@ -6177,7 +6227,7 @@ function _setSsoAccessTokenHandler() {
|
|
|
6177
6227
|
];
|
|
6178
6228
|
case 3:
|
|
6179
6229
|
error2 = _state.sent();
|
|
6180
|
-
|
|
6230
|
+
logInfo("[ERROR] Failed to set SSO access token handler", {
|
|
6181
6231
|
error: error2,
|
|
6182
6232
|
interactor: "setSsoAccessTokenHandler"
|
|
6183
6233
|
});
|
|
@@ -6279,6 +6329,7 @@ __name(_ts_decorate28, "_ts_decorate");
|
|
|
6279
6329
|
var _MockAuthCredentialService = /*#__PURE__*/ function() {
|
|
6280
6330
|
function _MockAuthCredentialService() {
|
|
6281
6331
|
_class_call_check(this, _MockAuthCredentialService);
|
|
6332
|
+
__publicField(this, "shouldThrowError", false);
|
|
6282
6333
|
__publicField(this, "authApiEndpoint");
|
|
6283
6334
|
__publicField(this, "authApiHeadersResolver");
|
|
6284
6335
|
__publicField(this, "authKeyPair");
|
|
@@ -6294,6 +6345,9 @@ var _MockAuthCredentialService = /*#__PURE__*/ function() {
|
|
|
6294
6345
|
return _ts_generator(this, function(_state) {
|
|
6295
6346
|
switch(_state.label){
|
|
6296
6347
|
case 0:
|
|
6348
|
+
if (_this.shouldThrowError) {
|
|
6349
|
+
throw new Error("Mock error for testing");
|
|
6350
|
+
}
|
|
6297
6351
|
return [
|
|
6298
6352
|
4,
|
|
6299
6353
|
_this.setAuthKeyPair({
|
|
@@ -6328,6 +6382,9 @@ var _MockAuthCredentialService = /*#__PURE__*/ function() {
|
|
|
6328
6382
|
var _this = this;
|
|
6329
6383
|
return _async_to_generator(function() {
|
|
6330
6384
|
return _ts_generator(this, function(_state) {
|
|
6385
|
+
if (_this.shouldThrowError) {
|
|
6386
|
+
throw new Error("Mock error for testing");
|
|
6387
|
+
}
|
|
6331
6388
|
_this.authKeyPair = authKeys;
|
|
6332
6389
|
return [
|
|
6333
6390
|
2
|
|
@@ -6339,12 +6396,18 @@ var _MockAuthCredentialService = /*#__PURE__*/ function() {
|
|
|
6339
6396
|
{
|
|
6340
6397
|
key: "getAuthKeyPair",
|
|
6341
6398
|
value: function getAuthKeyPair() {
|
|
6399
|
+
if (this.shouldThrowError) {
|
|
6400
|
+
throw new Error("Mock error for testing");
|
|
6401
|
+
}
|
|
6342
6402
|
return this.authKeyPair;
|
|
6343
6403
|
}
|
|
6344
6404
|
},
|
|
6345
6405
|
{
|
|
6346
6406
|
key: "setCachedAuthToken",
|
|
6347
6407
|
value: function setCachedAuthToken(authToken, expiresAt) {
|
|
6408
|
+
if (this.shouldThrowError) {
|
|
6409
|
+
return Promise.reject(new Error("Mock error for testing"));
|
|
6410
|
+
}
|
|
6348
6411
|
this.authToken = authToken;
|
|
6349
6412
|
this.expiresAt = expiresAt;
|
|
6350
6413
|
return Promise.resolve();
|
|
@@ -6353,42 +6416,63 @@ var _MockAuthCredentialService = /*#__PURE__*/ function() {
|
|
|
6353
6416
|
{
|
|
6354
6417
|
key: "getCachedAuthToken",
|
|
6355
6418
|
value: function getCachedAuthToken() {
|
|
6419
|
+
if (this.shouldThrowError) {
|
|
6420
|
+
throw new Error("Mock error for testing");
|
|
6421
|
+
}
|
|
6356
6422
|
return this.authToken;
|
|
6357
6423
|
}
|
|
6358
6424
|
},
|
|
6359
6425
|
{
|
|
6360
6426
|
key: "getCachedAuthTokenExpiration",
|
|
6361
6427
|
value: function getCachedAuthTokenExpiration() {
|
|
6428
|
+
if (this.shouldThrowError) {
|
|
6429
|
+
throw new Error("Mock error for testing");
|
|
6430
|
+
}
|
|
6362
6431
|
return this.expiresAt;
|
|
6363
6432
|
}
|
|
6364
6433
|
},
|
|
6365
6434
|
{
|
|
6366
6435
|
key: "createProofToken",
|
|
6367
6436
|
value: function createProofToken(method, resourceUrl) {
|
|
6437
|
+
if (this.shouldThrowError) {
|
|
6438
|
+
return Promise.reject(new Error("Mock error for testing"));
|
|
6439
|
+
}
|
|
6368
6440
|
return Promise.resolve("".concat(method, "-").concat(resourceUrl));
|
|
6369
6441
|
}
|
|
6370
6442
|
},
|
|
6371
6443
|
{
|
|
6372
6444
|
key: "getCachedAuthApiEndpoint",
|
|
6373
6445
|
value: function getCachedAuthApiEndpoint() {
|
|
6446
|
+
if (this.shouldThrowError) {
|
|
6447
|
+
throw new Error("Mock error for testing");
|
|
6448
|
+
}
|
|
6374
6449
|
return this.authApiEndpoint;
|
|
6375
6450
|
}
|
|
6376
6451
|
},
|
|
6377
6452
|
{
|
|
6378
6453
|
key: "setCachedAuthApiEndpoint",
|
|
6379
6454
|
value: function setCachedAuthApiEndpoint(apiEndpoint) {
|
|
6455
|
+
if (this.shouldThrowError) {
|
|
6456
|
+
throw new Error("Mock error for testing");
|
|
6457
|
+
}
|
|
6380
6458
|
this.authApiEndpoint = apiEndpoint;
|
|
6381
6459
|
}
|
|
6382
6460
|
},
|
|
6383
6461
|
{
|
|
6384
6462
|
key: "getCachedAuthApiHeadersResolver",
|
|
6385
6463
|
value: function getCachedAuthApiHeadersResolver() {
|
|
6464
|
+
if (this.shouldThrowError) {
|
|
6465
|
+
throw new Error("Mock error for testing");
|
|
6466
|
+
}
|
|
6386
6467
|
return this.authApiHeadersResolver;
|
|
6387
6468
|
}
|
|
6388
6469
|
},
|
|
6389
6470
|
{
|
|
6390
6471
|
key: "setCachedAuthApiHeadersResolver",
|
|
6391
6472
|
value: function setCachedAuthApiHeadersResolver(headersResolver) {
|
|
6473
|
+
if (this.shouldThrowError) {
|
|
6474
|
+
throw new Error("Mock error for testing");
|
|
6475
|
+
}
|
|
6392
6476
|
this.authApiHeadersResolver = headersResolver;
|
|
6393
6477
|
}
|
|
6394
6478
|
}
|
|
@@ -6411,6 +6495,7 @@ __name(_ts_decorate29, "_ts_decorate");
|
|
|
6411
6495
|
var _MockAuthService = /*#__PURE__*/ function() {
|
|
6412
6496
|
function _MockAuthService() {
|
|
6413
6497
|
_class_call_check(this, _MockAuthService);
|
|
6498
|
+
__publicField(this, "shouldThrowError", false);
|
|
6414
6499
|
__publicField(this, "cardholderContext");
|
|
6415
6500
|
__publicField(this, "userTokenHash");
|
|
6416
6501
|
__publicField(this, "programShortCode");
|
|
@@ -6419,12 +6504,18 @@ var _MockAuthService = /*#__PURE__*/ function() {
|
|
|
6419
6504
|
{
|
|
6420
6505
|
key: "getCardholderContext",
|
|
6421
6506
|
value: function getCardholderContext() {
|
|
6507
|
+
if (this.shouldThrowError) {
|
|
6508
|
+
return Promise.reject(new Error("Mock error for testing"));
|
|
6509
|
+
}
|
|
6422
6510
|
return Promise.resolve(this.cardholderContext);
|
|
6423
6511
|
}
|
|
6424
6512
|
},
|
|
6425
6513
|
{
|
|
6426
6514
|
key: "getUserProgram",
|
|
6427
6515
|
value: function getUserProgram() {
|
|
6516
|
+
if (this.shouldThrowError) {
|
|
6517
|
+
return Promise.reject(new Error("Mock error for testing"));
|
|
6518
|
+
}
|
|
6428
6519
|
return Promise.resolve(this.programShortCode);
|
|
6429
6520
|
}
|
|
6430
6521
|
},
|
|
@@ -6437,6 +6528,9 @@ var _MockAuthService = /*#__PURE__*/ function() {
|
|
|
6437
6528
|
{
|
|
6438
6529
|
key: "requestNewAuthTokenByEndpoint",
|
|
6439
6530
|
value: function requestNewAuthTokenByEndpoint(_url, _headers) {
|
|
6531
|
+
if (this.shouldThrowError) {
|
|
6532
|
+
return Promise.reject(new Error("Mock error for testing"));
|
|
6533
|
+
}
|
|
6440
6534
|
return Promise.resolve({
|
|
6441
6535
|
accessToken: _uuid.v4.call(void 0),
|
|
6442
6536
|
expiresIn: 3600
|
|
@@ -6446,6 +6540,9 @@ var _MockAuthService = /*#__PURE__*/ function() {
|
|
|
6446
6540
|
{
|
|
6447
6541
|
key: "getUserTokenHash",
|
|
6448
6542
|
value: function getUserTokenHash() {
|
|
6543
|
+
if (this.shouldThrowError) {
|
|
6544
|
+
return Promise.reject(new Error("Mock error for testing"));
|
|
6545
|
+
}
|
|
6449
6546
|
return Promise.resolve(this.userTokenHash);
|
|
6450
6547
|
}
|
|
6451
6548
|
},
|
|
@@ -7122,7 +7219,7 @@ var _SsoAuthenticatedHttpClient = /*#__PURE__*/ function() {
|
|
|
7122
7219
|
});
|
|
7123
7220
|
handler = _this.ssoAccessTokenService.getHandler();
|
|
7124
7221
|
if (!handler) {
|
|
7125
|
-
|
|
7222
|
+
logInfo("[ERROR] No SSO access token handler set", {
|
|
7126
7223
|
adapter: "SsoAuthenticatedHttpClient"
|
|
7127
7224
|
});
|
|
7128
7225
|
throw new Error("No SSO access token handler set");
|
|
@@ -7134,7 +7231,7 @@ var _SsoAuthenticatedHttpClient = /*#__PURE__*/ function() {
|
|
|
7134
7231
|
case 1:
|
|
7135
7232
|
accessToken = _state.sent().accessToken;
|
|
7136
7233
|
if (!accessToken) {
|
|
7137
|
-
|
|
7234
|
+
logInfo("[ERROR] No SSO access token was returned from handler", {
|
|
7138
7235
|
adapter: "SsoAuthenticatedHttpClient"
|
|
7139
7236
|
});
|
|
7140
7237
|
throw new Error("No SSO access token was returned from handler");
|
|
@@ -7248,7 +7345,7 @@ var _RestAuthService = /*#__PURE__*/ function() {
|
|
|
7248
7345
|
];
|
|
7249
7346
|
case 5:
|
|
7250
7347
|
error2 = _state.sent();
|
|
7251
|
-
|
|
7348
|
+
logInfo("[ERROR] Error during getUserProgram", {
|
|
7252
7349
|
error: error2,
|
|
7253
7350
|
adapter: "RestAuthService"
|
|
7254
7351
|
});
|
|
@@ -7308,7 +7405,7 @@ var _RestAuthService = /*#__PURE__*/ function() {
|
|
|
7308
7405
|
data = _state.sent();
|
|
7309
7406
|
access_token = data.access_token, expires_in = data.expires_in;
|
|
7310
7407
|
if (!access_token || !expires_in) {
|
|
7311
|
-
|
|
7408
|
+
logInfo("[ERROR] Invalid token response - missing access_token or expires_in", {
|
|
7312
7409
|
adapter: "RestAuthService"
|
|
7313
7410
|
});
|
|
7314
7411
|
throw new MqSDKError(FETCH_AUTH_TOKEN_ERROR);
|
|
@@ -7326,7 +7423,7 @@ var _RestAuthService = /*#__PURE__*/ function() {
|
|
|
7326
7423
|
];
|
|
7327
7424
|
case 4:
|
|
7328
7425
|
error2 = _state.sent();
|
|
7329
|
-
|
|
7426
|
+
logInfo("[ERROR] " + FETCH_AUTH_TOKEN_ERROR, {
|
|
7330
7427
|
error: error2,
|
|
7331
7428
|
apiEndpoint: apiEndpoint,
|
|
7332
7429
|
adapter: "RestAuthService"
|
|
@@ -7407,7 +7504,7 @@ var _RestAuthService = /*#__PURE__*/ function() {
|
|
|
7407
7504
|
];
|
|
7408
7505
|
case 5:
|
|
7409
7506
|
error2 = _state.sent();
|
|
7410
|
-
|
|
7507
|
+
logInfo("[ERROR] Error during getCardholderContext", {
|
|
7411
7508
|
error: error2,
|
|
7412
7509
|
adapter: "RestAuthService"
|
|
7413
7510
|
});
|
|
@@ -7434,6 +7531,7 @@ var _RestAuthService = /*#__PURE__*/ function() {
|
|
|
7434
7531
|
logDebug("Getting user token hash", {
|
|
7435
7532
|
adapter: "RestAuthService"
|
|
7436
7533
|
});
|
|
7534
|
+
userTokenHash = _this.cacheService.get("userTokenHash");
|
|
7437
7535
|
_state.label = 1;
|
|
7438
7536
|
case 1:
|
|
7439
7537
|
_state.trys.push([
|
|
@@ -7478,7 +7576,7 @@ var _RestAuthService = /*#__PURE__*/ function() {
|
|
|
7478
7576
|
];
|
|
7479
7577
|
case 5:
|
|
7480
7578
|
error2 = _state.sent();
|
|
7481
|
-
|
|
7579
|
+
logInfo("[ERROR] Error during getUserTokenHash", {
|
|
7482
7580
|
error: error2,
|
|
7483
7581
|
adapter: "RestAuthService"
|
|
7484
7582
|
});
|
|
@@ -10879,7 +10977,15 @@ var mswAuthHandlers = [
|
|
|
10879
10977
|
status: 200
|
|
10880
10978
|
});
|
|
10881
10979
|
}),
|
|
10882
|
-
http.get("".concat(mockMode_exports.CUI_API_BASE_URL, "/api/v1/auth/program-short-code"), function() {
|
|
10980
|
+
http.get("".concat(mockMode_exports.CUI_API_BASE_URL, "/api/v1/auth/program-short-code"), function(param) {
|
|
10981
|
+
var request = param.request;
|
|
10982
|
+
var authorization = request.headers.get("authorization");
|
|
10983
|
+
if (authorization === "DPoP invalid-token") {
|
|
10984
|
+
return new HttpResponse(null, {
|
|
10985
|
+
status: 401,
|
|
10986
|
+
statusText: "Unauthorized"
|
|
10987
|
+
});
|
|
10988
|
+
}
|
|
10883
10989
|
return HttpResponse.json({
|
|
10884
10990
|
program_short_code: VALID_PROGRAM_SHORT_CODE,
|
|
10885
10991
|
ok: true,
|
|
@@ -10903,14 +11009,30 @@ var mswAuthHandlers = [
|
|
|
10903
11009
|
status: 200
|
|
10904
11010
|
});
|
|
10905
11011
|
}),
|
|
10906
|
-
http.get("".concat(mockMode_exports.CUI_API_BASE_URL, "/api/v1/auth/user-token-hash"), function() {
|
|
11012
|
+
http.get("".concat(mockMode_exports.CUI_API_BASE_URL, "/api/v1/auth/user-token-hash"), function(param) {
|
|
11013
|
+
var request = param.request;
|
|
11014
|
+
var authorization = request.headers.get("authorization");
|
|
11015
|
+
if (authorization === "DPoP invalid-token") {
|
|
11016
|
+
return new HttpResponse(null, {
|
|
11017
|
+
status: 401,
|
|
11018
|
+
statusText: "Unauthorized"
|
|
11019
|
+
});
|
|
11020
|
+
}
|
|
10907
11021
|
return HttpResponse.json({
|
|
10908
11022
|
user_token_hash: VALID_USER_TOKEN_HASH,
|
|
10909
11023
|
ok: true,
|
|
10910
11024
|
status: 200
|
|
10911
11025
|
});
|
|
10912
11026
|
}),
|
|
10913
|
-
http.get("".concat(mockMode_exports.CUI_API_BASE_URL, "/api/v1/auth/cardholder-context"), function() {
|
|
11027
|
+
http.get("".concat(mockMode_exports.CUI_API_BASE_URL, "/api/v1/auth/cardholder-context"), function(param) {
|
|
11028
|
+
var request = param.request;
|
|
11029
|
+
var authorization = request.headers.get("authorization");
|
|
11030
|
+
if (authorization === "DPoP invalid-token") {
|
|
11031
|
+
return new HttpResponse(null, {
|
|
11032
|
+
status: 401,
|
|
11033
|
+
statusText: "Unauthorized"
|
|
11034
|
+
});
|
|
11035
|
+
}
|
|
10914
11036
|
return HttpResponse.json({
|
|
10915
11037
|
ok: true,
|
|
10916
11038
|
status: 200,
|
|
@@ -11049,7 +11171,7 @@ var _RestCardRepository = /*#__PURE__*/ function() {
|
|
|
11049
11171
|
case 2:
|
|
11050
11172
|
data = _state.sent();
|
|
11051
11173
|
if (!data.card) {
|
|
11052
|
-
|
|
11174
|
+
logInfo("[ERROR] Card data not found in response", {
|
|
11053
11175
|
cardToken: cardToken,
|
|
11054
11176
|
shortCode: shortCode,
|
|
11055
11177
|
adapter: "RestCardRepository"
|
|
@@ -11070,7 +11192,7 @@ var _RestCardRepository = /*#__PURE__*/ function() {
|
|
|
11070
11192
|
];
|
|
11071
11193
|
case 3:
|
|
11072
11194
|
error2 = _state.sent();
|
|
11073
|
-
|
|
11195
|
+
logInfo("[ERROR] " + FETCH_CARD_ERROR, {
|
|
11074
11196
|
error: error2,
|
|
11075
11197
|
cardToken: cardToken,
|
|
11076
11198
|
shortCode: shortCode,
|
|
@@ -11115,7 +11237,7 @@ var _RestCardRepository = /*#__PURE__*/ function() {
|
|
|
11115
11237
|
case 2:
|
|
11116
11238
|
res = _state.sent();
|
|
11117
11239
|
if (!res.data) {
|
|
11118
|
-
|
|
11240
|
+
logInfo("[ERROR] Cards data not found in response", {
|
|
11119
11241
|
adapter: "RestCardRepository"
|
|
11120
11242
|
});
|
|
11121
11243
|
throw new MqSDKError(FETCH_CARDS_ERROR);
|
|
@@ -11134,7 +11256,7 @@ var _RestCardRepository = /*#__PURE__*/ function() {
|
|
|
11134
11256
|
];
|
|
11135
11257
|
case 3:
|
|
11136
11258
|
error2 = _state.sent();
|
|
11137
|
-
|
|
11259
|
+
logInfo("[ERROR] " + FETCH_CARDS_ERROR, {
|
|
11138
11260
|
error: error2,
|
|
11139
11261
|
adapter: "RestCardRepository"
|
|
11140
11262
|
});
|
|
@@ -11179,7 +11301,7 @@ var _RestCardRepository = /*#__PURE__*/ function() {
|
|
|
11179
11301
|
case 2:
|
|
11180
11302
|
data = _state.sent();
|
|
11181
11303
|
if (!data.card) {
|
|
11182
|
-
|
|
11304
|
+
logInfo("[ERROR] Card showpan data not found in response", {
|
|
11183
11305
|
cardToken: cardToken,
|
|
11184
11306
|
shortCode: shortCode,
|
|
11185
11307
|
adapter: "RestCardRepository"
|
|
@@ -11198,7 +11320,7 @@ var _RestCardRepository = /*#__PURE__*/ function() {
|
|
|
11198
11320
|
];
|
|
11199
11321
|
case 3:
|
|
11200
11322
|
error2 = _state.sent();
|
|
11201
|
-
|
|
11323
|
+
logInfo("[ERROR] " + FETCH_CARD_ERROR, {
|
|
11202
11324
|
error: error2,
|
|
11203
11325
|
cardToken: cardToken,
|
|
11204
11326
|
shortCode: shortCode,
|
|
@@ -11269,7 +11391,7 @@ var _RestCardRepository = /*#__PURE__*/ function() {
|
|
|
11269
11391
|
];
|
|
11270
11392
|
case 3:
|
|
11271
11393
|
error2 = _state.sent();
|
|
11272
|
-
|
|
11394
|
+
logInfo("[ERROR] Unable to activate card", {
|
|
11273
11395
|
error: error2,
|
|
11274
11396
|
cardToken: cardToken,
|
|
11275
11397
|
expiry: expiry,
|
|
@@ -11335,7 +11457,7 @@ var _RestCardRepository = /*#__PURE__*/ function() {
|
|
|
11335
11457
|
];
|
|
11336
11458
|
case 3:
|
|
11337
11459
|
error2 = _state.sent();
|
|
11338
|
-
|
|
11460
|
+
logInfo("[ERROR] Unable to lock card", {
|
|
11339
11461
|
error: error2,
|
|
11340
11462
|
cardToken: cardToken,
|
|
11341
11463
|
adapter: "RestCardRepository"
|
|
@@ -11402,7 +11524,7 @@ var _RestCardRepository = /*#__PURE__*/ function() {
|
|
|
11402
11524
|
];
|
|
11403
11525
|
case 3:
|
|
11404
11526
|
error2 = _state.sent();
|
|
11405
|
-
|
|
11527
|
+
logInfo("[ERROR] Unable to replace card", {
|
|
11406
11528
|
error: error2,
|
|
11407
11529
|
cardToken: cardToken,
|
|
11408
11530
|
cardProductToken: cardProductToken,
|
|
@@ -11476,7 +11598,7 @@ var _RestCardRepository = /*#__PURE__*/ function() {
|
|
|
11476
11598
|
];
|
|
11477
11599
|
case 4:
|
|
11478
11600
|
error2 = _state.sent();
|
|
11479
|
-
|
|
11601
|
+
logInfo("[ERROR] Unable to unlock card", {
|
|
11480
11602
|
error: error2,
|
|
11481
11603
|
cardToken: cardToken,
|
|
11482
11604
|
adapter: "RestCardRepository"
|
|
@@ -11545,7 +11667,7 @@ var _RestCardRepository = /*#__PURE__*/ function() {
|
|
|
11545
11667
|
];
|
|
11546
11668
|
case 4:
|
|
11547
11669
|
error2 = _state.sent();
|
|
11548
|
-
|
|
11670
|
+
logInfo("[ERROR] Unable to update PIN", {
|
|
11549
11671
|
error: error2,
|
|
11550
11672
|
cardToken: cardToken,
|
|
11551
11673
|
adapter: "RestCardRepository"
|
|
@@ -11606,7 +11728,7 @@ var _RestCardRepository = /*#__PURE__*/ function() {
|
|
|
11606
11728
|
];
|
|
11607
11729
|
case 3:
|
|
11608
11730
|
error2 = _state.sent();
|
|
11609
|
-
|
|
11731
|
+
logInfo("[ERROR] Unable to get PIN", {
|
|
11610
11732
|
error: error2,
|
|
11611
11733
|
cardToken: cardToken,
|
|
11612
11734
|
cardholderVerificationMethod: cardholderVerificationMethod,
|
|
@@ -11669,7 +11791,7 @@ var _RestCardRepository = /*#__PURE__*/ function() {
|
|
|
11669
11791
|
];
|
|
11670
11792
|
case 3:
|
|
11671
11793
|
error2 = _state.sent();
|
|
11672
|
-
|
|
11794
|
+
logInfo("[ERROR] Unable to order card", {
|
|
11673
11795
|
error: error2,
|
|
11674
11796
|
idType: orderRequest.idType,
|
|
11675
11797
|
adapter: "RestCardRepository"
|
|
@@ -11738,7 +11860,7 @@ var _RestCardRepository = /*#__PURE__*/ function() {
|
|
|
11738
11860
|
];
|
|
11739
11861
|
case 3:
|
|
11740
11862
|
error2 = _state.sent();
|
|
11741
|
-
|
|
11863
|
+
logInfo("[ERROR] Unable to replace card", {
|
|
11742
11864
|
error: error2,
|
|
11743
11865
|
cardToken: replaceRequest.cardToken,
|
|
11744
11866
|
reason: replaceRequest.request.replacement_reason,
|
|
@@ -12444,7 +12566,7 @@ function _getAccountHolderGroup() {
|
|
|
12444
12566
|
];
|
|
12445
12567
|
case 3:
|
|
12446
12568
|
error2 = _state.sent();
|
|
12447
|
-
|
|
12569
|
+
logInfo("[ERROR] Failed to get account holder group", {
|
|
12448
12570
|
error: error2,
|
|
12449
12571
|
shortCode: shortCode,
|
|
12450
12572
|
interactor: "getAccountHolderGroup"
|
|
@@ -12500,7 +12622,7 @@ function _getAccountBalances() {
|
|
|
12500
12622
|
];
|
|
12501
12623
|
case 3:
|
|
12502
12624
|
error2 = _state.sent();
|
|
12503
|
-
|
|
12625
|
+
logInfo("[ERROR] Failed to get account balances", {
|
|
12504
12626
|
error: error2,
|
|
12505
12627
|
shortCode: shortCode,
|
|
12506
12628
|
interactor: "getAccountBalances"
|
|
@@ -12557,7 +12679,7 @@ function _getDepositAccounts() {
|
|
|
12557
12679
|
];
|
|
12558
12680
|
case 3:
|
|
12559
12681
|
error2 = _state.sent();
|
|
12560
|
-
|
|
12682
|
+
logInfo("[ERROR] Failed to get deposit accounts", {
|
|
12561
12683
|
error: error2,
|
|
12562
12684
|
shortCode: shortCode,
|
|
12563
12685
|
interactor: "getDepositAccounts"
|
|
@@ -12611,7 +12733,7 @@ function _getUserAccounts() {
|
|
|
12611
12733
|
];
|
|
12612
12734
|
case 3:
|
|
12613
12735
|
error2 = _state.sent();
|
|
12614
|
-
|
|
12736
|
+
logInfo("[ERROR] Failed to get user accounts", {
|
|
12615
12737
|
error: error2,
|
|
12616
12738
|
interactor: "getUserAccounts"
|
|
12617
12739
|
});
|
|
@@ -12725,6 +12847,7 @@ var TEST_USER_ACCOUNTS = {
|
|
|
12725
12847
|
var _MockAccountRepository = /*#__PURE__*/ function() {
|
|
12726
12848
|
function _MockAccountRepository() {
|
|
12727
12849
|
_class_call_check(this, _MockAccountRepository);
|
|
12850
|
+
__publicField(this, "shouldThrowError", false);
|
|
12728
12851
|
__publicField(this, "_accountHolderGroupResponse", null);
|
|
12729
12852
|
__publicField(this, "_accountBalancesResponse", new AccountBalancesEntity(mockAccountBalances));
|
|
12730
12853
|
__publicField(this, "_depositAccountsResponse", [
|
|
@@ -12763,6 +12886,9 @@ var _MockAccountRepository = /*#__PURE__*/ function() {
|
|
|
12763
12886
|
var _this = this;
|
|
12764
12887
|
return _async_to_generator(function() {
|
|
12765
12888
|
return _ts_generator(this, function(_state) {
|
|
12889
|
+
if (_this.shouldThrowError) {
|
|
12890
|
+
throw new Error("Mock error for testing");
|
|
12891
|
+
}
|
|
12766
12892
|
if (!_this._accountHolderGroupResponse) {
|
|
12767
12893
|
throw new Error("Method not implemented.");
|
|
12768
12894
|
}
|
|
@@ -12783,6 +12909,9 @@ var _MockAccountRepository = /*#__PURE__*/ function() {
|
|
|
12783
12909
|
var _this = this;
|
|
12784
12910
|
return _async_to_generator(function() {
|
|
12785
12911
|
return _ts_generator(this, function(_state) {
|
|
12912
|
+
if (_this.shouldThrowError) {
|
|
12913
|
+
throw new Error("Mock error for testing");
|
|
12914
|
+
}
|
|
12786
12915
|
if (_instanceof(_this._accountBalancesResponse, Error)) {
|
|
12787
12916
|
throw _this._accountBalancesResponse;
|
|
12788
12917
|
}
|
|
@@ -12800,6 +12929,9 @@ var _MockAccountRepository = /*#__PURE__*/ function() {
|
|
|
12800
12929
|
var _this = this;
|
|
12801
12930
|
return _async_to_generator(function() {
|
|
12802
12931
|
return _ts_generator(this, function(_state) {
|
|
12932
|
+
if (_this.shouldThrowError) {
|
|
12933
|
+
throw new Error("Mock error for testing");
|
|
12934
|
+
}
|
|
12803
12935
|
if (_instanceof(_this._depositAccountsResponse, Error)) {
|
|
12804
12936
|
throw _this._depositAccountsResponse;
|
|
12805
12937
|
}
|
|
@@ -12817,6 +12949,9 @@ var _MockAccountRepository = /*#__PURE__*/ function() {
|
|
|
12817
12949
|
var _this = this;
|
|
12818
12950
|
return _async_to_generator(function() {
|
|
12819
12951
|
return _ts_generator(this, function(_state) {
|
|
12952
|
+
if (_this.shouldThrowError) {
|
|
12953
|
+
throw new Error("Mock error for testing");
|
|
12954
|
+
}
|
|
12820
12955
|
if (_instanceof(_this._userAccountsListResponse, Error)) {
|
|
12821
12956
|
throw _this._userAccountsListResponse;
|
|
12822
12957
|
}
|
|
@@ -12885,21 +13020,21 @@ var _RestAccountRepository = /*#__PURE__*/ function() {
|
|
|
12885
13020
|
case 2:
|
|
12886
13021
|
data = _state.sent();
|
|
12887
13022
|
if (!data.ok) {
|
|
12888
|
-
|
|
13023
|
+
logInfo("[ERROR] Received HTTP response not OK", {
|
|
12889
13024
|
status: data.status,
|
|
12890
13025
|
adapter: "RestAccountRepository"
|
|
12891
13026
|
});
|
|
12892
13027
|
throw new MqSDKError("Received HTTP response not OK");
|
|
12893
13028
|
}
|
|
12894
13029
|
if (data.status !== 200) {
|
|
12895
|
-
|
|
13030
|
+
logInfo("[ERROR] Invalid HTTP status code", {
|
|
12896
13031
|
status: data.status,
|
|
12897
13032
|
adapter: "RestAccountRepository"
|
|
12898
13033
|
});
|
|
12899
13034
|
throw new MqSDKError("Invalid HTTP status code: ".concat(data.status));
|
|
12900
13035
|
}
|
|
12901
13036
|
if (!data.account) {
|
|
12902
|
-
|
|
13037
|
+
logInfo("[ERROR] Account not found in response", {
|
|
12903
13038
|
shortCode: shortCode,
|
|
12904
13039
|
adapter: "RestAccountRepository"
|
|
12905
13040
|
});
|
|
@@ -12917,7 +13052,7 @@ var _RestAccountRepository = /*#__PURE__*/ function() {
|
|
|
12917
13052
|
];
|
|
12918
13053
|
case 3:
|
|
12919
13054
|
err = _state.sent();
|
|
12920
|
-
|
|
13055
|
+
logInfo("[ERROR] Unable to retrieve account", {
|
|
12921
13056
|
err: err,
|
|
12922
13057
|
shortCode: shortCode,
|
|
12923
13058
|
adapter: "RestAccountRepository"
|
|
@@ -12962,21 +13097,21 @@ var _RestAccountRepository = /*#__PURE__*/ function() {
|
|
|
12962
13097
|
case 2:
|
|
12963
13098
|
response = _state.sent();
|
|
12964
13099
|
if (!response.ok) {
|
|
12965
|
-
|
|
13100
|
+
logInfo("[ERROR] Received HTTP response not OK", {
|
|
12966
13101
|
status: response.status,
|
|
12967
13102
|
adapter: "RestAccountRepository"
|
|
12968
13103
|
});
|
|
12969
13104
|
throw new MqSDKError("Received HTTP response not OK");
|
|
12970
13105
|
}
|
|
12971
13106
|
if (response.status !== 200) {
|
|
12972
|
-
|
|
13107
|
+
logInfo("[ERROR] Invalid HTTP status code", {
|
|
12973
13108
|
status: response.status,
|
|
12974
13109
|
adapter: "RestAccountRepository"
|
|
12975
13110
|
});
|
|
12976
13111
|
throw new MqSDKError("Invalid HTTP status code: ".concat(response.status));
|
|
12977
13112
|
}
|
|
12978
13113
|
if (!response.accountHolderGroup) {
|
|
12979
|
-
|
|
13114
|
+
logInfo("[ERROR] Account holder group not found in response", {
|
|
12980
13115
|
shortCode: shortCode,
|
|
12981
13116
|
adapter: "RestAccountRepository"
|
|
12982
13117
|
});
|
|
@@ -12994,7 +13129,7 @@ var _RestAccountRepository = /*#__PURE__*/ function() {
|
|
|
12994
13129
|
];
|
|
12995
13130
|
case 3:
|
|
12996
13131
|
err = _state.sent();
|
|
12997
|
-
|
|
13132
|
+
logInfo("[ERROR] Unable to retrieve account holder group", {
|
|
12998
13133
|
err: err,
|
|
12999
13134
|
shortCode: shortCode,
|
|
13000
13135
|
adapter: "RestAccountRepository"
|
|
@@ -13039,7 +13174,7 @@ var _RestAccountRepository = /*#__PURE__*/ function() {
|
|
|
13039
13174
|
case 2:
|
|
13040
13175
|
data = _state.sent();
|
|
13041
13176
|
if (!data.result) {
|
|
13042
|
-
|
|
13177
|
+
logInfo("[ERROR] Deposit accounts not found in response", {
|
|
13043
13178
|
shortCode: shortCode,
|
|
13044
13179
|
adapter: "RestAccountRepository"
|
|
13045
13180
|
});
|
|
@@ -13061,7 +13196,7 @@ var _RestAccountRepository = /*#__PURE__*/ function() {
|
|
|
13061
13196
|
];
|
|
13062
13197
|
case 3:
|
|
13063
13198
|
err = _state.sent();
|
|
13064
|
-
|
|
13199
|
+
logInfo("[ERROR] Unable to retrieve deposit accounts", {
|
|
13065
13200
|
err: err,
|
|
13066
13201
|
shortCode: shortCode,
|
|
13067
13202
|
adapter: "RestAccountRepository"
|
|
@@ -13100,7 +13235,9 @@ var _RestAccountRepository = /*#__PURE__*/ function() {
|
|
|
13100
13235
|
path = "".concat(cuiApiBaseUrl, "/api/v2/users/accounts");
|
|
13101
13236
|
return [
|
|
13102
13237
|
4,
|
|
13103
|
-
_this.httpClient.get(path
|
|
13238
|
+
_this.httpClient.get(path, {
|
|
13239
|
+
headers: _object_spread({}, getRnCommonApiHeaders())
|
|
13240
|
+
})
|
|
13104
13241
|
];
|
|
13105
13242
|
case 2:
|
|
13106
13243
|
data = _state.sent();
|
|
@@ -13113,7 +13250,7 @@ var _RestAccountRepository = /*#__PURE__*/ function() {
|
|
|
13113
13250
|
];
|
|
13114
13251
|
case 3:
|
|
13115
13252
|
err = _state.sent();
|
|
13116
|
-
|
|
13253
|
+
logInfo("[ERROR] Unable to retrieve user accounts", {
|
|
13117
13254
|
err: err,
|
|
13118
13255
|
adapter: "RestAccountRepository"
|
|
13119
13256
|
});
|
|
@@ -13201,6 +13338,15 @@ var mswAccountHandlers = [
|
|
|
13201
13338
|
return _49(" ");
|
|
13202
13339
|
}
|
|
13203
13340
|
]), 2), _ = _$_optionalChain[0], token = _$_optionalChain[1];
|
|
13341
|
+
if (token === "invalid-token") {
|
|
13342
|
+
return [
|
|
13343
|
+
2,
|
|
13344
|
+
new HttpResponse(null, {
|
|
13345
|
+
status: 401,
|
|
13346
|
+
statusText: "Unauthorized"
|
|
13347
|
+
})
|
|
13348
|
+
];
|
|
13349
|
+
}
|
|
13204
13350
|
userStatus = "ACTIVE";
|
|
13205
13351
|
switch(token){
|
|
13206
13352
|
case ACCOUNT_LOADING_CUI_AUTH_TOKEN:
|
|
@@ -13309,7 +13455,26 @@ var mswAccountHandlers = [
|
|
|
13309
13455
|
return _ref.apply(this, arguments);
|
|
13310
13456
|
};
|
|
13311
13457
|
}()),
|
|
13312
|
-
http.get("".concat(mockMode_exports.CUI_API_BASE_URL, "/api/v1/accountbalance"), function() {
|
|
13458
|
+
http.get("".concat(mockMode_exports.CUI_API_BASE_URL, "/api/v1/accountbalance"), function(param) {
|
|
13459
|
+
var request = param.request;
|
|
13460
|
+
var authorization = request.headers.get("authorization");
|
|
13461
|
+
var _$_optionalChain = _sliced_to_array(_optionalChain([
|
|
13462
|
+
authorization,
|
|
13463
|
+
'optionalAccess',
|
|
13464
|
+
function(_50) {
|
|
13465
|
+
return _50.split;
|
|
13466
|
+
},
|
|
13467
|
+
'call',
|
|
13468
|
+
function(_51) {
|
|
13469
|
+
return _51(" ");
|
|
13470
|
+
}
|
|
13471
|
+
]), 2), _ = _$_optionalChain[0], token = _$_optionalChain[1];
|
|
13472
|
+
if (token === "invalid-token") {
|
|
13473
|
+
return new HttpResponse(null, {
|
|
13474
|
+
status: 401,
|
|
13475
|
+
statusText: "Unauthorized"
|
|
13476
|
+
});
|
|
13477
|
+
}
|
|
13313
13478
|
return HttpResponse.json({
|
|
13314
13479
|
account: mockAccountBalances,
|
|
13315
13480
|
ok: true,
|
|
@@ -13319,7 +13484,23 @@ var mswAccountHandlers = [
|
|
|
13319
13484
|
http.get("".concat(mockMode_exports.CUI_API_BASE_URL, "/api/v1/depositaccounts"), function(param) {
|
|
13320
13485
|
var request = param.request;
|
|
13321
13486
|
var authorization = request.headers.get("authorization");
|
|
13322
|
-
var
|
|
13487
|
+
var _$_optionalChain = _sliced_to_array(_optionalChain([
|
|
13488
|
+
authorization,
|
|
13489
|
+
'optionalAccess',
|
|
13490
|
+
function(_52) {
|
|
13491
|
+
return _52.split;
|
|
13492
|
+
},
|
|
13493
|
+
'call',
|
|
13494
|
+
function(_53) {
|
|
13495
|
+
return _53(" ");
|
|
13496
|
+
}
|
|
13497
|
+
]), 2), _ = _$_optionalChain[0], token = _$_optionalChain[1];
|
|
13498
|
+
if (token === "invalid-token") {
|
|
13499
|
+
return new HttpResponse(null, {
|
|
13500
|
+
status: 401,
|
|
13501
|
+
statusText: "Unauthorized"
|
|
13502
|
+
});
|
|
13503
|
+
}
|
|
13323
13504
|
if (token === DEPOSIT_ACCOUNTS_TERMINATED_CUI_AUTH_TOKEN) {
|
|
13324
13505
|
return HttpResponse.json({
|
|
13325
13506
|
result: [
|
|
@@ -13346,7 +13527,26 @@ var mswAccountHandlers = [
|
|
|
13346
13527
|
status: 200
|
|
13347
13528
|
});
|
|
13348
13529
|
}),
|
|
13349
|
-
http.get("".concat(mockMode_exports.CUI_API_BASE_URL, "/api/v2/users/accounts"), function() {
|
|
13530
|
+
http.get("".concat(mockMode_exports.CUI_API_BASE_URL, "/api/v2/users/accounts"), function(param) {
|
|
13531
|
+
var request = param.request;
|
|
13532
|
+
var authorization = request.headers.get("authorization");
|
|
13533
|
+
var _$_optionalChain = _sliced_to_array(_optionalChain([
|
|
13534
|
+
authorization,
|
|
13535
|
+
'optionalAccess',
|
|
13536
|
+
function(_54) {
|
|
13537
|
+
return _54.split;
|
|
13538
|
+
},
|
|
13539
|
+
'call',
|
|
13540
|
+
function(_55) {
|
|
13541
|
+
return _55(" ");
|
|
13542
|
+
}
|
|
13543
|
+
]), 2), _ = _$_optionalChain[0], token = _$_optionalChain[1];
|
|
13544
|
+
if (token === "invalid-token") {
|
|
13545
|
+
return new HttpResponse(null, {
|
|
13546
|
+
status: 401,
|
|
13547
|
+
statusText: "Unauthorized"
|
|
13548
|
+
});
|
|
13549
|
+
}
|
|
13350
13550
|
return HttpResponse.json(mockUserAccounts);
|
|
13351
13551
|
})
|
|
13352
13552
|
];
|
|
@@ -13407,7 +13607,7 @@ function _trackEvent() {
|
|
|
13407
13607
|
];
|
|
13408
13608
|
case 4:
|
|
13409
13609
|
error2 = _state.sent();
|
|
13410
|
-
|
|
13610
|
+
logInfo("[ERROR] Failed to track event", {
|
|
13411
13611
|
error: error2,
|
|
13412
13612
|
eventName: eventName,
|
|
13413
13613
|
category: category,
|
|
@@ -13463,7 +13663,7 @@ function _getClientId() {
|
|
|
13463
13663
|
];
|
|
13464
13664
|
case 3:
|
|
13465
13665
|
error2 = _state.sent();
|
|
13466
|
-
|
|
13666
|
+
logInfo("[ERROR] Failed to get client ID", {
|
|
13467
13667
|
error: error2,
|
|
13468
13668
|
interactor: "getClientId"
|
|
13469
13669
|
});
|
|
@@ -13516,7 +13716,7 @@ function _getSessionId() {
|
|
|
13516
13716
|
];
|
|
13517
13717
|
case 3:
|
|
13518
13718
|
error2 = _state.sent();
|
|
13519
|
-
|
|
13719
|
+
logInfo("[ERROR] Failed to get session ID", {
|
|
13520
13720
|
error: error2,
|
|
13521
13721
|
interactor: "getSessionId"
|
|
13522
13722
|
});
|
|
@@ -13561,14 +13761,23 @@ var _MockAnalyticsService = /*#__PURE__*/ function(iAnalyticsService) {
|
|
|
13561
13761
|
var _super = _create_super(_MockAnalyticsService);
|
|
13562
13762
|
function _MockAnalyticsService() {
|
|
13563
13763
|
_class_call_check(this, _MockAnalyticsService);
|
|
13564
|
-
|
|
13764
|
+
var _this;
|
|
13765
|
+
_this = _super.call.apply(_super, [
|
|
13766
|
+
this
|
|
13767
|
+
].concat(Array.prototype.slice.call(arguments)));
|
|
13768
|
+
__publicField(_assert_this_initialized(_this), "shouldThrowError", false);
|
|
13769
|
+
return _this;
|
|
13565
13770
|
}
|
|
13566
13771
|
_create_class(_MockAnalyticsService, [
|
|
13567
13772
|
{
|
|
13568
13773
|
key: "track",
|
|
13569
13774
|
value: function track(eventName, category, properties) {
|
|
13775
|
+
var _this = this;
|
|
13570
13776
|
return _async_to_generator(function() {
|
|
13571
13777
|
return _ts_generator(this, function(_state) {
|
|
13778
|
+
if (_this.shouldThrowError) {
|
|
13779
|
+
throw new Error("Mock error for testing");
|
|
13780
|
+
}
|
|
13572
13781
|
logDebug("MockAnalyticsService.track", {
|
|
13573
13782
|
eventName: eventName,
|
|
13574
13783
|
category: category,
|
|
@@ -13602,13 +13811,18 @@ var TEST_SESSION_ID = "1234567890";
|
|
|
13602
13811
|
var _MockSessionService = /*#__PURE__*/ function() {
|
|
13603
13812
|
function _MockSessionService() {
|
|
13604
13813
|
_class_call_check(this, _MockSessionService);
|
|
13814
|
+
__publicField(this, "shouldThrowError", false);
|
|
13605
13815
|
}
|
|
13606
13816
|
_create_class(_MockSessionService, [
|
|
13607
13817
|
{
|
|
13608
13818
|
key: "getClientId",
|
|
13609
13819
|
value: function getClientId() {
|
|
13820
|
+
var _this = this;
|
|
13610
13821
|
return _async_to_generator(function() {
|
|
13611
13822
|
return _ts_generator(this, function(_state) {
|
|
13823
|
+
if (_this.shouldThrowError) {
|
|
13824
|
+
throw new Error("Mock error for testing");
|
|
13825
|
+
}
|
|
13612
13826
|
return [
|
|
13613
13827
|
2,
|
|
13614
13828
|
Promise.resolve(TEST_CLIENT_ID)
|
|
@@ -13620,8 +13834,12 @@ var _MockSessionService = /*#__PURE__*/ function() {
|
|
|
13620
13834
|
{
|
|
13621
13835
|
key: "getSessionId",
|
|
13622
13836
|
value: function getSessionId() {
|
|
13837
|
+
var _this = this;
|
|
13623
13838
|
return _async_to_generator(function() {
|
|
13624
13839
|
return _ts_generator(this, function(_state) {
|
|
13840
|
+
if (_this.shouldThrowError) {
|
|
13841
|
+
throw new Error("Mock error for testing");
|
|
13842
|
+
}
|
|
13625
13843
|
return [
|
|
13626
13844
|
2,
|
|
13627
13845
|
Promise.resolve(TEST_SESSION_ID)
|
|
@@ -13962,7 +14180,7 @@ var _GaMeasurementAnalyticsService = /*#__PURE__*/ function(iAnalyticsService) {
|
|
|
13962
14180
|
];
|
|
13963
14181
|
case 4:
|
|
13964
14182
|
error2 = _state.sent();
|
|
13965
|
-
|
|
14183
|
+
logInfo("[ERROR] Failed to track analytics event", {
|
|
13966
14184
|
error: error2,
|
|
13967
14185
|
eventName: eventName,
|
|
13968
14186
|
category: category,
|
|
@@ -14126,7 +14344,7 @@ var _GaMeasurementAnalyticsService = /*#__PURE__*/ function(iAnalyticsService) {
|
|
|
14126
14344
|
];
|
|
14127
14345
|
case 4:
|
|
14128
14346
|
error2 = _state.sent();
|
|
14129
|
-
|
|
14347
|
+
logInfo("[ERROR] Failed to send analytics events", {
|
|
14130
14348
|
error: error2,
|
|
14131
14349
|
eventCount: events.length,
|
|
14132
14350
|
adapter: "GaMeasurementAnalyticsService"
|
|
@@ -14206,7 +14424,9 @@ var _RestPaymentSchedulesRepository = /*#__PURE__*/ function() {
|
|
|
14206
14424
|
});
|
|
14207
14425
|
return [
|
|
14208
14426
|
4,
|
|
14209
|
-
_this.httpClient.get(path
|
|
14427
|
+
_this.httpClient.get(path, {
|
|
14428
|
+
headers: _object_spread({}, getRnCommonApiHeaders())
|
|
14429
|
+
})
|
|
14210
14430
|
];
|
|
14211
14431
|
case 2:
|
|
14212
14432
|
response = _state.sent();
|
|
@@ -14222,7 +14442,7 @@ var _RestPaymentSchedulesRepository = /*#__PURE__*/ function() {
|
|
|
14222
14442
|
];
|
|
14223
14443
|
case 3:
|
|
14224
14444
|
err = _state.sent();
|
|
14225
|
-
|
|
14445
|
+
logInfo("[ERROR] Unable to retrieve payment schedules", {
|
|
14226
14446
|
err: err,
|
|
14227
14447
|
paginationParams: paginationParams,
|
|
14228
14448
|
adapter: "RestPaymentSchedulesRepository"
|
|
@@ -14237,6 +14457,69 @@ var _RestPaymentSchedulesRepository = /*#__PURE__*/ function() {
|
|
|
14237
14457
|
})();
|
|
14238
14458
|
}
|
|
14239
14459
|
},
|
|
14460
|
+
{
|
|
14461
|
+
key: "createPaymentSchedule",
|
|
14462
|
+
value: function createPaymentSchedule(request) {
|
|
14463
|
+
var _this = this;
|
|
14464
|
+
return _async_to_generator(function() {
|
|
14465
|
+
var cuiApiBaseUrl, path, response, err;
|
|
14466
|
+
return _ts_generator(this, function(_state) {
|
|
14467
|
+
switch(_state.label){
|
|
14468
|
+
case 0:
|
|
14469
|
+
logDebug("Creating payment schedule", {
|
|
14470
|
+
request: request,
|
|
14471
|
+
adapter: "RestPaymentSchedulesRepository"
|
|
14472
|
+
});
|
|
14473
|
+
_state.label = 1;
|
|
14474
|
+
case 1:
|
|
14475
|
+
_state.trys.push([
|
|
14476
|
+
1,
|
|
14477
|
+
3,
|
|
14478
|
+
,
|
|
14479
|
+
4
|
|
14480
|
+
]);
|
|
14481
|
+
cuiApiBaseUrl = getEnvConfigValueByName("CUI_API_BASE_URL");
|
|
14482
|
+
path = "".concat(cuiApiBaseUrl, "/api/v2/users/credit/paymentschedules");
|
|
14483
|
+
logDebug("Payment schedule creation API request", {
|
|
14484
|
+
path: path,
|
|
14485
|
+
adapter: "RestPaymentSchedulesRepository"
|
|
14486
|
+
});
|
|
14487
|
+
return [
|
|
14488
|
+
4,
|
|
14489
|
+
_this.httpClient.post(path, {
|
|
14490
|
+
headers: _object_spread_props(_object_spread({}, getRnCommonApiHeaders()), {
|
|
14491
|
+
"Content-Type": "application/json"
|
|
14492
|
+
}),
|
|
14493
|
+
body: JSON.stringify(request)
|
|
14494
|
+
})
|
|
14495
|
+
];
|
|
14496
|
+
case 2:
|
|
14497
|
+
response = _state.sent();
|
|
14498
|
+
logInfo("Payment schedule created successfully", {
|
|
14499
|
+
token: response.token,
|
|
14500
|
+
adapter: "RestPaymentSchedulesRepository"
|
|
14501
|
+
});
|
|
14502
|
+
return [
|
|
14503
|
+
2,
|
|
14504
|
+
response
|
|
14505
|
+
];
|
|
14506
|
+
case 3:
|
|
14507
|
+
err = _state.sent();
|
|
14508
|
+
logInfo("[ERROR] Unable to create payment schedule", {
|
|
14509
|
+
err: err,
|
|
14510
|
+
request: request,
|
|
14511
|
+
adapter: "RestPaymentSchedulesRepository"
|
|
14512
|
+
});
|
|
14513
|
+
throw new MqSDKError("Unable to create payment schedule", err);
|
|
14514
|
+
case 4:
|
|
14515
|
+
return [
|
|
14516
|
+
2
|
|
14517
|
+
];
|
|
14518
|
+
}
|
|
14519
|
+
});
|
|
14520
|
+
})();
|
|
14521
|
+
}
|
|
14522
|
+
},
|
|
14240
14523
|
{
|
|
14241
14524
|
key: "mapPaymentSchedulesApiResponse",
|
|
14242
14525
|
value: function mapPaymentSchedulesApiResponse(apiResponse) {
|
|
@@ -14253,25 +14536,29 @@ var _RestPaymentSchedulesRepository = /*#__PURE__*/ function() {
|
|
|
14253
14536
|
{
|
|
14254
14537
|
key: "convertPaginationParamsToQueryParams",
|
|
14255
14538
|
value: function convertPaginationParamsToQueryParams(paginationParams) {
|
|
14256
|
-
var
|
|
14257
|
-
var queryParams = new URLSearchParams(
|
|
14258
|
-
|
|
14259
|
-
|
|
14260
|
-
|
|
14261
|
-
|
|
14262
|
-
|
|
14263
|
-
"
|
|
14264
|
-
|
|
14265
|
-
]
|
|
14266
|
-
]);
|
|
14267
|
-
if (status) {
|
|
14268
|
-
queryParams.append("status", status);
|
|
14539
|
+
var id_type = paginationParams.id_type, statuses = paginationParams.statuses, frequency = paginationParams.frequency, start_index = paginationParams.start_index, count = paginationParams.count, sort_by = paginationParams.sort_by;
|
|
14540
|
+
var queryParams = new URLSearchParams();
|
|
14541
|
+
if (id_type) {
|
|
14542
|
+
queryParams.append("id_type", id_type);
|
|
14543
|
+
}
|
|
14544
|
+
if (statuses) {
|
|
14545
|
+
statuses.forEach(function(status) {
|
|
14546
|
+
return queryParams.append("statuses", status);
|
|
14547
|
+
});
|
|
14269
14548
|
}
|
|
14270
|
-
if (
|
|
14271
|
-
|
|
14549
|
+
if (frequency) {
|
|
14550
|
+
frequency.forEach(function(freq) {
|
|
14551
|
+
return queryParams.append("frequency", freq);
|
|
14552
|
+
});
|
|
14553
|
+
}
|
|
14554
|
+
if (start_index !== void 0) {
|
|
14555
|
+
queryParams.append("start_index", "".concat(start_index));
|
|
14272
14556
|
}
|
|
14273
|
-
if (
|
|
14274
|
-
queryParams.append("
|
|
14557
|
+
if (count !== void 0) {
|
|
14558
|
+
queryParams.append("count", "".concat(count));
|
|
14559
|
+
}
|
|
14560
|
+
if (sort_by) {
|
|
14561
|
+
queryParams.append("sort_by", sort_by);
|
|
14275
14562
|
}
|
|
14276
14563
|
return queryParams;
|
|
14277
14564
|
}
|
|
@@ -14324,7 +14611,6 @@ var mockSchedule = {
|
|
|
14324
14611
|
token: "schedule_123",
|
|
14325
14612
|
amount: 100,
|
|
14326
14613
|
currency_code: "USD",
|
|
14327
|
-
due_date: "2024-01-15",
|
|
14328
14614
|
status: "ACTIVE",
|
|
14329
14615
|
frequency: "MONTHLY",
|
|
14330
14616
|
next_payment_impact_date: "2024-01-15",
|
|
@@ -14407,12 +14693,20 @@ function _ts_decorate46(decorators, target, key, desc) {
|
|
|
14407
14693
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
14408
14694
|
}
|
|
14409
14695
|
__name(_ts_decorate46, "_ts_decorate");
|
|
14410
|
-
var _MockPaymentSchedulesRepository = /*#__PURE__*/ function() {
|
|
14696
|
+
var _MockPaymentSchedulesRepository = /*#__PURE__*/ function(iPaymentSchedulesRepository) {
|
|
14697
|
+
_inherits(_MockPaymentSchedulesRepository, iPaymentSchedulesRepository);
|
|
14698
|
+
var _super = _create_super(_MockPaymentSchedulesRepository);
|
|
14411
14699
|
function _MockPaymentSchedulesRepository() {
|
|
14412
14700
|
_class_call_check(this, _MockPaymentSchedulesRepository);
|
|
14413
|
-
|
|
14414
|
-
|
|
14415
|
-
|
|
14701
|
+
var _this;
|
|
14702
|
+
_this = _super.call.apply(_super, [
|
|
14703
|
+
this
|
|
14704
|
+
].concat(Array.prototype.slice.call(arguments)));
|
|
14705
|
+
__publicField(_assert_this_initialized(_this), "paymentSchedules", []);
|
|
14706
|
+
__publicField(_assert_this_initialized(_this), "shouldThrowError", false);
|
|
14707
|
+
__publicField(_assert_this_initialized(_this), "errorToThrow", null);
|
|
14708
|
+
__publicField(_assert_this_initialized(_this), "createdSchedule", null);
|
|
14709
|
+
return _this;
|
|
14416
14710
|
}
|
|
14417
14711
|
_create_class(_MockPaymentSchedulesRepository, [
|
|
14418
14712
|
{
|
|
@@ -14420,34 +14714,78 @@ var _MockPaymentSchedulesRepository = /*#__PURE__*/ function() {
|
|
|
14420
14714
|
value: function getPaymentSchedules(paginationParams) {
|
|
14421
14715
|
var _this = this;
|
|
14422
14716
|
return _async_to_generator(function() {
|
|
14423
|
-
var
|
|
14717
|
+
var _paginationParams_count, count, _paginationParams_start_index, start_index, data, end_index;
|
|
14424
14718
|
return _ts_generator(this, function(_state) {
|
|
14425
|
-
if (_this.shouldThrowError
|
|
14426
|
-
throw _this.errorToThrow;
|
|
14719
|
+
if (_this.shouldThrowError) {
|
|
14720
|
+
throw _this.errorToThrow || new Error("Mock error for testing");
|
|
14427
14721
|
}
|
|
14428
|
-
|
|
14429
|
-
|
|
14430
|
-
|
|
14722
|
+
_paginationParams_count = paginationParams.count, count = _paginationParams_count === void 0 ? 5 : _paginationParams_count, _paginationParams_start_index = paginationParams.start_index, start_index = _paginationParams_start_index === void 0 ? 0 : _paginationParams_start_index;
|
|
14723
|
+
data = _this.paymentSchedules.slice(start_index, start_index + count);
|
|
14724
|
+
end_index = data.length > 0 ? start_index + data.length - 1 : start_index;
|
|
14431
14725
|
return [
|
|
14432
14726
|
2,
|
|
14433
14727
|
{
|
|
14434
|
-
startIndex:
|
|
14435
|
-
endIndex:
|
|
14728
|
+
startIndex: start_index,
|
|
14729
|
+
endIndex: end_index,
|
|
14436
14730
|
count: _this.paymentSchedules.length,
|
|
14437
14731
|
data: data,
|
|
14438
|
-
hasMore:
|
|
14732
|
+
hasMore: start_index + count < _this.paymentSchedules.length
|
|
14439
14733
|
}
|
|
14440
14734
|
];
|
|
14441
14735
|
});
|
|
14442
14736
|
})();
|
|
14443
14737
|
}
|
|
14444
14738
|
},
|
|
14739
|
+
{
|
|
14740
|
+
key: "createPaymentSchedule",
|
|
14741
|
+
value: function createPaymentSchedule(request) {
|
|
14742
|
+
var _this = this;
|
|
14743
|
+
return _async_to_generator(function() {
|
|
14744
|
+
var schedule;
|
|
14745
|
+
return _ts_generator(this, function(_state) {
|
|
14746
|
+
if (_this.shouldThrowError) {
|
|
14747
|
+
throw _this.errorToThrow || new Error("Mock error for testing");
|
|
14748
|
+
}
|
|
14749
|
+
if (_this.createdSchedule) {
|
|
14750
|
+
return [
|
|
14751
|
+
2,
|
|
14752
|
+
_this.createdSchedule
|
|
14753
|
+
];
|
|
14754
|
+
}
|
|
14755
|
+
schedule = {
|
|
14756
|
+
token: "schedule_" + Date.now(),
|
|
14757
|
+
payment_source_token: request.payment_source_token,
|
|
14758
|
+
amount_category: request.amount_category,
|
|
14759
|
+
status: "ACTIVE",
|
|
14760
|
+
amount: request.amount,
|
|
14761
|
+
frequency: request.frequency,
|
|
14762
|
+
payment_day: request.payment_day,
|
|
14763
|
+
next_payment_impact_date: request.next_payment_impact_date,
|
|
14764
|
+
currency_code: request.currency_code,
|
|
14765
|
+
description: request.description,
|
|
14766
|
+
created_time: /* @__PURE__ */ new Date().toISOString(),
|
|
14767
|
+
updated_time: /* @__PURE__ */ new Date().toISOString()
|
|
14768
|
+
};
|
|
14769
|
+
return [
|
|
14770
|
+
2,
|
|
14771
|
+
schedule
|
|
14772
|
+
];
|
|
14773
|
+
});
|
|
14774
|
+
})();
|
|
14775
|
+
}
|
|
14776
|
+
},
|
|
14445
14777
|
{
|
|
14446
14778
|
key: "setPaymentSchedules",
|
|
14447
14779
|
value: function setPaymentSchedules(schedules) {
|
|
14448
14780
|
this.paymentSchedules = schedules;
|
|
14449
14781
|
}
|
|
14450
14782
|
},
|
|
14783
|
+
{
|
|
14784
|
+
key: "setCreatedSchedule",
|
|
14785
|
+
value: function setCreatedSchedule(schedule) {
|
|
14786
|
+
this.createdSchedule = schedule;
|
|
14787
|
+
}
|
|
14788
|
+
},
|
|
14451
14789
|
{
|
|
14452
14790
|
key: "setShouldThrowError",
|
|
14453
14791
|
value: function setShouldThrowError(shouldThrow, error2) {
|
|
@@ -14457,7 +14795,7 @@ var _MockPaymentSchedulesRepository = /*#__PURE__*/ function() {
|
|
|
14457
14795
|
}
|
|
14458
14796
|
]);
|
|
14459
14797
|
return _MockPaymentSchedulesRepository;
|
|
14460
|
-
}();
|
|
14798
|
+
}(iPaymentSchedulesRepository);
|
|
14461
14799
|
__name(_MockPaymentSchedulesRepository, "MockPaymentSchedulesRepository");
|
|
14462
14800
|
var MockPaymentSchedulesRepository = _MockPaymentSchedulesRepository;
|
|
14463
14801
|
MockPaymentSchedulesRepository = exports.MockPaymentSchedulesRepository = _ts_decorate46([
|
|
@@ -14485,8 +14823,8 @@ var _MockPaymentSourcesRepository = /*#__PURE__*/ function() {
|
|
|
14485
14823
|
var _this = this;
|
|
14486
14824
|
return _async_to_generator(function() {
|
|
14487
14825
|
return _ts_generator(this, function(_state) {
|
|
14488
|
-
if (_this.shouldThrowError
|
|
14489
|
-
throw _this.errorToThrow;
|
|
14826
|
+
if (_this.shouldThrowError) {
|
|
14827
|
+
throw _this.errorToThrow || new Error("Mock error for testing");
|
|
14490
14828
|
}
|
|
14491
14829
|
return [
|
|
14492
14830
|
2,
|
|
@@ -14574,7 +14912,7 @@ var _RestPaymentSourcesRepository = /*#__PURE__*/ function() {
|
|
|
14574
14912
|
return [
|
|
14575
14913
|
4,
|
|
14576
14914
|
_this.httpClient.get(path, {
|
|
14577
|
-
headers: _object_spread({}, getRnCommonApiHeaders)
|
|
14915
|
+
headers: _object_spread({}, getRnCommonApiHeaders())
|
|
14578
14916
|
})
|
|
14579
14917
|
];
|
|
14580
14918
|
case 2:
|
|
@@ -14591,7 +14929,7 @@ var _RestPaymentSourcesRepository = /*#__PURE__*/ function() {
|
|
|
14591
14929
|
];
|
|
14592
14930
|
case 3:
|
|
14593
14931
|
err = _state.sent();
|
|
14594
|
-
|
|
14932
|
+
logInfo("[ERROR] Unable to retrieve external accounts", {
|
|
14595
14933
|
err: err,
|
|
14596
14934
|
params: params,
|
|
14597
14935
|
adapter: "RestPaymentSourcesRepository"
|
|
@@ -14696,7 +15034,7 @@ function _getPaymentSchedules() {
|
|
|
14696
15034
|
];
|
|
14697
15035
|
case 3:
|
|
14698
15036
|
error2 = _state.sent();
|
|
14699
|
-
|
|
15037
|
+
logInfo("[ERROR] Failed to get payment schedules", {
|
|
14700
15038
|
error: error2,
|
|
14701
15039
|
paginationParams: paginationParams,
|
|
14702
15040
|
interactor: "getPaymentSchedules"
|
|
@@ -14712,6 +15050,63 @@ function _getPaymentSchedules() {
|
|
|
14712
15050
|
return _getPaymentSchedules.apply(this, arguments);
|
|
14713
15051
|
}
|
|
14714
15052
|
__name(getPaymentSchedules, "getPaymentSchedules");
|
|
15053
|
+
function createPaymentSchedules(request) {
|
|
15054
|
+
return _createPaymentSchedules.apply(this, arguments);
|
|
15055
|
+
}
|
|
15056
|
+
function _createPaymentSchedules() {
|
|
15057
|
+
_createPaymentSchedules = // src/credit/base/interactors/createPaymentSchedules.ts
|
|
15058
|
+
_async_to_generator(function(request) {
|
|
15059
|
+
var container2, paymentSchedulesRepository, result, error2;
|
|
15060
|
+
return _ts_generator(this, function(_state) {
|
|
15061
|
+
switch(_state.label){
|
|
15062
|
+
case 0:
|
|
15063
|
+
logDebug("Creating payment schedule", {
|
|
15064
|
+
request: request,
|
|
15065
|
+
interactor: "createPaymentSchedules"
|
|
15066
|
+
});
|
|
15067
|
+
_state.label = 1;
|
|
15068
|
+
case 1:
|
|
15069
|
+
_state.trys.push([
|
|
15070
|
+
1,
|
|
15071
|
+
3,
|
|
15072
|
+
,
|
|
15073
|
+
4
|
|
15074
|
+
]);
|
|
15075
|
+
container2 = getActiveIocContainer();
|
|
15076
|
+
paymentSchedulesRepository = container2.get(ITF_PAYMENT_SCHEDULES_REPOSITORY);
|
|
15077
|
+
return [
|
|
15078
|
+
4,
|
|
15079
|
+
paymentSchedulesRepository.createPaymentSchedule(request)
|
|
15080
|
+
];
|
|
15081
|
+
case 2:
|
|
15082
|
+
result = _state.sent();
|
|
15083
|
+
logInfo("Payment schedule created successfully", {
|
|
15084
|
+
token: result.token,
|
|
15085
|
+
amount: result.amount,
|
|
15086
|
+
interactor: "createPaymentSchedules"
|
|
15087
|
+
});
|
|
15088
|
+
return [
|
|
15089
|
+
2,
|
|
15090
|
+
result
|
|
15091
|
+
];
|
|
15092
|
+
case 3:
|
|
15093
|
+
error2 = _state.sent();
|
|
15094
|
+
logInfo("[ERROR] Failed to create payment schedule", {
|
|
15095
|
+
error: error2,
|
|
15096
|
+
request: request,
|
|
15097
|
+
interactor: "createPaymentSchedules"
|
|
15098
|
+
});
|
|
15099
|
+
throw error2;
|
|
15100
|
+
case 4:
|
|
15101
|
+
return [
|
|
15102
|
+
2
|
|
15103
|
+
];
|
|
15104
|
+
}
|
|
15105
|
+
});
|
|
15106
|
+
});
|
|
15107
|
+
return _createPaymentSchedules.apply(this, arguments);
|
|
15108
|
+
}
|
|
15109
|
+
__name(createPaymentSchedules, "createPaymentSchedules");
|
|
14715
15110
|
function getPaymentSources(externalAccountParams) {
|
|
14716
15111
|
return _getPaymentSources.apply(this, arguments);
|
|
14717
15112
|
}
|
|
@@ -14753,7 +15148,7 @@ function _getPaymentSources() {
|
|
|
14753
15148
|
];
|
|
14754
15149
|
case 3:
|
|
14755
15150
|
error2 = _state.sent();
|
|
14756
|
-
|
|
15151
|
+
logInfo("[ERROR] Failed to load Payment Sources", {
|
|
14757
15152
|
error: error2,
|
|
14758
15153
|
externalAccountParams: externalAccountParams,
|
|
14759
15154
|
interactor: "getPaymentSources"
|
|
@@ -14827,7 +15222,7 @@ function _loadEnabledComponentsByShortCode() {
|
|
|
14827
15222
|
];
|
|
14828
15223
|
case 4:
|
|
14829
15224
|
error2 = _state.sent();
|
|
14830
|
-
|
|
15225
|
+
logInfo("[ERROR] Error loading enabled components", {
|
|
14831
15226
|
error: error2,
|
|
14832
15227
|
interactor: "loadEnabledComponentsByShortCode"
|
|
14833
15228
|
});
|
|
@@ -14860,7 +15255,7 @@ function isComponentEnabled(componentName) {
|
|
|
14860
15255
|
});
|
|
14861
15256
|
return isEnabled;
|
|
14862
15257
|
} catch (error2) {
|
|
14863
|
-
|
|
15258
|
+
logInfo("[ERROR] Unable to fetch enabled components from Registry", {
|
|
14864
15259
|
error: error2,
|
|
14865
15260
|
componentName: componentName,
|
|
14866
15261
|
interactor: "isComponentEnabled"
|
|
@@ -15010,12 +15405,12 @@ var _RestComponentsRepository = /*#__PURE__*/ function() {
|
|
|
15010
15405
|
componentCount: _optionalChain([
|
|
15011
15406
|
data,
|
|
15012
15407
|
'access',
|
|
15013
|
-
function(
|
|
15014
|
-
return
|
|
15408
|
+
function(_56) {
|
|
15409
|
+
return _56.components;
|
|
15015
15410
|
},
|
|
15016
15411
|
'optionalAccess',
|
|
15017
|
-
function(
|
|
15018
|
-
return
|
|
15412
|
+
function(_57) {
|
|
15413
|
+
return _57.length;
|
|
15019
15414
|
}
|
|
15020
15415
|
]) || 0,
|
|
15021
15416
|
adapter: "RestComponentsRepository"
|
|
@@ -15026,7 +15421,7 @@ var _RestComponentsRepository = /*#__PURE__*/ function() {
|
|
|
15026
15421
|
];
|
|
15027
15422
|
case 3:
|
|
15028
15423
|
error2 = _state.sent();
|
|
15029
|
-
|
|
15424
|
+
logInfo("[ERROR] Unable to fetch enabled components", {
|
|
15030
15425
|
error: error2,
|
|
15031
15426
|
adapter: "RestComponentsRepository"
|
|
15032
15427
|
});
|
|
@@ -15122,7 +15517,7 @@ function _startDispute() {
|
|
|
15122
15517
|
];
|
|
15123
15518
|
case 3:
|
|
15124
15519
|
error2 = _state.sent();
|
|
15125
|
-
|
|
15520
|
+
logInfo("[ERROR] Unable to start file dispute form", {
|
|
15126
15521
|
error: error2,
|
|
15127
15522
|
transactionToken: transactionToken,
|
|
15128
15523
|
interactor: "startDispute"
|
|
@@ -15180,7 +15575,7 @@ function _submitAnswerForDisputeQuestion() {
|
|
|
15180
15575
|
];
|
|
15181
15576
|
case 3:
|
|
15182
15577
|
error2 = _state.sent();
|
|
15183
|
-
|
|
15578
|
+
logInfo("[ERROR] Failed to submit answer for dispute question", {
|
|
15184
15579
|
error: error2,
|
|
15185
15580
|
disputeId: disputeId,
|
|
15186
15581
|
stepId: stepId,
|
|
@@ -15238,7 +15633,7 @@ function _getAllStepsOfDispute() {
|
|
|
15238
15633
|
];
|
|
15239
15634
|
case 3:
|
|
15240
15635
|
error2 = _state.sent();
|
|
15241
|
-
|
|
15636
|
+
logInfo("[ERROR] Failed to get all steps of dispute", {
|
|
15242
15637
|
error: error2,
|
|
15243
15638
|
disputeId: disputeId,
|
|
15244
15639
|
interactor: "getAllStepsOfDispute"
|
|
@@ -15296,7 +15691,7 @@ function _getStepOfDisputeByStepId() {
|
|
|
15296
15691
|
];
|
|
15297
15692
|
case 3:
|
|
15298
15693
|
error2 = _state.sent();
|
|
15299
|
-
|
|
15694
|
+
logInfo("[ERROR] Failed to get step of dispute by step ID", {
|
|
15300
15695
|
error: error2,
|
|
15301
15696
|
disputeId: disputeId,
|
|
15302
15697
|
stepId: stepId,
|
|
@@ -15355,7 +15750,7 @@ function _submitDispute() {
|
|
|
15355
15750
|
];
|
|
15356
15751
|
case 3:
|
|
15357
15752
|
error2 = _state.sent();
|
|
15358
|
-
|
|
15753
|
+
logInfo("[ERROR] Failed to submit dispute", {
|
|
15359
15754
|
error: error2,
|
|
15360
15755
|
disputeId: disputeId,
|
|
15361
15756
|
submit: payload.submit,
|
|
@@ -15373,10 +15768,10 @@ function _submitDispute() {
|
|
|
15373
15768
|
}
|
|
15374
15769
|
__name(submitDispute, "submitDispute");
|
|
15375
15770
|
// src/disputes/adapters/rest/constants.ts
|
|
15376
|
-
var DISPUTE_UPLOAD_DOCUMENT_ERROR = "
|
|
15377
|
-
var DISPUTE_DELETE_DOCUMENT_ERROR = "
|
|
15378
|
-
var DISPUTE_RETRIEVE_DOCUMENTS_ERROR = "
|
|
15379
|
-
var DISPUTE_DOWNLOAD_DOCUMENT_ERROR = "
|
|
15771
|
+
var DISPUTE_UPLOAD_DOCUMENT_ERROR = "Failed to upload document for dispute";
|
|
15772
|
+
var DISPUTE_DELETE_DOCUMENT_ERROR = "Failed to delete document for dispute";
|
|
15773
|
+
var DISPUTE_RETRIEVE_DOCUMENTS_ERROR = "Failed to retrieve document for dispute";
|
|
15774
|
+
var DISPUTE_DOWNLOAD_DOCUMENT_ERROR = "Failed to download document for dispute";
|
|
15380
15775
|
function uploadDocumentForDispute(disputeId, file, type, name, stepId, questionId) {
|
|
15381
15776
|
return _uploadDocumentForDispute.apply(this, arguments);
|
|
15382
15777
|
}
|
|
@@ -15426,7 +15821,7 @@ function _uploadDocumentForDispute() {
|
|
|
15426
15821
|
];
|
|
15427
15822
|
case 3:
|
|
15428
15823
|
error2 = _state.sent();
|
|
15429
|
-
|
|
15824
|
+
logInfo("[ERROR] " + DISPUTE_UPLOAD_DOCUMENT_ERROR, {
|
|
15430
15825
|
error: error2,
|
|
15431
15826
|
disputeId: disputeId,
|
|
15432
15827
|
fileName: file.name,
|
|
@@ -15489,7 +15884,7 @@ function _deleteDocumentForDispute() {
|
|
|
15489
15884
|
];
|
|
15490
15885
|
case 3:
|
|
15491
15886
|
error2 = _state.sent();
|
|
15492
|
-
|
|
15887
|
+
logInfo("[ERROR] " + DISPUTE_DELETE_DOCUMENT_ERROR, {
|
|
15493
15888
|
error: error2,
|
|
15494
15889
|
disputeId: disputeId,
|
|
15495
15890
|
documentId: documentId,
|
|
@@ -15541,16 +15936,16 @@ function _retrieveDocumentForDispute() {
|
|
|
15541
15936
|
documentCount: _optionalChain([
|
|
15542
15937
|
result,
|
|
15543
15938
|
'access',
|
|
15544
|
-
function(
|
|
15545
|
-
return
|
|
15939
|
+
function(_58) {
|
|
15940
|
+
return _58.data;
|
|
15546
15941
|
},
|
|
15547
15942
|
'optionalAccess',
|
|
15548
|
-
function(
|
|
15549
|
-
return
|
|
15943
|
+
function(_59) {
|
|
15944
|
+
return _59.documents;
|
|
15550
15945
|
},
|
|
15551
15946
|
'optionalAccess',
|
|
15552
|
-
function(
|
|
15553
|
-
return
|
|
15947
|
+
function(_60) {
|
|
15948
|
+
return _60.length;
|
|
15554
15949
|
}
|
|
15555
15950
|
]) || 0,
|
|
15556
15951
|
interactor: "retrieveDocumentForDispute"
|
|
@@ -15561,7 +15956,7 @@ function _retrieveDocumentForDispute() {
|
|
|
15561
15956
|
];
|
|
15562
15957
|
case 3:
|
|
15563
15958
|
error2 = _state.sent();
|
|
15564
|
-
|
|
15959
|
+
logInfo("[ERROR] " + DISPUTE_RETRIEVE_DOCUMENTS_ERROR, {
|
|
15565
15960
|
error: error2,
|
|
15566
15961
|
disputeId: disputeId,
|
|
15567
15962
|
interactor: "retrieveDocumentForDispute"
|
|
@@ -15619,7 +16014,7 @@ function _downloadDocumentForDispute() {
|
|
|
15619
16014
|
];
|
|
15620
16015
|
case 3:
|
|
15621
16016
|
error2 = _state.sent();
|
|
15622
|
-
|
|
16017
|
+
logInfo("[ERROR] " + DISPUTE_DOWNLOAD_DOCUMENT_ERROR, {
|
|
15623
16018
|
error: error2,
|
|
15624
16019
|
disputeId: disputeId,
|
|
15625
16020
|
documentId: documentId,
|
|
@@ -16295,7 +16690,7 @@ var _RestDisputeRepository = /*#__PURE__*/ function() {
|
|
|
16295
16690
|
];
|
|
16296
16691
|
case 3:
|
|
16297
16692
|
error2 = _state.sent();
|
|
16298
|
-
|
|
16693
|
+
logInfo("[ERROR] Unable to start dispute", {
|
|
16299
16694
|
error: error2,
|
|
16300
16695
|
transactionToken: transactionToken,
|
|
16301
16696
|
adapter: "RestDisputeRepository"
|
|
@@ -16355,7 +16750,7 @@ var _RestDisputeRepository = /*#__PURE__*/ function() {
|
|
|
16355
16750
|
];
|
|
16356
16751
|
case 3:
|
|
16357
16752
|
error2 = _state.sent();
|
|
16358
|
-
|
|
16753
|
+
logInfo("[ERROR] Unable to submit answers", {
|
|
16359
16754
|
error: error2,
|
|
16360
16755
|
disputeId: disputeId,
|
|
16361
16756
|
stepId: stepId,
|
|
@@ -16406,12 +16801,12 @@ var _RestDisputeRepository = /*#__PURE__*/ function() {
|
|
|
16406
16801
|
stepCount: _optionalChain([
|
|
16407
16802
|
result,
|
|
16408
16803
|
'access',
|
|
16409
|
-
function(
|
|
16410
|
-
return
|
|
16804
|
+
function(_61) {
|
|
16805
|
+
return _61.steps;
|
|
16411
16806
|
},
|
|
16412
16807
|
'optionalAccess',
|
|
16413
|
-
function(
|
|
16414
|
-
return
|
|
16808
|
+
function(_62) {
|
|
16809
|
+
return _62.length;
|
|
16415
16810
|
}
|
|
16416
16811
|
]),
|
|
16417
16812
|
adapter: "RestDisputeRepository"
|
|
@@ -16422,7 +16817,7 @@ var _RestDisputeRepository = /*#__PURE__*/ function() {
|
|
|
16422
16817
|
];
|
|
16423
16818
|
case 3:
|
|
16424
16819
|
error2 = _state.sent();
|
|
16425
|
-
|
|
16820
|
+
logInfo("[ERROR] Unable to fetch steps of dispute", {
|
|
16426
16821
|
error: error2,
|
|
16427
16822
|
disputeId: disputeId,
|
|
16428
16823
|
adapter: "RestDisputeRepository"
|
|
@@ -16479,7 +16874,7 @@ var _RestDisputeRepository = /*#__PURE__*/ function() {
|
|
|
16479
16874
|
];
|
|
16480
16875
|
case 3:
|
|
16481
16876
|
error2 = _state.sent();
|
|
16482
|
-
|
|
16877
|
+
logInfo("[ERROR] Unable to fetch step of dispute", {
|
|
16483
16878
|
error: error2,
|
|
16484
16879
|
disputeId: disputeId,
|
|
16485
16880
|
stepId: stepId,
|
|
@@ -16540,7 +16935,7 @@ var _RestDisputeRepository = /*#__PURE__*/ function() {
|
|
|
16540
16935
|
];
|
|
16541
16936
|
case 3:
|
|
16542
16937
|
error2 = _state.sent();
|
|
16543
|
-
|
|
16938
|
+
logInfo("[ERROR] Unable to submit dispute", {
|
|
16544
16939
|
error: error2,
|
|
16545
16940
|
disputeId: disputeId,
|
|
16546
16941
|
submit: payload.submit,
|
|
@@ -16619,7 +17014,7 @@ var _RestDisputeRepository = /*#__PURE__*/ function() {
|
|
|
16619
17014
|
];
|
|
16620
17015
|
case 3:
|
|
16621
17016
|
error2 = _state.sent();
|
|
16622
|
-
|
|
17017
|
+
logInfo("[ERROR] " + DISPUTE_UPLOAD_DOCUMENT_ERROR, {
|
|
16623
17018
|
error: error2,
|
|
16624
17019
|
disputeId: disputeId,
|
|
16625
17020
|
fileName: file.name,
|
|
@@ -16681,7 +17076,7 @@ var _RestDisputeRepository = /*#__PURE__*/ function() {
|
|
|
16681
17076
|
];
|
|
16682
17077
|
case 3:
|
|
16683
17078
|
error2 = _state.sent();
|
|
16684
|
-
|
|
17079
|
+
logInfo("[ERROR] " + DISPUTE_DELETE_DOCUMENT_ERROR, {
|
|
16685
17080
|
error: error2,
|
|
16686
17081
|
disputeId: disputeId,
|
|
16687
17082
|
documentId: documentId,
|
|
@@ -16732,16 +17127,16 @@ var _RestDisputeRepository = /*#__PURE__*/ function() {
|
|
|
16732
17127
|
documentCount: _optionalChain([
|
|
16733
17128
|
result,
|
|
16734
17129
|
'access',
|
|
16735
|
-
function(
|
|
16736
|
-
return
|
|
17130
|
+
function(_63) {
|
|
17131
|
+
return _63.data;
|
|
16737
17132
|
},
|
|
16738
17133
|
'optionalAccess',
|
|
16739
|
-
function(
|
|
16740
|
-
return
|
|
17134
|
+
function(_64) {
|
|
17135
|
+
return _64.documents;
|
|
16741
17136
|
},
|
|
16742
17137
|
'optionalAccess',
|
|
16743
|
-
function(
|
|
16744
|
-
return
|
|
17138
|
+
function(_65) {
|
|
17139
|
+
return _65.length;
|
|
16745
17140
|
}
|
|
16746
17141
|
]),
|
|
16747
17142
|
adapter: "RestDisputeRepository"
|
|
@@ -16752,7 +17147,7 @@ var _RestDisputeRepository = /*#__PURE__*/ function() {
|
|
|
16752
17147
|
];
|
|
16753
17148
|
case 3:
|
|
16754
17149
|
error2 = _state.sent();
|
|
16755
|
-
|
|
17150
|
+
logInfo("[ERROR] " + DISPUTE_RETRIEVE_DOCUMENTS_ERROR, {
|
|
16756
17151
|
error: error2,
|
|
16757
17152
|
disputeId: disputeId,
|
|
16758
17153
|
adapter: "RestDisputeRepository"
|
|
@@ -16808,7 +17203,7 @@ var _RestDisputeRepository = /*#__PURE__*/ function() {
|
|
|
16808
17203
|
];
|
|
16809
17204
|
case 3:
|
|
16810
17205
|
error2 = _state.sent();
|
|
16811
|
-
|
|
17206
|
+
logInfo("[ERROR] " + DISPUTE_DOWNLOAD_DOCUMENT_ERROR, {
|
|
16812
17207
|
error: error2,
|
|
16813
17208
|
disputeId: disputeId,
|
|
16814
17209
|
documentId: documentId,
|
|
@@ -16906,65 +17301,65 @@ var mswDisputesHandlers = [
|
|
|
16906
17301
|
var initalQnAns = _optionalChain([
|
|
16907
17302
|
CUR_STEP1_RESPONSE,
|
|
16908
17303
|
'access',
|
|
16909
|
-
function(
|
|
16910
|
-
return
|
|
17304
|
+
function(_66) {
|
|
17305
|
+
return _66.defaultValues;
|
|
16911
17306
|
},
|
|
16912
17307
|
'optionalAccess',
|
|
16913
|
-
function(
|
|
16914
|
-
return
|
|
17308
|
+
function(_67) {
|
|
17309
|
+
return _67["Q-INITIAL-QUESTION"];
|
|
16915
17310
|
}
|
|
16916
17311
|
]);
|
|
16917
17312
|
if (initalQnAns) {
|
|
16918
17313
|
var initalQnReadableAns = _optionalChain([
|
|
16919
17314
|
CUR_STEP1_RESPONSE,
|
|
16920
17315
|
'access',
|
|
16921
|
-
function(
|
|
16922
|
-
return
|
|
17316
|
+
function(_68) {
|
|
17317
|
+
return _68.schema;
|
|
16923
17318
|
},
|
|
16924
17319
|
'optionalAccess',
|
|
16925
|
-
function(
|
|
16926
|
-
return
|
|
17320
|
+
function(_69) {
|
|
17321
|
+
return _69.properties;
|
|
16927
17322
|
},
|
|
16928
17323
|
'optionalAccess',
|
|
16929
|
-
function(
|
|
16930
|
-
return
|
|
17324
|
+
function(_70) {
|
|
17325
|
+
return _70["Q-INITIAL-QUESTION"];
|
|
16931
17326
|
},
|
|
16932
17327
|
'optionalAccess',
|
|
16933
|
-
function(
|
|
16934
|
-
return
|
|
17328
|
+
function(_71) {
|
|
17329
|
+
return _71.oneOf;
|
|
16935
17330
|
},
|
|
16936
17331
|
'optionalAccess',
|
|
16937
|
-
function(
|
|
16938
|
-
return
|
|
17332
|
+
function(_72) {
|
|
17333
|
+
return _72.find;
|
|
16939
17334
|
},
|
|
16940
17335
|
'call',
|
|
16941
|
-
function(
|
|
16942
|
-
return
|
|
17336
|
+
function(_73) {
|
|
17337
|
+
return _73(function(val) {
|
|
16943
17338
|
return val.const === initalQnAns;
|
|
16944
17339
|
});
|
|
16945
17340
|
},
|
|
16946
17341
|
'optionalAccess',
|
|
16947
|
-
function(
|
|
16948
|
-
return
|
|
17342
|
+
function(_74) {
|
|
17343
|
+
return _74.title;
|
|
16949
17344
|
}
|
|
16950
17345
|
]);
|
|
16951
17346
|
var initialQuestion = _optionalChain([
|
|
16952
17347
|
CUR_STEP1_RESPONSE,
|
|
16953
17348
|
'access',
|
|
16954
|
-
function(
|
|
16955
|
-
return
|
|
17349
|
+
function(_75) {
|
|
17350
|
+
return _75.schema;
|
|
16956
17351
|
},
|
|
16957
17352
|
'optionalAccess',
|
|
16958
|
-
function(
|
|
16959
|
-
return
|
|
17353
|
+
function(_76) {
|
|
17354
|
+
return _76.properties;
|
|
16960
17355
|
},
|
|
16961
17356
|
'optionalAccess',
|
|
16962
|
-
function(
|
|
16963
|
-
return
|
|
17357
|
+
function(_77) {
|
|
17358
|
+
return _77["Q-INITIAL-QUESTION"];
|
|
16964
17359
|
},
|
|
16965
17360
|
'optionalAccess',
|
|
16966
|
-
function(
|
|
16967
|
-
return
|
|
17361
|
+
function(_78) {
|
|
17362
|
+
return _78.title;
|
|
16968
17363
|
}
|
|
16969
17364
|
]);
|
|
16970
17365
|
if (initialQuestion && initalQnReadableAns) {
|
|
@@ -16980,64 +17375,64 @@ var mswDisputesHandlers = [
|
|
|
16980
17375
|
var fraudQnAns = _optionalChain([
|
|
16981
17376
|
CUR_FRAUD_STEP_RESPONSE,
|
|
16982
17377
|
'access',
|
|
16983
|
-
function(
|
|
16984
|
-
return
|
|
17378
|
+
function(_79) {
|
|
17379
|
+
return _79.defaultValues;
|
|
16985
17380
|
},
|
|
16986
17381
|
'optionalAccess',
|
|
16987
|
-
function(
|
|
16988
|
-
return
|
|
17382
|
+
function(_80) {
|
|
17383
|
+
return _80["Q-card-with-user"];
|
|
16989
17384
|
}
|
|
16990
17385
|
]);
|
|
16991
17386
|
var fraudQnReadableAns = _optionalChain([
|
|
16992
17387
|
CUR_FRAUD_STEP_RESPONSE,
|
|
16993
17388
|
'access',
|
|
16994
|
-
function(
|
|
16995
|
-
return
|
|
17389
|
+
function(_81) {
|
|
17390
|
+
return _81.schema;
|
|
16996
17391
|
},
|
|
16997
17392
|
'optionalAccess',
|
|
16998
|
-
function(
|
|
16999
|
-
return
|
|
17393
|
+
function(_82) {
|
|
17394
|
+
return _82.properties;
|
|
17000
17395
|
},
|
|
17001
17396
|
'optionalAccess',
|
|
17002
|
-
function(
|
|
17003
|
-
return
|
|
17397
|
+
function(_83) {
|
|
17398
|
+
return _83["Q-card-with-user"];
|
|
17004
17399
|
},
|
|
17005
17400
|
'optionalAccess',
|
|
17006
|
-
function(
|
|
17007
|
-
return
|
|
17401
|
+
function(_84) {
|
|
17402
|
+
return _84.oneOf;
|
|
17008
17403
|
},
|
|
17009
17404
|
'optionalAccess',
|
|
17010
|
-
function(
|
|
17011
|
-
return
|
|
17405
|
+
function(_85) {
|
|
17406
|
+
return _85.find;
|
|
17012
17407
|
},
|
|
17013
17408
|
'call',
|
|
17014
|
-
function(
|
|
17015
|
-
return
|
|
17409
|
+
function(_86) {
|
|
17410
|
+
return _86(function(val) {
|
|
17016
17411
|
return val.const === fraudQnAns;
|
|
17017
17412
|
});
|
|
17018
17413
|
},
|
|
17019
17414
|
'optionalAccess',
|
|
17020
|
-
function(
|
|
17021
|
-
return
|
|
17415
|
+
function(_87) {
|
|
17416
|
+
return _87.title;
|
|
17022
17417
|
}
|
|
17023
17418
|
]);
|
|
17024
17419
|
var fraudQuestion = _optionalChain([
|
|
17025
17420
|
CUR_FRAUD_STEP_RESPONSE,
|
|
17026
17421
|
'access',
|
|
17027
|
-
function(
|
|
17028
|
-
return
|
|
17422
|
+
function(_88) {
|
|
17423
|
+
return _88.schema;
|
|
17029
17424
|
},
|
|
17030
17425
|
'optionalAccess',
|
|
17031
|
-
function(
|
|
17032
|
-
return
|
|
17426
|
+
function(_89) {
|
|
17427
|
+
return _89.properties;
|
|
17033
17428
|
},
|
|
17034
17429
|
'optionalAccess',
|
|
17035
|
-
function(
|
|
17036
|
-
return
|
|
17430
|
+
function(_90) {
|
|
17431
|
+
return _90["Q-card-with-user"];
|
|
17037
17432
|
},
|
|
17038
17433
|
'optionalAccess',
|
|
17039
|
-
function(
|
|
17040
|
-
return
|
|
17434
|
+
function(_91) {
|
|
17435
|
+
return _91.title;
|
|
17041
17436
|
}
|
|
17042
17437
|
]);
|
|
17043
17438
|
if (fraudQnReadableAns && fraudQuestion) answersForReview.push({
|
|
@@ -17050,64 +17445,64 @@ var mswDisputesHandlers = [
|
|
|
17050
17445
|
var recognizedQnAns = _optionalChain([
|
|
17051
17446
|
CUR_RECOGNIZED_TRANSACTION_RESPONSE,
|
|
17052
17447
|
'access',
|
|
17053
|
-
function(
|
|
17054
|
-
return
|
|
17448
|
+
function(_92) {
|
|
17449
|
+
return _92.defaultValues;
|
|
17055
17450
|
},
|
|
17056
17451
|
'optionalAccess',
|
|
17057
|
-
function(
|
|
17058
|
-
return
|
|
17452
|
+
function(_93) {
|
|
17453
|
+
return _93.Q2;
|
|
17059
17454
|
}
|
|
17060
17455
|
]);
|
|
17061
17456
|
var recognizedQnReadableAns = _optionalChain([
|
|
17062
17457
|
CUR_RECOGNIZED_TRANSACTION_RESPONSE,
|
|
17063
17458
|
'access',
|
|
17064
|
-
function(
|
|
17065
|
-
return
|
|
17459
|
+
function(_94) {
|
|
17460
|
+
return _94.schema;
|
|
17066
17461
|
},
|
|
17067
17462
|
'optionalAccess',
|
|
17068
|
-
function(
|
|
17069
|
-
return
|
|
17463
|
+
function(_95) {
|
|
17464
|
+
return _95.properties;
|
|
17070
17465
|
},
|
|
17071
17466
|
'optionalAccess',
|
|
17072
|
-
function(
|
|
17073
|
-
return
|
|
17467
|
+
function(_96) {
|
|
17468
|
+
return _96.Q2;
|
|
17074
17469
|
},
|
|
17075
17470
|
'optionalAccess',
|
|
17076
|
-
function(
|
|
17077
|
-
return
|
|
17471
|
+
function(_97) {
|
|
17472
|
+
return _97.oneOf;
|
|
17078
17473
|
},
|
|
17079
17474
|
'optionalAccess',
|
|
17080
|
-
function(
|
|
17081
|
-
return
|
|
17475
|
+
function(_98) {
|
|
17476
|
+
return _98.find;
|
|
17082
17477
|
},
|
|
17083
17478
|
'call',
|
|
17084
|
-
function(
|
|
17085
|
-
return
|
|
17479
|
+
function(_99) {
|
|
17480
|
+
return _99(function(val) {
|
|
17086
17481
|
return val.const === recognizedQnAns;
|
|
17087
17482
|
});
|
|
17088
17483
|
},
|
|
17089
17484
|
'optionalAccess',
|
|
17090
|
-
function(
|
|
17091
|
-
return
|
|
17485
|
+
function(_100) {
|
|
17486
|
+
return _100.title;
|
|
17092
17487
|
}
|
|
17093
17488
|
]);
|
|
17094
17489
|
var recognizedQuestion = _optionalChain([
|
|
17095
17490
|
CUR_RECOGNIZED_TRANSACTION_RESPONSE,
|
|
17096
17491
|
'access',
|
|
17097
|
-
function(
|
|
17098
|
-
return
|
|
17492
|
+
function(_101) {
|
|
17493
|
+
return _101.schema;
|
|
17099
17494
|
},
|
|
17100
17495
|
'optionalAccess',
|
|
17101
|
-
function(
|
|
17102
|
-
return
|
|
17496
|
+
function(_102) {
|
|
17497
|
+
return _102.properties;
|
|
17103
17498
|
},
|
|
17104
17499
|
'optionalAccess',
|
|
17105
|
-
function(
|
|
17106
|
-
return
|
|
17500
|
+
function(_103) {
|
|
17501
|
+
return _103.Q2;
|
|
17107
17502
|
},
|
|
17108
17503
|
'optionalAccess',
|
|
17109
|
-
function(
|
|
17110
|
-
return
|
|
17504
|
+
function(_104) {
|
|
17505
|
+
return _104.title;
|
|
17111
17506
|
}
|
|
17112
17507
|
]);
|
|
17113
17508
|
if (recognizedQnReadableAns && recognizedQuestion) {
|
|
@@ -17123,65 +17518,65 @@ var mswDisputesHandlers = [
|
|
|
17123
17518
|
var amountQnAns = _optionalChain([
|
|
17124
17519
|
CUR_AMOUNT_STEP_RESPONSE,
|
|
17125
17520
|
'access',
|
|
17126
|
-
function(
|
|
17127
|
-
return
|
|
17521
|
+
function(_105) {
|
|
17522
|
+
return _105.defaultValues;
|
|
17128
17523
|
},
|
|
17129
17524
|
'optionalAccess',
|
|
17130
|
-
function(
|
|
17131
|
-
return
|
|
17525
|
+
function(_106) {
|
|
17526
|
+
return _106.Q13;
|
|
17132
17527
|
}
|
|
17133
17528
|
]);
|
|
17134
17529
|
if (amountQnAns) {
|
|
17135
17530
|
var amountQnReadableAns = _optionalChain([
|
|
17136
17531
|
CUR_AMOUNT_STEP_RESPONSE,
|
|
17137
17532
|
'access',
|
|
17138
|
-
function(
|
|
17139
|
-
return
|
|
17533
|
+
function(_107) {
|
|
17534
|
+
return _107.schema;
|
|
17140
17535
|
},
|
|
17141
17536
|
'optionalAccess',
|
|
17142
|
-
function(
|
|
17143
|
-
return
|
|
17537
|
+
function(_108) {
|
|
17538
|
+
return _108.properties;
|
|
17144
17539
|
},
|
|
17145
17540
|
'optionalAccess',
|
|
17146
|
-
function(
|
|
17147
|
-
return
|
|
17541
|
+
function(_109) {
|
|
17542
|
+
return _109.Q13;
|
|
17148
17543
|
},
|
|
17149
17544
|
'optionalAccess',
|
|
17150
|
-
function(
|
|
17151
|
-
return
|
|
17545
|
+
function(_110) {
|
|
17546
|
+
return _110.oneOf;
|
|
17152
17547
|
},
|
|
17153
17548
|
'optionalAccess',
|
|
17154
|
-
function(
|
|
17155
|
-
return
|
|
17549
|
+
function(_111) {
|
|
17550
|
+
return _111.find;
|
|
17156
17551
|
},
|
|
17157
17552
|
'call',
|
|
17158
|
-
function(
|
|
17159
|
-
return
|
|
17553
|
+
function(_112) {
|
|
17554
|
+
return _112(function(val) {
|
|
17160
17555
|
return val.const === amountQnAns;
|
|
17161
17556
|
});
|
|
17162
17557
|
},
|
|
17163
17558
|
'optionalAccess',
|
|
17164
|
-
function(
|
|
17165
|
-
return
|
|
17559
|
+
function(_113) {
|
|
17560
|
+
return _113.title;
|
|
17166
17561
|
}
|
|
17167
17562
|
]);
|
|
17168
17563
|
var amountQuestion = _optionalChain([
|
|
17169
17564
|
CUR_AMOUNT_STEP_RESPONSE,
|
|
17170
17565
|
'access',
|
|
17171
|
-
function(
|
|
17172
|
-
return
|
|
17566
|
+
function(_114) {
|
|
17567
|
+
return _114.schema;
|
|
17173
17568
|
},
|
|
17174
17569
|
'optionalAccess',
|
|
17175
|
-
function(
|
|
17176
|
-
return
|
|
17570
|
+
function(_115) {
|
|
17571
|
+
return _115.properties;
|
|
17177
17572
|
},
|
|
17178
17573
|
'optionalAccess',
|
|
17179
|
-
function(
|
|
17180
|
-
return
|
|
17574
|
+
function(_116) {
|
|
17575
|
+
return _116.Q13;
|
|
17181
17576
|
},
|
|
17182
17577
|
'optionalAccess',
|
|
17183
|
-
function(
|
|
17184
|
-
return
|
|
17578
|
+
function(_117) {
|
|
17579
|
+
return _117.title;
|
|
17185
17580
|
}
|
|
17186
17581
|
]);
|
|
17187
17582
|
if (amountQnReadableAns && amountQuestion) {
|
|
@@ -17194,48 +17589,48 @@ var mswDisputesHandlers = [
|
|
|
17194
17589
|
if (_optionalChain([
|
|
17195
17590
|
CUR_AMOUNT_STEP_RESPONSE,
|
|
17196
17591
|
'access',
|
|
17197
|
-
function(
|
|
17198
|
-
return
|
|
17592
|
+
function(_118) {
|
|
17593
|
+
return _118.defaultValues;
|
|
17199
17594
|
},
|
|
17200
17595
|
'optionalAccess',
|
|
17201
|
-
function(
|
|
17202
|
-
return
|
|
17596
|
+
function(_119) {
|
|
17597
|
+
return _119.Q100;
|
|
17203
17598
|
}
|
|
17204
17599
|
])) {
|
|
17205
17600
|
answersForReview.push({
|
|
17206
17601
|
question: _optionalChain([
|
|
17207
17602
|
CUR_AMOUNT_STEP_RESPONSE,
|
|
17208
17603
|
'access',
|
|
17209
|
-
function(
|
|
17210
|
-
return
|
|
17604
|
+
function(_120) {
|
|
17605
|
+
return _120.schema;
|
|
17211
17606
|
},
|
|
17212
17607
|
'optionalAccess',
|
|
17213
|
-
function(
|
|
17214
|
-
return
|
|
17608
|
+
function(_121) {
|
|
17609
|
+
return _121.dependencies;
|
|
17215
17610
|
},
|
|
17216
17611
|
'optionalAccess',
|
|
17217
|
-
function(
|
|
17218
|
-
return
|
|
17612
|
+
function(_122) {
|
|
17613
|
+
return _122.Q13;
|
|
17219
17614
|
},
|
|
17220
17615
|
'optionalAccess',
|
|
17221
|
-
function(
|
|
17222
|
-
return
|
|
17616
|
+
function(_123) {
|
|
17617
|
+
return _123.oneOf;
|
|
17223
17618
|
},
|
|
17224
17619
|
'optionalAccess',
|
|
17225
|
-
function(
|
|
17226
|
-
return
|
|
17620
|
+
function(_124) {
|
|
17621
|
+
return _124[0];
|
|
17227
17622
|
},
|
|
17228
17623
|
'optionalAccess',
|
|
17229
|
-
function(
|
|
17230
|
-
return
|
|
17624
|
+
function(_125) {
|
|
17625
|
+
return _125.properties;
|
|
17231
17626
|
},
|
|
17232
17627
|
'optionalAccess',
|
|
17233
|
-
function(
|
|
17234
|
-
return
|
|
17628
|
+
function(_126) {
|
|
17629
|
+
return _126.Q100;
|
|
17235
17630
|
},
|
|
17236
17631
|
'optionalAccess',
|
|
17237
|
-
function(
|
|
17238
|
-
return
|
|
17632
|
+
function(_127) {
|
|
17633
|
+
return _127.title;
|
|
17239
17634
|
}
|
|
17240
17635
|
]),
|
|
17241
17636
|
answers: [
|
|
@@ -17246,48 +17641,48 @@ var mswDisputesHandlers = [
|
|
|
17246
17641
|
if (_optionalChain([
|
|
17247
17642
|
CUR_AMOUNT_STEP_RESPONSE,
|
|
17248
17643
|
'access',
|
|
17249
|
-
function(
|
|
17250
|
-
return
|
|
17644
|
+
function(_128) {
|
|
17645
|
+
return _128.defaultValues;
|
|
17251
17646
|
},
|
|
17252
17647
|
'optionalAccess',
|
|
17253
|
-
function(
|
|
17254
|
-
return
|
|
17648
|
+
function(_129) {
|
|
17649
|
+
return _129.Q14;
|
|
17255
17650
|
}
|
|
17256
17651
|
])) {
|
|
17257
17652
|
answersForReview.push({
|
|
17258
17653
|
question: _optionalChain([
|
|
17259
17654
|
CUR_AMOUNT_STEP_RESPONSE,
|
|
17260
17655
|
'access',
|
|
17261
|
-
function(
|
|
17262
|
-
return
|
|
17656
|
+
function(_130) {
|
|
17657
|
+
return _130.schema;
|
|
17263
17658
|
},
|
|
17264
17659
|
'optionalAccess',
|
|
17265
|
-
function(
|
|
17266
|
-
return
|
|
17660
|
+
function(_131) {
|
|
17661
|
+
return _131.dependencies;
|
|
17267
17662
|
},
|
|
17268
17663
|
'optionalAccess',
|
|
17269
|
-
function(
|
|
17270
|
-
return
|
|
17664
|
+
function(_132) {
|
|
17665
|
+
return _132.Q13;
|
|
17271
17666
|
},
|
|
17272
17667
|
'optionalAccess',
|
|
17273
|
-
function(
|
|
17274
|
-
return
|
|
17668
|
+
function(_133) {
|
|
17669
|
+
return _133.oneOf;
|
|
17275
17670
|
},
|
|
17276
17671
|
'optionalAccess',
|
|
17277
|
-
function(
|
|
17278
|
-
return
|
|
17672
|
+
function(_134) {
|
|
17673
|
+
return _134[1];
|
|
17279
17674
|
},
|
|
17280
17675
|
'optionalAccess',
|
|
17281
|
-
function(
|
|
17282
|
-
return
|
|
17676
|
+
function(_135) {
|
|
17677
|
+
return _135.properties;
|
|
17283
17678
|
},
|
|
17284
17679
|
'optionalAccess',
|
|
17285
|
-
function(
|
|
17286
|
-
return
|
|
17680
|
+
function(_136) {
|
|
17681
|
+
return _136.Q14;
|
|
17287
17682
|
},
|
|
17288
17683
|
'optionalAccess',
|
|
17289
|
-
function(
|
|
17290
|
-
return
|
|
17684
|
+
function(_137) {
|
|
17685
|
+
return _137.title;
|
|
17291
17686
|
}
|
|
17292
17687
|
]),
|
|
17293
17688
|
answers: [
|
|
@@ -17298,48 +17693,48 @@ var mswDisputesHandlers = [
|
|
|
17298
17693
|
if (_optionalChain([
|
|
17299
17694
|
CUR_AMOUNT_STEP_RESPONSE,
|
|
17300
17695
|
'access',
|
|
17301
|
-
function(
|
|
17302
|
-
return
|
|
17696
|
+
function(_138) {
|
|
17697
|
+
return _138.defaultValues;
|
|
17303
17698
|
},
|
|
17304
17699
|
'optionalAccess',
|
|
17305
|
-
function(
|
|
17306
|
-
return
|
|
17700
|
+
function(_139) {
|
|
17701
|
+
return _139.Q15;
|
|
17307
17702
|
}
|
|
17308
17703
|
])) {
|
|
17309
17704
|
answersForReview.push({
|
|
17310
17705
|
question: _optionalChain([
|
|
17311
17706
|
CUR_AMOUNT_STEP_RESPONSE,
|
|
17312
17707
|
'access',
|
|
17313
|
-
function(
|
|
17314
|
-
return
|
|
17708
|
+
function(_140) {
|
|
17709
|
+
return _140.schema;
|
|
17315
17710
|
},
|
|
17316
17711
|
'optionalAccess',
|
|
17317
|
-
function(
|
|
17318
|
-
return
|
|
17712
|
+
function(_141) {
|
|
17713
|
+
return _141.dependencies;
|
|
17319
17714
|
},
|
|
17320
17715
|
'optionalAccess',
|
|
17321
|
-
function(
|
|
17322
|
-
return
|
|
17716
|
+
function(_142) {
|
|
17717
|
+
return _142.Q13;
|
|
17323
17718
|
},
|
|
17324
17719
|
'optionalAccess',
|
|
17325
|
-
function(
|
|
17326
|
-
return
|
|
17720
|
+
function(_143) {
|
|
17721
|
+
return _143.oneOf;
|
|
17327
17722
|
},
|
|
17328
17723
|
'optionalAccess',
|
|
17329
|
-
function(
|
|
17330
|
-
return
|
|
17724
|
+
function(_144) {
|
|
17725
|
+
return _144[1];
|
|
17331
17726
|
},
|
|
17332
17727
|
'optionalAccess',
|
|
17333
|
-
function(
|
|
17334
|
-
return
|
|
17728
|
+
function(_145) {
|
|
17729
|
+
return _145.properties;
|
|
17335
17730
|
},
|
|
17336
17731
|
'optionalAccess',
|
|
17337
|
-
function(
|
|
17338
|
-
return
|
|
17732
|
+
function(_146) {
|
|
17733
|
+
return _146.Q15;
|
|
17339
17734
|
},
|
|
17340
17735
|
'optionalAccess',
|
|
17341
|
-
function(
|
|
17342
|
-
return
|
|
17736
|
+
function(_147) {
|
|
17737
|
+
return _147.title;
|
|
17343
17738
|
}
|
|
17344
17739
|
]),
|
|
17345
17740
|
answers: [
|
|
@@ -17491,12 +17886,12 @@ var mswDisputesHandlers = [
|
|
|
17491
17886
|
var initialQuestionAnswer = _optionalChain([
|
|
17492
17887
|
CUR_STEP1_RESPONSE,
|
|
17493
17888
|
'access',
|
|
17494
|
-
function(
|
|
17495
|
-
return
|
|
17889
|
+
function(_148) {
|
|
17890
|
+
return _148.defaultValues;
|
|
17496
17891
|
},
|
|
17497
17892
|
'optionalAccess',
|
|
17498
|
-
function(
|
|
17499
|
-
return
|
|
17893
|
+
function(_149) {
|
|
17894
|
+
return _149["Q-INITIAL-QUESTION"];
|
|
17500
17895
|
}
|
|
17501
17896
|
]);
|
|
17502
17897
|
switch(initialQuestionAnswer){
|
|
@@ -17640,7 +18035,7 @@ function featureFlagIsEnabled(flagName) {
|
|
|
17640
18035
|
});
|
|
17641
18036
|
return defaultValue;
|
|
17642
18037
|
} catch (error2) {
|
|
17643
|
-
|
|
18038
|
+
logInfo("[ERROR] Error checking feature flag", {
|
|
17644
18039
|
error: error2,
|
|
17645
18040
|
flagName: flagName,
|
|
17646
18041
|
interactor: "featureFlagIsEnabled"
|
|
@@ -17687,7 +18082,7 @@ function _loadFeatureFlags() {
|
|
|
17687
18082
|
];
|
|
17688
18083
|
case 3:
|
|
17689
18084
|
error2 = _state.sent();
|
|
17690
|
-
|
|
18085
|
+
logInfo("[ERROR] Failed to load feature flags", {
|
|
17691
18086
|
error: error2,
|
|
17692
18087
|
interactor: "loadFeatureFlags"
|
|
17693
18088
|
});
|
|
@@ -17752,6 +18147,7 @@ var _MockFeatureFlagService = /*#__PURE__*/ function(iFeatureFlagService) {
|
|
|
17752
18147
|
_class_call_check(this, _MockFeatureFlagService);
|
|
17753
18148
|
var _this;
|
|
17754
18149
|
_this = _super.call(this);
|
|
18150
|
+
__publicField(_assert_this_initialized(_this), "shouldThrowError", false);
|
|
17755
18151
|
__publicField(_assert_this_initialized(_this), "flagData", {});
|
|
17756
18152
|
return _this;
|
|
17757
18153
|
}
|
|
@@ -17783,8 +18179,12 @@ var _MockFeatureFlagService = /*#__PURE__*/ function(iFeatureFlagService) {
|
|
|
17783
18179
|
{
|
|
17784
18180
|
key: "loadFlagsData",
|
|
17785
18181
|
value: function loadFlagsData() {
|
|
18182
|
+
var _this = this;
|
|
17786
18183
|
return _async_to_generator(function() {
|
|
17787
18184
|
return _ts_generator(this, function(_state) {
|
|
18185
|
+
if (_this.shouldThrowError) {
|
|
18186
|
+
throw new Error("Mock error for testing");
|
|
18187
|
+
}
|
|
17788
18188
|
return [
|
|
17789
18189
|
2
|
|
17790
18190
|
];
|
|
@@ -18265,7 +18665,7 @@ function _getUser() {
|
|
|
18265
18665
|
];
|
|
18266
18666
|
case 3:
|
|
18267
18667
|
error2 = _state.sent();
|
|
18268
|
-
|
|
18668
|
+
logInfo("[ERROR] Unable to get user", {
|
|
18269
18669
|
error: error2,
|
|
18270
18670
|
interactor: "getUser"
|
|
18271
18671
|
});
|
|
@@ -18320,7 +18720,7 @@ function _postCreateUser() {
|
|
|
18320
18720
|
];
|
|
18321
18721
|
case 3:
|
|
18322
18722
|
error2 = _state.sent();
|
|
18323
|
-
|
|
18723
|
+
logInfo("[ERROR] Failed to create user", {
|
|
18324
18724
|
error: error2,
|
|
18325
18725
|
email: createUserAttributes.email,
|
|
18326
18726
|
interactor: "postCreateUser"
|
|
@@ -18376,7 +18776,7 @@ function _putUpdateUser() {
|
|
|
18376
18776
|
];
|
|
18377
18777
|
case 3:
|
|
18378
18778
|
error2 = _state.sent();
|
|
18379
|
-
|
|
18779
|
+
logInfo("[ERROR] Unable to update user", {
|
|
18380
18780
|
error: error2,
|
|
18381
18781
|
email: updateUserAttributes.email,
|
|
18382
18782
|
interactor: "putUpdateUser"
|
|
@@ -18442,11 +18842,15 @@ var _MockiUsersRepository = /*#__PURE__*/ function() {
|
|
|
18442
18842
|
_class_call_check(this, _MockiUsersRepository);
|
|
18443
18843
|
__publicField(this, "createUserResponse");
|
|
18444
18844
|
__publicField(this, "createUserError");
|
|
18845
|
+
__publicField(this, "shouldThrowError", false);
|
|
18445
18846
|
}
|
|
18446
18847
|
_create_class(_MockiUsersRepository, [
|
|
18447
18848
|
{
|
|
18448
18849
|
key: "getUser",
|
|
18449
18850
|
value: function getUser() {
|
|
18851
|
+
if (this.shouldThrowError) {
|
|
18852
|
+
throw new Error("Mock error for testing");
|
|
18853
|
+
}
|
|
18450
18854
|
var convertedUserData = convertObjKeysToCamelCase(VALID_CUI_USER_RESPONSE);
|
|
18451
18855
|
return Promise.resolve(new UserEntity(convertedUserData));
|
|
18452
18856
|
}
|
|
@@ -18469,6 +18873,9 @@ var _MockiUsersRepository = /*#__PURE__*/ function() {
|
|
|
18469
18873
|
{
|
|
18470
18874
|
key: "putUpdateUser",
|
|
18471
18875
|
value: function putUpdateUser(mockUpdateUserRequest) {
|
|
18876
|
+
if (this.shouldThrowError) {
|
|
18877
|
+
throw new Error("Mock error for testing");
|
|
18878
|
+
}
|
|
18472
18879
|
return Promise.resolve(getMockUpdatedUserRequestToCreateResponse(mockUpdateUserRequest));
|
|
18473
18880
|
}
|
|
18474
18881
|
},
|
|
@@ -18669,7 +19076,7 @@ var _RestUsersRepository = /*#__PURE__*/ function() {
|
|
|
18669
19076
|
case 2:
|
|
18670
19077
|
data = _state.sent();
|
|
18671
19078
|
if (!data.user) {
|
|
18672
|
-
|
|
19079
|
+
logInfo("[ERROR] User data not found in response", {
|
|
18673
19080
|
adapter: "RestUsersRepository"
|
|
18674
19081
|
});
|
|
18675
19082
|
throw new MqSDKError(FETCH_USER_ERROR);
|
|
@@ -18686,7 +19093,7 @@ var _RestUsersRepository = /*#__PURE__*/ function() {
|
|
|
18686
19093
|
];
|
|
18687
19094
|
case 3:
|
|
18688
19095
|
err = _state.sent();
|
|
18689
|
-
|
|
19096
|
+
logInfo("[ERROR] " + FETCH_USER_ERROR, {
|
|
18690
19097
|
err: err,
|
|
18691
19098
|
adapter: "RestUsersRepository"
|
|
18692
19099
|
});
|
|
@@ -18741,7 +19148,7 @@ var _RestUsersRepository = /*#__PURE__*/ function() {
|
|
|
18741
19148
|
];
|
|
18742
19149
|
case 3:
|
|
18743
19150
|
err = _state.sent();
|
|
18744
|
-
|
|
19151
|
+
logInfo("[ERROR] " + CREATE_USER_ERROR, {
|
|
18745
19152
|
err: err,
|
|
18746
19153
|
email: createUserAttributes.email,
|
|
18747
19154
|
adapter: "RestUsersRepository"
|
|
@@ -18797,7 +19204,7 @@ var _RestUsersRepository = /*#__PURE__*/ function() {
|
|
|
18797
19204
|
];
|
|
18798
19205
|
case 3:
|
|
18799
19206
|
err = _state.sent();
|
|
18800
|
-
|
|
19207
|
+
logInfo("[ERROR] " + UPDATE_USER_ERROR, {
|
|
18801
19208
|
err: err,
|
|
18802
19209
|
email: updateUserAttributes.email,
|
|
18803
19210
|
adapter: "RestUsersRepository"
|
|
@@ -18902,7 +19309,7 @@ function _postVerifyKyc() {
|
|
|
18902
19309
|
];
|
|
18903
19310
|
case 3:
|
|
18904
19311
|
error2 = _state.sent();
|
|
18905
|
-
|
|
19312
|
+
logInfo("[ERROR] Failed to verify KYC", {
|
|
18906
19313
|
error: error2,
|
|
18907
19314
|
interactor: "postVerifyKyc"
|
|
18908
19315
|
});
|
|
@@ -18937,11 +19344,21 @@ iKycRepository = exports.iKycRepository = _ts_decorate63([
|
|
|
18937
19344
|
var mswKycHandlers = [
|
|
18938
19345
|
http.post("".concat(mockMode_exports.CUI_API_BASE_URL, "/api/v1/kyc"), function() {
|
|
18939
19346
|
var _ref = _async_to_generator(function(param) {
|
|
18940
|
-
var request, body, errorMap, _obj, ssnErrorMap, errorId;
|
|
19347
|
+
var request, authorization, body, errorMap, _obj, ssnErrorMap, errorId;
|
|
18941
19348
|
return _ts_generator(this, function(_state) {
|
|
18942
19349
|
switch(_state.label){
|
|
18943
19350
|
case 0:
|
|
18944
19351
|
request = param.request;
|
|
19352
|
+
authorization = request.headers.get("authorization");
|
|
19353
|
+
if (authorization === "DPoP ".concat(INVALID_CUI_AUTH_TOKEN)) {
|
|
19354
|
+
return [
|
|
19355
|
+
2,
|
|
19356
|
+
new HttpResponse(null, {
|
|
19357
|
+
status: 401,
|
|
19358
|
+
statusText: "Unauthorized"
|
|
19359
|
+
})
|
|
19360
|
+
];
|
|
19361
|
+
}
|
|
18945
19362
|
return [
|
|
18946
19363
|
4,
|
|
18947
19364
|
request.json()
|
|
@@ -19102,23 +19519,23 @@ var _RestKycRepository = /*#__PURE__*/ function() {
|
|
|
19102
19519
|
if (_optionalChain([
|
|
19103
19520
|
error2,
|
|
19104
19521
|
'optionalAccess',
|
|
19105
|
-
function(
|
|
19106
|
-
return
|
|
19522
|
+
function(_150) {
|
|
19523
|
+
return _150.msg;
|
|
19107
19524
|
}
|
|
19108
19525
|
]) && _optionalChain([
|
|
19109
19526
|
error2,
|
|
19110
19527
|
'optionalAccess',
|
|
19111
|
-
function(
|
|
19112
|
-
return
|
|
19528
|
+
function(_151) {
|
|
19529
|
+
return _151.debug;
|
|
19113
19530
|
}
|
|
19114
19531
|
])) {
|
|
19115
|
-
|
|
19532
|
+
logInfo("[ERROR] KYC verification failed with standardized error", {
|
|
19116
19533
|
error: error2,
|
|
19117
19534
|
adapter: "RestKycRepository"
|
|
19118
19535
|
});
|
|
19119
19536
|
throw err;
|
|
19120
19537
|
}
|
|
19121
|
-
|
|
19538
|
+
logInfo("[ERROR] Unable to verify KYC submission", {
|
|
19122
19539
|
err: err,
|
|
19123
19540
|
adapter: "RestKycRepository"
|
|
19124
19541
|
});
|
|
@@ -19167,15 +19584,15 @@ function _postVerifyKyb() {
|
|
|
19167
19584
|
if (kybVerificationAttributes.locale_code === "INVALID" || !_optionalChain([
|
|
19168
19585
|
kybVerificationAttributes,
|
|
19169
19586
|
'access',
|
|
19170
|
-
function(
|
|
19171
|
-
return
|
|
19587
|
+
function(_152) {
|
|
19588
|
+
return _152.answers;
|
|
19172
19589
|
},
|
|
19173
19590
|
'optionalAccess',
|
|
19174
|
-
function(
|
|
19175
|
-
return
|
|
19591
|
+
function(_153) {
|
|
19592
|
+
return _153.length;
|
|
19176
19593
|
}
|
|
19177
19594
|
])) {
|
|
19178
|
-
|
|
19595
|
+
logInfo("[ERROR] Invalid KYB request - invalid locale or no answers", {
|
|
19179
19596
|
localeCode: kybVerificationAttributes.locale_code,
|
|
19180
19597
|
interactor: "postVerifyKyb"
|
|
19181
19598
|
});
|
|
@@ -19184,16 +19601,16 @@ function _postVerifyKyb() {
|
|
|
19184
19601
|
hasErrorValue = _optionalChain([
|
|
19185
19602
|
kybVerificationAttributes,
|
|
19186
19603
|
'access',
|
|
19187
|
-
function(
|
|
19188
|
-
return
|
|
19604
|
+
function(_154) {
|
|
19605
|
+
return _154.answers;
|
|
19189
19606
|
},
|
|
19190
19607
|
'optionalAccess',
|
|
19191
|
-
function(
|
|
19192
|
-
return
|
|
19608
|
+
function(_155) {
|
|
19609
|
+
return _155.some;
|
|
19193
19610
|
},
|
|
19194
19611
|
'call',
|
|
19195
|
-
function(
|
|
19196
|
-
return
|
|
19612
|
+
function(_156) {
|
|
19613
|
+
return _156(function(answer) {
|
|
19197
19614
|
return [
|
|
19198
19615
|
"222222222",
|
|
19199
19616
|
"444444444",
|
|
@@ -19204,7 +19621,7 @@ function _postVerifyKyb() {
|
|
|
19204
19621
|
}
|
|
19205
19622
|
]);
|
|
19206
19623
|
if (hasErrorValue) {
|
|
19207
|
-
|
|
19624
|
+
logInfo("[ERROR] Invalid KYB data detected", {
|
|
19208
19625
|
interactor: "postVerifyKyb"
|
|
19209
19626
|
});
|
|
19210
19627
|
throw new MqSDKError("Unable to verify KYB submission", new Error("Invalid data"));
|
|
@@ -19234,7 +19651,7 @@ function _postVerifyKyb() {
|
|
|
19234
19651
|
];
|
|
19235
19652
|
case 3:
|
|
19236
19653
|
error2 = _state.sent();
|
|
19237
|
-
|
|
19654
|
+
logInfo("[ERROR] Failed to verify KYB", {
|
|
19238
19655
|
error: error2,
|
|
19239
19656
|
interactor: "postVerifyKyb"
|
|
19240
19657
|
});
|
|
@@ -19289,7 +19706,7 @@ function _initializeOnboarding() {
|
|
|
19289
19706
|
];
|
|
19290
19707
|
case 3:
|
|
19291
19708
|
error2 = _state.sent();
|
|
19292
|
-
|
|
19709
|
+
logInfo("[ERROR] Failed to initialize onboarding", {
|
|
19293
19710
|
error: error2,
|
|
19294
19711
|
localeCode: localeCode,
|
|
19295
19712
|
interactor: "initializeOnboarding"
|
|
@@ -20523,9 +20940,19 @@ var validateWorkflowAnswer = /* @__PURE__ */ __name(function(answer) {
|
|
|
20523
20940
|
var mswKybHandlers = [
|
|
20524
20941
|
http.get("".concat(mockMode_exports.CUI_API_BASE_URL, "/api/v1/kyb/onboarding"), function() {
|
|
20525
20942
|
var _ref = _async_to_generator(function(param) {
|
|
20526
|
-
var request, url, countryCode;
|
|
20943
|
+
var request, authorization, url, countryCode;
|
|
20527
20944
|
return _ts_generator(this, function(_state) {
|
|
20528
20945
|
request = param.request;
|
|
20946
|
+
authorization = request.headers.get("authorization");
|
|
20947
|
+
if (authorization === "DPoP ".concat(INVALID_CUI_AUTH_TOKEN)) {
|
|
20948
|
+
return [
|
|
20949
|
+
2,
|
|
20950
|
+
new HttpResponse(null, {
|
|
20951
|
+
status: 401,
|
|
20952
|
+
statusText: "Unauthorized"
|
|
20953
|
+
})
|
|
20954
|
+
];
|
|
20955
|
+
}
|
|
20529
20956
|
url = new URL(request.url);
|
|
20530
20957
|
countryCode = url.searchParams.get("locale_code");
|
|
20531
20958
|
if (!countryCode) {
|
|
@@ -20546,11 +20973,21 @@ var mswKybHandlers = [
|
|
|
20546
20973
|
}()),
|
|
20547
20974
|
http.post("".concat(mockMode_exports.CUI_API_BASE_URL, "/api/v1/kyb/onboarding"), function() {
|
|
20548
20975
|
var _ref = _async_to_generator(function(param) {
|
|
20549
|
-
var request, body, _iteratorNormalCompletion, _didIteratorError, _iteratorError, _iterator, _step, answer;
|
|
20976
|
+
var request, authorization, body, _iteratorNormalCompletion, _didIteratorError, _iteratorError, _iterator, _step, answer;
|
|
20550
20977
|
return _ts_generator(this, function(_state) {
|
|
20551
20978
|
switch(_state.label){
|
|
20552
20979
|
case 0:
|
|
20553
20980
|
request = param.request;
|
|
20981
|
+
authorization = request.headers.get("authorization");
|
|
20982
|
+
if (authorization === "DPoP ".concat(INVALID_CUI_AUTH_TOKEN)) {
|
|
20983
|
+
return [
|
|
20984
|
+
2,
|
|
20985
|
+
new HttpResponse(null, {
|
|
20986
|
+
status: 401,
|
|
20987
|
+
statusText: "Unauthorized"
|
|
20988
|
+
})
|
|
20989
|
+
];
|
|
20990
|
+
}
|
|
20554
20991
|
return [
|
|
20555
20992
|
4,
|
|
20556
20993
|
request.json()
|
|
@@ -20675,24 +21112,24 @@ var _RestKybRepository = /*#__PURE__*/ function() {
|
|
|
20675
21112
|
if (_optionalChain([
|
|
20676
21113
|
error2,
|
|
20677
21114
|
'optionalAccess',
|
|
20678
|
-
function(
|
|
20679
|
-
return
|
|
21115
|
+
function(_157) {
|
|
21116
|
+
return _157.msg;
|
|
20680
21117
|
}
|
|
20681
21118
|
]) && _optionalChain([
|
|
20682
21119
|
error2,
|
|
20683
21120
|
'optionalAccess',
|
|
20684
|
-
function(
|
|
20685
|
-
return
|
|
21121
|
+
function(_158) {
|
|
21122
|
+
return _158.debug;
|
|
20686
21123
|
}
|
|
20687
21124
|
])) {
|
|
20688
|
-
|
|
21125
|
+
logInfo("[ERROR] KYB onboarding initialization failed with standardized error", {
|
|
20689
21126
|
error: error2,
|
|
20690
21127
|
localeCode: localeCode,
|
|
20691
21128
|
adapter: "RestKybRepository"
|
|
20692
21129
|
});
|
|
20693
21130
|
throw err;
|
|
20694
21131
|
}
|
|
20695
|
-
|
|
21132
|
+
logInfo("[ERROR] Unable to initialize KYB onboarding", {
|
|
20696
21133
|
err: err,
|
|
20697
21134
|
localeCode: localeCode,
|
|
20698
21135
|
adapter: "RestKybRepository"
|
|
@@ -20750,23 +21187,23 @@ var _RestKybRepository = /*#__PURE__*/ function() {
|
|
|
20750
21187
|
if (_optionalChain([
|
|
20751
21188
|
error2,
|
|
20752
21189
|
'optionalAccess',
|
|
20753
|
-
function(
|
|
20754
|
-
return
|
|
21190
|
+
function(_159) {
|
|
21191
|
+
return _159.msg;
|
|
20755
21192
|
}
|
|
20756
21193
|
]) && _optionalChain([
|
|
20757
21194
|
error2,
|
|
20758
21195
|
'optionalAccess',
|
|
20759
|
-
function(
|
|
20760
|
-
return
|
|
21196
|
+
function(_160) {
|
|
21197
|
+
return _160.debug;
|
|
20761
21198
|
}
|
|
20762
21199
|
])) {
|
|
20763
|
-
|
|
21200
|
+
logInfo("[ERROR] KYB verification failed with standardized error", {
|
|
20764
21201
|
error: error2,
|
|
20765
21202
|
adapter: "RestKybRepository"
|
|
20766
21203
|
});
|
|
20767
21204
|
throw err;
|
|
20768
21205
|
}
|
|
20769
|
-
|
|
21206
|
+
logInfo("[ERROR] Unable to verify KYB submission", {
|
|
20770
21207
|
err: err,
|
|
20771
21208
|
adapter: "RestKybRepository"
|
|
20772
21209
|
});
|
|
@@ -20808,6 +21245,7 @@ __name(_ts_decorate67, "_ts_decorate");
|
|
|
20808
21245
|
var _MockKybRepository = /*#__PURE__*/ function() {
|
|
20809
21246
|
function _MockKybRepository() {
|
|
20810
21247
|
_class_call_check(this, _MockKybRepository);
|
|
21248
|
+
__publicField(this, "shouldThrowError", false);
|
|
20811
21249
|
__publicField(this, "store", {
|
|
20812
21250
|
onboardingResponses: /* @__PURE__ */ new Map(),
|
|
20813
21251
|
kybResponses: /* @__PURE__ */ new Map()
|
|
@@ -20833,6 +21271,9 @@ var _MockKybRepository = /*#__PURE__*/ function() {
|
|
|
20833
21271
|
return _async_to_generator(function() {
|
|
20834
21272
|
var response;
|
|
20835
21273
|
return _ts_generator(this, function(_state) {
|
|
21274
|
+
if (_this.shouldThrowError) {
|
|
21275
|
+
throw new Error("Mock error for testing");
|
|
21276
|
+
}
|
|
20836
21277
|
if (!localeCode) {
|
|
20837
21278
|
throw new MqSDKError("Invalid request: localeCode is required", new Error("KYB_MISSING_locale_code"));
|
|
20838
21279
|
}
|
|
@@ -20865,6 +21306,9 @@ var _MockKybRepository = /*#__PURE__*/ function() {
|
|
|
20865
21306
|
return _async_to_generator(function() {
|
|
20866
21307
|
var response;
|
|
20867
21308
|
return _ts_generator(this, function(_state) {
|
|
21309
|
+
if (_this.shouldThrowError) {
|
|
21310
|
+
throw new Error("Mock error for testing");
|
|
21311
|
+
}
|
|
20868
21312
|
if (!request.locale_code) {
|
|
20869
21313
|
throw new MqSDKError("Invalid request: locale_code is required", new Error("KYB_MISSING_locale_code"));
|
|
20870
21314
|
}
|
|
@@ -20963,13 +21407,18 @@ var TEST_OK_RESPONSE = {
|
|
|
20963
21407
|
var _MockMoneyMovementRepository = /*#__PURE__*/ function() {
|
|
20964
21408
|
function _MockMoneyMovementRepository() {
|
|
20965
21409
|
_class_call_check(this, _MockMoneyMovementRepository);
|
|
21410
|
+
__publicField(this, "shouldThrowError", false);
|
|
20966
21411
|
}
|
|
20967
21412
|
_create_class(_MockMoneyMovementRepository, [
|
|
20968
21413
|
{
|
|
20969
21414
|
key: "addExternalCard",
|
|
20970
21415
|
value: function addExternalCard(externalCard) {
|
|
21416
|
+
var _this = this;
|
|
20971
21417
|
return _async_to_generator(function() {
|
|
20972
21418
|
return _ts_generator(this, function(_state) {
|
|
21419
|
+
if (_this.shouldThrowError) {
|
|
21420
|
+
throw new Error("Mock error for testing");
|
|
21421
|
+
}
|
|
20973
21422
|
return [
|
|
20974
21423
|
2,
|
|
20975
21424
|
TEST_OK_RESPONSE
|
|
@@ -20981,8 +21430,12 @@ var _MockMoneyMovementRepository = /*#__PURE__*/ function() {
|
|
|
20981
21430
|
{
|
|
20982
21431
|
key: "addExternalCardWithUserToken",
|
|
20983
21432
|
value: function addExternalCardWithUserToken(externalCard) {
|
|
21433
|
+
var _this = this;
|
|
20984
21434
|
return _async_to_generator(function() {
|
|
20985
21435
|
return _ts_generator(this, function(_state) {
|
|
21436
|
+
if (_this.shouldThrowError) {
|
|
21437
|
+
throw new Error("Mock error for testing");
|
|
21438
|
+
}
|
|
20986
21439
|
return [
|
|
20987
21440
|
2,
|
|
20988
21441
|
TEST_OK_RESPONSE
|
|
@@ -20994,8 +21447,12 @@ var _MockMoneyMovementRepository = /*#__PURE__*/ function() {
|
|
|
20994
21447
|
{
|
|
20995
21448
|
key: "getExternalCards",
|
|
20996
21449
|
value: function getExternalCards() {
|
|
21450
|
+
var _this = this;
|
|
20997
21451
|
return _async_to_generator(function() {
|
|
20998
21452
|
return _ts_generator(this, function(_state) {
|
|
21453
|
+
if (_this.shouldThrowError) {
|
|
21454
|
+
throw new Error("Mock error for testing");
|
|
21455
|
+
}
|
|
20999
21456
|
return [
|
|
21000
21457
|
2,
|
|
21001
21458
|
TEST_SOURCE_CARDS_RESPONSE
|
|
@@ -21007,8 +21464,12 @@ var _MockMoneyMovementRepository = /*#__PURE__*/ function() {
|
|
|
21007
21464
|
{
|
|
21008
21465
|
key: "initiateTransfer",
|
|
21009
21466
|
value: function initiateTransfer(transfer) {
|
|
21467
|
+
var _this = this;
|
|
21010
21468
|
return _async_to_generator(function() {
|
|
21011
21469
|
return _ts_generator(this, function(_state) {
|
|
21470
|
+
if (_this.shouldThrowError) {
|
|
21471
|
+
throw new Error("Mock error for testing");
|
|
21472
|
+
}
|
|
21012
21473
|
return [
|
|
21013
21474
|
2,
|
|
21014
21475
|
TEST_OK_RESPONSE
|
|
@@ -21020,8 +21481,12 @@ var _MockMoneyMovementRepository = /*#__PURE__*/ function() {
|
|
|
21020
21481
|
{
|
|
21021
21482
|
key: "removeExternalCard",
|
|
21022
21483
|
value: function removeExternalCard(token) {
|
|
21484
|
+
var _this = this;
|
|
21023
21485
|
return _async_to_generator(function() {
|
|
21024
21486
|
return _ts_generator(this, function(_state) {
|
|
21487
|
+
if (_this.shouldThrowError) {
|
|
21488
|
+
throw new Error("Mock error for testing");
|
|
21489
|
+
}
|
|
21025
21490
|
return [
|
|
21026
21491
|
2,
|
|
21027
21492
|
TEST_OK_RESPONSE
|
|
@@ -21096,12 +21561,12 @@ var _RestMoneyMovementRepository = /*#__PURE__*/ function() {
|
|
|
21096
21561
|
cardCount: _optionalChain([
|
|
21097
21562
|
result,
|
|
21098
21563
|
'access',
|
|
21099
|
-
function(
|
|
21100
|
-
return
|
|
21564
|
+
function(_161) {
|
|
21565
|
+
return _161.data;
|
|
21101
21566
|
},
|
|
21102
21567
|
'optionalAccess',
|
|
21103
|
-
function(
|
|
21104
|
-
return
|
|
21568
|
+
function(_162) {
|
|
21569
|
+
return _162.length;
|
|
21105
21570
|
}
|
|
21106
21571
|
]) || 0,
|
|
21107
21572
|
adapter: "RestMoneyMovementRepository"
|
|
@@ -21112,7 +21577,7 @@ var _RestMoneyMovementRepository = /*#__PURE__*/ function() {
|
|
|
21112
21577
|
];
|
|
21113
21578
|
case 3:
|
|
21114
21579
|
err = _state.sent();
|
|
21115
|
-
|
|
21580
|
+
logInfo("[ERROR] Unable to retrieve source cards", {
|
|
21116
21581
|
err: err,
|
|
21117
21582
|
adapter: "RestMoneyMovementRepository"
|
|
21118
21583
|
});
|
|
@@ -21183,7 +21648,7 @@ var _RestMoneyMovementRepository = /*#__PURE__*/ function() {
|
|
|
21183
21648
|
];
|
|
21184
21649
|
case 3:
|
|
21185
21650
|
err = _state.sent();
|
|
21186
|
-
|
|
21651
|
+
logInfo("[ERROR] Unable to add source card", {
|
|
21187
21652
|
err: err,
|
|
21188
21653
|
adapter: "RestMoneyMovementRepository"
|
|
21189
21654
|
});
|
|
@@ -21243,7 +21708,7 @@ var _RestMoneyMovementRepository = /*#__PURE__*/ function() {
|
|
|
21243
21708
|
];
|
|
21244
21709
|
case 3:
|
|
21245
21710
|
err = _state.sent();
|
|
21246
|
-
|
|
21711
|
+
logInfo("[ERROR] Unable to add source card with user token", {
|
|
21247
21712
|
err: err,
|
|
21248
21713
|
adapter: "RestMoneyMovementRepository"
|
|
21249
21714
|
});
|
|
@@ -21309,7 +21774,7 @@ var _RestMoneyMovementRepository = /*#__PURE__*/ function() {
|
|
|
21309
21774
|
];
|
|
21310
21775
|
case 3:
|
|
21311
21776
|
err = _state.sent();
|
|
21312
|
-
|
|
21777
|
+
logInfo("[ERROR] Unable to initiate transfer", {
|
|
21313
21778
|
err: err,
|
|
21314
21779
|
transferType: transfer.transfer_type,
|
|
21315
21780
|
amount: transfer.amount,
|
|
@@ -21369,7 +21834,7 @@ var _RestMoneyMovementRepository = /*#__PURE__*/ function() {
|
|
|
21369
21834
|
];
|
|
21370
21835
|
case 3:
|
|
21371
21836
|
err = _state.sent();
|
|
21372
|
-
|
|
21837
|
+
logInfo("[ERROR] Unable to unlink source card", {
|
|
21373
21838
|
err: err,
|
|
21374
21839
|
token: token,
|
|
21375
21840
|
adapter: "RestMoneyMovementRepository"
|
|
@@ -21438,7 +21903,7 @@ function _addExternalCard() {
|
|
|
21438
21903
|
];
|
|
21439
21904
|
case 3:
|
|
21440
21905
|
error2 = _state.sent();
|
|
21441
|
-
|
|
21906
|
+
logInfo("[ERROR] Failed to add external card", {
|
|
21442
21907
|
error: error2,
|
|
21443
21908
|
interactor: "addExternalCard"
|
|
21444
21909
|
});
|
|
@@ -21490,7 +21955,7 @@ function _addExternalCardWithUserToken() {
|
|
|
21490
21955
|
];
|
|
21491
21956
|
case 3:
|
|
21492
21957
|
error2 = _state.sent();
|
|
21493
|
-
|
|
21958
|
+
logInfo("[ERROR] Failed to add external card with user token", {
|
|
21494
21959
|
error: error2,
|
|
21495
21960
|
interactor: "addExternalCardWithUserToken"
|
|
21496
21961
|
});
|
|
@@ -21548,7 +22013,7 @@ function _initiateTransfer() {
|
|
|
21548
22013
|
];
|
|
21549
22014
|
case 3:
|
|
21550
22015
|
error2 = _state.sent();
|
|
21551
|
-
|
|
22016
|
+
logInfo("[ERROR] Failed to initiate transfer", {
|
|
21552
22017
|
error: error2,
|
|
21553
22018
|
cardToken: params.card_token,
|
|
21554
22019
|
amount: params.amount,
|
|
@@ -21598,12 +22063,12 @@ function _getExternalCards() {
|
|
|
21598
22063
|
cardCount: _optionalChain([
|
|
21599
22064
|
result,
|
|
21600
22065
|
'access',
|
|
21601
|
-
function(
|
|
21602
|
-
return
|
|
22066
|
+
function(_163) {
|
|
22067
|
+
return _163.data;
|
|
21603
22068
|
},
|
|
21604
22069
|
'optionalAccess',
|
|
21605
|
-
function(
|
|
21606
|
-
return
|
|
22070
|
+
function(_164) {
|
|
22071
|
+
return _164.length;
|
|
21607
22072
|
}
|
|
21608
22073
|
]) || 0,
|
|
21609
22074
|
interactor: "getExternalCards"
|
|
@@ -21614,7 +22079,7 @@ function _getExternalCards() {
|
|
|
21614
22079
|
];
|
|
21615
22080
|
case 3:
|
|
21616
22081
|
error2 = _state.sent();
|
|
21617
|
-
|
|
22082
|
+
logInfo("[ERROR] Failed to get external cards", {
|
|
21618
22083
|
error: error2,
|
|
21619
22084
|
interactor: "getExternalCards"
|
|
21620
22085
|
});
|
|
@@ -21669,7 +22134,7 @@ function _removeExternalCard() {
|
|
|
21669
22134
|
];
|
|
21670
22135
|
case 3:
|
|
21671
22136
|
error2 = _state.sent();
|
|
21672
|
-
|
|
22137
|
+
logInfo("[ERROR] Failed to remove external card", {
|
|
21673
22138
|
error: error2,
|
|
21674
22139
|
token: token,
|
|
21675
22140
|
interactor: "removeExternalCard"
|
|
@@ -22006,7 +22471,7 @@ function _requestOtpCode() {
|
|
|
22006
22471
|
];
|
|
22007
22472
|
case 3:
|
|
22008
22473
|
error2 = _state.sent();
|
|
22009
|
-
|
|
22474
|
+
logInfo("[ERROR] Failed to request OTP code", {
|
|
22010
22475
|
error: error2,
|
|
22011
22476
|
interactor: "requestOtpCode"
|
|
22012
22477
|
});
|
|
@@ -22074,7 +22539,7 @@ function _initPasswordAndLogin() {
|
|
|
22074
22539
|
];
|
|
22075
22540
|
case 4:
|
|
22076
22541
|
error2 = _state.sent();
|
|
22077
|
-
|
|
22542
|
+
logInfo("[ERROR] Failed to initialize password and login", {
|
|
22078
22543
|
error: error2,
|
|
22079
22544
|
identifier: request.identifier,
|
|
22080
22545
|
interactor: "initPasswordAndLogin"
|
|
@@ -22130,7 +22595,7 @@ function _loginWithIdAndPassword() {
|
|
|
22130
22595
|
];
|
|
22131
22596
|
case 3:
|
|
22132
22597
|
error2 = _state.sent();
|
|
22133
|
-
|
|
22598
|
+
logInfo("[ERROR] Login failed", {
|
|
22134
22599
|
error: error2,
|
|
22135
22600
|
identifier: request.identifier,
|
|
22136
22601
|
interactor: "loginWithIdAndPassword"
|
|
@@ -22197,7 +22662,7 @@ function _refreshAccessToken() {
|
|
|
22197
22662
|
case 3:
|
|
22198
22663
|
error2 = _state.sent();
|
|
22199
22664
|
refreshPromiseSingleton = void 0;
|
|
22200
|
-
|
|
22665
|
+
logInfo("[ERROR] Failed to refresh access token", {
|
|
22201
22666
|
error: error2,
|
|
22202
22667
|
interactor: "refreshAccessToken"
|
|
22203
22668
|
});
|
|
@@ -22250,7 +22715,7 @@ function _verifyOTP() {
|
|
|
22250
22715
|
];
|
|
22251
22716
|
case 3:
|
|
22252
22717
|
error2 = _state.sent();
|
|
22253
|
-
|
|
22718
|
+
logInfo("[ERROR] Failed to verify OTP", {
|
|
22254
22719
|
error: error2,
|
|
22255
22720
|
interactor: "verifyOTP"
|
|
22256
22721
|
});
|
|
@@ -22324,6 +22789,7 @@ var _MockIdpService = /*#__PURE__*/ function(iIdpService) {
|
|
|
22324
22789
|
oob_code: "mock-oob-code"
|
|
22325
22790
|
});
|
|
22326
22791
|
__publicField(_assert_this_initialized(_this), "mockRefreshError", null);
|
|
22792
|
+
__publicField(_assert_this_initialized(_this), "shouldThrowError", false);
|
|
22327
22793
|
return _this;
|
|
22328
22794
|
}
|
|
22329
22795
|
_create_class(_MockIdpService, [
|
|
@@ -22333,6 +22799,9 @@ var _MockIdpService = /*#__PURE__*/ function(iIdpService) {
|
|
|
22333
22799
|
var _this = this;
|
|
22334
22800
|
return _async_to_generator(function() {
|
|
22335
22801
|
return _ts_generator(this, function(_state) {
|
|
22802
|
+
if (_this.shouldThrowError) {
|
|
22803
|
+
throw new Error("Mock error for testing");
|
|
22804
|
+
}
|
|
22336
22805
|
return [
|
|
22337
22806
|
2,
|
|
22338
22807
|
_this.mockOtpResponse
|
|
@@ -22347,6 +22816,9 @@ var _MockIdpService = /*#__PURE__*/ function(iIdpService) {
|
|
|
22347
22816
|
var _this = this;
|
|
22348
22817
|
return _async_to_generator(function() {
|
|
22349
22818
|
return _ts_generator(this, function(_state) {
|
|
22819
|
+
if (_this.shouldThrowError) {
|
|
22820
|
+
throw new Error("Mock error for testing");
|
|
22821
|
+
}
|
|
22350
22822
|
return [
|
|
22351
22823
|
2,
|
|
22352
22824
|
_this.mockLoginResponse
|
|
@@ -22361,6 +22833,9 @@ var _MockIdpService = /*#__PURE__*/ function(iIdpService) {
|
|
|
22361
22833
|
var _this = this;
|
|
22362
22834
|
return _async_to_generator(function() {
|
|
22363
22835
|
return _ts_generator(this, function(_state) {
|
|
22836
|
+
if (_this.shouldThrowError) {
|
|
22837
|
+
throw new Error("Mock error for testing");
|
|
22838
|
+
}
|
|
22364
22839
|
if (_this.mockRefreshError) {
|
|
22365
22840
|
throw _this.mockRefreshError;
|
|
22366
22841
|
}
|
|
@@ -22378,6 +22853,9 @@ var _MockIdpService = /*#__PURE__*/ function(iIdpService) {
|
|
|
22378
22853
|
var _this = this;
|
|
22379
22854
|
return _async_to_generator(function() {
|
|
22380
22855
|
return _ts_generator(this, function(_state) {
|
|
22856
|
+
if (_this.shouldThrowError) {
|
|
22857
|
+
throw new Error("Mock error for testing");
|
|
22858
|
+
}
|
|
22381
22859
|
return [
|
|
22382
22860
|
2,
|
|
22383
22861
|
_this.mockLoginResponse
|
|
@@ -22512,7 +22990,7 @@ var _RestIdpService = /*#__PURE__*/ function(iIdpService) {
|
|
|
22512
22990
|
];
|
|
22513
22991
|
case 3:
|
|
22514
22992
|
error2 = _state.sent();
|
|
22515
|
-
|
|
22993
|
+
logInfo("[ERROR] Failed to request OTP code", {
|
|
22516
22994
|
error: error2,
|
|
22517
22995
|
adapter: "RestIdpService"
|
|
22518
22996
|
});
|
|
@@ -22601,7 +23079,7 @@ var _RestIdpService = /*#__PURE__*/ function(iIdpService) {
|
|
|
22601
23079
|
case 4:
|
|
22602
23080
|
throw _state.sent();
|
|
22603
23081
|
case 5:
|
|
22604
|
-
|
|
23082
|
+
logInfo("[ERROR] Login with password failed", {
|
|
22605
23083
|
error: error2,
|
|
22606
23084
|
identifier: request.identifier,
|
|
22607
23085
|
adapter: "RestIdpService"
|
|
@@ -22687,7 +23165,7 @@ var _RestIdpService = /*#__PURE__*/ function(iIdpService) {
|
|
|
22687
23165
|
result1 = _state.sent();
|
|
22688
23166
|
throw result1;
|
|
22689
23167
|
case 5:
|
|
22690
|
-
|
|
23168
|
+
logInfo("[ERROR] Failed to refresh access token", {
|
|
22691
23169
|
error: error2,
|
|
22692
23170
|
adapter: "RestIdpService"
|
|
22693
23171
|
});
|
|
@@ -22737,7 +23215,7 @@ var _RestIdpService = /*#__PURE__*/ function(iIdpService) {
|
|
|
22737
23215
|
adapter: "RestIdpService"
|
|
22738
23216
|
});
|
|
22739
23217
|
if (!request.mfa_token) {
|
|
22740
|
-
|
|
23218
|
+
logInfo("[ERROR] MFA token is required for handling MFA", {
|
|
22741
23219
|
adapter: "RestIdpService"
|
|
22742
23220
|
});
|
|
22743
23221
|
throw new Error("MFA token is required for handling MFA");
|
|
@@ -22779,7 +23257,7 @@ var _RestIdpService = /*#__PURE__*/ function(iIdpService) {
|
|
|
22779
23257
|
];
|
|
22780
23258
|
case 3:
|
|
22781
23259
|
error2 = _state.sent();
|
|
22782
|
-
|
|
23260
|
+
logInfo("[ERROR] Failed to handle MFA required", {
|
|
22783
23261
|
error: error2,
|
|
22784
23262
|
adapter: "RestIdpService"
|
|
22785
23263
|
});
|
|
@@ -22851,7 +23329,7 @@ var _RestIdpService = /*#__PURE__*/ function(iIdpService) {
|
|
|
22851
23329
|
];
|
|
22852
23330
|
case 3:
|
|
22853
23331
|
error2 = _state.sent();
|
|
22854
|
-
|
|
23332
|
+
logInfo("[ERROR] OTP verification failed", {
|
|
22855
23333
|
error: error2,
|
|
22856
23334
|
adapter: "RestIdpService"
|
|
22857
23335
|
});
|
|
@@ -23149,14 +23627,19 @@ __name(_ts_decorate75, "_ts_decorate");
|
|
|
23149
23627
|
var _MockStatementsRepository = /*#__PURE__*/ function() {
|
|
23150
23628
|
function _MockStatementsRepository() {
|
|
23151
23629
|
_class_call_check(this, _MockStatementsRepository);
|
|
23630
|
+
__publicField(this, "shouldThrowError", false);
|
|
23152
23631
|
}
|
|
23153
23632
|
_create_class(_MockStatementsRepository, [
|
|
23154
23633
|
{
|
|
23155
23634
|
key: "getStatements",
|
|
23156
23635
|
value: function getStatements(paginationParams) {
|
|
23636
|
+
var _this = this;
|
|
23157
23637
|
return _async_to_generator(function() {
|
|
23158
23638
|
var issuedEndDate, issuedStartDate, accountToken;
|
|
23159
23639
|
return _ts_generator(this, function(_state) {
|
|
23640
|
+
if (_this.shouldThrowError) {
|
|
23641
|
+
throw new Error("Mock error for testing");
|
|
23642
|
+
}
|
|
23160
23643
|
issuedEndDate = paginationParams.issuedEndDate, issuedStartDate = paginationParams.issuedStartDate, accountToken = paginationParams.accountToken;
|
|
23161
23644
|
return [
|
|
23162
23645
|
2,
|
|
@@ -23169,8 +23652,12 @@ var _MockStatementsRepository = /*#__PURE__*/ function() {
|
|
|
23169
23652
|
{
|
|
23170
23653
|
key: "getStatementAsset",
|
|
23171
23654
|
value: function getStatementAsset() {
|
|
23655
|
+
var _this = this;
|
|
23172
23656
|
return _async_to_generator(function() {
|
|
23173
23657
|
return _ts_generator(this, function(_state) {
|
|
23658
|
+
if (_this.shouldThrowError) {
|
|
23659
|
+
throw new Error("Mock error for testing");
|
|
23660
|
+
}
|
|
23174
23661
|
return [
|
|
23175
23662
|
2,
|
|
23176
23663
|
handleGetStatementAsset()
|
|
@@ -23182,8 +23669,12 @@ var _MockStatementsRepository = /*#__PURE__*/ function() {
|
|
|
23182
23669
|
{
|
|
23183
23670
|
key: "getUserAccountStatementsV2",
|
|
23184
23671
|
value: function getUserAccountStatementsV2(params) {
|
|
23672
|
+
var _this = this;
|
|
23185
23673
|
return _async_to_generator(function() {
|
|
23186
23674
|
return _ts_generator(this, function(_state) {
|
|
23675
|
+
if (_this.shouldThrowError) {
|
|
23676
|
+
throw new Error("Mock error for testing");
|
|
23677
|
+
}
|
|
23187
23678
|
return [
|
|
23188
23679
|
2,
|
|
23189
23680
|
handleGetUserAccountStatementsV2(params)
|
|
@@ -23195,8 +23686,12 @@ var _MockStatementsRepository = /*#__PURE__*/ function() {
|
|
|
23195
23686
|
{
|
|
23196
23687
|
key: "getUserAccountsStatementDownloadV2",
|
|
23197
23688
|
value: function getUserAccountsStatementDownloadV2(params) {
|
|
23689
|
+
var _this = this;
|
|
23198
23690
|
return _async_to_generator(function() {
|
|
23199
23691
|
return _ts_generator(this, function(_state) {
|
|
23692
|
+
if (_this.shouldThrowError) {
|
|
23693
|
+
throw new Error("Mock error for testing");
|
|
23694
|
+
}
|
|
23200
23695
|
return [
|
|
23201
23696
|
2,
|
|
23202
23697
|
handleGetUserAccountsStatementDownloadV2(params)
|
|
@@ -23256,7 +23751,7 @@ function _getStatements() {
|
|
|
23256
23751
|
];
|
|
23257
23752
|
case 3:
|
|
23258
23753
|
error2 = _state.sent();
|
|
23259
|
-
|
|
23754
|
+
logInfo("[ERROR] Failed to get statements", {
|
|
23260
23755
|
error: error2,
|
|
23261
23756
|
paginationParams: paginationParams,
|
|
23262
23757
|
interactor: "getStatements"
|
|
@@ -23314,7 +23809,7 @@ function _getStatementAsset() {
|
|
|
23314
23809
|
];
|
|
23315
23810
|
case 3:
|
|
23316
23811
|
error2 = _state.sent();
|
|
23317
|
-
|
|
23812
|
+
logInfo("[ERROR] Failed to get statement asset", {
|
|
23318
23813
|
error: error2,
|
|
23319
23814
|
issuedDate: issuedDate,
|
|
23320
23815
|
accountToken: accountToken,
|
|
@@ -23371,7 +23866,7 @@ function _getUserAccountStatementsV2() {
|
|
|
23371
23866
|
];
|
|
23372
23867
|
case 3:
|
|
23373
23868
|
error2 = _state.sent();
|
|
23374
|
-
|
|
23869
|
+
logInfo("[ERROR] Failed to get user account statements V2", {
|
|
23375
23870
|
error: error2,
|
|
23376
23871
|
params: params,
|
|
23377
23872
|
interactor: "getUserAccountStatementsV2"
|
|
@@ -23427,7 +23922,7 @@ function _getUserAccountsStatementDownloadV2() {
|
|
|
23427
23922
|
];
|
|
23428
23923
|
case 3:
|
|
23429
23924
|
error2 = _state.sent();
|
|
23430
|
-
|
|
23925
|
+
logInfo("[ERROR] Failed to get user accounts statement download V2", {
|
|
23431
23926
|
error: error2,
|
|
23432
23927
|
params: params,
|
|
23433
23928
|
interactor: "getUserAccountsStatementDownloadV2"
|
|
@@ -23497,12 +23992,12 @@ var _RestStatementsRepository = /*#__PURE__*/ function() {
|
|
|
23497
23992
|
statementCount: _optionalChain([
|
|
23498
23993
|
response,
|
|
23499
23994
|
'access',
|
|
23500
|
-
function(
|
|
23501
|
-
return
|
|
23995
|
+
function(_165) {
|
|
23996
|
+
return _165.data;
|
|
23502
23997
|
},
|
|
23503
23998
|
'optionalAccess',
|
|
23504
|
-
function(
|
|
23505
|
-
return
|
|
23999
|
+
function(_166) {
|
|
24000
|
+
return _166.length;
|
|
23506
24001
|
}
|
|
23507
24002
|
]) || 0,
|
|
23508
24003
|
hasMore: response.is_more,
|
|
@@ -23514,7 +24009,7 @@ var _RestStatementsRepository = /*#__PURE__*/ function() {
|
|
|
23514
24009
|
];
|
|
23515
24010
|
case 3:
|
|
23516
24011
|
err = _state.sent();
|
|
23517
|
-
|
|
24012
|
+
logInfo("[ERROR] Unable to retrieve statements", {
|
|
23518
24013
|
err: err,
|
|
23519
24014
|
paginationParams: paginationParams,
|
|
23520
24015
|
adapter: "RestStatementsRepository"
|
|
@@ -23575,7 +24070,7 @@ var _RestStatementsRepository = /*#__PURE__*/ function() {
|
|
|
23575
24070
|
];
|
|
23576
24071
|
case 3:
|
|
23577
24072
|
err = _state.sent();
|
|
23578
|
-
|
|
24073
|
+
logInfo("[ERROR] Unable to retrieve statement asset", {
|
|
23579
24074
|
err: err,
|
|
23580
24075
|
issuedDate: issuedDate,
|
|
23581
24076
|
accountToken: accountToken,
|
|
@@ -23632,7 +24127,7 @@ var _RestStatementsRepository = /*#__PURE__*/ function() {
|
|
|
23632
24127
|
];
|
|
23633
24128
|
case 3:
|
|
23634
24129
|
err = _state.sent();
|
|
23635
|
-
|
|
24130
|
+
logInfo("[ERROR] Unable to retrieve user account statements", {
|
|
23636
24131
|
err: err,
|
|
23637
24132
|
params: params,
|
|
23638
24133
|
adapter: "RestStatementsRepository"
|
|
@@ -23692,7 +24187,7 @@ var _RestStatementsRepository = /*#__PURE__*/ function() {
|
|
|
23692
24187
|
];
|
|
23693
24188
|
case 3:
|
|
23694
24189
|
err = _state.sent();
|
|
23695
|
-
|
|
24190
|
+
logInfo("[ERROR] Unable to retrieve statement download", {
|
|
23696
24191
|
err: err,
|
|
23697
24192
|
params: params,
|
|
23698
24193
|
adapter: "RestStatementsRepository"
|
|
@@ -24263,7 +24758,7 @@ function getActiveTheme() {
|
|
|
24263
24758
|
});
|
|
24264
24759
|
return result;
|
|
24265
24760
|
} catch (err) {
|
|
24266
|
-
|
|
24761
|
+
logInfo("[ERROR] Error getting Active theme", {
|
|
24267
24762
|
err: err,
|
|
24268
24763
|
interactor: "getActiveTheme"
|
|
24269
24764
|
});
|
|
@@ -24405,7 +24900,7 @@ function _getIconsByName() {
|
|
|
24405
24900
|
];
|
|
24406
24901
|
case 3:
|
|
24407
24902
|
error2 = _state.sent();
|
|
24408
|
-
|
|
24903
|
+
logInfo("[ERROR] Failed to get icons by name", {
|
|
24409
24904
|
error: error2,
|
|
24410
24905
|
iconsName: iconsName,
|
|
24411
24906
|
interactor: "getIconsByName"
|
|
@@ -24548,7 +25043,7 @@ var _RestThemeRepository = /*#__PURE__*/ function() {
|
|
|
24548
25043
|
];
|
|
24549
25044
|
case 3:
|
|
24550
25045
|
err = _state.sent();
|
|
24551
|
-
|
|
25046
|
+
logInfo("[ERROR] Unable to get theme by name", {
|
|
24552
25047
|
err: err,
|
|
24553
25048
|
themeName: themeName,
|
|
24554
25049
|
adapter: "RestThemeRepository"
|
|
@@ -24640,7 +25135,7 @@ var _StaticIconsRepository = /*#__PURE__*/ function() {
|
|
|
24640
25135
|
];
|
|
24641
25136
|
case 4:
|
|
24642
25137
|
err = _state.sent();
|
|
24643
|
-
|
|
25138
|
+
logInfo("[ERROR] Unable to retrieve icons", {
|
|
24644
25139
|
err: err,
|
|
24645
25140
|
iconsName: iconsName,
|
|
24646
25141
|
adapter: "StaticIconsRepository"
|
|
@@ -24664,14 +25159,14 @@ var _StaticIconsRepository = /*#__PURE__*/ function() {
|
|
|
24664
25159
|
adapter: "StaticIconsRepository"
|
|
24665
25160
|
});
|
|
24666
25161
|
if (!response.ok) {
|
|
24667
|
-
|
|
25162
|
+
logInfo("[ERROR] Received HTTP response not OK", {
|
|
24668
25163
|
status: response.status,
|
|
24669
25164
|
adapter: "StaticIconsRepository"
|
|
24670
25165
|
});
|
|
24671
25166
|
throw new MqSDKError("Received HTTP response not OK");
|
|
24672
25167
|
}
|
|
24673
25168
|
if (response.status !== 200) {
|
|
24674
|
-
|
|
25169
|
+
logInfo("[ERROR] Invalid HTTP status code", {
|
|
24675
25170
|
status: response.status,
|
|
24676
25171
|
adapter: "StaticIconsRepository"
|
|
24677
25172
|
});
|
|
@@ -24738,6 +25233,7 @@ var _MockTransactionsRepository = /*#__PURE__*/ function() {
|
|
|
24738
25233
|
transactions: []
|
|
24739
25234
|
});
|
|
24740
25235
|
__publicField(this, "transactionsV2Store", []);
|
|
25236
|
+
__publicField(this, "shouldThrowError", false);
|
|
24741
25237
|
}
|
|
24742
25238
|
_create_class(_MockTransactionsRepository, [
|
|
24743
25239
|
{
|
|
@@ -24766,6 +25262,9 @@ var _MockTransactionsRepository = /*#__PURE__*/ function() {
|
|
|
24766
25262
|
return _async_to_generator(function() {
|
|
24767
25263
|
var getPending, limit, startIndex, store2, result, endIndex;
|
|
24768
25264
|
return _ts_generator(this, function(_state) {
|
|
25265
|
+
if (_this.shouldThrowError) {
|
|
25266
|
+
throw new Error("Mock error for testing");
|
|
25267
|
+
}
|
|
24769
25268
|
getPending = paginationParams.getPending, limit = paginationParams.limit, startIndex = paginationParams.startIndex;
|
|
24770
25269
|
store2 = getPending ? _this.transactionsStore.pending : _this.transactionsStore.transactions;
|
|
24771
25270
|
result = store2.slice(startIndex, startIndex + limit);
|
|
@@ -24791,6 +25290,9 @@ var _MockTransactionsRepository = /*#__PURE__*/ function() {
|
|
|
24791
25290
|
return _async_to_generator(function() {
|
|
24792
25291
|
var _paginationParams_count, count, _paginationParams_start_index, start_index, result, endIndex;
|
|
24793
25292
|
return _ts_generator(this, function(_state) {
|
|
25293
|
+
if (_this.shouldThrowError) {
|
|
25294
|
+
throw new Error("Mock error for testing");
|
|
25295
|
+
}
|
|
24794
25296
|
_paginationParams_count = paginationParams.count, count = _paginationParams_count === void 0 ? 10 : _paginationParams_count, _paginationParams_start_index = paginationParams.start_index, start_index = _paginationParams_start_index === void 0 ? 0 : _paginationParams_start_index;
|
|
24795
25297
|
result = _this.transactionsV2Store.slice(start_index, start_index + count);
|
|
24796
25298
|
endIndex = result.length > 0 ? start_index + result.length - 1 : 0;
|
|
@@ -24970,7 +25472,7 @@ function _getTransactions() {
|
|
|
24970
25472
|
];
|
|
24971
25473
|
case 5:
|
|
24972
25474
|
error2 = _state.sent();
|
|
24973
|
-
|
|
25475
|
+
logInfo("[ERROR] Failed to get transactions", {
|
|
24974
25476
|
error: error2,
|
|
24975
25477
|
paginationParams: paginationParams,
|
|
24976
25478
|
interactor: "getTransactions"
|
|
@@ -25085,7 +25587,7 @@ function _getTransactionDetails() {
|
|
|
25085
25587
|
];
|
|
25086
25588
|
case 3:
|
|
25087
25589
|
error2 = _state.sent();
|
|
25088
|
-
|
|
25590
|
+
logInfo("[ERROR] Failed to get transaction details", {
|
|
25089
25591
|
error: error2,
|
|
25090
25592
|
transaction_token: transaction_token,
|
|
25091
25593
|
interactor: "getTransactionDetails"
|
|
@@ -25141,7 +25643,7 @@ function _getUserTransactionsV2() {
|
|
|
25141
25643
|
];
|
|
25142
25644
|
case 3:
|
|
25143
25645
|
error2 = _state.sent();
|
|
25144
|
-
|
|
25646
|
+
logInfo("[ERROR] Failed to get user transactions v2", {
|
|
25145
25647
|
error: error2,
|
|
25146
25648
|
paginationParams: paginationParams,
|
|
25147
25649
|
interactor: "getUserTransactionsV2"
|
|
@@ -25197,7 +25699,7 @@ function _getTransactionByToken() {
|
|
|
25197
25699
|
];
|
|
25198
25700
|
case 3:
|
|
25199
25701
|
error2 = _state.sent();
|
|
25200
|
-
|
|
25702
|
+
logInfo("[ERROR] Failed to get transaction by token", {
|
|
25201
25703
|
error: error2,
|
|
25202
25704
|
transaction_token: request.transaction_token,
|
|
25203
25705
|
interactor: "getTransactionByToken"
|
|
@@ -25317,7 +25819,7 @@ var _RestTransactionsRepository = /*#__PURE__*/ function() {
|
|
|
25317
25819
|
];
|
|
25318
25820
|
case 3:
|
|
25319
25821
|
err = _state.sent();
|
|
25320
|
-
|
|
25822
|
+
logInfo("[ERROR] Unable to retrieve transactions", {
|
|
25321
25823
|
err: err,
|
|
25322
25824
|
paginationParams: paginationParams,
|
|
25323
25825
|
adapter: "RestTransactionsRepository"
|
|
@@ -25442,7 +25944,7 @@ var _RestTransactionsRepository = /*#__PURE__*/ function() {
|
|
|
25442
25944
|
];
|
|
25443
25945
|
case 3:
|
|
25444
25946
|
err = _state.sent();
|
|
25445
|
-
|
|
25947
|
+
logInfo("[ERROR] Unable to retrieve user transactions", {
|
|
25446
25948
|
err: err,
|
|
25447
25949
|
paginationParams: paginationParams,
|
|
25448
25950
|
adapter: "RestTransactionsRepository"
|
|
@@ -25502,7 +26004,7 @@ var _RestTransactionsRepository = /*#__PURE__*/ function() {
|
|
|
25502
26004
|
];
|
|
25503
26005
|
case 3:
|
|
25504
26006
|
err = _state.sent();
|
|
25505
|
-
|
|
26007
|
+
logInfo("[ERROR] Unable to retrieve transaction details", {
|
|
25506
26008
|
err: err,
|
|
25507
26009
|
transaction_token: transaction_token,
|
|
25508
26010
|
adapter: "RestTransactionsRepository"
|
|
@@ -25564,7 +26066,7 @@ var _RestTransactionsRepository = /*#__PURE__*/ function() {
|
|
|
25564
26066
|
];
|
|
25565
26067
|
case 3:
|
|
25566
26068
|
err = _state.sent();
|
|
25567
|
-
|
|
26069
|
+
logInfo("[ERROR] Unable to retrieve transaction by token", {
|
|
25568
26070
|
err: err,
|
|
25569
26071
|
transaction_token: request.transaction_token,
|
|
25570
26072
|
adapter: "RestTransactionsRepository"
|
|
@@ -26067,12 +26569,12 @@ var filterMockTransactionsByStatus = /* @__PURE__ */ __name(function(statuses) {
|
|
|
26067
26569
|
return statuses.includes(_optionalChain([
|
|
26068
26570
|
status,
|
|
26069
26571
|
'optionalAccess',
|
|
26070
|
-
function(
|
|
26071
|
-
return
|
|
26572
|
+
function(_167) {
|
|
26573
|
+
return _167.toUpperCase;
|
|
26072
26574
|
},
|
|
26073
26575
|
'call',
|
|
26074
|
-
function(
|
|
26075
|
-
return
|
|
26576
|
+
function(_168) {
|
|
26577
|
+
return _168();
|
|
26076
26578
|
}
|
|
26077
26579
|
]));
|
|
26078
26580
|
});
|
|
@@ -26124,8 +26626,8 @@ var mswTransactionsHandlers = [
|
|
|
26124
26626
|
if (_optionalChain([
|
|
26125
26627
|
queryStatus,
|
|
26126
26628
|
'optionalAccess',
|
|
26127
|
-
function(
|
|
26128
|
-
return
|
|
26629
|
+
function(_169) {
|
|
26630
|
+
return _169[0];
|
|
26129
26631
|
}
|
|
26130
26632
|
]) === "PENDING") {
|
|
26131
26633
|
is_more = filteredMockData.length > 10;
|
|
@@ -26767,7 +27269,7 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
26767
27269
|
];
|
|
26768
27270
|
case 3:
|
|
26769
27271
|
error2 = _state.sent();
|
|
26770
|
-
|
|
27272
|
+
logInfo("[ERROR] Unable to get WLA user profile information", {
|
|
26771
27273
|
error: error2,
|
|
26772
27274
|
adapter: "RestWlaService"
|
|
26773
27275
|
});
|
|
@@ -26821,7 +27323,7 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
26821
27323
|
];
|
|
26822
27324
|
case 3:
|
|
26823
27325
|
error2 = _state.sent();
|
|
26824
|
-
|
|
27326
|
+
logInfo("[ERROR] Unable to create card", {
|
|
26825
27327
|
error: error2,
|
|
26826
27328
|
adapter: "RestWlaService"
|
|
26827
27329
|
});
|
|
@@ -26884,7 +27386,7 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
26884
27386
|
];
|
|
26885
27387
|
case 3:
|
|
26886
27388
|
error2 = _state.sent();
|
|
26887
|
-
|
|
27389
|
+
logInfo("[ERROR] Unable to set pin", {
|
|
26888
27390
|
error: error2,
|
|
26889
27391
|
cardToken: cardToken,
|
|
26890
27392
|
usecase: usecase,
|
|
@@ -26943,7 +27445,7 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
26943
27445
|
];
|
|
26944
27446
|
case 3:
|
|
26945
27447
|
error2 = _state.sent();
|
|
26946
|
-
|
|
27448
|
+
logInfo("[ERROR] Unable to mark account verified", {
|
|
26947
27449
|
error: error2,
|
|
26948
27450
|
adapter: "RestWlaService"
|
|
26949
27451
|
});
|
|
@@ -26992,7 +27494,7 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
26992
27494
|
];
|
|
26993
27495
|
case 3:
|
|
26994
27496
|
error2 = _state.sent();
|
|
26995
|
-
|
|
27497
|
+
logInfo("[ERROR] Unable to mark password setup done", {
|
|
26996
27498
|
error: error2,
|
|
26997
27499
|
adapter: "RestWlaService"
|
|
26998
27500
|
});
|
|
@@ -27049,7 +27551,7 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
27049
27551
|
];
|
|
27050
27552
|
case 3:
|
|
27051
27553
|
error2 = _state.sent();
|
|
27052
|
-
|
|
27554
|
+
logInfo("[ERROR] Unable to mark account activated", {
|
|
27053
27555
|
error: error2,
|
|
27054
27556
|
adapter: "RestWlaService"
|
|
27055
27557
|
});
|
|
@@ -27103,7 +27605,7 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
27103
27605
|
];
|
|
27104
27606
|
case 3:
|
|
27105
27607
|
error2 = _state.sent();
|
|
27106
|
-
|
|
27608
|
+
logInfo("[ERROR] Unable to register device for push notifications", {
|
|
27107
27609
|
error: error2,
|
|
27108
27610
|
adapter: "RestWlaService"
|
|
27109
27611
|
});
|
|
@@ -27157,7 +27659,7 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
27157
27659
|
];
|
|
27158
27660
|
case 3:
|
|
27159
27661
|
error2 = _state.sent();
|
|
27160
|
-
|
|
27662
|
+
logInfo("[ERROR] Push notifications registration update failed", {
|
|
27161
27663
|
error: error2,
|
|
27162
27664
|
adapter: "RestWlaService"
|
|
27163
27665
|
});
|
|
@@ -27208,7 +27710,7 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
27208
27710
|
];
|
|
27209
27711
|
case 3:
|
|
27210
27712
|
error2 = _state.sent();
|
|
27211
|
-
|
|
27713
|
+
logInfo("[ERROR] Unable to delete push notification registration", {
|
|
27212
27714
|
error: error2,
|
|
27213
27715
|
adapter: "RestWlaService"
|
|
27214
27716
|
});
|
|
@@ -27259,7 +27761,7 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
27259
27761
|
];
|
|
27260
27762
|
case 3:
|
|
27261
27763
|
error2 = _state.sent();
|
|
27262
|
-
|
|
27764
|
+
logInfo("[ERROR] Unable to get offers", {
|
|
27263
27765
|
error: error2,
|
|
27264
27766
|
adapter: "RestWlaService"
|
|
27265
27767
|
});
|
|
@@ -27315,7 +27817,7 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
27315
27817
|
];
|
|
27316
27818
|
case 3:
|
|
27317
27819
|
error2 = _state.sent();
|
|
27318
|
-
|
|
27820
|
+
logInfo("[ERROR] Unable to get offer details", {
|
|
27319
27821
|
error: error2,
|
|
27320
27822
|
offerId: offerId,
|
|
27321
27823
|
adapter: "RestWlaService"
|
|
@@ -27357,24 +27859,24 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
27357
27859
|
}, _optionalChain([
|
|
27358
27860
|
requestBody,
|
|
27359
27861
|
'optionalAccess',
|
|
27360
|
-
function(
|
|
27361
|
-
return
|
|
27862
|
+
function(_170) {
|
|
27863
|
+
return _170.status;
|
|
27362
27864
|
}
|
|
27363
27865
|
]) ? {
|
|
27364
27866
|
status: requestBody.status.join(",")
|
|
27365
27867
|
} : {}, _optionalChain([
|
|
27366
27868
|
requestBody,
|
|
27367
27869
|
'optionalAccess',
|
|
27368
|
-
function(
|
|
27369
|
-
return
|
|
27870
|
+
function(_171) {
|
|
27871
|
+
return _171.start_index;
|
|
27370
27872
|
}
|
|
27371
27873
|
]) ? {
|
|
27372
27874
|
start_index: "".concat(requestBody.start_index)
|
|
27373
27875
|
} : {}, _optionalChain([
|
|
27374
27876
|
requestBody,
|
|
27375
27877
|
'optionalAccess',
|
|
27376
|
-
function(
|
|
27377
|
-
return
|
|
27878
|
+
function(_172) {
|
|
27879
|
+
return _172.count;
|
|
27378
27880
|
}
|
|
27379
27881
|
]) ? {
|
|
27380
27882
|
count: "".concat(requestBody.count)
|
|
@@ -27399,7 +27901,7 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
27399
27901
|
];
|
|
27400
27902
|
case 3:
|
|
27401
27903
|
error2 = _state.sent();
|
|
27402
|
-
|
|
27904
|
+
logInfo("[ERROR] Unable to get account transactions", {
|
|
27403
27905
|
error: error2,
|
|
27404
27906
|
accountToken: requestBody.account_token,
|
|
27405
27907
|
adapter: "RestWlaService"
|
|
@@ -27450,12 +27952,12 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
27450
27952
|
if (_optionalChain([
|
|
27451
27953
|
data,
|
|
27452
27954
|
'access',
|
|
27453
|
-
function(
|
|
27454
|
-
return
|
|
27955
|
+
function(_173) {
|
|
27956
|
+
return _173.card_art;
|
|
27455
27957
|
},
|
|
27456
27958
|
'optionalAccess',
|
|
27457
|
-
function(
|
|
27458
|
-
return
|
|
27959
|
+
function(_174) {
|
|
27960
|
+
return _174.back;
|
|
27459
27961
|
}
|
|
27460
27962
|
])) {
|
|
27461
27963
|
data.card_art.back = "".concat(cardArtBaseUrl).concat(data.card_art.back);
|
|
@@ -27463,12 +27965,12 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
27463
27965
|
if (_optionalChain([
|
|
27464
27966
|
data,
|
|
27465
27967
|
'access',
|
|
27466
|
-
function(
|
|
27467
|
-
return
|
|
27968
|
+
function(_175) {
|
|
27969
|
+
return _175.card_art;
|
|
27468
27970
|
},
|
|
27469
27971
|
'optionalAccess',
|
|
27470
|
-
function(
|
|
27471
|
-
return
|
|
27972
|
+
function(_176) {
|
|
27973
|
+
return _176.front;
|
|
27472
27974
|
}
|
|
27473
27975
|
])) {
|
|
27474
27976
|
data.card_art.front = "".concat(cardArtBaseUrl).concat(data.card_art.front);
|
|
@@ -27483,7 +27985,7 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
27483
27985
|
];
|
|
27484
27986
|
case 3:
|
|
27485
27987
|
error2 = _state.sent();
|
|
27486
|
-
|
|
27988
|
+
logInfo("[ERROR] Unable to get card by token", {
|
|
27487
27989
|
error: error2,
|
|
27488
27990
|
cardToken: cardToken,
|
|
27489
27991
|
adapter: "RestWlaService"
|
|
@@ -27537,7 +28039,7 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
27537
28039
|
];
|
|
27538
28040
|
case 3:
|
|
27539
28041
|
error2 = _state.sent();
|
|
27540
|
-
|
|
28042
|
+
logInfo("[ERROR] Unable to get external account", {
|
|
27541
28043
|
error: error2,
|
|
27542
28044
|
token: token,
|
|
27543
28045
|
adapter: "RestWlaService"
|
|
@@ -27576,32 +28078,32 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
27576
28078
|
queryParams = new URLSearchParams(_object_spread({}, _optionalChain([
|
|
27577
28079
|
requestBody,
|
|
27578
28080
|
'optionalAccess',
|
|
27579
|
-
function(
|
|
27580
|
-
return
|
|
28081
|
+
function(_177) {
|
|
28082
|
+
return _177.count;
|
|
27581
28083
|
}
|
|
27582
28084
|
]) ? {
|
|
27583
28085
|
count: "".concat(requestBody.count)
|
|
27584
28086
|
} : {}, _optionalChain([
|
|
27585
28087
|
requestBody,
|
|
27586
28088
|
'optionalAccess',
|
|
27587
|
-
function(
|
|
27588
|
-
return
|
|
28089
|
+
function(_178) {
|
|
28090
|
+
return _178.start_index;
|
|
27589
28091
|
}
|
|
27590
28092
|
]) ? {
|
|
27591
28093
|
start_index: "".concat(requestBody.start_index)
|
|
27592
28094
|
} : {}, _optionalChain([
|
|
27593
28095
|
requestBody,
|
|
27594
28096
|
'optionalAccess',
|
|
27595
|
-
function(
|
|
27596
|
-
return
|
|
28097
|
+
function(_179) {
|
|
28098
|
+
return _179.sort_by;
|
|
27597
28099
|
}
|
|
27598
28100
|
]) ? {
|
|
27599
28101
|
sort_by: "".concat(requestBody.sort_by)
|
|
27600
28102
|
} : {}, _optionalChain([
|
|
27601
28103
|
requestBody,
|
|
27602
28104
|
'optionalAccess',
|
|
27603
|
-
function(
|
|
27604
|
-
return
|
|
28105
|
+
function(_180) {
|
|
28106
|
+
return _180.status;
|
|
27605
28107
|
}
|
|
27606
28108
|
]) ? {
|
|
27607
28109
|
status: requestBody.status.join(",")
|
|
@@ -27628,21 +28130,21 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
27628
28130
|
if (_optionalChain([
|
|
27629
28131
|
error2,
|
|
27630
28132
|
'optionalAccess',
|
|
27631
|
-
function(
|
|
27632
|
-
return
|
|
28133
|
+
function(_181) {
|
|
28134
|
+
return _181.debug;
|
|
27633
28135
|
},
|
|
27634
28136
|
'optionalAccess',
|
|
27635
|
-
function(
|
|
27636
|
-
return
|
|
28137
|
+
function(_182) {
|
|
28138
|
+
return _182.length;
|
|
27637
28139
|
}
|
|
27638
28140
|
])) {
|
|
27639
|
-
|
|
28141
|
+
logInfo("[ERROR] Unable to get external account list with standardized error", {
|
|
27640
28142
|
error: error2,
|
|
27641
28143
|
adapter: "RestWlaService"
|
|
27642
28144
|
});
|
|
27643
28145
|
throw new WlaSdkError("Unable to get external account list", error2).toJSON();
|
|
27644
28146
|
}
|
|
27645
|
-
|
|
28147
|
+
logInfo("[ERROR] Unable to get external account list", {
|
|
27646
28148
|
error: error2,
|
|
27647
28149
|
adapter: "RestWlaService"
|
|
27648
28150
|
});
|
|
@@ -27700,21 +28202,21 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
27700
28202
|
if (_optionalChain([
|
|
27701
28203
|
error2,
|
|
27702
28204
|
'optionalAccess',
|
|
27703
|
-
function(
|
|
27704
|
-
return
|
|
28205
|
+
function(_183) {
|
|
28206
|
+
return _183.debug;
|
|
27705
28207
|
},
|
|
27706
28208
|
'optionalAccess',
|
|
27707
|
-
function(
|
|
27708
|
-
return
|
|
28209
|
+
function(_184) {
|
|
28210
|
+
return _184.length;
|
|
27709
28211
|
}
|
|
27710
28212
|
])) {
|
|
27711
|
-
|
|
28213
|
+
logInfo("[ERROR] Unable to create external account with standardized error", {
|
|
27712
28214
|
error: error2,
|
|
27713
28215
|
adapter: "RestWlaService"
|
|
27714
28216
|
});
|
|
27715
28217
|
throw new WlaSdkError("Unable to create external account", error2).toJSON();
|
|
27716
28218
|
}
|
|
27717
|
-
|
|
28219
|
+
logInfo("[ERROR] Unable to create external account", {
|
|
27718
28220
|
error: error2,
|
|
27719
28221
|
adapter: "RestWlaService"
|
|
27720
28222
|
});
|
|
@@ -27772,21 +28274,21 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
27772
28274
|
if (_optionalChain([
|
|
27773
28275
|
error2,
|
|
27774
28276
|
'optionalAccess',
|
|
27775
|
-
function(
|
|
27776
|
-
return
|
|
28277
|
+
function(_185) {
|
|
28278
|
+
return _185.debug;
|
|
27777
28279
|
},
|
|
27778
28280
|
'optionalAccess',
|
|
27779
|
-
function(
|
|
27780
|
-
return
|
|
28281
|
+
function(_186) {
|
|
28282
|
+
return _186.length;
|
|
27781
28283
|
}
|
|
27782
28284
|
])) {
|
|
27783
|
-
|
|
28285
|
+
logInfo("[ERROR] Unable to verify external account with standardized error", {
|
|
27784
28286
|
error: error2,
|
|
27785
28287
|
adapter: "RestWlaService"
|
|
27786
28288
|
});
|
|
27787
28289
|
throw new WlaSdkError("Unable to verify external account", error2).toJSON();
|
|
27788
28290
|
}
|
|
27789
|
-
|
|
28291
|
+
logInfo("[ERROR] Unable to verify external account", {
|
|
27790
28292
|
error: error2,
|
|
27791
28293
|
adapter: "RestWlaService"
|
|
27792
28294
|
});
|
|
@@ -27846,22 +28348,22 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
27846
28348
|
if (_optionalChain([
|
|
27847
28349
|
error2,
|
|
27848
28350
|
'optionalAccess',
|
|
27849
|
-
function(
|
|
27850
|
-
return
|
|
28351
|
+
function(_187) {
|
|
28352
|
+
return _187.debug;
|
|
27851
28353
|
},
|
|
27852
28354
|
'optionalAccess',
|
|
27853
|
-
function(
|
|
27854
|
-
return
|
|
28355
|
+
function(_188) {
|
|
28356
|
+
return _188.length;
|
|
27855
28357
|
}
|
|
27856
28358
|
])) {
|
|
27857
|
-
|
|
28359
|
+
logInfo("[ERROR] Unable to update external account with standardized error", {
|
|
27858
28360
|
error: error2,
|
|
27859
28361
|
token: token,
|
|
27860
28362
|
adapter: "RestWlaService"
|
|
27861
28363
|
});
|
|
27862
28364
|
throw new WlaSdkError("Unable to update external account", error2).toJSON();
|
|
27863
28365
|
}
|
|
27864
|
-
|
|
28366
|
+
logInfo("[ERROR] Unable to update external account", {
|
|
27865
28367
|
error: error2,
|
|
27866
28368
|
token: token,
|
|
27867
28369
|
adapter: "RestWlaService"
|
|
@@ -27918,7 +28420,7 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
27918
28420
|
];
|
|
27919
28421
|
case 3:
|
|
27920
28422
|
error2 = _state.sent();
|
|
27921
|
-
|
|
28423
|
+
logInfo("[ERROR] Unable to get transaction details", {
|
|
27922
28424
|
error: error2,
|
|
27923
28425
|
transactionToken: transactionToken,
|
|
27924
28426
|
adapter: "RestWlaService"
|
|
@@ -27972,7 +28474,7 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
27972
28474
|
];
|
|
27973
28475
|
case 3:
|
|
27974
28476
|
error2 = _state.sent();
|
|
27975
|
-
|
|
28477
|
+
logInfo("[ERROR] Unable to get transaction challenge", {
|
|
27976
28478
|
error: error2,
|
|
27977
28479
|
challengeToken: challengeToken,
|
|
27978
28480
|
adapter: "RestWlaService"
|
|
@@ -28025,7 +28527,7 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
28025
28527
|
];
|
|
28026
28528
|
case 3:
|
|
28027
28529
|
error2 = _state.sent();
|
|
28028
|
-
|
|
28530
|
+
logInfo("[ERROR] Unable to get next transaction challenge", {
|
|
28029
28531
|
error: error2,
|
|
28030
28532
|
adapter: "RestWlaService"
|
|
28031
28533
|
});
|
|
@@ -28082,7 +28584,7 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
28082
28584
|
];
|
|
28083
28585
|
case 3:
|
|
28084
28586
|
error2 = _state.sent();
|
|
28085
|
-
|
|
28587
|
+
logInfo("[ERROR] Unable to post transaction challenge decision", {
|
|
28086
28588
|
error: error2,
|
|
28087
28589
|
challengeToken: challengeToken,
|
|
28088
28590
|
adapter: "RestWlaService"
|
|
@@ -28138,7 +28640,7 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
28138
28640
|
];
|
|
28139
28641
|
case 3:
|
|
28140
28642
|
error2 = _state.sent();
|
|
28141
|
-
|
|
28643
|
+
logInfo("[ERROR] Unable to book transfer", {
|
|
28142
28644
|
error: error2,
|
|
28143
28645
|
adapter: "RestWlaService"
|
|
28144
28646
|
});
|
|
@@ -28193,7 +28695,7 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
28193
28695
|
];
|
|
28194
28696
|
case 3:
|
|
28195
28697
|
error2 = _state.sent();
|
|
28196
|
-
|
|
28698
|
+
logInfo("[ERROR] Unable to create an origination transfer", {
|
|
28197
28699
|
error: error2,
|
|
28198
28700
|
adapter: "RestWlaService"
|
|
28199
28701
|
});
|
|
@@ -28254,7 +28756,7 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
28254
28756
|
];
|
|
28255
28757
|
case 3:
|
|
28256
28758
|
error2 = _state.sent();
|
|
28257
|
-
|
|
28759
|
+
logInfo("[ERROR] Unable to get account details", {
|
|
28258
28760
|
error: error2,
|
|
28259
28761
|
accountToken: accountToken,
|
|
28260
28762
|
adapter: "RestWlaService"
|
|
@@ -28315,7 +28817,7 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
28315
28817
|
];
|
|
28316
28818
|
case 3:
|
|
28317
28819
|
error2 = _state.sent();
|
|
28318
|
-
|
|
28820
|
+
logInfo("[ERROR] Unable to get reward summary", {
|
|
28319
28821
|
error: error2,
|
|
28320
28822
|
startIndex: startIndex,
|
|
28321
28823
|
count: count,
|
|
@@ -28385,7 +28887,7 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
28385
28887
|
];
|
|
28386
28888
|
case 3:
|
|
28387
28889
|
error2 = _state.sent();
|
|
28388
|
-
|
|
28890
|
+
logInfo("[ERROR] Unable to fetch ATMs", {
|
|
28389
28891
|
error: error2,
|
|
28390
28892
|
requestFilters: requestFilters,
|
|
28391
28893
|
adapter: "RestWlaService"
|
|
@@ -28441,7 +28943,7 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
28441
28943
|
];
|
|
28442
28944
|
case 3:
|
|
28443
28945
|
error2 = _state.sent();
|
|
28444
|
-
|
|
28946
|
+
logInfo("[ERROR] Unable to place a card replacement request", {
|
|
28445
28947
|
error: error2,
|
|
28446
28948
|
adapter: "RestWlaService"
|
|
28447
28949
|
});
|
|
@@ -28502,7 +29004,7 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
28502
29004
|
];
|
|
28503
29005
|
case 3:
|
|
28504
29006
|
error2 = _state.sent();
|
|
28505
|
-
|
|
29007
|
+
logInfo("[ERROR] Unable to get Outages for the token provided", {
|
|
28506
29008
|
error: error2,
|
|
28507
29009
|
token: token,
|
|
28508
29010
|
adapter: "RestWlaService"
|
|
@@ -28562,7 +29064,7 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
28562
29064
|
];
|
|
28563
29065
|
case 3:
|
|
28564
29066
|
error2 = _state.sent();
|
|
28565
|
-
|
|
29067
|
+
logInfo("[ERROR] Unable to get Outages", {
|
|
28566
29068
|
error: error2,
|
|
28567
29069
|
devicePlatform: devicePlatform,
|
|
28568
29070
|
programShortCode: programShortCode,
|
|
@@ -28620,7 +29122,7 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
28620
29122
|
];
|
|
28621
29123
|
case 3:
|
|
28622
29124
|
error2 = _state.sent();
|
|
28623
|
-
|
|
29125
|
+
logInfo("[ERROR] Unable to get consent for the id provided", {
|
|
28624
29126
|
error: error2,
|
|
28625
29127
|
id: id,
|
|
28626
29128
|
country_code: country_code,
|
|
@@ -28678,7 +29180,7 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
28678
29180
|
];
|
|
28679
29181
|
case 3:
|
|
28680
29182
|
error2 = _state.sent();
|
|
28681
|
-
|
|
29183
|
+
logInfo("[ERROR] Unable to get transfer for the token provided", {
|
|
28682
29184
|
error: error2,
|
|
28683
29185
|
token: token,
|
|
28684
29186
|
country_code: country_code,
|
|
@@ -28739,7 +29241,7 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
28739
29241
|
];
|
|
28740
29242
|
case 3:
|
|
28741
29243
|
error2 = _state.sent();
|
|
28742
|
-
|
|
29244
|
+
logInfo("[ERROR] Unable to get consents", {
|
|
28743
29245
|
error: error2,
|
|
28744
29246
|
userId: userId,
|
|
28745
29247
|
country_code: country_code,
|
|
@@ -28795,7 +29297,7 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
28795
29297
|
];
|
|
28796
29298
|
case 3:
|
|
28797
29299
|
error2 = _state.sent();
|
|
28798
|
-
|
|
29300
|
+
logInfo("[ERROR] Unable to get transfers", {
|
|
28799
29301
|
error: error2,
|
|
28800
29302
|
country_code: country_code,
|
|
28801
29303
|
adapter: "RestWlaService"
|
|
@@ -28855,7 +29357,7 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
28855
29357
|
];
|
|
28856
29358
|
case 3:
|
|
28857
29359
|
error2 = _state.sent();
|
|
28858
|
-
|
|
29360
|
+
logInfo("[ERROR] Unable to update consent status", {
|
|
28859
29361
|
error: error2,
|
|
28860
29362
|
id: id,
|
|
28861
29363
|
country_code: country_code,
|
|
@@ -28916,7 +29418,7 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
28916
29418
|
];
|
|
28917
29419
|
case 3:
|
|
28918
29420
|
error2 = _state.sent();
|
|
28919
|
-
|
|
29421
|
+
logInfo("[ERROR] Unable to revoke consent status", {
|
|
28920
29422
|
error: error2,
|
|
28921
29423
|
id: id,
|
|
28922
29424
|
country_code: country_code,
|
|
@@ -28969,7 +29471,7 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
28969
29471
|
];
|
|
28970
29472
|
case 3:
|
|
28971
29473
|
error2 = _state.sent();
|
|
28972
|
-
|
|
29474
|
+
logInfo("[ERROR] Unable to get FAQs", {
|
|
28973
29475
|
error: error2,
|
|
28974
29476
|
adapter: "RestWlaService"
|
|
28975
29477
|
});
|
|
@@ -29025,7 +29527,7 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
29025
29527
|
];
|
|
29026
29528
|
case 3:
|
|
29027
29529
|
error2 = _state.sent();
|
|
29028
|
-
|
|
29530
|
+
logInfo("[ERROR] Unable to init IDP user password", {
|
|
29029
29531
|
error: error2,
|
|
29030
29532
|
adapter: "RestWlaService"
|
|
29031
29533
|
});
|
|
@@ -29087,14 +29589,14 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
29087
29589
|
message3 = "";
|
|
29088
29590
|
if (error2.message === "AUTH0_BAD_REQUEST" && error2.details && error2.details.message) {
|
|
29089
29591
|
message3 = error2.details.message.split(":").at(-1).trim();
|
|
29090
|
-
|
|
29592
|
+
logInfo("[ERROR] WLA password change failed with AUTH0 error", {
|
|
29091
29593
|
error: error2,
|
|
29092
29594
|
programShortCode: programShortCode,
|
|
29093
29595
|
adapter: "RestWlaService"
|
|
29094
29596
|
});
|
|
29095
29597
|
throw new MqSDKError("".concat(message3, ". Please try again."), error2);
|
|
29096
29598
|
}
|
|
29097
|
-
|
|
29599
|
+
logInfo("[ERROR] Unable to change password", {
|
|
29098
29600
|
error: error2,
|
|
29099
29601
|
programShortCode: programShortCode,
|
|
29100
29602
|
adapter: "RestWlaService"
|
|
@@ -29165,7 +29667,7 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
29165
29667
|
];
|
|
29166
29668
|
case 3:
|
|
29167
29669
|
error2 = _state.sent();
|
|
29168
|
-
|
|
29670
|
+
logInfo("[ERROR] Unable to send reset password link", {
|
|
29169
29671
|
error: error2,
|
|
29170
29672
|
hasEmail: !!email,
|
|
29171
29673
|
hasPhone: !!phone,
|
|
@@ -29224,7 +29726,7 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
29224
29726
|
];
|
|
29225
29727
|
case 3:
|
|
29226
29728
|
error2 = _state.sent();
|
|
29227
|
-
|
|
29729
|
+
logInfo("[ERROR] Unable to send verification email", {
|
|
29228
29730
|
error: error2,
|
|
29229
29731
|
adapter: "RestWlaService"
|
|
29230
29732
|
});
|
|
@@ -29278,7 +29780,7 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
29278
29780
|
];
|
|
29279
29781
|
case 3:
|
|
29280
29782
|
error2 = _state.sent();
|
|
29281
|
-
|
|
29783
|
+
logInfo("[ERROR] Unable to verify user device", {
|
|
29282
29784
|
error: error2,
|
|
29283
29785
|
adapter: "RestWlaService"
|
|
29284
29786
|
});
|
|
@@ -29354,7 +29856,7 @@ function _bookTransfer() {
|
|
|
29354
29856
|
];
|
|
29355
29857
|
case 3:
|
|
29356
29858
|
error2 = _state.sent();
|
|
29357
|
-
|
|
29859
|
+
logInfo("[ERROR] Unable to book transfer", {
|
|
29358
29860
|
error: error2,
|
|
29359
29861
|
amount: payload.amount,
|
|
29360
29862
|
currency: payload.currency,
|
|
@@ -29413,7 +29915,7 @@ function _createOriginationTransfer() {
|
|
|
29413
29915
|
];
|
|
29414
29916
|
case 3:
|
|
29415
29917
|
error2 = _state.sent();
|
|
29416
|
-
|
|
29918
|
+
logInfo("[ERROR] Failed to create origination transfer", {
|
|
29417
29919
|
error: error2,
|
|
29418
29920
|
amount: payload.amount,
|
|
29419
29921
|
currency_code: payload.currency_code,
|
|
@@ -29468,7 +29970,7 @@ function _createWlaCard() {
|
|
|
29468
29970
|
];
|
|
29469
29971
|
case 3:
|
|
29470
29972
|
error2 = _state.sent();
|
|
29471
|
-
|
|
29973
|
+
logInfo("[ERROR] Failed to create WLA card", {
|
|
29472
29974
|
error: error2,
|
|
29473
29975
|
interactor: "createWlaCard"
|
|
29474
29976
|
});
|
|
@@ -29523,7 +30025,7 @@ function _createWlaExternalAccount() {
|
|
|
29523
30025
|
];
|
|
29524
30026
|
case 3:
|
|
29525
30027
|
error2 = _state.sent();
|
|
29526
|
-
|
|
30028
|
+
logInfo("[ERROR] Failed to create WLA external account", {
|
|
29527
30029
|
error: error2,
|
|
29528
30030
|
alias: payload.alias,
|
|
29529
30031
|
interactor: "createWlaExternalAccount"
|
|
@@ -29577,7 +30079,7 @@ function _deleteRegistrationForPushNotifications() {
|
|
|
29577
30079
|
];
|
|
29578
30080
|
case 3:
|
|
29579
30081
|
error2 = _state.sent();
|
|
29580
|
-
|
|
30082
|
+
logInfo("[ERROR] Failed to delete push notification registration", {
|
|
29581
30083
|
error: error2,
|
|
29582
30084
|
interactor: "deleteRegistrationForPushNotifications"
|
|
29583
30085
|
});
|
|
@@ -29625,12 +30127,12 @@ function _getAccountTransactions() {
|
|
|
29625
30127
|
transactionCount: _optionalChain([
|
|
29626
30128
|
result,
|
|
29627
30129
|
'access',
|
|
29628
|
-
function(
|
|
29629
|
-
return
|
|
30130
|
+
function(_189) {
|
|
30131
|
+
return _189.data;
|
|
29630
30132
|
},
|
|
29631
30133
|
'optionalAccess',
|
|
29632
|
-
function(
|
|
29633
|
-
return
|
|
30134
|
+
function(_190) {
|
|
30135
|
+
return _190.length;
|
|
29634
30136
|
}
|
|
29635
30137
|
]) || 0,
|
|
29636
30138
|
interactor: "getAccountTransactions"
|
|
@@ -29641,7 +30143,7 @@ function _getAccountTransactions() {
|
|
|
29641
30143
|
];
|
|
29642
30144
|
case 3:
|
|
29643
30145
|
error2 = _state.sent();
|
|
29644
|
-
|
|
30146
|
+
logInfo("[ERROR] Failed to get account transactions", {
|
|
29645
30147
|
error: error2,
|
|
29646
30148
|
interactor: "getAccountTransactions"
|
|
29647
30149
|
});
|
|
@@ -29799,7 +30301,7 @@ function _getOfferDetails() {
|
|
|
29799
30301
|
];
|
|
29800
30302
|
case 3:
|
|
29801
30303
|
error2 = _state.sent();
|
|
29802
|
-
|
|
30304
|
+
logInfo("[ERROR] Failed to get offer details", {
|
|
29803
30305
|
error: error2,
|
|
29804
30306
|
offerId: offerId,
|
|
29805
30307
|
interactor: "getOfferDetails"
|
|
@@ -29848,12 +30350,12 @@ function _getOffers() {
|
|
|
29848
30350
|
offerCount: _optionalChain([
|
|
29849
30351
|
result,
|
|
29850
30352
|
'access',
|
|
29851
|
-
function(
|
|
29852
|
-
return
|
|
30353
|
+
function(_191) {
|
|
30354
|
+
return _191.data;
|
|
29853
30355
|
},
|
|
29854
30356
|
'optionalAccess',
|
|
29855
|
-
function(
|
|
29856
|
-
return
|
|
30357
|
+
function(_192) {
|
|
30358
|
+
return _192.length;
|
|
29857
30359
|
}
|
|
29858
30360
|
]) || 0,
|
|
29859
30361
|
interactor: "getOffers"
|
|
@@ -29864,7 +30366,7 @@ function _getOffers() {
|
|
|
29864
30366
|
];
|
|
29865
30367
|
case 3:
|
|
29866
30368
|
error2 = _state.sent();
|
|
29867
|
-
|
|
30369
|
+
logInfo("[ERROR] Failed to get offers", {
|
|
29868
30370
|
error: error2,
|
|
29869
30371
|
interactor: "getOffers"
|
|
29870
30372
|
});
|
|
@@ -30034,7 +30536,7 @@ function _getWlaCardByToken() {
|
|
|
30034
30536
|
];
|
|
30035
30537
|
case 3:
|
|
30036
30538
|
error2 = _state.sent();
|
|
30037
|
-
|
|
30539
|
+
logInfo("[ERROR] Failed to get WLA card by token", {
|
|
30038
30540
|
error: error2,
|
|
30039
30541
|
cardToken: cardToken,
|
|
30040
30542
|
interactor: "getWlaCardByToken"
|
|
@@ -30092,7 +30594,7 @@ function _getWlaRewardSummaries() {
|
|
|
30092
30594
|
];
|
|
30093
30595
|
case 3:
|
|
30094
30596
|
error2 = _state.sent();
|
|
30095
|
-
|
|
30597
|
+
logInfo("[ERROR] Failed to get WLA reward summaries", {
|
|
30096
30598
|
error: error2,
|
|
30097
30599
|
startIndex: startIndex,
|
|
30098
30600
|
count: count,
|
|
@@ -30149,7 +30651,7 @@ function _getWlaTransactionByToken() {
|
|
|
30149
30651
|
];
|
|
30150
30652
|
case 3:
|
|
30151
30653
|
error2 = _state.sent();
|
|
30152
|
-
|
|
30654
|
+
logInfo("[ERROR] Failed to get WLA transaction by token", {
|
|
30153
30655
|
error: error2,
|
|
30154
30656
|
transactionToken: transactionToken,
|
|
30155
30657
|
interactor: "getWlaTransactionByToken"
|
|
@@ -30203,7 +30705,7 @@ function _getWlaUserProfile() {
|
|
|
30203
30705
|
];
|
|
30204
30706
|
case 3:
|
|
30205
30707
|
error2 = _state.sent();
|
|
30206
|
-
|
|
30708
|
+
logInfo("[ERROR] Failed to get WLA user profile", {
|
|
30207
30709
|
error: error2,
|
|
30208
30710
|
interactor: "getWlaUserProfile"
|
|
30209
30711
|
});
|
|
@@ -30283,7 +30785,7 @@ function _markAccountVerified() {
|
|
|
30283
30785
|
];
|
|
30284
30786
|
case 3:
|
|
30285
30787
|
error2 = _state.sent();
|
|
30286
|
-
|
|
30788
|
+
logInfo("[ERROR] Failed to mark account as verified", {
|
|
30287
30789
|
error: error2,
|
|
30288
30790
|
interactor: "markAccountVerified"
|
|
30289
30791
|
});
|
|
@@ -30367,7 +30869,7 @@ function _registerDeviceForPushNotifications() {
|
|
|
30367
30869
|
];
|
|
30368
30870
|
case 3:
|
|
30369
30871
|
error2 = _state.sent();
|
|
30370
|
-
|
|
30872
|
+
logInfo("[ERROR] Failed to register device for push notifications", {
|
|
30371
30873
|
error: error2,
|
|
30372
30874
|
deviceToken: requestBody.device_token,
|
|
30373
30875
|
devicePlatform: requestBody.device_platform,
|
|
@@ -30422,7 +30924,7 @@ function _replaceWlaCard() {
|
|
|
30422
30924
|
];
|
|
30423
30925
|
case 3:
|
|
30424
30926
|
error2 = _state.sent();
|
|
30425
|
-
|
|
30927
|
+
logInfo("[ERROR] Failed to replace WLA card", {
|
|
30426
30928
|
error: error2,
|
|
30427
30929
|
interactor: "replaceWlaCard"
|
|
30428
30930
|
});
|
|
@@ -30505,7 +31007,7 @@ function _searchAtms() {
|
|
|
30505
31007
|
];
|
|
30506
31008
|
case 3:
|
|
30507
31009
|
error2 = _state.sent();
|
|
30508
|
-
|
|
31010
|
+
logInfo("[ERROR] Failed to search ATMs", {
|
|
30509
31011
|
error: error2,
|
|
30510
31012
|
requestFilters: requestFilters,
|
|
30511
31013
|
interactor: "searchAtms"
|
|
@@ -30563,7 +31065,7 @@ function _setWlaCardPin() {
|
|
|
30563
31065
|
];
|
|
30564
31066
|
case 3:
|
|
30565
31067
|
error2 = _state.sent();
|
|
30566
|
-
|
|
31068
|
+
logInfo("[ERROR] Failed to set WLA card PIN", {
|
|
30567
31069
|
error: error2,
|
|
30568
31070
|
cardToken: cardToken,
|
|
30569
31071
|
usecase: usecase,
|
|
@@ -30756,7 +31258,7 @@ function _changeWlaPassword() {
|
|
|
30756
31258
|
];
|
|
30757
31259
|
case 3:
|
|
30758
31260
|
error2 = _state.sent();
|
|
30759
|
-
|
|
31261
|
+
logInfo("[ERROR] Failed to change WLA password", {
|
|
30760
31262
|
error: error2,
|
|
30761
31263
|
programShortCode: programShortCode,
|
|
30762
31264
|
interactor: "changeWlaPassword"
|
|
@@ -30974,7 +31476,7 @@ function _updateDevicePushNotificationsRegistration() {
|
|
|
30974
31476
|
];
|
|
30975
31477
|
case 3:
|
|
30976
31478
|
error2 = _state.sent();
|
|
30977
|
-
|
|
31479
|
+
logInfo("[ERROR] Failed to update push notification registration", {
|
|
30978
31480
|
error: error2,
|
|
30979
31481
|
status: requestBody.is_active,
|
|
30980
31482
|
interactor: "updateDevicePushNotificationsRegistration"
|
|
@@ -31259,6 +31761,7 @@ exports.RestPaymentSourcesRepository = RestPaymentSourcesRepository;
|
|
|
31259
31761
|
exports.ITF_PAYMENT_SCHEDULES_REPOSITORY = ITF_PAYMENT_SCHEDULES_REPOSITORY;
|
|
31260
31762
|
exports.ITF_PAYMENT_SOURCES_REPOSITORY = ITF_PAYMENT_SOURCES_REPOSITORY;
|
|
31261
31763
|
exports.getPaymentSchedules = getPaymentSchedules;
|
|
31764
|
+
exports.createPaymentSchedules = createPaymentSchedules;
|
|
31262
31765
|
exports.getPaymentSources = getPaymentSources;
|
|
31263
31766
|
exports.creditIOCModule = creditIOCModule;
|
|
31264
31767
|
exports.mockCreditIOCModule = mockCreditIOCModule;
|