@marqeta/ux-toolkit-sdk-javascript 2.28.0 → 2.30.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-CRVH42IV.js → chunk-BPSM5NUO.js} +1201 -499
- package/dist/{chunk-ADRAH5ZN.mjs → chunk-KTZWJME3.mjs} +825 -152
- package/dist/index.d.mts +214 -7
- package/dist/index.d.ts +214 -7
- package/dist/index.js +488 -479
- 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 +546 -537
- package/dist/react-native.mjs +2 -2
- package/package.json +1 -1
|
@@ -1820,6 +1820,86 @@ var _StandardizedError = /*#__PURE__*/ function(Error1) {
|
|
|
1820
1820
|
}(_wrap_native_super(Error));
|
|
1821
1821
|
__name(_StandardizedError, "StandardizedError");
|
|
1822
1822
|
var StandardizedError = _StandardizedError;
|
|
1823
|
+
// src/common/base/interactors/setAppConfig.ts
|
|
1824
|
+
function setAppConfig(appVersion, deviceId) {
|
|
1825
|
+
logDebug("Setting app config", {
|
|
1826
|
+
appVersion: appVersion,
|
|
1827
|
+
deviceId: deviceId,
|
|
1828
|
+
interactor: "setAppConfig"
|
|
1829
|
+
});
|
|
1830
|
+
try {
|
|
1831
|
+
var container2 = getActiveIocContainer();
|
|
1832
|
+
if (!container2) {
|
|
1833
|
+
logError("IoC container not initialized", {
|
|
1834
|
+
appVersion: appVersion,
|
|
1835
|
+
deviceId: deviceId,
|
|
1836
|
+
interactor: "setAppConfig"
|
|
1837
|
+
});
|
|
1838
|
+
return;
|
|
1839
|
+
}
|
|
1840
|
+
var cacheService = container2.get(ITF_CACHE_SERVICE);
|
|
1841
|
+
cacheService.set("appConfig", JSON.stringify({
|
|
1842
|
+
appVersion: appVersion,
|
|
1843
|
+
deviceId: deviceId
|
|
1844
|
+
}));
|
|
1845
|
+
logInfo("App config set successfully", {
|
|
1846
|
+
appVersion: appVersion,
|
|
1847
|
+
deviceId: deviceId,
|
|
1848
|
+
interactor: "setAppConfig"
|
|
1849
|
+
});
|
|
1850
|
+
} catch (error2) {
|
|
1851
|
+
logError("Failed to set app config", {
|
|
1852
|
+
error: error2,
|
|
1853
|
+
appVersion: appVersion,
|
|
1854
|
+
deviceId: deviceId,
|
|
1855
|
+
interactor: "setAppConfig"
|
|
1856
|
+
});
|
|
1857
|
+
}
|
|
1858
|
+
}
|
|
1859
|
+
__name(setAppConfig, "setAppConfig");
|
|
1860
|
+
// src/common/base/interactors/getAppConfig.ts
|
|
1861
|
+
var defaultConfig = {
|
|
1862
|
+
appVersion: "",
|
|
1863
|
+
deviceId: ""
|
|
1864
|
+
};
|
|
1865
|
+
function getAppConfig() {
|
|
1866
|
+
try {
|
|
1867
|
+
var container2 = getActiveIocContainer();
|
|
1868
|
+
var cacheService = _optionalChain([
|
|
1869
|
+
container2,
|
|
1870
|
+
'optionalAccess',
|
|
1871
|
+
function(_8) {
|
|
1872
|
+
return _8.get;
|
|
1873
|
+
},
|
|
1874
|
+
'call',
|
|
1875
|
+
function(_9) {
|
|
1876
|
+
return _9(ITF_CACHE_SERVICE);
|
|
1877
|
+
}
|
|
1878
|
+
]);
|
|
1879
|
+
var config = _optionalChain([
|
|
1880
|
+
cacheService,
|
|
1881
|
+
'optionalAccess',
|
|
1882
|
+
function(_10) {
|
|
1883
|
+
return _10.get;
|
|
1884
|
+
},
|
|
1885
|
+
'call',
|
|
1886
|
+
function(_11) {
|
|
1887
|
+
return _11("appConfig");
|
|
1888
|
+
}
|
|
1889
|
+
]);
|
|
1890
|
+
if (!config || typeof config !== "string") {
|
|
1891
|
+
return defaultConfig;
|
|
1892
|
+
}
|
|
1893
|
+
var parsedConfig = JSON.parse(config);
|
|
1894
|
+
return {
|
|
1895
|
+
appVersion: parsedConfig.appVersion || "",
|
|
1896
|
+
deviceId: parsedConfig.deviceId || ""
|
|
1897
|
+
};
|
|
1898
|
+
} catch (e2) {
|
|
1899
|
+
return defaultConfig;
|
|
1900
|
+
}
|
|
1901
|
+
}
|
|
1902
|
+
__name(getAppConfig, "getAppConfig");
|
|
1823
1903
|
// src/common/ioc/commonIOCModule.ts
|
|
1824
1904
|
// src/common/adapters/InMemRegistryService.ts
|
|
1825
1905
|
function _ts_decorate12(decorators, target, key, desc) {
|
|
@@ -1923,6 +2003,22 @@ function convertObjKeysToLowerCamelCase(inputObj) {
|
|
|
1923
2003
|
return newobj;
|
|
1924
2004
|
}
|
|
1925
2005
|
__name(convertObjKeysToLowerCamelCase, "convertObjKeysToLowerCamelCase");
|
|
2006
|
+
// src/common/utils/getCommonApiHeaders.ts
|
|
2007
|
+
function getCommonApiHeaders() {
|
|
2008
|
+
try {
|
|
2009
|
+
var appConfig = getAppConfig();
|
|
2010
|
+
return {
|
|
2011
|
+
"app-version": appConfig.appVersion,
|
|
2012
|
+
"device-id": appConfig.deviceId
|
|
2013
|
+
};
|
|
2014
|
+
} catch (e3) {
|
|
2015
|
+
return {
|
|
2016
|
+
"app-version": "",
|
|
2017
|
+
"device-id": ""
|
|
2018
|
+
};
|
|
2019
|
+
}
|
|
2020
|
+
}
|
|
2021
|
+
__name(getCommonApiHeaders, "getCommonApiHeaders");
|
|
1926
2022
|
function getCardsByUserToken() {
|
|
1927
2023
|
return _getCardsByUserToken.apply(this, arguments);
|
|
1928
2024
|
}
|
|
@@ -2073,8 +2169,8 @@ function _activateCardByTokenOrPan() {
|
|
|
2073
2169
|
state: _optionalChain([
|
|
2074
2170
|
result,
|
|
2075
2171
|
'optionalAccess',
|
|
2076
|
-
function(
|
|
2077
|
-
return
|
|
2172
|
+
function(_12) {
|
|
2173
|
+
return _12.state;
|
|
2078
2174
|
}
|
|
2079
2175
|
]),
|
|
2080
2176
|
interactor: "activateCardByTokenOrPan"
|
|
@@ -2138,8 +2234,8 @@ function _lockCardByToken() {
|
|
|
2138
2234
|
state: _optionalChain([
|
|
2139
2235
|
result,
|
|
2140
2236
|
'optionalAccess',
|
|
2141
|
-
function(
|
|
2142
|
-
return
|
|
2237
|
+
function(_13) {
|
|
2238
|
+
return _13.state;
|
|
2143
2239
|
}
|
|
2144
2240
|
]),
|
|
2145
2241
|
interactor: "lockCardByToken"
|
|
@@ -2203,8 +2299,8 @@ function _replaceCardByToken() {
|
|
|
2203
2299
|
newCardToken: _optionalChain([
|
|
2204
2300
|
result,
|
|
2205
2301
|
'optionalAccess',
|
|
2206
|
-
function(
|
|
2207
|
-
return
|
|
2302
|
+
function(_14) {
|
|
2303
|
+
return _14.token;
|
|
2208
2304
|
}
|
|
2209
2305
|
]),
|
|
2210
2306
|
interactor: "replaceCardByToken"
|
|
@@ -2268,8 +2364,8 @@ function _unlockCardByToken() {
|
|
|
2268
2364
|
state: _optionalChain([
|
|
2269
2365
|
result,
|
|
2270
2366
|
'optionalAccess',
|
|
2271
|
-
function(
|
|
2272
|
-
return
|
|
2367
|
+
function(_15) {
|
|
2368
|
+
return _15.state;
|
|
2273
2369
|
}
|
|
2274
2370
|
]),
|
|
2275
2371
|
interactor: "unlockCardByToken"
|
|
@@ -2416,6 +2512,123 @@ function _getPinByCardToken() {
|
|
|
2416
2512
|
return _getPinByCardToken.apply(this, arguments);
|
|
2417
2513
|
}
|
|
2418
2514
|
__name(getPinByCardToken, "getPinByCardToken");
|
|
2515
|
+
function orderCard(orderRequest) {
|
|
2516
|
+
return _orderCard.apply(this, arguments);
|
|
2517
|
+
}
|
|
2518
|
+
function _orderCard() {
|
|
2519
|
+
_orderCard = // src/cards/base/interactors/orderCard.ts
|
|
2520
|
+
_async_to_generator(function(orderRequest) {
|
|
2521
|
+
var container2, cardRepository, result, error2;
|
|
2522
|
+
return _ts_generator(this, function(_state) {
|
|
2523
|
+
switch(_state.label){
|
|
2524
|
+
case 0:
|
|
2525
|
+
logDebug("Ordering card", {
|
|
2526
|
+
idType: orderRequest.idType,
|
|
2527
|
+
interactor: "orderCard"
|
|
2528
|
+
});
|
|
2529
|
+
_state.label = 1;
|
|
2530
|
+
case 1:
|
|
2531
|
+
_state.trys.push([
|
|
2532
|
+
1,
|
|
2533
|
+
3,
|
|
2534
|
+
,
|
|
2535
|
+
4
|
|
2536
|
+
]);
|
|
2537
|
+
container2 = getActiveIocContainer();
|
|
2538
|
+
cardRepository = container2.get(ITF_CARD_REPOSITORY);
|
|
2539
|
+
return [
|
|
2540
|
+
4,
|
|
2541
|
+
cardRepository.orderCard(orderRequest)
|
|
2542
|
+
];
|
|
2543
|
+
case 2:
|
|
2544
|
+
result = _state.sent();
|
|
2545
|
+
logInfo("Card ordered successfully", {
|
|
2546
|
+
cardToken: result.token,
|
|
2547
|
+
state: result.state,
|
|
2548
|
+
interactor: "orderCard"
|
|
2549
|
+
});
|
|
2550
|
+
return [
|
|
2551
|
+
2,
|
|
2552
|
+
result
|
|
2553
|
+
];
|
|
2554
|
+
case 3:
|
|
2555
|
+
error2 = _state.sent();
|
|
2556
|
+
logError("Failed to order card", {
|
|
2557
|
+
error: error2,
|
|
2558
|
+
idType: orderRequest.idType,
|
|
2559
|
+
interactor: "orderCard"
|
|
2560
|
+
});
|
|
2561
|
+
throw error2;
|
|
2562
|
+
case 4:
|
|
2563
|
+
return [
|
|
2564
|
+
2
|
|
2565
|
+
];
|
|
2566
|
+
}
|
|
2567
|
+
});
|
|
2568
|
+
});
|
|
2569
|
+
return _orderCard.apply(this, arguments);
|
|
2570
|
+
}
|
|
2571
|
+
__name(orderCard, "orderCard");
|
|
2572
|
+
function replaceCardV2(replaceRequest) {
|
|
2573
|
+
return _replaceCardV2.apply(this, arguments);
|
|
2574
|
+
}
|
|
2575
|
+
function _replaceCardV2() {
|
|
2576
|
+
_replaceCardV2 = // src/cards/base/interactors/replaceCardV2.ts
|
|
2577
|
+
_async_to_generator(function(replaceRequest) {
|
|
2578
|
+
var container2, cardRepository, result, error2;
|
|
2579
|
+
return _ts_generator(this, function(_state) {
|
|
2580
|
+
switch(_state.label){
|
|
2581
|
+
case 0:
|
|
2582
|
+
logDebug("Replacing card v2", {
|
|
2583
|
+
cardToken: replaceRequest.cardToken,
|
|
2584
|
+
reason: replaceRequest.request.replacement_reason,
|
|
2585
|
+
interactor: "replaceCardV2"
|
|
2586
|
+
});
|
|
2587
|
+
_state.label = 1;
|
|
2588
|
+
case 1:
|
|
2589
|
+
_state.trys.push([
|
|
2590
|
+
1,
|
|
2591
|
+
3,
|
|
2592
|
+
,
|
|
2593
|
+
4
|
|
2594
|
+
]);
|
|
2595
|
+
container2 = getActiveIocContainer();
|
|
2596
|
+
cardRepository = container2.get(ITF_CARD_REPOSITORY);
|
|
2597
|
+
return [
|
|
2598
|
+
4,
|
|
2599
|
+
cardRepository.replaceCardV2(replaceRequest)
|
|
2600
|
+
];
|
|
2601
|
+
case 2:
|
|
2602
|
+
result = _state.sent();
|
|
2603
|
+
logInfo("Card replaced successfully", {
|
|
2604
|
+
originalCardToken: replaceRequest.cardToken,
|
|
2605
|
+
newCardToken: result.replacement_card_token,
|
|
2606
|
+
terminatedCardToken: result.terminated_card_token,
|
|
2607
|
+
interactor: "replaceCardV2"
|
|
2608
|
+
});
|
|
2609
|
+
return [
|
|
2610
|
+
2,
|
|
2611
|
+
result
|
|
2612
|
+
];
|
|
2613
|
+
case 3:
|
|
2614
|
+
error2 = _state.sent();
|
|
2615
|
+
logError("Failed to replace card", {
|
|
2616
|
+
error: error2,
|
|
2617
|
+
cardToken: replaceRequest.cardToken,
|
|
2618
|
+
reason: replaceRequest.request.replacement_reason,
|
|
2619
|
+
interactor: "replaceCardV2"
|
|
2620
|
+
});
|
|
2621
|
+
throw error2;
|
|
2622
|
+
case 4:
|
|
2623
|
+
return [
|
|
2624
|
+
2
|
|
2625
|
+
];
|
|
2626
|
+
}
|
|
2627
|
+
});
|
|
2628
|
+
});
|
|
2629
|
+
return _replaceCardV2.apply(this, arguments);
|
|
2630
|
+
}
|
|
2631
|
+
__name(replaceCardV2, "replaceCardV2");
|
|
2419
2632
|
// src/cards/base/repositories/iCardRepository.ts
|
|
2420
2633
|
function _ts_decorate13(decorators, target, key, desc) {
|
|
2421
2634
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
@@ -3331,6 +3544,40 @@ var _MockCardRepository = /*#__PURE__*/ function() {
|
|
|
3331
3544
|
});
|
|
3332
3545
|
})();
|
|
3333
3546
|
}
|
|
3547
|
+
},
|
|
3548
|
+
{
|
|
3549
|
+
key: "orderCard",
|
|
3550
|
+
value: function orderCard(orderRequest) {
|
|
3551
|
+
return _async_to_generator(function() {
|
|
3552
|
+
return _ts_generator(this, function(_state) {
|
|
3553
|
+
return [
|
|
3554
|
+
2,
|
|
3555
|
+
{
|
|
3556
|
+
token: "mock-new-card-token",
|
|
3557
|
+
state: "UNACTIVATED",
|
|
3558
|
+
last_four: "5678",
|
|
3559
|
+
user_token: "mock-user-token"
|
|
3560
|
+
}
|
|
3561
|
+
];
|
|
3562
|
+
});
|
|
3563
|
+
})();
|
|
3564
|
+
}
|
|
3565
|
+
},
|
|
3566
|
+
{
|
|
3567
|
+
key: "replaceCardV2",
|
|
3568
|
+
value: function replaceCardV2(replaceRequest) {
|
|
3569
|
+
return _async_to_generator(function() {
|
|
3570
|
+
return _ts_generator(this, function(_state) {
|
|
3571
|
+
return [
|
|
3572
|
+
2,
|
|
3573
|
+
{
|
|
3574
|
+
replacement_card_token: "mock-replacement-card-token",
|
|
3575
|
+
terminated_card_token: replaceRequest.cardToken
|
|
3576
|
+
}
|
|
3577
|
+
];
|
|
3578
|
+
});
|
|
3579
|
+
})();
|
|
3580
|
+
}
|
|
3334
3581
|
}
|
|
3335
3582
|
]);
|
|
3336
3583
|
return _MockCardRepository;
|
|
@@ -4781,21 +5028,21 @@ function _checkHttpStandizedError() {
|
|
|
4781
5028
|
error2 = _optionalChain([
|
|
4782
5029
|
data,
|
|
4783
5030
|
'optionalAccess',
|
|
4784
|
-
function(
|
|
4785
|
-
return
|
|
5031
|
+
function(_16) {
|
|
5032
|
+
return _16.error;
|
|
4786
5033
|
}
|
|
4787
5034
|
]);
|
|
4788
5035
|
if (_optionalChain([
|
|
4789
5036
|
error2,
|
|
4790
5037
|
'optionalAccess',
|
|
4791
|
-
function(
|
|
4792
|
-
return
|
|
5038
|
+
function(_17) {
|
|
5039
|
+
return _17.id;
|
|
4793
5040
|
}
|
|
4794
5041
|
]) && _optionalChain([
|
|
4795
5042
|
error2,
|
|
4796
5043
|
'optionalAccess',
|
|
4797
|
-
function(
|
|
4798
|
-
return
|
|
5044
|
+
function(_18) {
|
|
5045
|
+
return _18.debug;
|
|
4799
5046
|
}
|
|
4800
5047
|
])) {
|
|
4801
5048
|
convertedDebug = error2.debug.map(function(item) {
|
|
@@ -4816,14 +5063,14 @@ function _checkHttpStandizedError() {
|
|
|
4816
5063
|
if (_optionalChain([
|
|
4817
5064
|
oauthError,
|
|
4818
5065
|
'optionalAccess',
|
|
4819
|
-
function(
|
|
4820
|
-
return
|
|
5066
|
+
function(_19) {
|
|
5067
|
+
return _19.error;
|
|
4821
5068
|
}
|
|
4822
5069
|
]) && _optionalChain([
|
|
4823
5070
|
oauthError,
|
|
4824
5071
|
'optionalAccess',
|
|
4825
|
-
function(
|
|
4826
|
-
return
|
|
5072
|
+
function(_20) {
|
|
5073
|
+
return _20.error_description;
|
|
4827
5074
|
}
|
|
4828
5075
|
]) && !httpIsOk) {
|
|
4829
5076
|
throw oauthError;
|
|
@@ -6424,8 +6671,8 @@ var _M2mAuthenticatedHttpClient = /*#__PURE__*/ function() {
|
|
|
6424
6671
|
paramHeaders = _optionalChain([
|
|
6425
6672
|
params,
|
|
6426
6673
|
'optionalAccess',
|
|
6427
|
-
function(
|
|
6428
|
-
return
|
|
6674
|
+
function(_21) {
|
|
6675
|
+
return _21.headers;
|
|
6429
6676
|
}
|
|
6430
6677
|
]);
|
|
6431
6678
|
_tmp = [
|
|
@@ -6532,8 +6779,8 @@ var _M2mAuthenticatedHttpClient = /*#__PURE__*/ function() {
|
|
|
6532
6779
|
var headers = _nullishCoalesce(_optionalChain([
|
|
6533
6780
|
params,
|
|
6534
6781
|
'optionalAccess',
|
|
6535
|
-
function(
|
|
6536
|
-
return
|
|
6782
|
+
function(_22) {
|
|
6783
|
+
return _22.headers;
|
|
6537
6784
|
}
|
|
6538
6785
|
]), function() {
|
|
6539
6786
|
return {};
|
|
@@ -6764,8 +7011,8 @@ var _SsoAuthenticatedHttpClient = /*#__PURE__*/ function() {
|
|
|
6764
7011
|
paramHeaders = _optionalChain([
|
|
6765
7012
|
params,
|
|
6766
7013
|
'optionalAccess',
|
|
6767
|
-
function(
|
|
6768
|
-
return
|
|
7014
|
+
function(_23) {
|
|
7015
|
+
return _23.headers;
|
|
6769
7016
|
}
|
|
6770
7017
|
]) || {};
|
|
6771
7018
|
hasAuthorizationHeader = Boolean((typeof paramHeaders === "undefined" ? "undefined" : _type_of(paramHeaders)) === "object" && paramHeaders !== null && "Authorization" in paramHeaders);
|
|
@@ -7065,8 +7312,8 @@ var _RestAuthService = /*#__PURE__*/ function() {
|
|
|
7065
7312
|
convertedData = convertObjKeysToLowerCamelCase(convertObjKeysToCamelCase(_optionalChain([
|
|
7066
7313
|
data,
|
|
7067
7314
|
'optionalAccess',
|
|
7068
|
-
function(
|
|
7069
|
-
return
|
|
7315
|
+
function(_24) {
|
|
7316
|
+
return _24.data;
|
|
7070
7317
|
}
|
|
7071
7318
|
])));
|
|
7072
7319
|
cardholderContext = new CardholderContextEntity(convertedData);
|
|
@@ -7727,12 +7974,12 @@ var _RequestHandler = /*#__PURE__*/ function() {
|
|
|
7727
7974
|
if (_this.isUsed && _optionalChain([
|
|
7728
7975
|
_this,
|
|
7729
7976
|
'access',
|
|
7730
|
-
function(
|
|
7731
|
-
return
|
|
7977
|
+
function(_25) {
|
|
7978
|
+
return _25.options;
|
|
7732
7979
|
},
|
|
7733
7980
|
'optionalAccess',
|
|
7734
|
-
function(
|
|
7735
|
-
return
|
|
7981
|
+
function(_26) {
|
|
7982
|
+
return _26.once;
|
|
7736
7983
|
}
|
|
7737
7984
|
])) {
|
|
7738
7985
|
return [
|
|
@@ -7764,12 +8011,12 @@ var _RequestHandler = /*#__PURE__*/ function() {
|
|
|
7764
8011
|
if (_this.isUsed && _optionalChain([
|
|
7765
8012
|
_this,
|
|
7766
8013
|
'access',
|
|
7767
|
-
function(
|
|
7768
|
-
return
|
|
8014
|
+
function(_27) {
|
|
8015
|
+
return _27.options;
|
|
7769
8016
|
},
|
|
7770
8017
|
'optionalAccess',
|
|
7771
|
-
function(
|
|
7772
|
-
return
|
|
8018
|
+
function(_28) {
|
|
8019
|
+
return _28.once;
|
|
7773
8020
|
}
|
|
7774
8021
|
])) {
|
|
7775
8022
|
return [
|
|
@@ -7868,12 +8115,12 @@ var _RequestHandler = /*#__PURE__*/ function() {
|
|
|
7868
8115
|
_this.resolverGeneratorResult = _optionalChain([
|
|
7869
8116
|
nextResponse,
|
|
7870
8117
|
'optionalAccess',
|
|
7871
|
-
function(
|
|
7872
|
-
return
|
|
8118
|
+
function(_29) {
|
|
8119
|
+
return _29.clone;
|
|
7873
8120
|
},
|
|
7874
8121
|
'call',
|
|
7875
|
-
function(
|
|
7876
|
-
return
|
|
8122
|
+
function(_30) {
|
|
8123
|
+
return _30();
|
|
7877
8124
|
}
|
|
7878
8125
|
]);
|
|
7879
8126
|
}
|
|
@@ -9135,7 +9382,7 @@ function isPropertyAccessible(object, method) {
|
|
|
9135
9382
|
try {
|
|
9136
9383
|
object[method];
|
|
9137
9384
|
return true;
|
|
9138
|
-
} catch (
|
|
9385
|
+
} catch (e4) {
|
|
9139
9386
|
return false;
|
|
9140
9387
|
}
|
|
9141
9388
|
}
|
|
@@ -9329,20 +9576,20 @@ function getAllRequestCookies(request) {
|
|
|
9329
9576
|
var cookiesFromStore = Array.from(_optionalChain([
|
|
9330
9577
|
store,
|
|
9331
9578
|
'access',
|
|
9332
|
-
function(
|
|
9333
|
-
return
|
|
9579
|
+
function(_31) {
|
|
9580
|
+
return _31.get;
|
|
9334
9581
|
},
|
|
9335
9582
|
'call',
|
|
9336
|
-
function(
|
|
9337
|
-
return
|
|
9583
|
+
function(_32) {
|
|
9584
|
+
return _32(request);
|
|
9338
9585
|
},
|
|
9339
9586
|
'optionalAccess',
|
|
9340
|
-
function(
|
|
9341
|
-
return
|
|
9587
|
+
function(_33) {
|
|
9588
|
+
return _33.entries;
|
|
9342
9589
|
},
|
|
9343
9590
|
'call',
|
|
9344
|
-
function(
|
|
9345
|
-
return
|
|
9591
|
+
function(_34) {
|
|
9592
|
+
return _34();
|
|
9346
9593
|
}
|
|
9347
9594
|
])).reduce(function(cookies, param) {
|
|
9348
9595
|
var _param = _sliced_to_array(param, 2), name = _param[0], value = _param[1].value;
|
|
@@ -9433,12 +9680,12 @@ var _HttpHandler = /*#__PURE__*/ function(RequestHandler) {
|
|
|
9433
9680
|
match2 = matchRequestUrl(url, _this.info.path, _optionalChain([
|
|
9434
9681
|
args,
|
|
9435
9682
|
'access',
|
|
9436
|
-
function(
|
|
9437
|
-
return
|
|
9683
|
+
function(_35) {
|
|
9684
|
+
return _35.resolutionContext;
|
|
9438
9685
|
},
|
|
9439
9686
|
'optionalAccess',
|
|
9440
|
-
function(
|
|
9441
|
-
return
|
|
9687
|
+
function(_36) {
|
|
9688
|
+
return _36.baseUrl;
|
|
9442
9689
|
}
|
|
9443
9690
|
]));
|
|
9444
9691
|
cookies = getAllRequestCookies(args.request);
|
|
@@ -9474,16 +9721,16 @@ var _HttpHandler = /*#__PURE__*/ function(RequestHandler) {
|
|
|
9474
9721
|
params: _optionalChain([
|
|
9475
9722
|
args,
|
|
9476
9723
|
'access',
|
|
9477
|
-
function(
|
|
9478
|
-
return
|
|
9724
|
+
function(_37) {
|
|
9725
|
+
return _37.parsedResult;
|
|
9479
9726
|
},
|
|
9480
9727
|
'access',
|
|
9481
|
-
function(
|
|
9482
|
-
return
|
|
9728
|
+
function(_38) {
|
|
9729
|
+
return _38.match;
|
|
9483
9730
|
},
|
|
9484
9731
|
'optionalAccess',
|
|
9485
|
-
function(
|
|
9486
|
-
return
|
|
9732
|
+
function(_39) {
|
|
9733
|
+
return _39.params;
|
|
9487
9734
|
}
|
|
9488
9735
|
]) || {},
|
|
9489
9736
|
cookies: args.parsedResult.cookies
|
|
@@ -9876,12 +10123,12 @@ var Headers2 = (_a6 = /*#__PURE__*/ function() {
|
|
|
9876
10123
|
].includes(_optionalChain([
|
|
9877
10124
|
init,
|
|
9878
10125
|
'optionalAccess',
|
|
9879
|
-
function(
|
|
9880
|
-
return
|
|
10126
|
+
function(_40) {
|
|
10127
|
+
return _40.constructor;
|
|
9881
10128
|
},
|
|
9882
10129
|
'access',
|
|
9883
|
-
function(
|
|
9884
|
-
return
|
|
10130
|
+
function(_41) {
|
|
10131
|
+
return _41.name;
|
|
9885
10132
|
}
|
|
9886
10133
|
])) || _instanceof(init, _a6) || typeof globalThis.Headers !== "undefined" && _instanceof(init, globalThis.Headers)) {
|
|
9887
10134
|
var initialHeaders = init;
|
|
@@ -10320,22 +10567,22 @@ function normalizeResponseInit() {
|
|
|
10320
10567
|
var status = _optionalChain([
|
|
10321
10568
|
init,
|
|
10322
10569
|
'optionalAccess',
|
|
10323
|
-
function(
|
|
10324
|
-
return
|
|
10570
|
+
function(_42) {
|
|
10571
|
+
return _42.status;
|
|
10325
10572
|
}
|
|
10326
10573
|
]) || 200;
|
|
10327
10574
|
var statusText = _optionalChain([
|
|
10328
10575
|
init,
|
|
10329
10576
|
'optionalAccess',
|
|
10330
|
-
function(
|
|
10331
|
-
return
|
|
10577
|
+
function(_43) {
|
|
10578
|
+
return _43.statusText;
|
|
10332
10579
|
}
|
|
10333
10580
|
]) || message2[status] || "";
|
|
10334
10581
|
var headers = new Headers(_optionalChain([
|
|
10335
10582
|
init,
|
|
10336
10583
|
'optionalAccess',
|
|
10337
|
-
function(
|
|
10338
|
-
return
|
|
10584
|
+
function(_44) {
|
|
10585
|
+
return _44.headers;
|
|
10339
10586
|
}
|
|
10340
10587
|
]));
|
|
10341
10588
|
return _object_spread_props(_object_spread({}, init), {
|
|
@@ -11309,6 +11556,144 @@ var _RestCardRepository = /*#__PURE__*/ function() {
|
|
|
11309
11556
|
});
|
|
11310
11557
|
})();
|
|
11311
11558
|
}
|
|
11559
|
+
},
|
|
11560
|
+
{
|
|
11561
|
+
key: "orderCard",
|
|
11562
|
+
value: function orderCard(orderRequest) {
|
|
11563
|
+
var _this = this;
|
|
11564
|
+
return _async_to_generator(function() {
|
|
11565
|
+
var cuiApiBaseUrl, queryParams, path, params, result, error2;
|
|
11566
|
+
return _ts_generator(this, function(_state) {
|
|
11567
|
+
switch(_state.label){
|
|
11568
|
+
case 0:
|
|
11569
|
+
logDebug("Ordering card", {
|
|
11570
|
+
idType: orderRequest.idType,
|
|
11571
|
+
adapter: "RestCardRepository"
|
|
11572
|
+
});
|
|
11573
|
+
_state.label = 1;
|
|
11574
|
+
case 1:
|
|
11575
|
+
_state.trys.push([
|
|
11576
|
+
1,
|
|
11577
|
+
3,
|
|
11578
|
+
,
|
|
11579
|
+
4
|
|
11580
|
+
]);
|
|
11581
|
+
cuiApiBaseUrl = getEnvConfigValueByName("CUI_API_BASE_URL");
|
|
11582
|
+
queryParams = new URLSearchParams();
|
|
11583
|
+
if (orderRequest.idType) {
|
|
11584
|
+
queryParams.append("id_type", orderRequest.idType);
|
|
11585
|
+
}
|
|
11586
|
+
path = "".concat(cuiApiBaseUrl, "/api/v2/users/cards").concat(queryParams.toString() ? "?".concat(queryParams.toString()) : "");
|
|
11587
|
+
params = {
|
|
11588
|
+
body: JSON.stringify(orderRequest.request),
|
|
11589
|
+
headers: _object_spread({
|
|
11590
|
+
"Content-Type": "application/json"
|
|
11591
|
+
}, getCommonApiHeaders())
|
|
11592
|
+
};
|
|
11593
|
+
return [
|
|
11594
|
+
4,
|
|
11595
|
+
_this.httpClient.post(path, params)
|
|
11596
|
+
];
|
|
11597
|
+
case 2:
|
|
11598
|
+
result = _state.sent();
|
|
11599
|
+
logInfo("Card ordered successfully", {
|
|
11600
|
+
cardToken: result.token,
|
|
11601
|
+
state: result.state,
|
|
11602
|
+
adapter: "RestCardRepository"
|
|
11603
|
+
});
|
|
11604
|
+
return [
|
|
11605
|
+
2,
|
|
11606
|
+
result
|
|
11607
|
+
];
|
|
11608
|
+
case 3:
|
|
11609
|
+
error2 = _state.sent();
|
|
11610
|
+
logError("Unable to order card", {
|
|
11611
|
+
error: error2,
|
|
11612
|
+
idType: orderRequest.idType,
|
|
11613
|
+
adapter: "RestCardRepository"
|
|
11614
|
+
});
|
|
11615
|
+
throw new MqSDKError("Unable to order card", error2);
|
|
11616
|
+
case 4:
|
|
11617
|
+
return [
|
|
11618
|
+
2
|
|
11619
|
+
];
|
|
11620
|
+
}
|
|
11621
|
+
});
|
|
11622
|
+
})();
|
|
11623
|
+
}
|
|
11624
|
+
},
|
|
11625
|
+
{
|
|
11626
|
+
key: "replaceCardV2",
|
|
11627
|
+
value: function replaceCardV2(replaceRequest) {
|
|
11628
|
+
var _this = this;
|
|
11629
|
+
return _async_to_generator(function() {
|
|
11630
|
+
var cuiApiBaseUrl, queryParams, path, params, result, error2;
|
|
11631
|
+
return _ts_generator(this, function(_state) {
|
|
11632
|
+
switch(_state.label){
|
|
11633
|
+
case 0:
|
|
11634
|
+
logDebug("Replacing card", {
|
|
11635
|
+
cardToken: replaceRequest.cardToken,
|
|
11636
|
+
reason: replaceRequest.request.replacement_reason,
|
|
11637
|
+
adapter: "RestCardRepository"
|
|
11638
|
+
});
|
|
11639
|
+
_state.label = 1;
|
|
11640
|
+
case 1:
|
|
11641
|
+
_state.trys.push([
|
|
11642
|
+
1,
|
|
11643
|
+
3,
|
|
11644
|
+
,
|
|
11645
|
+
4
|
|
11646
|
+
]);
|
|
11647
|
+
cuiApiBaseUrl = getEnvConfigValueByName("CUI_API_BASE_URL");
|
|
11648
|
+
queryParams = new URLSearchParams([
|
|
11649
|
+
[
|
|
11650
|
+
"card_token",
|
|
11651
|
+
replaceRequest.cardToken
|
|
11652
|
+
]
|
|
11653
|
+
]);
|
|
11654
|
+
if (replaceRequest.idType) {
|
|
11655
|
+
queryParams.append("id_type", replaceRequest.idType);
|
|
11656
|
+
}
|
|
11657
|
+
path = "".concat(cuiApiBaseUrl, "/api/v2/users/cards/replacements?").concat(queryParams.toString());
|
|
11658
|
+
params = {
|
|
11659
|
+
body: JSON.stringify(replaceRequest.request),
|
|
11660
|
+
headers: _object_spread({
|
|
11661
|
+
"Content-Type": "application/json"
|
|
11662
|
+
}, getCommonApiHeaders())
|
|
11663
|
+
};
|
|
11664
|
+
return [
|
|
11665
|
+
4,
|
|
11666
|
+
_this.httpClient.post(path, params)
|
|
11667
|
+
];
|
|
11668
|
+
case 2:
|
|
11669
|
+
result = _state.sent();
|
|
11670
|
+
logInfo("Card replaced successfully", {
|
|
11671
|
+
originalCardToken: replaceRequest.cardToken,
|
|
11672
|
+
newCardToken: result.replacement_card_token,
|
|
11673
|
+
terminatedCardToken: result.terminated_card_token,
|
|
11674
|
+
adapter: "RestCardRepository"
|
|
11675
|
+
});
|
|
11676
|
+
return [
|
|
11677
|
+
2,
|
|
11678
|
+
result
|
|
11679
|
+
];
|
|
11680
|
+
case 3:
|
|
11681
|
+
error2 = _state.sent();
|
|
11682
|
+
logError("Unable to replace card", {
|
|
11683
|
+
error: error2,
|
|
11684
|
+
cardToken: replaceRequest.cardToken,
|
|
11685
|
+
reason: replaceRequest.request.replacement_reason,
|
|
11686
|
+
adapter: "RestCardRepository"
|
|
11687
|
+
});
|
|
11688
|
+
throw new MqSDKError("Unable to replace card", error2);
|
|
11689
|
+
case 4:
|
|
11690
|
+
return [
|
|
11691
|
+
2
|
|
11692
|
+
];
|
|
11693
|
+
}
|
|
11694
|
+
});
|
|
11695
|
+
})();
|
|
11696
|
+
}
|
|
11312
11697
|
}
|
|
11313
11698
|
]);
|
|
11314
11699
|
return _RestCardRepository;
|
|
@@ -12129,6 +12514,59 @@ function _getDepositAccounts() {
|
|
|
12129
12514
|
return _getDepositAccounts.apply(this, arguments);
|
|
12130
12515
|
}
|
|
12131
12516
|
__name(getDepositAccounts, "getDepositAccounts");
|
|
12517
|
+
function getUserAccounts() {
|
|
12518
|
+
return _getUserAccounts.apply(this, arguments);
|
|
12519
|
+
}
|
|
12520
|
+
function _getUserAccounts() {
|
|
12521
|
+
_getUserAccounts = // src/accounts/base/interactors/getUserAccounts.ts
|
|
12522
|
+
_async_to_generator(function() {
|
|
12523
|
+
var container2, accountRepository, result, error2;
|
|
12524
|
+
return _ts_generator(this, function(_state) {
|
|
12525
|
+
switch(_state.label){
|
|
12526
|
+
case 0:
|
|
12527
|
+
logDebug("Getting user accounts", {
|
|
12528
|
+
interactor: "getUserAccounts"
|
|
12529
|
+
});
|
|
12530
|
+
_state.label = 1;
|
|
12531
|
+
case 1:
|
|
12532
|
+
_state.trys.push([
|
|
12533
|
+
1,
|
|
12534
|
+
3,
|
|
12535
|
+
,
|
|
12536
|
+
4
|
|
12537
|
+
]);
|
|
12538
|
+
container2 = getActiveIocContainer();
|
|
12539
|
+
accountRepository = container2.get(ITF_ACCOUNT_REPOSITORY);
|
|
12540
|
+
return [
|
|
12541
|
+
4,
|
|
12542
|
+
accountRepository.getUserAccounts()
|
|
12543
|
+
];
|
|
12544
|
+
case 2:
|
|
12545
|
+
result = _state.sent();
|
|
12546
|
+
logInfo("User accounts retrieved successfully", {
|
|
12547
|
+
interactor: "getUserAccounts"
|
|
12548
|
+
});
|
|
12549
|
+
return [
|
|
12550
|
+
2,
|
|
12551
|
+
result
|
|
12552
|
+
];
|
|
12553
|
+
case 3:
|
|
12554
|
+
error2 = _state.sent();
|
|
12555
|
+
logError("Failed to get user accounts", {
|
|
12556
|
+
error: error2,
|
|
12557
|
+
interactor: "getUserAccounts"
|
|
12558
|
+
});
|
|
12559
|
+
throw error2;
|
|
12560
|
+
case 4:
|
|
12561
|
+
return [
|
|
12562
|
+
2
|
|
12563
|
+
];
|
|
12564
|
+
}
|
|
12565
|
+
});
|
|
12566
|
+
});
|
|
12567
|
+
return _getUserAccounts.apply(this, arguments);
|
|
12568
|
+
}
|
|
12569
|
+
__name(getUserAccounts, "getUserAccounts");
|
|
12132
12570
|
// src/accounts/base/repositories/iAccountRepository.ts
|
|
12133
12571
|
function _ts_decorate35(decorators, target, key, desc) {
|
|
12134
12572
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
@@ -12146,6 +12584,23 @@ iAccountRepository = exports.iAccountRepository = _ts_decorate35([
|
|
|
12146
12584
|
_inversify.injectable.call(void 0)
|
|
12147
12585
|
], iAccountRepository);
|
|
12148
12586
|
// src/accounts/base/repositories/MockAccountRepository.ts
|
|
12587
|
+
// src/accounts/base/types/UserAccountsResponse.ts
|
|
12588
|
+
var UserAccountStatus;
|
|
12589
|
+
(function(UserAccountStatus2) {
|
|
12590
|
+
UserAccountStatus2["Active"] = "ACTIVE";
|
|
12591
|
+
UserAccountStatus2["Suspended"] = "SUSPENDED";
|
|
12592
|
+
UserAccountStatus2["Terminated"] = "TERMINATED";
|
|
12593
|
+
UserAccountStatus2["Unactivated"] = "UNACTIVATED";
|
|
12594
|
+
UserAccountStatus2["ChargeOff"] = "CHARGE_OFF";
|
|
12595
|
+
})(UserAccountStatus || (UserAccountStatus = exports.UserAccountStatus = {}));
|
|
12596
|
+
var UserAccountType;
|
|
12597
|
+
(function(UserAccountType2) {
|
|
12598
|
+
UserAccountType2["Checking"] = "CHECKING";
|
|
12599
|
+
UserAccountType2["Savings"] = "SAVINGS";
|
|
12600
|
+
UserAccountType2["SecuredDepositAccount"] = "SECURED_DEPOSIT_ACCOUNT";
|
|
12601
|
+
UserAccountType2["Credit"] = "CREDIT";
|
|
12602
|
+
})(UserAccountType || (UserAccountType = exports.UserAccountType = {}));
|
|
12603
|
+
// src/accounts/base/repositories/MockAccountRepository.ts
|
|
12149
12604
|
function _ts_decorate36(decorators, target, key, desc) {
|
|
12150
12605
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
12151
12606
|
if ((typeof Reflect === "undefined" ? "undefined" : _type_of(Reflect)) === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -12164,6 +12619,50 @@ var TEST_DEPOSIT_ACCOUNT = {
|
|
|
12164
12619
|
created_time: "",
|
|
12165
12620
|
last_modified_time: ""
|
|
12166
12621
|
};
|
|
12622
|
+
var TEST_USER_ACCOUNTS = {
|
|
12623
|
+
count: 2,
|
|
12624
|
+
start_index: 0,
|
|
12625
|
+
end_index: 1,
|
|
12626
|
+
is_more: false,
|
|
12627
|
+
data: [
|
|
12628
|
+
{
|
|
12629
|
+
token: "3d0cbd5d-a535-11f0-bd53-1dbc2894964f",
|
|
12630
|
+
type: UserAccountType.Credit,
|
|
12631
|
+
currency_code: "USD",
|
|
12632
|
+
balance: 0,
|
|
12633
|
+
last_four: "000",
|
|
12634
|
+
routing_number: "routing_number",
|
|
12635
|
+
account_number: "account_numer",
|
|
12636
|
+
branch_code: "branch_code",
|
|
12637
|
+
account_holder_name: "Sample Name",
|
|
12638
|
+
spendable_balance: 0,
|
|
12639
|
+
ledger_balance: 10,
|
|
12640
|
+
credit_balance_details: {
|
|
12641
|
+
credit_limit: 0,
|
|
12642
|
+
owed_balance: -2520,
|
|
12643
|
+
remaining_statement_owed_balance: 0,
|
|
12644
|
+
remaining_min_payment_owed: 0,
|
|
12645
|
+
payment_due_day: 31
|
|
12646
|
+
},
|
|
12647
|
+
status: UserAccountStatus.Active
|
|
12648
|
+
},
|
|
12649
|
+
{
|
|
12650
|
+
token: "3b425d72-a535-11f0-932e-19b50114b91f",
|
|
12651
|
+
type: UserAccountType.SecuredDepositAccount,
|
|
12652
|
+
currency_code: "USD",
|
|
12653
|
+
balance: 0,
|
|
12654
|
+
last_four: "0000",
|
|
12655
|
+
routing_number: "routing_number",
|
|
12656
|
+
account_number: "account_number",
|
|
12657
|
+
branch_code: "branch_code",
|
|
12658
|
+
account_holder_name: "Sample",
|
|
12659
|
+
spendable_balance: 0,
|
|
12660
|
+
ledger_balance: 0,
|
|
12661
|
+
credit_balance_details: {},
|
|
12662
|
+
status: UserAccountStatus.Active
|
|
12663
|
+
}
|
|
12664
|
+
]
|
|
12665
|
+
};
|
|
12167
12666
|
var _MockAccountRepository = /*#__PURE__*/ function() {
|
|
12168
12667
|
function _MockAccountRepository() {
|
|
12169
12668
|
_class_call_check(this, _MockAccountRepository);
|
|
@@ -12172,6 +12671,7 @@ var _MockAccountRepository = /*#__PURE__*/ function() {
|
|
|
12172
12671
|
__publicField(this, "_depositAccountsResponse", [
|
|
12173
12672
|
new DepositAccountEntity(TEST_DEPOSIT_ACCOUNT)
|
|
12174
12673
|
]);
|
|
12674
|
+
__publicField(this, "_userAccountsListResponse", TEST_USER_ACCOUNTS);
|
|
12175
12675
|
}
|
|
12176
12676
|
_create_class(_MockAccountRepository, [
|
|
12177
12677
|
{
|
|
@@ -12192,6 +12692,12 @@ var _MockAccountRepository = /*#__PURE__*/ function() {
|
|
|
12192
12692
|
this._depositAccountsResponse = response;
|
|
12193
12693
|
}
|
|
12194
12694
|
},
|
|
12695
|
+
{
|
|
12696
|
+
key: "setUserAccountsResponse",
|
|
12697
|
+
value: function setUserAccountsResponse(response) {
|
|
12698
|
+
this._userAccountsListResponse = response;
|
|
12699
|
+
}
|
|
12700
|
+
},
|
|
12195
12701
|
{
|
|
12196
12702
|
key: "getAccountHolderGroup",
|
|
12197
12703
|
value: function getAccountHolderGroup(shortCode) {
|
|
@@ -12245,6 +12751,23 @@ var _MockAccountRepository = /*#__PURE__*/ function() {
|
|
|
12245
12751
|
});
|
|
12246
12752
|
})();
|
|
12247
12753
|
}
|
|
12754
|
+
},
|
|
12755
|
+
{
|
|
12756
|
+
key: "getUserAccounts",
|
|
12757
|
+
value: function getUserAccounts() {
|
|
12758
|
+
var _this = this;
|
|
12759
|
+
return _async_to_generator(function() {
|
|
12760
|
+
return _ts_generator(this, function(_state) {
|
|
12761
|
+
if (_instanceof(_this._userAccountsListResponse, Error)) {
|
|
12762
|
+
throw _this._userAccountsListResponse;
|
|
12763
|
+
}
|
|
12764
|
+
return [
|
|
12765
|
+
2,
|
|
12766
|
+
_this._userAccountsListResponse
|
|
12767
|
+
];
|
|
12768
|
+
});
|
|
12769
|
+
})();
|
|
12770
|
+
}
|
|
12248
12771
|
}
|
|
12249
12772
|
]);
|
|
12250
12773
|
return _MockAccountRepository;
|
|
@@ -12493,6 +13016,61 @@ var _RestAccountRepository = /*#__PURE__*/ function() {
|
|
|
12493
13016
|
});
|
|
12494
13017
|
})();
|
|
12495
13018
|
}
|
|
13019
|
+
},
|
|
13020
|
+
{
|
|
13021
|
+
key: "getUserAccounts",
|
|
13022
|
+
value: function getUserAccounts() {
|
|
13023
|
+
var _this = this;
|
|
13024
|
+
return _async_to_generator(function() {
|
|
13025
|
+
var cuiApiBaseUrl, path, params, data, err;
|
|
13026
|
+
return _ts_generator(this, function(_state) {
|
|
13027
|
+
switch(_state.label){
|
|
13028
|
+
case 0:
|
|
13029
|
+
logDebug("Getting user accounts", {
|
|
13030
|
+
adapter: "RestAccountRepository"
|
|
13031
|
+
});
|
|
13032
|
+
_state.label = 1;
|
|
13033
|
+
case 1:
|
|
13034
|
+
_state.trys.push([
|
|
13035
|
+
1,
|
|
13036
|
+
3,
|
|
13037
|
+
,
|
|
13038
|
+
4
|
|
13039
|
+
]);
|
|
13040
|
+
cuiApiBaseUrl = getEnvConfigValueByName("CUI_API_BASE_URL");
|
|
13041
|
+
path = "".concat(cuiApiBaseUrl, "/api/v2/users/accounts");
|
|
13042
|
+
params = {
|
|
13043
|
+
method: "GET",
|
|
13044
|
+
headers: getCommonApiHeaders()
|
|
13045
|
+
};
|
|
13046
|
+
return [
|
|
13047
|
+
4,
|
|
13048
|
+
_this.httpClient.get(path, params)
|
|
13049
|
+
];
|
|
13050
|
+
case 2:
|
|
13051
|
+
data = _state.sent();
|
|
13052
|
+
logInfo("User accounts retrieved successfully", {
|
|
13053
|
+
adapter: "RestAccountRepository"
|
|
13054
|
+
});
|
|
13055
|
+
return [
|
|
13056
|
+
2,
|
|
13057
|
+
data
|
|
13058
|
+
];
|
|
13059
|
+
case 3:
|
|
13060
|
+
err = _state.sent();
|
|
13061
|
+
logError("Unable to retrieve user accounts", {
|
|
13062
|
+
err: err,
|
|
13063
|
+
adapter: "RestAccountRepository"
|
|
13064
|
+
});
|
|
13065
|
+
throw new MqSDKError("Unable to retrieve user accounts", err);
|
|
13066
|
+
case 4:
|
|
13067
|
+
return [
|
|
13068
|
+
2
|
|
13069
|
+
];
|
|
13070
|
+
}
|
|
13071
|
+
});
|
|
13072
|
+
})();
|
|
13073
|
+
}
|
|
12496
13074
|
}
|
|
12497
13075
|
]);
|
|
12498
13076
|
return _RestAccountRepository;
|
|
@@ -12523,6 +13101,30 @@ var ACCOUNT_UNVERIFIED_CUI_AUTH_TOKEN = "ACCOUNT_UNVERIFIED_CUI_AUTH_TOKEN";
|
|
|
12523
13101
|
var ACCOUNT_SUSPENDED_CUI_AUTH_TOKEN = "ACCOUNT_SUSPENDED_CUI_AUTH_TOKEN";
|
|
12524
13102
|
var ACCOUNT_CLOSED_CUI_AUTH_TOKEN = "ACCOUNT_CLOSED_CUI_AUTH_TOKEN";
|
|
12525
13103
|
// src/accounts/adapters/rest/httpMocks.ts
|
|
13104
|
+
var mockUserAccounts = {
|
|
13105
|
+
count: 2,
|
|
13106
|
+
start_index: 0,
|
|
13107
|
+
end_index: 1,
|
|
13108
|
+
is_more: false,
|
|
13109
|
+
data: [
|
|
13110
|
+
{
|
|
13111
|
+
token: "account_token_1",
|
|
13112
|
+
type: UserAccountType.Checking,
|
|
13113
|
+
balance: 1000.5,
|
|
13114
|
+
currency_code: "USD",
|
|
13115
|
+
last_four: "1234",
|
|
13116
|
+
account_number: "1234567890",
|
|
13117
|
+
routing_number: "123456789"
|
|
13118
|
+
},
|
|
13119
|
+
{
|
|
13120
|
+
token: "account_token_2",
|
|
13121
|
+
type: UserAccountType.Savings,
|
|
13122
|
+
balance: 5e3,
|
|
13123
|
+
currency_code: "USD",
|
|
13124
|
+
last_four: "5678"
|
|
13125
|
+
}
|
|
13126
|
+
]
|
|
13127
|
+
};
|
|
12526
13128
|
var mswAccountHandlers = [
|
|
12527
13129
|
// Simulate account holder group statuses by different user tokens
|
|
12528
13130
|
http.get("".concat(mockMode_exports.CUI_API_BASE_URL, "/api/v1/accountholdergroup"), function() {
|
|
@@ -12536,12 +13138,12 @@ var mswAccountHandlers = [
|
|
|
12536
13138
|
_$_optionalChain = _sliced_to_array(_optionalChain([
|
|
12537
13139
|
authorization,
|
|
12538
13140
|
'optionalAccess',
|
|
12539
|
-
function(
|
|
12540
|
-
return
|
|
13141
|
+
function(_45) {
|
|
13142
|
+
return _45.split;
|
|
12541
13143
|
},
|
|
12542
13144
|
'call',
|
|
12543
|
-
function(
|
|
12544
|
-
return
|
|
13145
|
+
function(_46) {
|
|
13146
|
+
return _46(" ");
|
|
12545
13147
|
}
|
|
12546
13148
|
]), 2), _ = _$_optionalChain[0], token = _$_optionalChain[1];
|
|
12547
13149
|
userStatus = "ACTIVE";
|
|
@@ -12688,6 +13290,9 @@ var mswAccountHandlers = [
|
|
|
12688
13290
|
ok: true,
|
|
12689
13291
|
status: 200
|
|
12690
13292
|
});
|
|
13293
|
+
}),
|
|
13294
|
+
http.get("".concat(mockMode_exports.CUI_API_BASE_URL, "/api/v2/users/accounts"), function() {
|
|
13295
|
+
return HttpResponse.json(mockUserAccounts);
|
|
12691
13296
|
})
|
|
12692
13297
|
];
|
|
12693
13298
|
// src/analytics/ioc/symbols.ts
|
|
@@ -13729,12 +14334,12 @@ var _RestComponentsRepository = /*#__PURE__*/ function() {
|
|
|
13729
14334
|
componentCount: _optionalChain([
|
|
13730
14335
|
data,
|
|
13731
14336
|
'access',
|
|
13732
|
-
function(
|
|
13733
|
-
return
|
|
14337
|
+
function(_47) {
|
|
14338
|
+
return _47.components;
|
|
13734
14339
|
},
|
|
13735
14340
|
'optionalAccess',
|
|
13736
|
-
function(
|
|
13737
|
-
return
|
|
14341
|
+
function(_48) {
|
|
14342
|
+
return _48.length;
|
|
13738
14343
|
}
|
|
13739
14344
|
]) || 0,
|
|
13740
14345
|
adapter: "RestComponentsRepository"
|
|
@@ -14260,16 +14865,16 @@ function _retrieveDocumentForDispute() {
|
|
|
14260
14865
|
documentCount: _optionalChain([
|
|
14261
14866
|
result,
|
|
14262
14867
|
'access',
|
|
14263
|
-
function(
|
|
14264
|
-
return
|
|
14868
|
+
function(_49) {
|
|
14869
|
+
return _49.data;
|
|
14265
14870
|
},
|
|
14266
14871
|
'optionalAccess',
|
|
14267
|
-
function(
|
|
14268
|
-
return
|
|
14872
|
+
function(_50) {
|
|
14873
|
+
return _50.documents;
|
|
14269
14874
|
},
|
|
14270
14875
|
'optionalAccess',
|
|
14271
|
-
function(
|
|
14272
|
-
return
|
|
14876
|
+
function(_51) {
|
|
14877
|
+
return _51.length;
|
|
14273
14878
|
}
|
|
14274
14879
|
]) || 0,
|
|
14275
14880
|
interactor: "retrieveDocumentForDispute"
|
|
@@ -15125,12 +15730,12 @@ var _RestDisputeRepository = /*#__PURE__*/ function() {
|
|
|
15125
15730
|
stepCount: _optionalChain([
|
|
15126
15731
|
result,
|
|
15127
15732
|
'access',
|
|
15128
|
-
function(
|
|
15129
|
-
return
|
|
15733
|
+
function(_52) {
|
|
15734
|
+
return _52.steps;
|
|
15130
15735
|
},
|
|
15131
15736
|
'optionalAccess',
|
|
15132
|
-
function(
|
|
15133
|
-
return
|
|
15737
|
+
function(_53) {
|
|
15738
|
+
return _53.length;
|
|
15134
15739
|
}
|
|
15135
15740
|
]),
|
|
15136
15741
|
adapter: "RestDisputeRepository"
|
|
@@ -15451,16 +16056,16 @@ var _RestDisputeRepository = /*#__PURE__*/ function() {
|
|
|
15451
16056
|
documentCount: _optionalChain([
|
|
15452
16057
|
result,
|
|
15453
16058
|
'access',
|
|
15454
|
-
function(
|
|
15455
|
-
return
|
|
16059
|
+
function(_54) {
|
|
16060
|
+
return _54.data;
|
|
15456
16061
|
},
|
|
15457
16062
|
'optionalAccess',
|
|
15458
|
-
function(
|
|
15459
|
-
return
|
|
16063
|
+
function(_55) {
|
|
16064
|
+
return _55.documents;
|
|
15460
16065
|
},
|
|
15461
16066
|
'optionalAccess',
|
|
15462
|
-
function(
|
|
15463
|
-
return
|
|
16067
|
+
function(_56) {
|
|
16068
|
+
return _56.length;
|
|
15464
16069
|
}
|
|
15465
16070
|
]),
|
|
15466
16071
|
adapter: "RestDisputeRepository"
|
|
@@ -15625,65 +16230,65 @@ var mswDisputesHandlers = [
|
|
|
15625
16230
|
var initalQnAns = _optionalChain([
|
|
15626
16231
|
CUR_STEP1_RESPONSE,
|
|
15627
16232
|
'access',
|
|
15628
|
-
function(
|
|
15629
|
-
return
|
|
16233
|
+
function(_57) {
|
|
16234
|
+
return _57.defaultValues;
|
|
15630
16235
|
},
|
|
15631
16236
|
'optionalAccess',
|
|
15632
|
-
function(
|
|
15633
|
-
return
|
|
16237
|
+
function(_58) {
|
|
16238
|
+
return _58["Q-INITIAL-QUESTION"];
|
|
15634
16239
|
}
|
|
15635
16240
|
]);
|
|
15636
16241
|
if (initalQnAns) {
|
|
15637
16242
|
var initalQnReadableAns = _optionalChain([
|
|
15638
16243
|
CUR_STEP1_RESPONSE,
|
|
15639
16244
|
'access',
|
|
15640
|
-
function(
|
|
15641
|
-
return
|
|
16245
|
+
function(_59) {
|
|
16246
|
+
return _59.schema;
|
|
15642
16247
|
},
|
|
15643
16248
|
'optionalAccess',
|
|
15644
|
-
function(
|
|
15645
|
-
return
|
|
16249
|
+
function(_60) {
|
|
16250
|
+
return _60.properties;
|
|
15646
16251
|
},
|
|
15647
16252
|
'optionalAccess',
|
|
15648
|
-
function(
|
|
15649
|
-
return
|
|
16253
|
+
function(_61) {
|
|
16254
|
+
return _61["Q-INITIAL-QUESTION"];
|
|
15650
16255
|
},
|
|
15651
16256
|
'optionalAccess',
|
|
15652
|
-
function(
|
|
15653
|
-
return
|
|
16257
|
+
function(_62) {
|
|
16258
|
+
return _62.oneOf;
|
|
15654
16259
|
},
|
|
15655
16260
|
'optionalAccess',
|
|
15656
|
-
function(
|
|
15657
|
-
return
|
|
16261
|
+
function(_63) {
|
|
16262
|
+
return _63.find;
|
|
15658
16263
|
},
|
|
15659
16264
|
'call',
|
|
15660
|
-
function(
|
|
15661
|
-
return
|
|
16265
|
+
function(_64) {
|
|
16266
|
+
return _64(function(val) {
|
|
15662
16267
|
return val.const === initalQnAns;
|
|
15663
16268
|
});
|
|
15664
16269
|
},
|
|
15665
16270
|
'optionalAccess',
|
|
15666
|
-
function(
|
|
15667
|
-
return
|
|
16271
|
+
function(_65) {
|
|
16272
|
+
return _65.title;
|
|
15668
16273
|
}
|
|
15669
16274
|
]);
|
|
15670
16275
|
var initialQuestion = _optionalChain([
|
|
15671
16276
|
CUR_STEP1_RESPONSE,
|
|
15672
16277
|
'access',
|
|
15673
|
-
function(
|
|
15674
|
-
return
|
|
16278
|
+
function(_66) {
|
|
16279
|
+
return _66.schema;
|
|
15675
16280
|
},
|
|
15676
16281
|
'optionalAccess',
|
|
15677
|
-
function(
|
|
15678
|
-
return
|
|
16282
|
+
function(_67) {
|
|
16283
|
+
return _67.properties;
|
|
15679
16284
|
},
|
|
15680
16285
|
'optionalAccess',
|
|
15681
|
-
function(
|
|
15682
|
-
return
|
|
16286
|
+
function(_68) {
|
|
16287
|
+
return _68["Q-INITIAL-QUESTION"];
|
|
15683
16288
|
},
|
|
15684
16289
|
'optionalAccess',
|
|
15685
|
-
function(
|
|
15686
|
-
return
|
|
16290
|
+
function(_69) {
|
|
16291
|
+
return _69.title;
|
|
15687
16292
|
}
|
|
15688
16293
|
]);
|
|
15689
16294
|
if (initialQuestion && initalQnReadableAns) {
|
|
@@ -15699,64 +16304,64 @@ var mswDisputesHandlers = [
|
|
|
15699
16304
|
var fraudQnAns = _optionalChain([
|
|
15700
16305
|
CUR_FRAUD_STEP_RESPONSE,
|
|
15701
16306
|
'access',
|
|
15702
|
-
function(
|
|
15703
|
-
return
|
|
16307
|
+
function(_70) {
|
|
16308
|
+
return _70.defaultValues;
|
|
15704
16309
|
},
|
|
15705
16310
|
'optionalAccess',
|
|
15706
|
-
function(
|
|
15707
|
-
return
|
|
16311
|
+
function(_71) {
|
|
16312
|
+
return _71["Q-card-with-user"];
|
|
15708
16313
|
}
|
|
15709
16314
|
]);
|
|
15710
16315
|
var fraudQnReadableAns = _optionalChain([
|
|
15711
16316
|
CUR_FRAUD_STEP_RESPONSE,
|
|
15712
16317
|
'access',
|
|
15713
|
-
function(
|
|
15714
|
-
return
|
|
16318
|
+
function(_72) {
|
|
16319
|
+
return _72.schema;
|
|
15715
16320
|
},
|
|
15716
16321
|
'optionalAccess',
|
|
15717
|
-
function(
|
|
15718
|
-
return
|
|
16322
|
+
function(_73) {
|
|
16323
|
+
return _73.properties;
|
|
15719
16324
|
},
|
|
15720
16325
|
'optionalAccess',
|
|
15721
|
-
function(
|
|
15722
|
-
return
|
|
16326
|
+
function(_74) {
|
|
16327
|
+
return _74["Q-card-with-user"];
|
|
15723
16328
|
},
|
|
15724
16329
|
'optionalAccess',
|
|
15725
|
-
function(
|
|
15726
|
-
return
|
|
16330
|
+
function(_75) {
|
|
16331
|
+
return _75.oneOf;
|
|
15727
16332
|
},
|
|
15728
16333
|
'optionalAccess',
|
|
15729
|
-
function(
|
|
15730
|
-
return
|
|
16334
|
+
function(_76) {
|
|
16335
|
+
return _76.find;
|
|
15731
16336
|
},
|
|
15732
16337
|
'call',
|
|
15733
|
-
function(
|
|
15734
|
-
return
|
|
16338
|
+
function(_77) {
|
|
16339
|
+
return _77(function(val) {
|
|
15735
16340
|
return val.const === fraudQnAns;
|
|
15736
16341
|
});
|
|
15737
16342
|
},
|
|
15738
16343
|
'optionalAccess',
|
|
15739
|
-
function(
|
|
15740
|
-
return
|
|
16344
|
+
function(_78) {
|
|
16345
|
+
return _78.title;
|
|
15741
16346
|
}
|
|
15742
16347
|
]);
|
|
15743
16348
|
var fraudQuestion = _optionalChain([
|
|
15744
16349
|
CUR_FRAUD_STEP_RESPONSE,
|
|
15745
16350
|
'access',
|
|
15746
|
-
function(
|
|
15747
|
-
return
|
|
16351
|
+
function(_79) {
|
|
16352
|
+
return _79.schema;
|
|
15748
16353
|
},
|
|
15749
16354
|
'optionalAccess',
|
|
15750
|
-
function(
|
|
15751
|
-
return
|
|
16355
|
+
function(_80) {
|
|
16356
|
+
return _80.properties;
|
|
15752
16357
|
},
|
|
15753
16358
|
'optionalAccess',
|
|
15754
|
-
function(
|
|
15755
|
-
return
|
|
16359
|
+
function(_81) {
|
|
16360
|
+
return _81["Q-card-with-user"];
|
|
15756
16361
|
},
|
|
15757
16362
|
'optionalAccess',
|
|
15758
|
-
function(
|
|
15759
|
-
return
|
|
16363
|
+
function(_82) {
|
|
16364
|
+
return _82.title;
|
|
15760
16365
|
}
|
|
15761
16366
|
]);
|
|
15762
16367
|
if (fraudQnReadableAns && fraudQuestion) answersForReview.push({
|
|
@@ -15769,64 +16374,64 @@ var mswDisputesHandlers = [
|
|
|
15769
16374
|
var recognizedQnAns = _optionalChain([
|
|
15770
16375
|
CUR_RECOGNIZED_TRANSACTION_RESPONSE,
|
|
15771
16376
|
'access',
|
|
15772
|
-
function(
|
|
15773
|
-
return
|
|
16377
|
+
function(_83) {
|
|
16378
|
+
return _83.defaultValues;
|
|
15774
16379
|
},
|
|
15775
16380
|
'optionalAccess',
|
|
15776
|
-
function(
|
|
15777
|
-
return
|
|
16381
|
+
function(_84) {
|
|
16382
|
+
return _84.Q2;
|
|
15778
16383
|
}
|
|
15779
16384
|
]);
|
|
15780
16385
|
var recognizedQnReadableAns = _optionalChain([
|
|
15781
16386
|
CUR_RECOGNIZED_TRANSACTION_RESPONSE,
|
|
15782
16387
|
'access',
|
|
15783
|
-
function(
|
|
15784
|
-
return
|
|
16388
|
+
function(_85) {
|
|
16389
|
+
return _85.schema;
|
|
15785
16390
|
},
|
|
15786
16391
|
'optionalAccess',
|
|
15787
|
-
function(
|
|
15788
|
-
return
|
|
16392
|
+
function(_86) {
|
|
16393
|
+
return _86.properties;
|
|
15789
16394
|
},
|
|
15790
16395
|
'optionalAccess',
|
|
15791
|
-
function(
|
|
15792
|
-
return
|
|
16396
|
+
function(_87) {
|
|
16397
|
+
return _87.Q2;
|
|
15793
16398
|
},
|
|
15794
16399
|
'optionalAccess',
|
|
15795
|
-
function(
|
|
15796
|
-
return
|
|
16400
|
+
function(_88) {
|
|
16401
|
+
return _88.oneOf;
|
|
15797
16402
|
},
|
|
15798
16403
|
'optionalAccess',
|
|
15799
|
-
function(
|
|
15800
|
-
return
|
|
16404
|
+
function(_89) {
|
|
16405
|
+
return _89.find;
|
|
15801
16406
|
},
|
|
15802
16407
|
'call',
|
|
15803
|
-
function(
|
|
15804
|
-
return
|
|
16408
|
+
function(_90) {
|
|
16409
|
+
return _90(function(val) {
|
|
15805
16410
|
return val.const === recognizedQnAns;
|
|
15806
16411
|
});
|
|
15807
16412
|
},
|
|
15808
16413
|
'optionalAccess',
|
|
15809
|
-
function(
|
|
15810
|
-
return
|
|
16414
|
+
function(_91) {
|
|
16415
|
+
return _91.title;
|
|
15811
16416
|
}
|
|
15812
16417
|
]);
|
|
15813
16418
|
var recognizedQuestion = _optionalChain([
|
|
15814
16419
|
CUR_RECOGNIZED_TRANSACTION_RESPONSE,
|
|
15815
16420
|
'access',
|
|
15816
|
-
function(
|
|
15817
|
-
return
|
|
16421
|
+
function(_92) {
|
|
16422
|
+
return _92.schema;
|
|
15818
16423
|
},
|
|
15819
16424
|
'optionalAccess',
|
|
15820
|
-
function(
|
|
15821
|
-
return
|
|
16425
|
+
function(_93) {
|
|
16426
|
+
return _93.properties;
|
|
15822
16427
|
},
|
|
15823
16428
|
'optionalAccess',
|
|
15824
|
-
function(
|
|
15825
|
-
return
|
|
16429
|
+
function(_94) {
|
|
16430
|
+
return _94.Q2;
|
|
15826
16431
|
},
|
|
15827
16432
|
'optionalAccess',
|
|
15828
|
-
function(
|
|
15829
|
-
return
|
|
16433
|
+
function(_95) {
|
|
16434
|
+
return _95.title;
|
|
15830
16435
|
}
|
|
15831
16436
|
]);
|
|
15832
16437
|
if (recognizedQnReadableAns && recognizedQuestion) {
|
|
@@ -15842,65 +16447,65 @@ var mswDisputesHandlers = [
|
|
|
15842
16447
|
var amountQnAns = _optionalChain([
|
|
15843
16448
|
CUR_AMOUNT_STEP_RESPONSE,
|
|
15844
16449
|
'access',
|
|
15845
|
-
function(
|
|
15846
|
-
return
|
|
16450
|
+
function(_96) {
|
|
16451
|
+
return _96.defaultValues;
|
|
15847
16452
|
},
|
|
15848
16453
|
'optionalAccess',
|
|
15849
|
-
function(
|
|
15850
|
-
return
|
|
16454
|
+
function(_97) {
|
|
16455
|
+
return _97.Q13;
|
|
15851
16456
|
}
|
|
15852
16457
|
]);
|
|
15853
16458
|
if (amountQnAns) {
|
|
15854
16459
|
var amountQnReadableAns = _optionalChain([
|
|
15855
16460
|
CUR_AMOUNT_STEP_RESPONSE,
|
|
15856
16461
|
'access',
|
|
15857
|
-
function(
|
|
15858
|
-
return
|
|
16462
|
+
function(_98) {
|
|
16463
|
+
return _98.schema;
|
|
15859
16464
|
},
|
|
15860
16465
|
'optionalAccess',
|
|
15861
|
-
function(
|
|
15862
|
-
return
|
|
16466
|
+
function(_99) {
|
|
16467
|
+
return _99.properties;
|
|
15863
16468
|
},
|
|
15864
16469
|
'optionalAccess',
|
|
15865
|
-
function(
|
|
15866
|
-
return
|
|
16470
|
+
function(_100) {
|
|
16471
|
+
return _100.Q13;
|
|
15867
16472
|
},
|
|
15868
16473
|
'optionalAccess',
|
|
15869
|
-
function(
|
|
15870
|
-
return
|
|
16474
|
+
function(_101) {
|
|
16475
|
+
return _101.oneOf;
|
|
15871
16476
|
},
|
|
15872
16477
|
'optionalAccess',
|
|
15873
|
-
function(
|
|
15874
|
-
return
|
|
16478
|
+
function(_102) {
|
|
16479
|
+
return _102.find;
|
|
15875
16480
|
},
|
|
15876
16481
|
'call',
|
|
15877
|
-
function(
|
|
15878
|
-
return
|
|
16482
|
+
function(_103) {
|
|
16483
|
+
return _103(function(val) {
|
|
15879
16484
|
return val.const === amountQnAns;
|
|
15880
16485
|
});
|
|
15881
16486
|
},
|
|
15882
16487
|
'optionalAccess',
|
|
15883
|
-
function(
|
|
15884
|
-
return
|
|
16488
|
+
function(_104) {
|
|
16489
|
+
return _104.title;
|
|
15885
16490
|
}
|
|
15886
16491
|
]);
|
|
15887
16492
|
var amountQuestion = _optionalChain([
|
|
15888
16493
|
CUR_AMOUNT_STEP_RESPONSE,
|
|
15889
16494
|
'access',
|
|
15890
|
-
function(
|
|
15891
|
-
return
|
|
16495
|
+
function(_105) {
|
|
16496
|
+
return _105.schema;
|
|
15892
16497
|
},
|
|
15893
16498
|
'optionalAccess',
|
|
15894
|
-
function(
|
|
15895
|
-
return
|
|
16499
|
+
function(_106) {
|
|
16500
|
+
return _106.properties;
|
|
15896
16501
|
},
|
|
15897
16502
|
'optionalAccess',
|
|
15898
|
-
function(
|
|
15899
|
-
return
|
|
16503
|
+
function(_107) {
|
|
16504
|
+
return _107.Q13;
|
|
15900
16505
|
},
|
|
15901
16506
|
'optionalAccess',
|
|
15902
|
-
function(
|
|
15903
|
-
return
|
|
16507
|
+
function(_108) {
|
|
16508
|
+
return _108.title;
|
|
15904
16509
|
}
|
|
15905
16510
|
]);
|
|
15906
16511
|
if (amountQnReadableAns && amountQuestion) {
|
|
@@ -15913,48 +16518,48 @@ var mswDisputesHandlers = [
|
|
|
15913
16518
|
if (_optionalChain([
|
|
15914
16519
|
CUR_AMOUNT_STEP_RESPONSE,
|
|
15915
16520
|
'access',
|
|
15916
|
-
function(
|
|
15917
|
-
return
|
|
16521
|
+
function(_109) {
|
|
16522
|
+
return _109.defaultValues;
|
|
15918
16523
|
},
|
|
15919
16524
|
'optionalAccess',
|
|
15920
|
-
function(
|
|
15921
|
-
return
|
|
16525
|
+
function(_110) {
|
|
16526
|
+
return _110.Q100;
|
|
15922
16527
|
}
|
|
15923
16528
|
])) {
|
|
15924
16529
|
answersForReview.push({
|
|
15925
16530
|
question: _optionalChain([
|
|
15926
16531
|
CUR_AMOUNT_STEP_RESPONSE,
|
|
15927
16532
|
'access',
|
|
15928
|
-
function(
|
|
15929
|
-
return
|
|
16533
|
+
function(_111) {
|
|
16534
|
+
return _111.schema;
|
|
15930
16535
|
},
|
|
15931
16536
|
'optionalAccess',
|
|
15932
|
-
function(
|
|
15933
|
-
return
|
|
16537
|
+
function(_112) {
|
|
16538
|
+
return _112.dependencies;
|
|
15934
16539
|
},
|
|
15935
16540
|
'optionalAccess',
|
|
15936
|
-
function(
|
|
15937
|
-
return
|
|
16541
|
+
function(_113) {
|
|
16542
|
+
return _113.Q13;
|
|
15938
16543
|
},
|
|
15939
16544
|
'optionalAccess',
|
|
15940
|
-
function(
|
|
15941
|
-
return
|
|
16545
|
+
function(_114) {
|
|
16546
|
+
return _114.oneOf;
|
|
15942
16547
|
},
|
|
15943
16548
|
'optionalAccess',
|
|
15944
|
-
function(
|
|
15945
|
-
return
|
|
16549
|
+
function(_115) {
|
|
16550
|
+
return _115[0];
|
|
15946
16551
|
},
|
|
15947
16552
|
'optionalAccess',
|
|
15948
|
-
function(
|
|
15949
|
-
return
|
|
16553
|
+
function(_116) {
|
|
16554
|
+
return _116.properties;
|
|
15950
16555
|
},
|
|
15951
16556
|
'optionalAccess',
|
|
15952
|
-
function(
|
|
15953
|
-
return
|
|
16557
|
+
function(_117) {
|
|
16558
|
+
return _117.Q100;
|
|
15954
16559
|
},
|
|
15955
16560
|
'optionalAccess',
|
|
15956
|
-
function(
|
|
15957
|
-
return
|
|
16561
|
+
function(_118) {
|
|
16562
|
+
return _118.title;
|
|
15958
16563
|
}
|
|
15959
16564
|
]),
|
|
15960
16565
|
answers: [
|
|
@@ -15965,48 +16570,48 @@ var mswDisputesHandlers = [
|
|
|
15965
16570
|
if (_optionalChain([
|
|
15966
16571
|
CUR_AMOUNT_STEP_RESPONSE,
|
|
15967
16572
|
'access',
|
|
15968
|
-
function(
|
|
15969
|
-
return
|
|
16573
|
+
function(_119) {
|
|
16574
|
+
return _119.defaultValues;
|
|
15970
16575
|
},
|
|
15971
16576
|
'optionalAccess',
|
|
15972
|
-
function(
|
|
15973
|
-
return
|
|
16577
|
+
function(_120) {
|
|
16578
|
+
return _120.Q14;
|
|
15974
16579
|
}
|
|
15975
16580
|
])) {
|
|
15976
16581
|
answersForReview.push({
|
|
15977
16582
|
question: _optionalChain([
|
|
15978
16583
|
CUR_AMOUNT_STEP_RESPONSE,
|
|
15979
16584
|
'access',
|
|
15980
|
-
function(
|
|
15981
|
-
return
|
|
16585
|
+
function(_121) {
|
|
16586
|
+
return _121.schema;
|
|
15982
16587
|
},
|
|
15983
16588
|
'optionalAccess',
|
|
15984
|
-
function(
|
|
15985
|
-
return
|
|
16589
|
+
function(_122) {
|
|
16590
|
+
return _122.dependencies;
|
|
15986
16591
|
},
|
|
15987
16592
|
'optionalAccess',
|
|
15988
|
-
function(
|
|
15989
|
-
return
|
|
16593
|
+
function(_123) {
|
|
16594
|
+
return _123.Q13;
|
|
15990
16595
|
},
|
|
15991
16596
|
'optionalAccess',
|
|
15992
|
-
function(
|
|
15993
|
-
return
|
|
16597
|
+
function(_124) {
|
|
16598
|
+
return _124.oneOf;
|
|
15994
16599
|
},
|
|
15995
16600
|
'optionalAccess',
|
|
15996
|
-
function(
|
|
15997
|
-
return
|
|
16601
|
+
function(_125) {
|
|
16602
|
+
return _125[1];
|
|
15998
16603
|
},
|
|
15999
16604
|
'optionalAccess',
|
|
16000
|
-
function(
|
|
16001
|
-
return
|
|
16605
|
+
function(_126) {
|
|
16606
|
+
return _126.properties;
|
|
16002
16607
|
},
|
|
16003
16608
|
'optionalAccess',
|
|
16004
|
-
function(
|
|
16005
|
-
return
|
|
16609
|
+
function(_127) {
|
|
16610
|
+
return _127.Q14;
|
|
16006
16611
|
},
|
|
16007
16612
|
'optionalAccess',
|
|
16008
|
-
function(
|
|
16009
|
-
return
|
|
16613
|
+
function(_128) {
|
|
16614
|
+
return _128.title;
|
|
16010
16615
|
}
|
|
16011
16616
|
]),
|
|
16012
16617
|
answers: [
|
|
@@ -16017,48 +16622,48 @@ var mswDisputesHandlers = [
|
|
|
16017
16622
|
if (_optionalChain([
|
|
16018
16623
|
CUR_AMOUNT_STEP_RESPONSE,
|
|
16019
16624
|
'access',
|
|
16020
|
-
function(
|
|
16021
|
-
return
|
|
16625
|
+
function(_129) {
|
|
16626
|
+
return _129.defaultValues;
|
|
16022
16627
|
},
|
|
16023
16628
|
'optionalAccess',
|
|
16024
|
-
function(
|
|
16025
|
-
return
|
|
16629
|
+
function(_130) {
|
|
16630
|
+
return _130.Q15;
|
|
16026
16631
|
}
|
|
16027
16632
|
])) {
|
|
16028
16633
|
answersForReview.push({
|
|
16029
16634
|
question: _optionalChain([
|
|
16030
16635
|
CUR_AMOUNT_STEP_RESPONSE,
|
|
16031
16636
|
'access',
|
|
16032
|
-
function(
|
|
16033
|
-
return
|
|
16637
|
+
function(_131) {
|
|
16638
|
+
return _131.schema;
|
|
16034
16639
|
},
|
|
16035
16640
|
'optionalAccess',
|
|
16036
|
-
function(
|
|
16037
|
-
return
|
|
16641
|
+
function(_132) {
|
|
16642
|
+
return _132.dependencies;
|
|
16038
16643
|
},
|
|
16039
16644
|
'optionalAccess',
|
|
16040
|
-
function(
|
|
16041
|
-
return
|
|
16645
|
+
function(_133) {
|
|
16646
|
+
return _133.Q13;
|
|
16042
16647
|
},
|
|
16043
16648
|
'optionalAccess',
|
|
16044
|
-
function(
|
|
16045
|
-
return
|
|
16649
|
+
function(_134) {
|
|
16650
|
+
return _134.oneOf;
|
|
16046
16651
|
},
|
|
16047
16652
|
'optionalAccess',
|
|
16048
|
-
function(
|
|
16049
|
-
return
|
|
16653
|
+
function(_135) {
|
|
16654
|
+
return _135[1];
|
|
16050
16655
|
},
|
|
16051
16656
|
'optionalAccess',
|
|
16052
|
-
function(
|
|
16053
|
-
return
|
|
16657
|
+
function(_136) {
|
|
16658
|
+
return _136.properties;
|
|
16054
16659
|
},
|
|
16055
16660
|
'optionalAccess',
|
|
16056
|
-
function(
|
|
16057
|
-
return
|
|
16661
|
+
function(_137) {
|
|
16662
|
+
return _137.Q15;
|
|
16058
16663
|
},
|
|
16059
16664
|
'optionalAccess',
|
|
16060
|
-
function(
|
|
16061
|
-
return
|
|
16665
|
+
function(_138) {
|
|
16666
|
+
return _138.title;
|
|
16062
16667
|
}
|
|
16063
16668
|
]),
|
|
16064
16669
|
answers: [
|
|
@@ -16210,12 +16815,12 @@ var mswDisputesHandlers = [
|
|
|
16210
16815
|
var initialQuestionAnswer = _optionalChain([
|
|
16211
16816
|
CUR_STEP1_RESPONSE,
|
|
16212
16817
|
'access',
|
|
16213
|
-
function(
|
|
16214
|
-
return
|
|
16818
|
+
function(_139) {
|
|
16819
|
+
return _139.defaultValues;
|
|
16215
16820
|
},
|
|
16216
16821
|
'optionalAccess',
|
|
16217
|
-
function(
|
|
16218
|
-
return
|
|
16822
|
+
function(_140) {
|
|
16823
|
+
return _140["Q-INITIAL-QUESTION"];
|
|
16219
16824
|
}
|
|
16220
16825
|
]);
|
|
16221
16826
|
switch(initialQuestionAnswer){
|
|
@@ -17821,14 +18426,14 @@ var _RestKycRepository = /*#__PURE__*/ function() {
|
|
|
17821
18426
|
if (_optionalChain([
|
|
17822
18427
|
error2,
|
|
17823
18428
|
'optionalAccess',
|
|
17824
|
-
function(
|
|
17825
|
-
return
|
|
18429
|
+
function(_141) {
|
|
18430
|
+
return _141.msg;
|
|
17826
18431
|
}
|
|
17827
18432
|
]) && _optionalChain([
|
|
17828
18433
|
error2,
|
|
17829
18434
|
'optionalAccess',
|
|
17830
|
-
function(
|
|
17831
|
-
return
|
|
18435
|
+
function(_142) {
|
|
18436
|
+
return _142.debug;
|
|
17832
18437
|
}
|
|
17833
18438
|
])) {
|
|
17834
18439
|
logError("KYC verification failed with standardized error", {
|
|
@@ -17886,12 +18491,12 @@ function _postVerifyKyb() {
|
|
|
17886
18491
|
if (kybVerificationAttributes.locale_code === "INVALID" || !_optionalChain([
|
|
17887
18492
|
kybVerificationAttributes,
|
|
17888
18493
|
'access',
|
|
17889
|
-
function(
|
|
17890
|
-
return
|
|
18494
|
+
function(_143) {
|
|
18495
|
+
return _143.answers;
|
|
17891
18496
|
},
|
|
17892
18497
|
'optionalAccess',
|
|
17893
|
-
function(
|
|
17894
|
-
return
|
|
18498
|
+
function(_144) {
|
|
18499
|
+
return _144.length;
|
|
17895
18500
|
}
|
|
17896
18501
|
])) {
|
|
17897
18502
|
logError("Invalid KYB request - invalid locale or no answers", {
|
|
@@ -17903,16 +18508,16 @@ function _postVerifyKyb() {
|
|
|
17903
18508
|
hasErrorValue = _optionalChain([
|
|
17904
18509
|
kybVerificationAttributes,
|
|
17905
18510
|
'access',
|
|
17906
|
-
function(
|
|
17907
|
-
return
|
|
18511
|
+
function(_145) {
|
|
18512
|
+
return _145.answers;
|
|
17908
18513
|
},
|
|
17909
18514
|
'optionalAccess',
|
|
17910
|
-
function(
|
|
17911
|
-
return
|
|
18515
|
+
function(_146) {
|
|
18516
|
+
return _146.some;
|
|
17912
18517
|
},
|
|
17913
18518
|
'call',
|
|
17914
|
-
function(
|
|
17915
|
-
return
|
|
18519
|
+
function(_147) {
|
|
18520
|
+
return _147(function(answer) {
|
|
17916
18521
|
return [
|
|
17917
18522
|
"222222222",
|
|
17918
18523
|
"444444444",
|
|
@@ -19394,14 +19999,14 @@ var _RestKybRepository = /*#__PURE__*/ function() {
|
|
|
19394
19999
|
if (_optionalChain([
|
|
19395
20000
|
error2,
|
|
19396
20001
|
'optionalAccess',
|
|
19397
|
-
function(
|
|
19398
|
-
return
|
|
20002
|
+
function(_148) {
|
|
20003
|
+
return _148.msg;
|
|
19399
20004
|
}
|
|
19400
20005
|
]) && _optionalChain([
|
|
19401
20006
|
error2,
|
|
19402
20007
|
'optionalAccess',
|
|
19403
|
-
function(
|
|
19404
|
-
return
|
|
20008
|
+
function(_149) {
|
|
20009
|
+
return _149.debug;
|
|
19405
20010
|
}
|
|
19406
20011
|
])) {
|
|
19407
20012
|
logError("KYB onboarding initialization failed with standardized error", {
|
|
@@ -19469,14 +20074,14 @@ var _RestKybRepository = /*#__PURE__*/ function() {
|
|
|
19469
20074
|
if (_optionalChain([
|
|
19470
20075
|
error2,
|
|
19471
20076
|
'optionalAccess',
|
|
19472
|
-
function(
|
|
19473
|
-
return
|
|
20077
|
+
function(_150) {
|
|
20078
|
+
return _150.msg;
|
|
19474
20079
|
}
|
|
19475
20080
|
]) && _optionalChain([
|
|
19476
20081
|
error2,
|
|
19477
20082
|
'optionalAccess',
|
|
19478
|
-
function(
|
|
19479
|
-
return
|
|
20083
|
+
function(_151) {
|
|
20084
|
+
return _151.debug;
|
|
19480
20085
|
}
|
|
19481
20086
|
])) {
|
|
19482
20087
|
logError("KYB verification failed with standardized error", {
|
|
@@ -19815,12 +20420,12 @@ var _RestMoneyMovementRepository = /*#__PURE__*/ function() {
|
|
|
19815
20420
|
cardCount: _optionalChain([
|
|
19816
20421
|
result,
|
|
19817
20422
|
'access',
|
|
19818
|
-
function(
|
|
19819
|
-
return
|
|
20423
|
+
function(_152) {
|
|
20424
|
+
return _152.data;
|
|
19820
20425
|
},
|
|
19821
20426
|
'optionalAccess',
|
|
19822
|
-
function(
|
|
19823
|
-
return
|
|
20427
|
+
function(_153) {
|
|
20428
|
+
return _153.length;
|
|
19824
20429
|
}
|
|
19825
20430
|
]) || 0,
|
|
19826
20431
|
adapter: "RestMoneyMovementRepository"
|
|
@@ -20317,12 +20922,12 @@ function _getExternalCards() {
|
|
|
20317
20922
|
cardCount: _optionalChain([
|
|
20318
20923
|
result,
|
|
20319
20924
|
'access',
|
|
20320
|
-
function(
|
|
20321
|
-
return
|
|
20925
|
+
function(_154) {
|
|
20926
|
+
return _154.data;
|
|
20322
20927
|
},
|
|
20323
20928
|
'optionalAccess',
|
|
20324
|
-
function(
|
|
20325
|
-
return
|
|
20929
|
+
function(_155) {
|
|
20930
|
+
return _155.length;
|
|
20326
20931
|
}
|
|
20327
20932
|
]) || 0,
|
|
20328
20933
|
interactor: "getExternalCards"
|
|
@@ -21176,7 +21781,7 @@ var _RestIdpService = /*#__PURE__*/ function(iIdpService) {
|
|
|
21176
21781
|
if (parsedUrl.protocol !== "https:") {
|
|
21177
21782
|
throw new Error("OAuth base URL must use HTTPS protocol");
|
|
21178
21783
|
}
|
|
21179
|
-
} catch (
|
|
21784
|
+
} catch (e5) {
|
|
21180
21785
|
throw new Error("Invalid OAuth base URL format");
|
|
21181
21786
|
}
|
|
21182
21787
|
}
|
|
@@ -21799,12 +22404,12 @@ var _RestStatementsRepository = /*#__PURE__*/ function() {
|
|
|
21799
22404
|
statementCount: _optionalChain([
|
|
21800
22405
|
response,
|
|
21801
22406
|
'access',
|
|
21802
|
-
function(
|
|
21803
|
-
return
|
|
22407
|
+
function(_156) {
|
|
22408
|
+
return _156.data;
|
|
21804
22409
|
},
|
|
21805
22410
|
'optionalAccess',
|
|
21806
|
-
function(
|
|
21807
|
-
return
|
|
22411
|
+
function(_157) {
|
|
22412
|
+
return _157.length;
|
|
21808
22413
|
}
|
|
21809
22414
|
]) || 0,
|
|
21810
22415
|
hasMore: response.is_more,
|
|
@@ -21998,7 +22603,7 @@ var formatDateForClient = /* @__PURE__ */ __name(function(timestamp) {
|
|
|
21998
22603
|
day: "numeric"
|
|
21999
22604
|
});
|
|
22000
22605
|
return formattedDate.replace("Sep", "Sept");
|
|
22001
|
-
} catch (
|
|
22606
|
+
} catch (e6) {
|
|
22002
22607
|
return timestamp;
|
|
22003
22608
|
}
|
|
22004
22609
|
}, "formatDateForClient");
|
|
@@ -23017,6 +23622,7 @@ var _MockTransactionsRepository = /*#__PURE__*/ function() {
|
|
|
23017
23622
|
function _MockTransactionsRepository() {
|
|
23018
23623
|
_class_call_check(this, _MockTransactionsRepository);
|
|
23019
23624
|
__publicField(this, "transactionDetailsIndex", {});
|
|
23625
|
+
__publicField(this, "transactionByTokenIndex", {});
|
|
23020
23626
|
__publicField(this, "transactionsStore", {
|
|
23021
23627
|
pending: [],
|
|
23022
23628
|
transactions: []
|
|
@@ -23137,6 +23743,36 @@ var _MockTransactionsRepository = /*#__PURE__*/ function() {
|
|
|
23137
23743
|
});
|
|
23138
23744
|
})();
|
|
23139
23745
|
}
|
|
23746
|
+
},
|
|
23747
|
+
{
|
|
23748
|
+
key: "loadTransactionByToken",
|
|
23749
|
+
value: function loadTransactionByToken(transactionToken, transaction) {
|
|
23750
|
+
this.transactionByTokenIndex[transactionToken] = transaction;
|
|
23751
|
+
}
|
|
23752
|
+
},
|
|
23753
|
+
{
|
|
23754
|
+
key: "getTransactionByToken",
|
|
23755
|
+
value: function getTransactionByToken(request) {
|
|
23756
|
+
var _this = this;
|
|
23757
|
+
return _async_to_generator(function() {
|
|
23758
|
+
var transaction;
|
|
23759
|
+
return _ts_generator(this, function(_state) {
|
|
23760
|
+
try {
|
|
23761
|
+
transaction = _this.transactionByTokenIndex[request.transaction_token];
|
|
23762
|
+
if (!transaction) throw new Error("Transaction not found");
|
|
23763
|
+
return [
|
|
23764
|
+
2,
|
|
23765
|
+
transaction
|
|
23766
|
+
];
|
|
23767
|
+
} catch (err) {
|
|
23768
|
+
throw new MqSDKError("Unable to get transaction by token", err);
|
|
23769
|
+
}
|
|
23770
|
+
return [
|
|
23771
|
+
2
|
|
23772
|
+
];
|
|
23773
|
+
});
|
|
23774
|
+
})();
|
|
23775
|
+
}
|
|
23140
23776
|
}
|
|
23141
23777
|
]);
|
|
23142
23778
|
return _MockTransactionsRepository;
|
|
@@ -23411,6 +24047,62 @@ function _getUserTransactionsV2() {
|
|
|
23411
24047
|
return _getUserTransactionsV2.apply(this, arguments);
|
|
23412
24048
|
}
|
|
23413
24049
|
__name(getUserTransactionsV2, "getUserTransactionsV2");
|
|
24050
|
+
function getTransactionByToken(request) {
|
|
24051
|
+
return _getTransactionByToken.apply(this, arguments);
|
|
24052
|
+
}
|
|
24053
|
+
function _getTransactionByToken() {
|
|
24054
|
+
_getTransactionByToken = // src/transactions/base/interactors/getTransactionByToken.ts
|
|
24055
|
+
_async_to_generator(function(request) {
|
|
24056
|
+
var container2, transactionsRepository, transaction, error2;
|
|
24057
|
+
return _ts_generator(this, function(_state) {
|
|
24058
|
+
switch(_state.label){
|
|
24059
|
+
case 0:
|
|
24060
|
+
logDebug("Getting transaction by token", {
|
|
24061
|
+
transaction_token: request.transaction_token,
|
|
24062
|
+
interactor: "getTransactionByToken"
|
|
24063
|
+
});
|
|
24064
|
+
_state.label = 1;
|
|
24065
|
+
case 1:
|
|
24066
|
+
_state.trys.push([
|
|
24067
|
+
1,
|
|
24068
|
+
3,
|
|
24069
|
+
,
|
|
24070
|
+
4
|
|
24071
|
+
]);
|
|
24072
|
+
container2 = getActiveIocContainer();
|
|
24073
|
+
transactionsRepository = container2.get(ITF_TRANSACTIONS);
|
|
24074
|
+
return [
|
|
24075
|
+
4,
|
|
24076
|
+
transactionsRepository.getTransactionByToken(request)
|
|
24077
|
+
];
|
|
24078
|
+
case 2:
|
|
24079
|
+
transaction = _state.sent();
|
|
24080
|
+
logInfo("Transaction retrieved successfully by token", {
|
|
24081
|
+
transaction_token: request.transaction_token,
|
|
24082
|
+
interactor: "getTransactionByToken"
|
|
24083
|
+
});
|
|
24084
|
+
return [
|
|
24085
|
+
2,
|
|
24086
|
+
transaction
|
|
24087
|
+
];
|
|
24088
|
+
case 3:
|
|
24089
|
+
error2 = _state.sent();
|
|
24090
|
+
logError("Failed to get transaction by token", {
|
|
24091
|
+
error: error2,
|
|
24092
|
+
transaction_token: request.transaction_token,
|
|
24093
|
+
interactor: "getTransactionByToken"
|
|
24094
|
+
});
|
|
24095
|
+
throw error2;
|
|
24096
|
+
case 4:
|
|
24097
|
+
return [
|
|
24098
|
+
2
|
|
24099
|
+
];
|
|
24100
|
+
}
|
|
24101
|
+
});
|
|
24102
|
+
});
|
|
24103
|
+
return _getTransactionByToken.apply(this, arguments);
|
|
24104
|
+
}
|
|
24105
|
+
__name(getTransactionByToken, "getTransactionByToken");
|
|
23414
24106
|
// src/transactions/base/types/transactionV2Types.ts
|
|
23415
24107
|
var TransactionDetailIconTypeEnum;
|
|
23416
24108
|
(function(TransactionDetailIconTypeEnum2) {
|
|
@@ -23714,6 +24406,71 @@ var _RestTransactionsRepository = /*#__PURE__*/ function() {
|
|
|
23714
24406
|
});
|
|
23715
24407
|
})();
|
|
23716
24408
|
}
|
|
24409
|
+
},
|
|
24410
|
+
{
|
|
24411
|
+
key: "getTransactionByToken",
|
|
24412
|
+
value: function getTransactionByToken(request) {
|
|
24413
|
+
var _this = this;
|
|
24414
|
+
return _async_to_generator(function() {
|
|
24415
|
+
var cuiApiBaseUrl, queryParams, queryString, path, params, response, err;
|
|
24416
|
+
return _ts_generator(this, function(_state) {
|
|
24417
|
+
switch(_state.label){
|
|
24418
|
+
case 0:
|
|
24419
|
+
logDebug("Getting transaction by token", {
|
|
24420
|
+
transaction_token: request.transaction_token,
|
|
24421
|
+
adapter: "RestTransactionsRepository"
|
|
24422
|
+
});
|
|
24423
|
+
_state.label = 1;
|
|
24424
|
+
case 1:
|
|
24425
|
+
_state.trys.push([
|
|
24426
|
+
1,
|
|
24427
|
+
3,
|
|
24428
|
+
,
|
|
24429
|
+
4
|
|
24430
|
+
]);
|
|
24431
|
+
cuiApiBaseUrl = getEnvConfigValueByName("CUI_API_BASE_URL");
|
|
24432
|
+
queryParams = new URLSearchParams();
|
|
24433
|
+
if (request.transaction_account_type) {
|
|
24434
|
+
queryParams.append("transaction_account_type", request.transaction_account_type);
|
|
24435
|
+
}
|
|
24436
|
+
if (request.account_token) {
|
|
24437
|
+
queryParams.append("account_token", request.account_token);
|
|
24438
|
+
}
|
|
24439
|
+
queryString = queryParams.toString();
|
|
24440
|
+
path = "".concat(cuiApiBaseUrl, "/api/v2/transactions/").concat(request.transaction_token).concat(queryString ? "?".concat(queryString) : "");
|
|
24441
|
+
params = {
|
|
24442
|
+
headers: getCommonApiHeaders()
|
|
24443
|
+
};
|
|
24444
|
+
return [
|
|
24445
|
+
4,
|
|
24446
|
+
_this.httpClient.get(path, params)
|
|
24447
|
+
];
|
|
24448
|
+
case 2:
|
|
24449
|
+
response = _state.sent();
|
|
24450
|
+
logInfo("Transaction retrieved successfully by token", {
|
|
24451
|
+
transaction_token: request.transaction_token,
|
|
24452
|
+
adapter: "RestTransactionsRepository"
|
|
24453
|
+
});
|
|
24454
|
+
return [
|
|
24455
|
+
2,
|
|
24456
|
+
response
|
|
24457
|
+
];
|
|
24458
|
+
case 3:
|
|
24459
|
+
err = _state.sent();
|
|
24460
|
+
logError("Unable to get transaction by token", {
|
|
24461
|
+
err: err,
|
|
24462
|
+
transaction_token: request.transaction_token,
|
|
24463
|
+
adapter: "RestTransactionsRepository"
|
|
24464
|
+
});
|
|
24465
|
+
throw new MqSDKError("Unable to get transaction by token", err);
|
|
24466
|
+
case 4:
|
|
24467
|
+
return [
|
|
24468
|
+
2
|
|
24469
|
+
];
|
|
24470
|
+
}
|
|
24471
|
+
});
|
|
24472
|
+
})();
|
|
24473
|
+
}
|
|
23717
24474
|
}
|
|
23718
24475
|
]);
|
|
23719
24476
|
return _RestTransactionsRepository;
|
|
@@ -24203,12 +24960,12 @@ var filterMockTransactionsByStatus = /* @__PURE__ */ __name(function(statuses) {
|
|
|
24203
24960
|
return statuses.includes(_optionalChain([
|
|
24204
24961
|
status,
|
|
24205
24962
|
'optionalAccess',
|
|
24206
|
-
function(
|
|
24207
|
-
return
|
|
24963
|
+
function(_158) {
|
|
24964
|
+
return _158.toUpperCase;
|
|
24208
24965
|
},
|
|
24209
24966
|
'call',
|
|
24210
|
-
function(
|
|
24211
|
-
return
|
|
24967
|
+
function(_159) {
|
|
24968
|
+
return _159();
|
|
24212
24969
|
}
|
|
24213
24970
|
]));
|
|
24214
24971
|
});
|
|
@@ -24260,8 +25017,8 @@ var mswTransactionsHandlers = [
|
|
|
24260
25017
|
if (_optionalChain([
|
|
24261
25018
|
queryStatus,
|
|
24262
25019
|
'optionalAccess',
|
|
24263
|
-
function(
|
|
24264
|
-
return
|
|
25020
|
+
function(_160) {
|
|
25021
|
+
return _160[0];
|
|
24265
25022
|
}
|
|
24266
25023
|
]) === "PENDING") {
|
|
24267
25024
|
is_more = filteredMockData.length > 10;
|
|
@@ -24361,6 +25118,51 @@ var mswTransactionsHandlers = [
|
|
|
24361
25118
|
})
|
|
24362
25119
|
});
|
|
24363
25120
|
}),
|
|
25121
|
+
http.get("".concat(mockMode_exports.CUI_API_BASE_URL, "/api/v2/transactions/:token"), function(param) {
|
|
25122
|
+
var request = param.request, params = param.params;
|
|
25123
|
+
var authorization = request.headers.get("authorization");
|
|
25124
|
+
var token = params.token;
|
|
25125
|
+
var url = new URL(request.url);
|
|
25126
|
+
var transactionAccountType = url.searchParams.get("transaction_account_type");
|
|
25127
|
+
var accountToken = url.searchParams.get("account_token");
|
|
25128
|
+
if (authorization === "DPoP ".concat(NOT_OK_CUI_AUTH_TOKEN)) {
|
|
25129
|
+
return new HttpResponse(null, {
|
|
25130
|
+
status: 500,
|
|
25131
|
+
statusText: "Internal Error"
|
|
25132
|
+
});
|
|
25133
|
+
}
|
|
25134
|
+
if (authorization !== "DPoP ".concat(VALID_CUI_AUTH_TOKEN) && authorization !== "DPoP ".concat(REFRESHED_CUI_AUTH_TOKEN)) {
|
|
25135
|
+
return new HttpResponse(null, {
|
|
25136
|
+
status: 403,
|
|
25137
|
+
statusText: "Forbidden"
|
|
25138
|
+
});
|
|
25139
|
+
}
|
|
25140
|
+
var mockTransaction = {
|
|
25141
|
+
token: token,
|
|
25142
|
+
amount: 25.5,
|
|
25143
|
+
description: "Coffee Shop Purchase",
|
|
25144
|
+
merchant_name: "Local Coffee Shop",
|
|
25145
|
+
merchant_category_code: "5814",
|
|
25146
|
+
merchant_category: "Fast Food Restaurants",
|
|
25147
|
+
merchant_id: "merchant_456",
|
|
25148
|
+
card_last_four: "1234",
|
|
25149
|
+
created_on: "2024-01-15T10:30:00Z",
|
|
25150
|
+
updated_on: "2024-01-15T10:31:00Z",
|
|
25151
|
+
type: "PURCHASE",
|
|
25152
|
+
response: null,
|
|
25153
|
+
status: "FULFILLED",
|
|
25154
|
+
currency_code: "USD",
|
|
25155
|
+
icon_type: "FOOD_AND_DRINK",
|
|
25156
|
+
has_associated_rewards: false,
|
|
25157
|
+
can_file_more_disputes: true,
|
|
25158
|
+
banner_data: transactionAccountType ? {
|
|
25159
|
+
title: "Test Banner",
|
|
25160
|
+
description: "Test banner description",
|
|
25161
|
+
banner_type: "INFO"
|
|
25162
|
+
} : void 0
|
|
25163
|
+
};
|
|
25164
|
+
return HttpResponse.json(mockTransaction);
|
|
25165
|
+
}),
|
|
24364
25166
|
http.get("".concat(mockMode_exports.CDN_ICONS_BASE_URL, "/icons/txnIcons.json"), function(param) {
|
|
24365
25167
|
var request = param.request;
|
|
24366
25168
|
return HttpResponse.json(txnIcons_default);
|
|
@@ -24770,59 +25572,12 @@ function _ts_metadata21(k, v) {
|
|
|
24770
25572
|
__name(_ts_metadata21, "_ts_metadata");
|
|
24771
25573
|
var _RestWlaService = /*#__PURE__*/ function() {
|
|
24772
25574
|
function _RestWlaService() {
|
|
24773
|
-
var _this = this;
|
|
24774
25575
|
_class_call_check(this, _RestWlaService);
|
|
24775
25576
|
__publicField(this, "cacheService");
|
|
24776
25577
|
__publicField(this, "httpClient");
|
|
24777
25578
|
__publicField(this, "unauthenticatedHttpClient");
|
|
24778
|
-
__publicField(this, "getCommonWlaApiHeaders", /* @__PURE__ */ __name(function() {
|
|
24779
|
-
var appConfig = _this.getAppConfig();
|
|
24780
|
-
return {
|
|
24781
|
-
"app-version": appConfig.appVersion,
|
|
24782
|
-
"device-id": appConfig.deviceId,
|
|
24783
|
-
"client-ip": appConfig.clientIp
|
|
24784
|
-
};
|
|
24785
|
-
}, "getCommonWlaApiHeaders"));
|
|
24786
25579
|
}
|
|
24787
25580
|
_create_class(_RestWlaService, [
|
|
24788
|
-
{
|
|
24789
|
-
key: "setAppConfig",
|
|
24790
|
-
value: function setAppConfig(appVersion, deviceId, clientIp) {
|
|
24791
|
-
logDebug("Setting WLA app config", {
|
|
24792
|
-
appVersion: appVersion,
|
|
24793
|
-
deviceId: deviceId,
|
|
24794
|
-
clientIp: clientIp,
|
|
24795
|
-
adapter: "RestWlaService"
|
|
24796
|
-
});
|
|
24797
|
-
try {
|
|
24798
|
-
this.cacheService.set("wlaAppConfig", JSON.stringify({
|
|
24799
|
-
appVersion: appVersion,
|
|
24800
|
-
deviceId: deviceId,
|
|
24801
|
-
clientIp: clientIp
|
|
24802
|
-
}));
|
|
24803
|
-
logInfo("WLA app config set successfully", {
|
|
24804
|
-
adapter: "RestWlaService"
|
|
24805
|
-
});
|
|
24806
|
-
} catch (error2) {
|
|
24807
|
-
logError("Failed to set WLA app config", {
|
|
24808
|
-
error: error2,
|
|
24809
|
-
adapter: "RestWlaService"
|
|
24810
|
-
});
|
|
24811
|
-
throw error2;
|
|
24812
|
-
}
|
|
24813
|
-
}
|
|
24814
|
-
},
|
|
24815
|
-
{
|
|
24816
|
-
key: "getAppConfig",
|
|
24817
|
-
value: function getAppConfig() {
|
|
24818
|
-
var config = this.cacheService.get("wlaAppConfig");
|
|
24819
|
-
try {
|
|
24820
|
-
var parsedConfig = JSON.parse(config);
|
|
24821
|
-
return parsedConfig;
|
|
24822
|
-
} catch (e5) {}
|
|
24823
|
-
return {};
|
|
24824
|
-
}
|
|
24825
|
-
},
|
|
24826
25581
|
{
|
|
24827
25582
|
key: "transitionOnboardingStatus",
|
|
24828
25583
|
value: function transitionOnboardingStatus(oldStatus, newStatus) {
|
|
@@ -24842,7 +25597,7 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
24842
25597
|
path = "".concat(cuiApiBaseUrl, "/api/v1/wla/user/transition-onboarding-status");
|
|
24843
25598
|
params = {
|
|
24844
25599
|
method: "POST",
|
|
24845
|
-
headers:
|
|
25600
|
+
headers: getCommonApiHeaders(),
|
|
24846
25601
|
body: JSON.stringify({
|
|
24847
25602
|
old_status: oldStatus,
|
|
24848
25603
|
new_status: newStatus
|
|
@@ -24893,7 +25648,7 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
24893
25648
|
cuiApiBaseUrl = getEnvConfigValueByName("CUI_API_BASE_URL");
|
|
24894
25649
|
path = "".concat(cuiApiBaseUrl, "/api/v1/wla/user/profile");
|
|
24895
25650
|
params = {
|
|
24896
|
-
headers:
|
|
25651
|
+
headers: getCommonApiHeaders()
|
|
24897
25652
|
};
|
|
24898
25653
|
return [
|
|
24899
25654
|
4,
|
|
@@ -24948,7 +25703,7 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
24948
25703
|
path = "".concat(cuiApiBaseUrl, "/api/v1/wla/onboarding/create-card");
|
|
24949
25704
|
params = {
|
|
24950
25705
|
method: "POST",
|
|
24951
|
-
headers:
|
|
25706
|
+
headers: getCommonApiHeaders(),
|
|
24952
25707
|
body: JSON.stringify(requestBody)
|
|
24953
25708
|
};
|
|
24954
25709
|
return [
|
|
@@ -25007,7 +25762,7 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
25007
25762
|
path = "".concat(cuiApiBaseUrl, "/api/v1/wla/onboarding/set-pin");
|
|
25008
25763
|
params = {
|
|
25009
25764
|
method: "POST",
|
|
25010
|
-
headers:
|
|
25765
|
+
headers: getCommonApiHeaders(),
|
|
25011
25766
|
body: JSON.stringify({
|
|
25012
25767
|
card_token: cardToken,
|
|
25013
25768
|
pin: pin,
|
|
@@ -25071,7 +25826,7 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
25071
25826
|
path = "".concat(cuiApiBaseUrl, "/api/v1/wla/user/transition-onboarding-status");
|
|
25072
25827
|
params = {
|
|
25073
25828
|
method: "POST",
|
|
25074
|
-
headers:
|
|
25829
|
+
headers: getCommonApiHeaders(),
|
|
25075
25830
|
body: JSON.stringify({
|
|
25076
25831
|
old_status: OnboardingStatus.ACCOUNT_ACTIVATED,
|
|
25077
25832
|
new_status: OnboardingStatus.ACCOUNT_VERIFIED
|
|
@@ -25179,7 +25934,7 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
25179
25934
|
path = "".concat(cuiApiBaseUrl, "/api/v1/wla/user/transition-onboarding-status");
|
|
25180
25935
|
params = {
|
|
25181
25936
|
method: "POST",
|
|
25182
|
-
headers:
|
|
25937
|
+
headers: getCommonApiHeaders(),
|
|
25183
25938
|
body: JSON.stringify({
|
|
25184
25939
|
old_status: OnboardingStatus.CREATED,
|
|
25185
25940
|
new_status: OnboardingStatus.ACCOUNT_ACTIVATED
|
|
@@ -25238,7 +25993,7 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
25238
25993
|
path = "".concat(cuiApiBaseUrl, "/api/v1/wla/settings/push-notification");
|
|
25239
25994
|
params = {
|
|
25240
25995
|
method: "POST",
|
|
25241
|
-
headers:
|
|
25996
|
+
headers: getCommonApiHeaders(),
|
|
25242
25997
|
body: JSON.stringify(requestBody)
|
|
25243
25998
|
};
|
|
25244
25999
|
return [
|
|
@@ -25294,7 +26049,7 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
25294
26049
|
path = "".concat(cuiApiBaseUrl, "/api/v1/wla/settings/push-notification");
|
|
25295
26050
|
params = {
|
|
25296
26051
|
method: "PUT",
|
|
25297
|
-
headers:
|
|
26052
|
+
headers: getCommonApiHeaders(),
|
|
25298
26053
|
body: JSON.stringify(requestBody)
|
|
25299
26054
|
};
|
|
25300
26055
|
return [
|
|
@@ -25350,7 +26105,7 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
25350
26105
|
path = "".concat(cuiApiBaseUrl, "/api/v1/wla/settings/push-notification");
|
|
25351
26106
|
params = {
|
|
25352
26107
|
method: "DELETE",
|
|
25353
|
-
headers:
|
|
26108
|
+
headers: getCommonApiHeaders()
|
|
25354
26109
|
};
|
|
25355
26110
|
return [
|
|
25356
26111
|
4,
|
|
@@ -25404,7 +26159,7 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
25404
26159
|
cuiApiBaseUrl = getEnvConfigValueByName("CUI_API_BASE_URL");
|
|
25405
26160
|
path = "".concat(cuiApiBaseUrl, "/api/v1/wla/offers");
|
|
25406
26161
|
params = {
|
|
25407
|
-
headers:
|
|
26162
|
+
headers: getCommonApiHeaders()
|
|
25408
26163
|
};
|
|
25409
26164
|
return [
|
|
25410
26165
|
4,
|
|
@@ -25462,7 +26217,7 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
25462
26217
|
});
|
|
25463
26218
|
path = "".concat(cuiApiBaseUrl, "/api/v1/wla/offer?").concat(queryParams.toString());
|
|
25464
26219
|
params = {
|
|
25465
|
-
headers:
|
|
26220
|
+
headers: getCommonApiHeaders()
|
|
25466
26221
|
};
|
|
25467
26222
|
return [
|
|
25468
26223
|
4,
|
|
@@ -25522,24 +26277,24 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
25522
26277
|
}, _optionalChain([
|
|
25523
26278
|
requestBody,
|
|
25524
26279
|
'optionalAccess',
|
|
25525
|
-
function(
|
|
25526
|
-
return
|
|
26280
|
+
function(_161) {
|
|
26281
|
+
return _161.status;
|
|
25527
26282
|
}
|
|
25528
26283
|
]) ? {
|
|
25529
26284
|
status: requestBody.status.join(",")
|
|
25530
26285
|
} : {}, _optionalChain([
|
|
25531
26286
|
requestBody,
|
|
25532
26287
|
'optionalAccess',
|
|
25533
|
-
function(
|
|
25534
|
-
return
|
|
26288
|
+
function(_162) {
|
|
26289
|
+
return _162.start_index;
|
|
25535
26290
|
}
|
|
25536
26291
|
]) ? {
|
|
25537
26292
|
start_index: "".concat(requestBody.start_index)
|
|
25538
26293
|
} : {}, _optionalChain([
|
|
25539
26294
|
requestBody,
|
|
25540
26295
|
'optionalAccess',
|
|
25541
|
-
function(
|
|
25542
|
-
return
|
|
26296
|
+
function(_163) {
|
|
26297
|
+
return _163.count;
|
|
25543
26298
|
}
|
|
25544
26299
|
]) ? {
|
|
25545
26300
|
count: "".concat(requestBody.count)
|
|
@@ -25549,7 +26304,7 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
25549
26304
|
"status"
|
|
25550
26305
|
]);
|
|
25551
26306
|
params = {
|
|
25552
|
-
headers:
|
|
26307
|
+
headers: getCommonApiHeaders()
|
|
25553
26308
|
};
|
|
25554
26309
|
return [
|
|
25555
26310
|
4,
|
|
@@ -25610,7 +26365,7 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
25610
26365
|
});
|
|
25611
26366
|
path = "".concat(cuiApiBaseUrl, "/api/v1/wla/card?").concat(queryParams.toString());
|
|
25612
26367
|
params = {
|
|
25613
|
-
headers:
|
|
26368
|
+
headers: getCommonApiHeaders()
|
|
25614
26369
|
};
|
|
25615
26370
|
return [
|
|
25616
26371
|
4,
|
|
@@ -25621,12 +26376,12 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
25621
26376
|
if (_optionalChain([
|
|
25622
26377
|
data,
|
|
25623
26378
|
'access',
|
|
25624
|
-
function(
|
|
25625
|
-
return
|
|
26379
|
+
function(_164) {
|
|
26380
|
+
return _164.card_art;
|
|
25626
26381
|
},
|
|
25627
26382
|
'optionalAccess',
|
|
25628
|
-
function(
|
|
25629
|
-
return
|
|
26383
|
+
function(_165) {
|
|
26384
|
+
return _165.back;
|
|
25630
26385
|
}
|
|
25631
26386
|
])) {
|
|
25632
26387
|
data.card_art.back = "".concat(cardArtBaseUrl).concat(data.card_art.back);
|
|
@@ -25634,12 +26389,12 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
25634
26389
|
if (_optionalChain([
|
|
25635
26390
|
data,
|
|
25636
26391
|
'access',
|
|
25637
|
-
function(
|
|
25638
|
-
return
|
|
26392
|
+
function(_166) {
|
|
26393
|
+
return _166.card_art;
|
|
25639
26394
|
},
|
|
25640
26395
|
'optionalAccess',
|
|
25641
|
-
function(
|
|
25642
|
-
return
|
|
26396
|
+
function(_167) {
|
|
26397
|
+
return _167.front;
|
|
25643
26398
|
}
|
|
25644
26399
|
])) {
|
|
25645
26400
|
data.card_art.front = "".concat(cardArtBaseUrl).concat(data.card_art.front);
|
|
@@ -25693,7 +26448,7 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
25693
26448
|
cuiApiBaseUrl = getEnvConfigValueByName("CUI_API_BASE_URL");
|
|
25694
26449
|
path = "".concat(cuiApiBaseUrl, "/api/v1/wla/externalaccounts/").concat(token);
|
|
25695
26450
|
params = {
|
|
25696
|
-
headers:
|
|
26451
|
+
headers: getCommonApiHeaders()
|
|
25697
26452
|
};
|
|
25698
26453
|
return [
|
|
25699
26454
|
4,
|
|
@@ -25750,32 +26505,32 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
25750
26505
|
queryParams = new URLSearchParams(_object_spread({}, _optionalChain([
|
|
25751
26506
|
requestBody,
|
|
25752
26507
|
'optionalAccess',
|
|
25753
|
-
function(
|
|
25754
|
-
return
|
|
26508
|
+
function(_168) {
|
|
26509
|
+
return _168.count;
|
|
25755
26510
|
}
|
|
25756
26511
|
]) ? {
|
|
25757
26512
|
count: "".concat(requestBody.count)
|
|
25758
26513
|
} : {}, _optionalChain([
|
|
25759
26514
|
requestBody,
|
|
25760
26515
|
'optionalAccess',
|
|
25761
|
-
function(
|
|
25762
|
-
return
|
|
26516
|
+
function(_169) {
|
|
26517
|
+
return _169.start_index;
|
|
25763
26518
|
}
|
|
25764
26519
|
]) ? {
|
|
25765
26520
|
start_index: "".concat(requestBody.start_index)
|
|
25766
26521
|
} : {}, _optionalChain([
|
|
25767
26522
|
requestBody,
|
|
25768
26523
|
'optionalAccess',
|
|
25769
|
-
function(
|
|
25770
|
-
return
|
|
26524
|
+
function(_170) {
|
|
26525
|
+
return _170.sort_by;
|
|
25771
26526
|
}
|
|
25772
26527
|
]) ? {
|
|
25773
26528
|
sort_by: "".concat(requestBody.sort_by)
|
|
25774
26529
|
} : {}, _optionalChain([
|
|
25775
26530
|
requestBody,
|
|
25776
26531
|
'optionalAccess',
|
|
25777
|
-
function(
|
|
25778
|
-
return
|
|
26532
|
+
function(_171) {
|
|
26533
|
+
return _171.status;
|
|
25779
26534
|
}
|
|
25780
26535
|
]) ? {
|
|
25781
26536
|
status: requestBody.status.join(",")
|
|
@@ -25785,7 +26540,7 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
25785
26540
|
"status"
|
|
25786
26541
|
]);
|
|
25787
26542
|
params = {
|
|
25788
|
-
headers:
|
|
26543
|
+
headers: getCommonApiHeaders()
|
|
25789
26544
|
};
|
|
25790
26545
|
return [
|
|
25791
26546
|
4,
|
|
@@ -25805,12 +26560,12 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
25805
26560
|
if (_optionalChain([
|
|
25806
26561
|
error2,
|
|
25807
26562
|
'optionalAccess',
|
|
25808
|
-
function(
|
|
25809
|
-
return
|
|
26563
|
+
function(_172) {
|
|
26564
|
+
return _172.debug;
|
|
25810
26565
|
},
|
|
25811
26566
|
'optionalAccess',
|
|
25812
|
-
function(
|
|
25813
|
-
return
|
|
26567
|
+
function(_173) {
|
|
26568
|
+
return _173.length;
|
|
25814
26569
|
}
|
|
25815
26570
|
])) {
|
|
25816
26571
|
logError("Unable to get external account list with standardized error", {
|
|
@@ -25857,7 +26612,7 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
25857
26612
|
path = "".concat(cuiApiBaseUrl, "/api/v1/wla/externalaccounts");
|
|
25858
26613
|
params = {
|
|
25859
26614
|
method: "POST",
|
|
25860
|
-
headers:
|
|
26615
|
+
headers: getCommonApiHeaders(),
|
|
25861
26616
|
body: JSON.stringify(requestBody)
|
|
25862
26617
|
};
|
|
25863
26618
|
return [
|
|
@@ -25878,12 +26633,12 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
25878
26633
|
if (_optionalChain([
|
|
25879
26634
|
error2,
|
|
25880
26635
|
'optionalAccess',
|
|
25881
|
-
function(
|
|
25882
|
-
return
|
|
26636
|
+
function(_174) {
|
|
26637
|
+
return _174.debug;
|
|
25883
26638
|
},
|
|
25884
26639
|
'optionalAccess',
|
|
25885
|
-
function(
|
|
25886
|
-
return
|
|
26640
|
+
function(_175) {
|
|
26641
|
+
return _175.length;
|
|
25887
26642
|
}
|
|
25888
26643
|
])) {
|
|
25889
26644
|
logError("Unable to create external account with standardized error", {
|
|
@@ -25930,7 +26685,7 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
25930
26685
|
path = "".concat(cuiApiBaseUrl, "/api/v1/wla/externalaccounts/verification");
|
|
25931
26686
|
params = {
|
|
25932
26687
|
method: "POST",
|
|
25933
|
-
headers:
|
|
26688
|
+
headers: getCommonApiHeaders(),
|
|
25934
26689
|
body: JSON.stringify(requestBody)
|
|
25935
26690
|
};
|
|
25936
26691
|
return [
|
|
@@ -25951,12 +26706,12 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
25951
26706
|
if (_optionalChain([
|
|
25952
26707
|
error2,
|
|
25953
26708
|
'optionalAccess',
|
|
25954
|
-
function(
|
|
25955
|
-
return
|
|
26709
|
+
function(_176) {
|
|
26710
|
+
return _176.debug;
|
|
25956
26711
|
},
|
|
25957
26712
|
'optionalAccess',
|
|
25958
|
-
function(
|
|
25959
|
-
return
|
|
26713
|
+
function(_177) {
|
|
26714
|
+
return _177.length;
|
|
25960
26715
|
}
|
|
25961
26716
|
])) {
|
|
25962
26717
|
logError("Unable to verify external account with standardized error", {
|
|
@@ -26004,7 +26759,7 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
26004
26759
|
path = "".concat(cuiApiBaseUrl, "/api/v1/wla/externalaccounts/").concat(token);
|
|
26005
26760
|
params = {
|
|
26006
26761
|
method: "PATCH",
|
|
26007
|
-
headers:
|
|
26762
|
+
headers: getCommonApiHeaders(),
|
|
26008
26763
|
body: JSON.stringify(requestBody)
|
|
26009
26764
|
};
|
|
26010
26765
|
return [
|
|
@@ -26026,12 +26781,12 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
26026
26781
|
if (_optionalChain([
|
|
26027
26782
|
error2,
|
|
26028
26783
|
'optionalAccess',
|
|
26029
|
-
function(
|
|
26030
|
-
return
|
|
26784
|
+
function(_178) {
|
|
26785
|
+
return _178.debug;
|
|
26031
26786
|
},
|
|
26032
26787
|
'optionalAccess',
|
|
26033
|
-
function(
|
|
26034
|
-
return
|
|
26788
|
+
function(_179) {
|
|
26789
|
+
return _179.length;
|
|
26035
26790
|
}
|
|
26036
26791
|
])) {
|
|
26037
26792
|
logError("Unable to update external account with standardized error", {
|
|
@@ -26083,7 +26838,7 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
26083
26838
|
});
|
|
26084
26839
|
path = "".concat(cuiApiBaseUrl, "/api/v1/wla/transaction?").concat(queryParams.toString());
|
|
26085
26840
|
params = {
|
|
26086
|
-
headers:
|
|
26841
|
+
headers: getCommonApiHeaders()
|
|
26087
26842
|
};
|
|
26088
26843
|
return [
|
|
26089
26844
|
4,
|
|
@@ -26140,7 +26895,7 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
26140
26895
|
cuiApiBaseUrl = getEnvConfigValueByName("CUI_API_BASE_URL");
|
|
26141
26896
|
path = "".concat(cuiApiBaseUrl, "/api/v1/wla/transaction/challenge/").concat(challengeToken);
|
|
26142
26897
|
params = {
|
|
26143
|
-
headers:
|
|
26898
|
+
headers: getCommonApiHeaders()
|
|
26144
26899
|
};
|
|
26145
26900
|
return [
|
|
26146
26901
|
4,
|
|
@@ -26196,7 +26951,7 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
26196
26951
|
cuiApiBaseUrl = getEnvConfigValueByName("CUI_API_BASE_URL");
|
|
26197
26952
|
path = "".concat(cuiApiBaseUrl, "/api/v1/wla/transaction/challenge/next");
|
|
26198
26953
|
params = {
|
|
26199
|
-
headers:
|
|
26954
|
+
headers: getCommonApiHeaders()
|
|
26200
26955
|
};
|
|
26201
26956
|
return [
|
|
26202
26957
|
4,
|
|
@@ -26253,7 +27008,7 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
26253
27008
|
path = "".concat(cuiApiBaseUrl, "/api/v1/wla/transaction/challenge/").concat(challengeToken, "/decision");
|
|
26254
27009
|
params = {
|
|
26255
27010
|
method: "POST",
|
|
26256
|
-
headers:
|
|
27011
|
+
headers: getCommonApiHeaders(),
|
|
26257
27012
|
body: JSON.stringify(body)
|
|
26258
27013
|
};
|
|
26259
27014
|
return [
|
|
@@ -26311,7 +27066,7 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
26311
27066
|
path = "".concat(cuiApiBaseUrl, "/api/v1/wla/book-transfer");
|
|
26312
27067
|
params = {
|
|
26313
27068
|
method: "POST",
|
|
26314
|
-
headers:
|
|
27069
|
+
headers: getCommonApiHeaders(),
|
|
26315
27070
|
body: JSON.stringify(requestBody)
|
|
26316
27071
|
};
|
|
26317
27072
|
return [
|
|
@@ -26367,7 +27122,7 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
26367
27122
|
path = "".concat(cuiApiBaseUrl, "/api/v1/wla/origination/transfers");
|
|
26368
27123
|
params = {
|
|
26369
27124
|
method: "POST",
|
|
26370
|
-
headers:
|
|
27125
|
+
headers: getCommonApiHeaders(),
|
|
26371
27126
|
body: JSON.stringify(requestBody)
|
|
26372
27127
|
};
|
|
26373
27128
|
return [
|
|
@@ -26431,7 +27186,7 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
26431
27186
|
});
|
|
26432
27187
|
path = "".concat(cuiApiBaseUrl, "/api/v1/wla/account?").concat(queryParams.toString());
|
|
26433
27188
|
params = {
|
|
26434
|
-
headers:
|
|
27189
|
+
headers: getCommonApiHeaders()
|
|
26435
27190
|
};
|
|
26436
27191
|
return [
|
|
26437
27192
|
4,
|
|
@@ -26494,7 +27249,7 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
26494
27249
|
} : {}));
|
|
26495
27250
|
path = "".concat(cuiApiBaseUrl, "/api/v1/wla/rewardsummaries?").concat(queryParams.toString());
|
|
26496
27251
|
params = {
|
|
26497
|
-
headers:
|
|
27252
|
+
headers: getCommonApiHeaders()
|
|
26498
27253
|
};
|
|
26499
27254
|
return [
|
|
26500
27255
|
4,
|
|
@@ -26565,7 +27320,7 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
26565
27320
|
} : {}));
|
|
26566
27321
|
params = {
|
|
26567
27322
|
method: "POST",
|
|
26568
|
-
headers:
|
|
27323
|
+
headers: getCommonApiHeaders(),
|
|
26569
27324
|
body: JSON.stringify(requestBody)
|
|
26570
27325
|
};
|
|
26571
27326
|
path = "".concat(cuiApiBaseUrl, "/api/v1/wla/atms/search?").concat(queryParams.toString());
|
|
@@ -26622,7 +27377,7 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
26622
27377
|
cuiApiBaseUrl = getEnvConfigValueByName("CUI_API_BASE_URL");
|
|
26623
27378
|
params = {
|
|
26624
27379
|
method: "POST",
|
|
26625
|
-
headers:
|
|
27380
|
+
headers: getCommonApiHeaders(),
|
|
26626
27381
|
body: JSON.stringify(requestBody)
|
|
26627
27382
|
};
|
|
26628
27383
|
path = "".concat(cuiApiBaseUrl, "/api/v1/wla/card/replace");
|
|
@@ -26682,7 +27437,7 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
26682
27437
|
cuiApiBaseUrl = getEnvConfigValueByName("CUI_API_BASE_URL");
|
|
26683
27438
|
path = "".concat(cuiApiBaseUrl, "/api/v1/wla/outages/").concat(token, "?device_platform=").concat(devicePlatform);
|
|
26684
27439
|
params = {
|
|
26685
|
-
headers: _object_spread_props(_object_spread({},
|
|
27440
|
+
headers: _object_spread_props(_object_spread({}, getCommonApiHeaders()), {
|
|
26686
27441
|
"X-Marqeta-Program-Short-Code": programShortCode
|
|
26687
27442
|
})
|
|
26688
27443
|
};
|
|
@@ -26743,7 +27498,7 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
26743
27498
|
cuiApiBaseUrl = getEnvConfigValueByName("CUI_API_BASE_URL");
|
|
26744
27499
|
path = "".concat(cuiApiBaseUrl, "/api/v1/wla/outages?device_platform=").concat(devicePlatform);
|
|
26745
27500
|
params = {
|
|
26746
|
-
headers: _object_spread_props(_object_spread({},
|
|
27501
|
+
headers: _object_spread_props(_object_spread({}, getCommonApiHeaders()), {
|
|
26747
27502
|
"X-Marqeta-Program-Short-Code": programShortCode
|
|
26748
27503
|
})
|
|
26749
27504
|
};
|
|
@@ -26804,7 +27559,7 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
26804
27559
|
cuiApiBaseUrl = getEnvConfigValueByName("CUI_API_BASE_URL");
|
|
26805
27560
|
path = "".concat(cuiApiBaseUrl, "/api/v1/wla/open-banking/").concat(country_code, "/consents/").concat(id);
|
|
26806
27561
|
params = {
|
|
26807
|
-
headers:
|
|
27562
|
+
headers: getCommonApiHeaders()
|
|
26808
27563
|
};
|
|
26809
27564
|
return [
|
|
26810
27565
|
4,
|
|
@@ -26865,7 +27620,7 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
26865
27620
|
cuiApiBaseUrl = getEnvConfigValueByName("CUI_API_BASE_URL");
|
|
26866
27621
|
path = "".concat(cuiApiBaseUrl, "/api/v1/wla/open-banking/").concat(country_code, "/transfers/").concat(token);
|
|
26867
27622
|
params = {
|
|
26868
|
-
headers:
|
|
27623
|
+
headers: getCommonApiHeaders()
|
|
26869
27624
|
};
|
|
26870
27625
|
return [
|
|
26871
27626
|
4,
|
|
@@ -26929,7 +27684,7 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
26929
27684
|
cuiApiBaseUrl = getEnvConfigValueByName("CUI_API_BASE_URL");
|
|
26930
27685
|
path = "".concat(cuiApiBaseUrl, "/api/v1/wla/open-banking/").concat(country_code, "/consents?").concat(queryParams.toString());
|
|
26931
27686
|
params = {
|
|
26932
|
-
headers:
|
|
27687
|
+
headers: getCommonApiHeaders()
|
|
26933
27688
|
};
|
|
26934
27689
|
return [
|
|
26935
27690
|
4,
|
|
@@ -26989,7 +27744,7 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
26989
27744
|
cuiApiBaseUrl = getEnvConfigValueByName("CUI_API_BASE_URL");
|
|
26990
27745
|
path = "".concat(cuiApiBaseUrl, "/api/v1/wla/open-banking/").concat(country_code, "/transfers");
|
|
26991
27746
|
params = {
|
|
26992
|
-
headers:
|
|
27747
|
+
headers: getCommonApiHeaders()
|
|
26993
27748
|
};
|
|
26994
27749
|
return [
|
|
26995
27750
|
4,
|
|
@@ -27048,7 +27803,7 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
27048
27803
|
cuiApiBaseUrl = getEnvConfigValueByName("CUI_API_BASE_URL");
|
|
27049
27804
|
params = {
|
|
27050
27805
|
method: "PATCH",
|
|
27051
|
-
headers:
|
|
27806
|
+
headers: getCommonApiHeaders(),
|
|
27052
27807
|
body: JSON.stringify(requestBody)
|
|
27053
27808
|
};
|
|
27054
27809
|
path = "".concat(cuiApiBaseUrl, "/api/v1/wla/open-banking/").concat(country_code, "/consents/").concat(id);
|
|
@@ -27111,7 +27866,7 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
27111
27866
|
cuiApiBaseUrl = getEnvConfigValueByName("CUI_API_BASE_URL");
|
|
27112
27867
|
params = {
|
|
27113
27868
|
method: "PATCH",
|
|
27114
|
-
headers:
|
|
27869
|
+
headers: getCommonApiHeaders(),
|
|
27115
27870
|
body: JSON.stringify(requestBody)
|
|
27116
27871
|
};
|
|
27117
27872
|
path = "".concat(cuiApiBaseUrl, "/api/v1/wla/open-banking/").concat(country_code, "/consents/revoke/").concat(id);
|
|
@@ -27171,7 +27926,7 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
27171
27926
|
cuiApiBaseUrl = getEnvConfigValueByName("CUI_API_BASE_URL");
|
|
27172
27927
|
params = {
|
|
27173
27928
|
method: "GET",
|
|
27174
|
-
headers:
|
|
27929
|
+
headers: getCommonApiHeaders()
|
|
27175
27930
|
};
|
|
27176
27931
|
path = "".concat(cuiApiBaseUrl, "/api/v1/wla/faqs");
|
|
27177
27932
|
return [
|
|
@@ -27227,7 +27982,7 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
27227
27982
|
path = "".concat(cuiApiBaseUrl, "/api/v1/wla/user/password");
|
|
27228
27983
|
params = {
|
|
27229
27984
|
method: "POST",
|
|
27230
|
-
headers:
|
|
27985
|
+
headers: getCommonApiHeaders(),
|
|
27231
27986
|
body: JSON.stringify({
|
|
27232
27987
|
password: password
|
|
27233
27988
|
})
|
|
@@ -27286,7 +28041,7 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
27286
28041
|
path = "".concat(cuiApiBaseUrl, "/api/v1/wla/user/password/change");
|
|
27287
28042
|
params = {
|
|
27288
28043
|
method: "POST",
|
|
27289
|
-
headers: _object_spread_props(_object_spread({},
|
|
28044
|
+
headers: _object_spread_props(_object_spread({}, getCommonApiHeaders()), {
|
|
27290
28045
|
"X-Marqeta-Program-Short-Code": programShortCode,
|
|
27291
28046
|
"Authorization": "SSO ".concat(access_token)
|
|
27292
28047
|
}),
|
|
@@ -27367,7 +28122,7 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
27367
28122
|
}
|
|
27368
28123
|
params = {
|
|
27369
28124
|
method: "POST",
|
|
27370
|
-
headers: _object_spread_props(_object_spread({},
|
|
28125
|
+
headers: _object_spread_props(_object_spread({}, getCommonApiHeaders()), {
|
|
27371
28126
|
"Content-Type": "application/json",
|
|
27372
28127
|
"X-Marqeta-Program-Short-Code": programShortCode
|
|
27373
28128
|
}),
|
|
@@ -27430,7 +28185,7 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
27430
28185
|
path = "".concat(cuiApiBaseUrl, "/api/v1/wla/user/resend-verification-email");
|
|
27431
28186
|
params = {
|
|
27432
28187
|
method: "POST",
|
|
27433
|
-
headers: _object_spread_props(_object_spread({},
|
|
28188
|
+
headers: _object_spread_props(_object_spread({}, getCommonApiHeaders()), {
|
|
27434
28189
|
"Content-Type": "application/json"
|
|
27435
28190
|
}),
|
|
27436
28191
|
body: JSON.stringify({})
|
|
@@ -27488,7 +28243,7 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
27488
28243
|
path = "".concat(cuiApiBaseUrl, "/api/v1/wla/verify-user-device");
|
|
27489
28244
|
params = {
|
|
27490
28245
|
method: "POST",
|
|
27491
|
-
headers:
|
|
28246
|
+
headers: getCommonApiHeaders(),
|
|
27492
28247
|
body: JSON.stringify(requestBody)
|
|
27493
28248
|
};
|
|
27494
28249
|
return [
|
|
@@ -27853,12 +28608,12 @@ function _getAccountTransactions() {
|
|
|
27853
28608
|
transactionCount: _optionalChain([
|
|
27854
28609
|
result,
|
|
27855
28610
|
'access',
|
|
27856
|
-
function(
|
|
27857
|
-
return
|
|
28611
|
+
function(_180) {
|
|
28612
|
+
return _180.data;
|
|
27858
28613
|
},
|
|
27859
28614
|
'optionalAccess',
|
|
27860
|
-
function(
|
|
27861
|
-
return
|
|
28615
|
+
function(_181) {
|
|
28616
|
+
return _181.length;
|
|
27862
28617
|
}
|
|
27863
28618
|
]) || 0,
|
|
27864
28619
|
interactor: "getAccountTransactions"
|
|
@@ -28076,12 +28831,12 @@ function _getOffers() {
|
|
|
28076
28831
|
offerCount: _optionalChain([
|
|
28077
28832
|
result,
|
|
28078
28833
|
'access',
|
|
28079
|
-
function(
|
|
28080
|
-
return
|
|
28834
|
+
function(_182) {
|
|
28835
|
+
return _182.data;
|
|
28081
28836
|
},
|
|
28082
28837
|
'optionalAccess',
|
|
28083
|
-
function(
|
|
28084
|
-
return
|
|
28838
|
+
function(_183) {
|
|
28839
|
+
return _183.length;
|
|
28085
28840
|
}
|
|
28086
28841
|
]) || 0,
|
|
28087
28842
|
interactor: "getOffers"
|
|
@@ -28808,68 +29563,6 @@ function _setWlaCardPin() {
|
|
|
28808
29563
|
return _setWlaCardPin.apply(this, arguments);
|
|
28809
29564
|
}
|
|
28810
29565
|
__name(setWlaCardPin, "setWlaCardPin");
|
|
28811
|
-
function setWlaConfig(appVersion, deviceId, clientIp) {
|
|
28812
|
-
return _setWlaConfig.apply(this, arguments);
|
|
28813
|
-
}
|
|
28814
|
-
function _setWlaConfig() {
|
|
28815
|
-
_setWlaConfig = // src/wla/base/interactors/setWlaConfig.ts
|
|
28816
|
-
_async_to_generator(function(appVersion, deviceId, clientIp) {
|
|
28817
|
-
var container2, wlaService, error2;
|
|
28818
|
-
return _ts_generator(this, function(_state) {
|
|
28819
|
-
switch(_state.label){
|
|
28820
|
-
case 0:
|
|
28821
|
-
logDebug("Setting WLA config", {
|
|
28822
|
-
appVersion: appVersion,
|
|
28823
|
-
deviceId: deviceId,
|
|
28824
|
-
clientIp: clientIp,
|
|
28825
|
-
interactor: "setWlaConfig"
|
|
28826
|
-
});
|
|
28827
|
-
_state.label = 1;
|
|
28828
|
-
case 1:
|
|
28829
|
-
_state.trys.push([
|
|
28830
|
-
1,
|
|
28831
|
-
3,
|
|
28832
|
-
,
|
|
28833
|
-
4
|
|
28834
|
-
]);
|
|
28835
|
-
container2 = getActiveIocContainer();
|
|
28836
|
-
wlaService = container2.get(ITF_WLA_SERVICE);
|
|
28837
|
-
return [
|
|
28838
|
-
4,
|
|
28839
|
-
wlaService.setAppConfig(appVersion, deviceId, clientIp)
|
|
28840
|
-
];
|
|
28841
|
-
case 2:
|
|
28842
|
-
_state.sent();
|
|
28843
|
-
logInfo("WLA config set successfully", {
|
|
28844
|
-
appVersion: appVersion,
|
|
28845
|
-
deviceId: deviceId,
|
|
28846
|
-
clientIp: clientIp,
|
|
28847
|
-
interactor: "setWlaConfig"
|
|
28848
|
-
});
|
|
28849
|
-
return [
|
|
28850
|
-
3,
|
|
28851
|
-
4
|
|
28852
|
-
];
|
|
28853
|
-
case 3:
|
|
28854
|
-
error2 = _state.sent();
|
|
28855
|
-
logError("Failed to set WLA config", {
|
|
28856
|
-
error: error2,
|
|
28857
|
-
appVersion: appVersion,
|
|
28858
|
-
deviceId: deviceId,
|
|
28859
|
-
clientIp: clientIp,
|
|
28860
|
-
interactor: "setWlaConfig"
|
|
28861
|
-
});
|
|
28862
|
-
throw error2;
|
|
28863
|
-
case 4:
|
|
28864
|
-
return [
|
|
28865
|
-
2
|
|
28866
|
-
];
|
|
28867
|
-
}
|
|
28868
|
-
});
|
|
28869
|
-
});
|
|
28870
|
-
return _setWlaConfig.apply(this, arguments);
|
|
28871
|
-
}
|
|
28872
|
-
__name(setWlaConfig, "setWlaConfig");
|
|
28873
29566
|
function updateConsentStatus(id) {
|
|
28874
29567
|
return _updateConsentStatus.apply(this, arguments);
|
|
28875
29568
|
}
|
|
@@ -29362,11 +30055,14 @@ exports.MockCacheService = MockCacheService;
|
|
|
29362
30055
|
exports.MockPersistedCacheService = MockPersistedCacheService;
|
|
29363
30056
|
exports.MockRegistryService = MockRegistryService;
|
|
29364
30057
|
exports.StandardizedError = StandardizedError;
|
|
30058
|
+
exports.setAppConfig = setAppConfig;
|
|
30059
|
+
exports.getAppConfig = getAppConfig;
|
|
29365
30060
|
exports.InMemRegistryService = InMemRegistryService;
|
|
29366
30061
|
exports.commonIOCModule = commonIOCModule;
|
|
29367
30062
|
exports.mockCommonIOCModule = mockCommonIOCModule;
|
|
29368
30063
|
exports.convertObjKeysToCamelCase = convertObjKeysToCamelCase;
|
|
29369
30064
|
exports.convertObjKeysToLowerCamelCase = convertObjKeysToLowerCamelCase;
|
|
30065
|
+
exports.getCommonApiHeaders = getCommonApiHeaders;
|
|
29370
30066
|
exports.getCardsByUserToken = getCardsByUserToken;
|
|
29371
30067
|
exports.getShowpanByCardToken = getShowpanByCardToken;
|
|
29372
30068
|
exports.activateCardByTokenOrPan = activateCardByTokenOrPan;
|
|
@@ -29375,6 +30071,8 @@ exports.replaceCardByToken = replaceCardByToken;
|
|
|
29375
30071
|
exports.unlockCardByToken = unlockCardByToken;
|
|
29376
30072
|
exports.updatePinByCardToken = updatePinByCardToken;
|
|
29377
30073
|
exports.getPinByCardToken = getPinByCardToken;
|
|
30074
|
+
exports.orderCard = orderCard;
|
|
30075
|
+
exports.replaceCardV2 = replaceCardV2;
|
|
29378
30076
|
exports.iCardRepository = iCardRepository;
|
|
29379
30077
|
exports.TEST_CARD_PRODUCT_TOKEN = TEST_CARD_PRODUCT_TOKEN;
|
|
29380
30078
|
exports.TEST_CARD_TOKEN = TEST_CARD_TOKEN;
|
|
@@ -29491,9 +30189,13 @@ exports.ITF_ACCOUNT_REPOSITORY = ITF_ACCOUNT_REPOSITORY;
|
|
|
29491
30189
|
exports.getAccountHolderGroup = getAccountHolderGroup;
|
|
29492
30190
|
exports.getAccountBalances = getAccountBalances;
|
|
29493
30191
|
exports.getDepositAccounts = getDepositAccounts;
|
|
30192
|
+
exports.getUserAccounts = getUserAccounts;
|
|
29494
30193
|
exports.iAccountRepository = iAccountRepository;
|
|
30194
|
+
exports.UserAccountStatus = UserAccountStatus;
|
|
30195
|
+
exports.UserAccountType = UserAccountType;
|
|
29495
30196
|
exports.TEST_USER_TOKEN = TEST_USER_TOKEN;
|
|
29496
30197
|
exports.TEST_DEPOSIT_ACCOUNT = TEST_DEPOSIT_ACCOUNT;
|
|
30198
|
+
exports.TEST_USER_ACCOUNTS = TEST_USER_ACCOUNTS;
|
|
29497
30199
|
exports.MockAccountRepository = MockAccountRepository;
|
|
29498
30200
|
exports.accountsIOCModule = accountsIOCModule;
|
|
29499
30201
|
exports.mockAccountsIOCModule = mockAccountsIOCModule;
|
|
@@ -29704,6 +30406,7 @@ exports.ITF_TRANSACTIONS = ITF_TRANSACTIONS;
|
|
|
29704
30406
|
exports.getTransactions = getTransactions;
|
|
29705
30407
|
exports.getTransactionDetails = getTransactionDetails;
|
|
29706
30408
|
exports.getUserTransactionsV2 = getUserTransactionsV2;
|
|
30409
|
+
exports.getTransactionByToken = getTransactionByToken;
|
|
29707
30410
|
exports.TransactionDetailIconTypeEnum = TransactionDetailIconTypeEnum;
|
|
29708
30411
|
exports.Direction = Direction;
|
|
29709
30412
|
exports.transactionsIOCModule = transactionsIOCModule;
|
|
@@ -29790,7 +30493,6 @@ exports.replaceWlaCard = replaceWlaCard;
|
|
|
29790
30493
|
exports.revokeConsent = revokeConsent;
|
|
29791
30494
|
exports.searchAtms = searchAtms;
|
|
29792
30495
|
exports.setWlaCardPin = setWlaCardPin;
|
|
29793
|
-
exports.setWlaConfig = setWlaConfig;
|
|
29794
30496
|
exports.updateConsentStatus = updateConsentStatus;
|
|
29795
30497
|
exports.updateExternalAccount = updateExternalAccount;
|
|
29796
30498
|
exports.verifyExternalAccount = verifyExternalAccount;
|