@marqeta/ux-toolkit-sdk-javascript 2.29.0 → 2.31.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.
@@ -1821,10 +1821,14 @@ var _StandardizedError = /*#__PURE__*/ function(Error1) {
1821
1821
  __name(_StandardizedError, "StandardizedError");
1822
1822
  var StandardizedError = _StandardizedError;
1823
1823
  // src/common/base/interactors/setAppConfig.ts
1824
- function setAppConfig(appVersion, deviceId) {
1824
+ function setAppConfig(param) {
1825
+ var appVersion = param.appVersion, deviceId = param.deviceId, clientType = param.clientType, bundleId = param.bundleId, platform = param.platform;
1825
1826
  logDebug("Setting app config", {
1826
1827
  appVersion: appVersion,
1827
1828
  deviceId: deviceId,
1829
+ clientType: clientType,
1830
+ bundleId: bundleId,
1831
+ platform: platform,
1828
1832
  interactor: "setAppConfig"
1829
1833
  });
1830
1834
  try {
@@ -1838,13 +1842,22 @@ function setAppConfig(appVersion, deviceId) {
1838
1842
  return;
1839
1843
  }
1840
1844
  var cacheService = container2.get(ITF_CACHE_SERVICE);
1841
- cacheService.set("appConfig", JSON.stringify({
1845
+ cacheService.set("appConfig", JSON.stringify(_object_spread({
1842
1846
  appVersion: appVersion,
1843
1847
  deviceId: deviceId
1844
- }));
1848
+ }, clientType && {
1849
+ clientType: clientType
1850
+ }, bundleId && {
1851
+ bundleId: bundleId
1852
+ }, platform && {
1853
+ platform: platform
1854
+ })));
1845
1855
  logInfo("App config set successfully", {
1846
1856
  appVersion: appVersion,
1847
1857
  deviceId: deviceId,
1858
+ clientType: clientType,
1859
+ bundleId: bundleId,
1860
+ platform: platform,
1848
1861
  interactor: "setAppConfig"
1849
1862
  });
1850
1863
  } catch (error2) {
@@ -1891,10 +1904,16 @@ function getAppConfig() {
1891
1904
  return defaultConfig;
1892
1905
  }
1893
1906
  var parsedConfig = JSON.parse(config);
1894
- return {
1907
+ return _object_spread({
1895
1908
  appVersion: parsedConfig.appVersion || "",
1896
1909
  deviceId: parsedConfig.deviceId || ""
1897
- };
1910
+ }, parsedConfig.clientType && {
1911
+ clientType: parsedConfig.clientType
1912
+ }, parsedConfig.bundleId && {
1913
+ bundleId: parsedConfig.bundleId
1914
+ }, parsedConfig.platform && {
1915
+ platform: parsedConfig.platform
1916
+ });
1898
1917
  } catch (e2) {
1899
1918
  return defaultConfig;
1900
1919
  }
@@ -2003,22 +2022,6 @@ function convertObjKeysToLowerCamelCase(inputObj) {
2003
2022
  return newobj;
2004
2023
  }
2005
2024
  __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");
2022
2025
  function getCardsByUserToken() {
2023
2026
  return _getCardsByUserToken.apply(this, arguments);
2024
2027
  }
@@ -2512,6 +2515,123 @@ function _getPinByCardToken() {
2512
2515
  return _getPinByCardToken.apply(this, arguments);
2513
2516
  }
2514
2517
  __name(getPinByCardToken, "getPinByCardToken");
2518
+ function orderCard(orderRequest) {
2519
+ return _orderCard.apply(this, arguments);
2520
+ }
2521
+ function _orderCard() {
2522
+ _orderCard = // src/cards/base/interactors/orderCard.ts
2523
+ _async_to_generator(function(orderRequest) {
2524
+ var container2, cardRepository, result, error2;
2525
+ return _ts_generator(this, function(_state) {
2526
+ switch(_state.label){
2527
+ case 0:
2528
+ logDebug("Ordering card", {
2529
+ idType: orderRequest.idType,
2530
+ interactor: "orderCard"
2531
+ });
2532
+ _state.label = 1;
2533
+ case 1:
2534
+ _state.trys.push([
2535
+ 1,
2536
+ 3,
2537
+ ,
2538
+ 4
2539
+ ]);
2540
+ container2 = getActiveIocContainer();
2541
+ cardRepository = container2.get(ITF_CARD_REPOSITORY);
2542
+ return [
2543
+ 4,
2544
+ cardRepository.orderCard(orderRequest)
2545
+ ];
2546
+ case 2:
2547
+ result = _state.sent();
2548
+ logInfo("Card ordered successfully", {
2549
+ cardToken: result.token,
2550
+ state: result.state,
2551
+ interactor: "orderCard"
2552
+ });
2553
+ return [
2554
+ 2,
2555
+ result
2556
+ ];
2557
+ case 3:
2558
+ error2 = _state.sent();
2559
+ logError("Failed to order card", {
2560
+ error: error2,
2561
+ idType: orderRequest.idType,
2562
+ interactor: "orderCard"
2563
+ });
2564
+ throw error2;
2565
+ case 4:
2566
+ return [
2567
+ 2
2568
+ ];
2569
+ }
2570
+ });
2571
+ });
2572
+ return _orderCard.apply(this, arguments);
2573
+ }
2574
+ __name(orderCard, "orderCard");
2575
+ function replaceCardV2(replaceRequest) {
2576
+ return _replaceCardV2.apply(this, arguments);
2577
+ }
2578
+ function _replaceCardV2() {
2579
+ _replaceCardV2 = // src/cards/base/interactors/replaceCardV2.ts
2580
+ _async_to_generator(function(replaceRequest) {
2581
+ var container2, cardRepository, result, error2;
2582
+ return _ts_generator(this, function(_state) {
2583
+ switch(_state.label){
2584
+ case 0:
2585
+ logDebug("Replacing card v2", {
2586
+ cardToken: replaceRequest.cardToken,
2587
+ reason: replaceRequest.request.replacement_reason,
2588
+ interactor: "replaceCardV2"
2589
+ });
2590
+ _state.label = 1;
2591
+ case 1:
2592
+ _state.trys.push([
2593
+ 1,
2594
+ 3,
2595
+ ,
2596
+ 4
2597
+ ]);
2598
+ container2 = getActiveIocContainer();
2599
+ cardRepository = container2.get(ITF_CARD_REPOSITORY);
2600
+ return [
2601
+ 4,
2602
+ cardRepository.replaceCardV2(replaceRequest)
2603
+ ];
2604
+ case 2:
2605
+ result = _state.sent();
2606
+ logInfo("Card replaced successfully", {
2607
+ originalCardToken: replaceRequest.cardToken,
2608
+ newCardToken: result.replacement_card_token,
2609
+ terminatedCardToken: result.terminated_card_token,
2610
+ interactor: "replaceCardV2"
2611
+ });
2612
+ return [
2613
+ 2,
2614
+ result
2615
+ ];
2616
+ case 3:
2617
+ error2 = _state.sent();
2618
+ logError("Failed to replace card", {
2619
+ error: error2,
2620
+ cardToken: replaceRequest.cardToken,
2621
+ reason: replaceRequest.request.replacement_reason,
2622
+ interactor: "replaceCardV2"
2623
+ });
2624
+ throw error2;
2625
+ case 4:
2626
+ return [
2627
+ 2
2628
+ ];
2629
+ }
2630
+ });
2631
+ });
2632
+ return _replaceCardV2.apply(this, arguments);
2633
+ }
2634
+ __name(replaceCardV2, "replaceCardV2");
2515
2635
  // src/cards/base/repositories/iCardRepository.ts
2516
2636
  function _ts_decorate13(decorators, target, key, desc) {
2517
2637
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
@@ -3427,6 +3547,40 @@ var _MockCardRepository = /*#__PURE__*/ function() {
3427
3547
  });
3428
3548
  })();
3429
3549
  }
3550
+ },
3551
+ {
3552
+ key: "orderCard",
3553
+ value: function orderCard(orderRequest) {
3554
+ return _async_to_generator(function() {
3555
+ return _ts_generator(this, function(_state) {
3556
+ return [
3557
+ 2,
3558
+ {
3559
+ token: "mock-new-card-token",
3560
+ state: "UNACTIVATED",
3561
+ last_four: "5678",
3562
+ user_token: "mock-user-token"
3563
+ }
3564
+ ];
3565
+ });
3566
+ })();
3567
+ }
3568
+ },
3569
+ {
3570
+ key: "replaceCardV2",
3571
+ value: function replaceCardV2(replaceRequest) {
3572
+ return _async_to_generator(function() {
3573
+ return _ts_generator(this, function(_state) {
3574
+ return [
3575
+ 2,
3576
+ {
3577
+ replacement_card_token: "mock-replacement-card-token",
3578
+ terminated_card_token: replaceRequest.cardToken
3579
+ }
3580
+ ];
3581
+ });
3582
+ })();
3583
+ }
3430
3584
  }
3431
3585
  ]);
3432
3586
  return _MockCardRepository;
@@ -6655,6 +6809,33 @@ M2mAuthenticatedHttpClient = exports.M2mAuthenticatedHttpClient = _ts_decorate30
6655
6809
  _inversify.injectable.call(void 0)
6656
6810
  ], M2mAuthenticatedHttpClient);
6657
6811
  // src/auth/adapters/http/SsoAuthenticatedHttpClient.ts
6812
+ // src/common/adapters/react-native/getRnCommonApiHeaders.ts
6813
+ function getRnCommonApiHeaders() {
6814
+ try {
6815
+ var appConfig = getAppConfig();
6816
+ var headers = {
6817
+ "app-version": appConfig.appVersion,
6818
+ "device-id": appConfig.deviceId
6819
+ };
6820
+ if (appConfig.clientType) {
6821
+ headers["x-client-type"] = appConfig.clientType;
6822
+ }
6823
+ if (appConfig.bundleId) {
6824
+ headers["x-bundle-id"] = appConfig.bundleId;
6825
+ }
6826
+ if (appConfig.platform) {
6827
+ headers["x-platform"] = appConfig.platform;
6828
+ }
6829
+ return headers;
6830
+ } catch (e3) {
6831
+ return {
6832
+ "app-version": "",
6833
+ "device-id": ""
6834
+ };
6835
+ }
6836
+ }
6837
+ __name(getRnCommonApiHeaders, "getRnCommonApiHeaders");
6838
+ // src/auth/adapters/http/SsoAuthenticatedHttpClient.ts
6658
6839
  function _ts_decorate31(decorators, target, key, desc) {
6659
6840
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
6660
6841
  if ((typeof Reflect === "undefined" ? "undefined" : _type_of(Reflect)) === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
@@ -6847,7 +7028,7 @@ var _SsoAuthenticatedHttpClient = /*#__PURE__*/ function() {
6847
7028
  var noContentType = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : false;
6848
7029
  var _this = this;
6849
7030
  return _async_to_generator(function() {
6850
- var accessToken, paramHeaders, hasAuthorizationHeader, headers;
7031
+ var accessToken, paramHeaders, headersMap, rnHeaders;
6851
7032
  return _ts_generator(this, function(_state) {
6852
7033
  switch(_state.label){
6853
7034
  case 0:
@@ -6864,24 +7045,33 @@ var _SsoAuthenticatedHttpClient = /*#__PURE__*/ function() {
6864
7045
  return _23.headers;
6865
7046
  }
6866
7047
  ]) || {};
6867
- hasAuthorizationHeader = Boolean((typeof paramHeaders === "undefined" ? "undefined" : _type_of(paramHeaders)) === "object" && paramHeaders !== null && "Authorization" in paramHeaders);
6868
- headers = _to_consumable_array(Object.entries(paramHeaders)).concat(_to_consumable_array(!noContentType ? [
6869
- [
6870
- "Content-Type",
6871
- "application/json"
6872
- ]
6873
- ] : []));
6874
- if (!hasAuthorizationHeader) {
6875
- headers.push([
6876
- "Authorization",
6877
- "SSO ".concat(accessToken)
6878
- ]);
7048
+ headersMap = /* @__PURE__ */ new Map();
7049
+ if (_this.isReactNative()) {
7050
+ rnHeaders = getRnCommonApiHeaders();
7051
+ Object.entries(rnHeaders).forEach(function(param) {
7052
+ var _param = _sliced_to_array(param, 2), key = _param[0], value = _param[1];
7053
+ headersMap.set(key, value);
7054
+ });
7055
+ }
7056
+ if (!noContentType) {
7057
+ headersMap.set("Content-Type", "application/json");
7058
+ }
7059
+ headersMap.set("Authorization", "SSO ".concat(accessToken));
7060
+ if (_instanceof(paramHeaders, Headers)) {
7061
+ paramHeaders.forEach(function(value, key) {
7062
+ headersMap.set(key, value);
7063
+ });
7064
+ } else {
7065
+ Object.entries(paramHeaders).forEach(function(param) {
7066
+ var _param = _sliced_to_array(param, 2), key = _param[0], value = _param[1];
7067
+ headersMap.set(key, value);
7068
+ });
6879
7069
  }
6880
7070
  return [
6881
7071
  2,
6882
7072
  _object_spread_props(_object_spread({}, params), {
6883
7073
  method: method,
6884
- headers: Object.fromEntries(headers)
7074
+ headers: Object.fromEntries(headersMap)
6885
7075
  })
6886
7076
  ];
6887
7077
  }
@@ -6889,6 +7079,35 @@ var _SsoAuthenticatedHttpClient = /*#__PURE__*/ function() {
6889
7079
  })();
6890
7080
  }
6891
7081
  },
7082
+ {
7083
+ key: "isReactNative",
7084
+ value: function isReactNative() {
7085
+ if (typeof global !== "undefined" && global.HermesInternal) {
7086
+ return true;
7087
+ }
7088
+ if (typeof navigator !== "undefined" && _optionalChain([
7089
+ navigator,
7090
+ 'access',
7091
+ function(_24) {
7092
+ return _24.userAgent;
7093
+ },
7094
+ 'optionalAccess',
7095
+ function(_25) {
7096
+ return _25.includes;
7097
+ },
7098
+ 'call',
7099
+ function(_26) {
7100
+ return _26("ReactNative");
7101
+ }
7102
+ ])) {
7103
+ return true;
7104
+ }
7105
+ if (typeof navigator !== "undefined" && navigator.product === "ReactNative") {
7106
+ return true;
7107
+ }
7108
+ return false;
7109
+ }
7110
+ },
6892
7111
  {
6893
7112
  key: "getAccessToken",
6894
7113
  value: function getAccessToken() {
@@ -7161,8 +7380,8 @@ var _RestAuthService = /*#__PURE__*/ function() {
7161
7380
  convertedData = convertObjKeysToLowerCamelCase(convertObjKeysToCamelCase(_optionalChain([
7162
7381
  data,
7163
7382
  'optionalAccess',
7164
- function(_24) {
7165
- return _24.data;
7383
+ function(_27) {
7384
+ return _27.data;
7166
7385
  }
7167
7386
  ])));
7168
7387
  cardholderContext = new CardholderContextEntity(convertedData);
@@ -7823,12 +8042,12 @@ var _RequestHandler = /*#__PURE__*/ function() {
7823
8042
  if (_this.isUsed && _optionalChain([
7824
8043
  _this,
7825
8044
  'access',
7826
- function(_25) {
7827
- return _25.options;
8045
+ function(_28) {
8046
+ return _28.options;
7828
8047
  },
7829
8048
  'optionalAccess',
7830
- function(_26) {
7831
- return _26.once;
8049
+ function(_29) {
8050
+ return _29.once;
7832
8051
  }
7833
8052
  ])) {
7834
8053
  return [
@@ -7860,12 +8079,12 @@ var _RequestHandler = /*#__PURE__*/ function() {
7860
8079
  if (_this.isUsed && _optionalChain([
7861
8080
  _this,
7862
8081
  'access',
7863
- function(_27) {
7864
- return _27.options;
8082
+ function(_30) {
8083
+ return _30.options;
7865
8084
  },
7866
8085
  'optionalAccess',
7867
- function(_28) {
7868
- return _28.once;
8086
+ function(_31) {
8087
+ return _31.once;
7869
8088
  }
7870
8089
  ])) {
7871
8090
  return [
@@ -7964,12 +8183,12 @@ var _RequestHandler = /*#__PURE__*/ function() {
7964
8183
  _this.resolverGeneratorResult = _optionalChain([
7965
8184
  nextResponse,
7966
8185
  'optionalAccess',
7967
- function(_29) {
7968
- return _29.clone;
8186
+ function(_32) {
8187
+ return _32.clone;
7969
8188
  },
7970
8189
  'call',
7971
- function(_30) {
7972
- return _30();
8190
+ function(_33) {
8191
+ return _33();
7973
8192
  }
7974
8193
  ]);
7975
8194
  }
@@ -9425,20 +9644,20 @@ function getAllRequestCookies(request) {
9425
9644
  var cookiesFromStore = Array.from(_optionalChain([
9426
9645
  store,
9427
9646
  'access',
9428
- function(_31) {
9429
- return _31.get;
9647
+ function(_34) {
9648
+ return _34.get;
9430
9649
  },
9431
9650
  'call',
9432
- function(_32) {
9433
- return _32(request);
9651
+ function(_35) {
9652
+ return _35(request);
9434
9653
  },
9435
9654
  'optionalAccess',
9436
- function(_33) {
9437
- return _33.entries;
9655
+ function(_36) {
9656
+ return _36.entries;
9438
9657
  },
9439
9658
  'call',
9440
- function(_34) {
9441
- return _34();
9659
+ function(_37) {
9660
+ return _37();
9442
9661
  }
9443
9662
  ])).reduce(function(cookies, param) {
9444
9663
  var _param = _sliced_to_array(param, 2), name = _param[0], value = _param[1].value;
@@ -9529,12 +9748,12 @@ var _HttpHandler = /*#__PURE__*/ function(RequestHandler) {
9529
9748
  match2 = matchRequestUrl(url, _this.info.path, _optionalChain([
9530
9749
  args,
9531
9750
  'access',
9532
- function(_35) {
9533
- return _35.resolutionContext;
9751
+ function(_38) {
9752
+ return _38.resolutionContext;
9534
9753
  },
9535
9754
  'optionalAccess',
9536
- function(_36) {
9537
- return _36.baseUrl;
9755
+ function(_39) {
9756
+ return _39.baseUrl;
9538
9757
  }
9539
9758
  ]));
9540
9759
  cookies = getAllRequestCookies(args.request);
@@ -9570,16 +9789,16 @@ var _HttpHandler = /*#__PURE__*/ function(RequestHandler) {
9570
9789
  params: _optionalChain([
9571
9790
  args,
9572
9791
  'access',
9573
- function(_37) {
9574
- return _37.parsedResult;
9792
+ function(_40) {
9793
+ return _40.parsedResult;
9575
9794
  },
9576
9795
  'access',
9577
- function(_38) {
9578
- return _38.match;
9796
+ function(_41) {
9797
+ return _41.match;
9579
9798
  },
9580
9799
  'optionalAccess',
9581
- function(_39) {
9582
- return _39.params;
9800
+ function(_42) {
9801
+ return _42.params;
9583
9802
  }
9584
9803
  ]) || {},
9585
9804
  cookies: args.parsedResult.cookies
@@ -9972,12 +10191,12 @@ var Headers2 = (_a6 = /*#__PURE__*/ function() {
9972
10191
  ].includes(_optionalChain([
9973
10192
  init,
9974
10193
  'optionalAccess',
9975
- function(_40) {
9976
- return _40.constructor;
10194
+ function(_43) {
10195
+ return _43.constructor;
9977
10196
  },
9978
10197
  'access',
9979
- function(_41) {
9980
- return _41.name;
10198
+ function(_44) {
10199
+ return _44.name;
9981
10200
  }
9982
10201
  ])) || _instanceof(init, _a6) || typeof globalThis.Headers !== "undefined" && _instanceof(init, globalThis.Headers)) {
9983
10202
  var initialHeaders = init;
@@ -10416,22 +10635,22 @@ function normalizeResponseInit() {
10416
10635
  var status = _optionalChain([
10417
10636
  init,
10418
10637
  'optionalAccess',
10419
- function(_42) {
10420
- return _42.status;
10638
+ function(_45) {
10639
+ return _45.status;
10421
10640
  }
10422
10641
  ]) || 200;
10423
10642
  var statusText = _optionalChain([
10424
10643
  init,
10425
10644
  'optionalAccess',
10426
- function(_43) {
10427
- return _43.statusText;
10645
+ function(_46) {
10646
+ return _46.statusText;
10428
10647
  }
10429
10648
  ]) || message2[status] || "";
10430
10649
  var headers = new Headers(_optionalChain([
10431
10650
  init,
10432
10651
  'optionalAccess',
10433
- function(_44) {
10434
- return _44.headers;
10652
+ function(_47) {
10653
+ return _47.headers;
10435
10654
  }
10436
10655
  ]));
10437
10656
  return _object_spread_props(_object_spread({}, init), {
@@ -11369,10 +11588,7 @@ var _RestCardRepository = /*#__PURE__*/ function() {
11369
11588
  body: JSON.stringify({
11370
11589
  card_token: cardToken,
11371
11590
  cardholder_verification_method: cardholderVerificationMethod
11372
- }),
11373
- headers: {
11374
- "Content-Type": "application/json"
11375
- }
11591
+ })
11376
11592
  };
11377
11593
  return [
11378
11594
  4,
@@ -11405,95 +11621,227 @@ var _RestCardRepository = /*#__PURE__*/ function() {
11405
11621
  });
11406
11622
  })();
11407
11623
  }
11408
- }
11409
- ]);
11410
- return _RestCardRepository;
11411
- }();
11412
- __name(_RestCardRepository, "RestCardRepository");
11413
- var RestCardRepository = _RestCardRepository;
11414
- _ts_decorate34([
11415
- _inversify.inject.call(void 0, ITF_AUTHENTICATED_HTTP_CLIENT),
11416
- _ts_metadata6("design:type", typeof iAuthenticatedHttpClient === "undefined" ? Object : iAuthenticatedHttpClient)
11417
- ], RestCardRepository.prototype, "httpClient", void 0);
11418
- RestCardRepository = _ts_decorate34([
11419
- _inversify.injectable.call(void 0)
11420
- ], RestCardRepository);
11421
- // src/cards/ioc/cardsIOCModule.ts
11422
- var cardsIOCModule = new (0, _inversify.ContainerModule)(function(bind) {
11423
- bind(ITF_CARD_REPOSITORY).to(RestCardRepository).inSingletonScope();
11424
- });
11425
- // src/cards/ioc/mockCardsIOCModule.ts
11426
- var mockCardsIOCModule = new (0, _inversify.ContainerModule)(function(bind) {
11427
- bind(ITF_CARD_REPOSITORY).to(MockCardRepository).inSingletonScope();
11428
- });
11429
- // src/cards/adapters/rest/mswUtils.ts
11430
- function getMockCardByToken(cardToken) {
11431
- var mockCard = {
11432
- token: TEST_CARD_TOKEN,
11433
- state: "UNACTIVATED",
11434
- network: "visa",
11435
- instrument_type: "PHYSICAL_MSR",
11436
- last_four: 1234,
11437
- card_actions: TEST_CARD_ACTIONS,
11438
- card_product_token: "test-card-product-token",
11439
- expiration: "0428",
11440
- fulfillment: {
11441
- shipping: {
11442
- method: "USPS_REGULAR",
11443
- return_address: {
11444
- first_name: "Mervin",
11445
- last_name: "Beatty",
11446
- address1: "75396 Broderick Brook",
11447
- city: "South Stephanie",
11448
- state: "TN",
11449
- postal_code: "12628",
11450
- country: "GR",
11451
- phone: "683-152-7170"
11452
- },
11453
- recipient_address: {
11454
- first_name: "Sarai",
11455
- last_name: "Lang",
11456
- address1: "201 Stanton Crest",
11457
- city: "Lake Cory",
11458
- state: "KS",
11459
- postal_code: "04352-5268",
11460
- country: "KY",
11461
- phone: "198-208-4864"
11462
- }
11463
- }
11464
11624
  },
11465
- user_token: "test-user-token",
11466
- user: {
11467
- token: "bdd6e067-cfd2-4ea3-82d6-e71a0010d135",
11468
- active: true,
11469
- firstName: "Jane",
11470
- middleName: null,
11471
- lastName: "Doe",
11472
- status: "ACTIVE",
11473
- address1: "5600 San Vicente Blvd",
11474
- city: "Los Angeles",
11475
- state: "CA",
11476
- postalCode: "90019",
11477
- country: "GR",
11478
- phone: "683-152-7170"
11479
- }
11480
- };
11481
- switch(cardToken){
11482
- case TEST_CARD_TOKEN_IS_ACTIVE:
11483
- mockCard.state = "ACTIVE";
11484
- mockCard.token = cardToken;
11485
- mockCard.card_actions = ACTIVE_CARD_ACTIONS;
11486
- break;
11487
- case TEST_CARD_TOKEN_IS_TERMINATED:
11488
- mockCard.state = CardStates.TERMINATED;
11489
- mockCard.token = cardToken;
11490
- mockCard.card_actions = TERMINATED_CARD_ACTIONS;
11491
- break;
11492
- case TEST_CARD_TOKEN_IS_EXPIRED:
11493
- mockCard.state = CardStates.EXPIRED;
11494
- mockCard.token = cardToken;
11495
- break;
11496
- case TEST_CARD_TOKEN_IS_UNACTIVATED:
11625
+ {
11626
+ key: "orderCard",
11627
+ value: function orderCard(orderRequest) {
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("Ordering card", {
11635
+ idType: orderRequest.idType,
11636
+ adapter: "RestCardRepository"
11637
+ });
11638
+ _state.label = 1;
11639
+ case 1:
11640
+ _state.trys.push([
11641
+ 1,
11642
+ 3,
11643
+ ,
11644
+ 4
11645
+ ]);
11646
+ cuiApiBaseUrl = getEnvConfigValueByName("CUI_API_BASE_URL");
11647
+ queryParams = new URLSearchParams();
11648
+ if (orderRequest.idType) {
11649
+ queryParams.append("id_type", orderRequest.idType);
11650
+ }
11651
+ path = "".concat(cuiApiBaseUrl, "/api/v2/users/cards").concat(queryParams.toString() ? "?".concat(queryParams.toString()) : "");
11652
+ params = {
11653
+ body: JSON.stringify(orderRequest.request)
11654
+ };
11655
+ return [
11656
+ 4,
11657
+ _this.httpClient.post(path, params)
11658
+ ];
11659
+ case 2:
11660
+ result = _state.sent();
11661
+ logInfo("Card ordered successfully", {
11662
+ cardToken: result.token,
11663
+ state: result.state,
11664
+ adapter: "RestCardRepository"
11665
+ });
11666
+ return [
11667
+ 2,
11668
+ result
11669
+ ];
11670
+ case 3:
11671
+ error2 = _state.sent();
11672
+ logError("Unable to order card", {
11673
+ error: error2,
11674
+ idType: orderRequest.idType,
11675
+ adapter: "RestCardRepository"
11676
+ });
11677
+ throw new MqSDKError("Unable to order card", error2);
11678
+ case 4:
11679
+ return [
11680
+ 2
11681
+ ];
11682
+ }
11683
+ });
11684
+ })();
11685
+ }
11686
+ },
11687
+ {
11688
+ key: "replaceCardV2",
11689
+ value: function replaceCardV2(replaceRequest) {
11690
+ var _this = this;
11691
+ return _async_to_generator(function() {
11692
+ var cuiApiBaseUrl, queryParams, path, params, result, error2;
11693
+ return _ts_generator(this, function(_state) {
11694
+ switch(_state.label){
11695
+ case 0:
11696
+ logDebug("Replacing card", {
11697
+ cardToken: replaceRequest.cardToken,
11698
+ reason: replaceRequest.request.replacement_reason,
11699
+ adapter: "RestCardRepository"
11700
+ });
11701
+ _state.label = 1;
11702
+ case 1:
11703
+ _state.trys.push([
11704
+ 1,
11705
+ 3,
11706
+ ,
11707
+ 4
11708
+ ]);
11709
+ cuiApiBaseUrl = getEnvConfigValueByName("CUI_API_BASE_URL");
11710
+ queryParams = new URLSearchParams([
11711
+ [
11712
+ "card_token",
11713
+ replaceRequest.cardToken
11714
+ ]
11715
+ ]);
11716
+ if (replaceRequest.idType) {
11717
+ queryParams.append("id_type", replaceRequest.idType);
11718
+ }
11719
+ path = "".concat(cuiApiBaseUrl, "/api/v2/users/cards/replacements?").concat(queryParams.toString());
11720
+ params = {
11721
+ body: JSON.stringify(replaceRequest.request)
11722
+ };
11723
+ return [
11724
+ 4,
11725
+ _this.httpClient.post(path, params)
11726
+ ];
11727
+ case 2:
11728
+ result = _state.sent();
11729
+ logInfo("Card replaced successfully", {
11730
+ originalCardToken: replaceRequest.cardToken,
11731
+ newCardToken: result.replacement_card_token,
11732
+ terminatedCardToken: result.terminated_card_token,
11733
+ adapter: "RestCardRepository"
11734
+ });
11735
+ return [
11736
+ 2,
11737
+ result
11738
+ ];
11739
+ case 3:
11740
+ error2 = _state.sent();
11741
+ logError("Unable to replace card", {
11742
+ error: error2,
11743
+ cardToken: replaceRequest.cardToken,
11744
+ reason: replaceRequest.request.replacement_reason,
11745
+ adapter: "RestCardRepository"
11746
+ });
11747
+ throw new MqSDKError("Unable to replace card", error2);
11748
+ case 4:
11749
+ return [
11750
+ 2
11751
+ ];
11752
+ }
11753
+ });
11754
+ })();
11755
+ }
11756
+ }
11757
+ ]);
11758
+ return _RestCardRepository;
11759
+ }();
11760
+ __name(_RestCardRepository, "RestCardRepository");
11761
+ var RestCardRepository = _RestCardRepository;
11762
+ _ts_decorate34([
11763
+ _inversify.inject.call(void 0, ITF_AUTHENTICATED_HTTP_CLIENT),
11764
+ _ts_metadata6("design:type", typeof iAuthenticatedHttpClient === "undefined" ? Object : iAuthenticatedHttpClient)
11765
+ ], RestCardRepository.prototype, "httpClient", void 0);
11766
+ RestCardRepository = _ts_decorate34([
11767
+ _inversify.injectable.call(void 0)
11768
+ ], RestCardRepository);
11769
+ // src/cards/ioc/cardsIOCModule.ts
11770
+ var cardsIOCModule = new (0, _inversify.ContainerModule)(function(bind) {
11771
+ bind(ITF_CARD_REPOSITORY).to(RestCardRepository).inSingletonScope();
11772
+ });
11773
+ // src/cards/ioc/mockCardsIOCModule.ts
11774
+ var mockCardsIOCModule = new (0, _inversify.ContainerModule)(function(bind) {
11775
+ bind(ITF_CARD_REPOSITORY).to(MockCardRepository).inSingletonScope();
11776
+ });
11777
+ // src/cards/adapters/rest/mswUtils.ts
11778
+ function getMockCardByToken(cardToken) {
11779
+ var mockCard = {
11780
+ token: TEST_CARD_TOKEN,
11781
+ state: "UNACTIVATED",
11782
+ network: "visa",
11783
+ instrument_type: "PHYSICAL_MSR",
11784
+ last_four: 1234,
11785
+ card_actions: TEST_CARD_ACTIONS,
11786
+ card_product_token: "test-card-product-token",
11787
+ expiration: "0428",
11788
+ fulfillment: {
11789
+ shipping: {
11790
+ method: "USPS_REGULAR",
11791
+ return_address: {
11792
+ first_name: "Mervin",
11793
+ last_name: "Beatty",
11794
+ address1: "75396 Broderick Brook",
11795
+ city: "South Stephanie",
11796
+ state: "TN",
11797
+ postal_code: "12628",
11798
+ country: "GR",
11799
+ phone: "683-152-7170"
11800
+ },
11801
+ recipient_address: {
11802
+ first_name: "Sarai",
11803
+ last_name: "Lang",
11804
+ address1: "201 Stanton Crest",
11805
+ city: "Lake Cory",
11806
+ state: "KS",
11807
+ postal_code: "04352-5268",
11808
+ country: "KY",
11809
+ phone: "198-208-4864"
11810
+ }
11811
+ }
11812
+ },
11813
+ user_token: "test-user-token",
11814
+ user: {
11815
+ token: "bdd6e067-cfd2-4ea3-82d6-e71a0010d135",
11816
+ active: true,
11817
+ firstName: "Jane",
11818
+ middleName: null,
11819
+ lastName: "Doe",
11820
+ status: "ACTIVE",
11821
+ address1: "5600 San Vicente Blvd",
11822
+ city: "Los Angeles",
11823
+ state: "CA",
11824
+ postalCode: "90019",
11825
+ country: "GR",
11826
+ phone: "683-152-7170"
11827
+ }
11828
+ };
11829
+ switch(cardToken){
11830
+ case TEST_CARD_TOKEN_IS_ACTIVE:
11831
+ mockCard.state = "ACTIVE";
11832
+ mockCard.token = cardToken;
11833
+ mockCard.card_actions = ACTIVE_CARD_ACTIONS;
11834
+ break;
11835
+ case TEST_CARD_TOKEN_IS_TERMINATED:
11836
+ mockCard.state = CardStates.TERMINATED;
11837
+ mockCard.token = cardToken;
11838
+ mockCard.card_actions = TERMINATED_CARD_ACTIONS;
11839
+ break;
11840
+ case TEST_CARD_TOKEN_IS_EXPIRED:
11841
+ mockCard.state = CardStates.EXPIRED;
11842
+ mockCard.token = cardToken;
11843
+ break;
11844
+ case TEST_CARD_TOKEN_IS_UNACTIVATED:
11497
11845
  mockCard.state = CardStates.UNACTIVATED;
11498
11846
  mockCard.token = cardToken;
11499
11847
  break;
@@ -12225,6 +12573,59 @@ function _getDepositAccounts() {
12225
12573
  return _getDepositAccounts.apply(this, arguments);
12226
12574
  }
12227
12575
  __name(getDepositAccounts, "getDepositAccounts");
12576
+ function getUserAccounts() {
12577
+ return _getUserAccounts.apply(this, arguments);
12578
+ }
12579
+ function _getUserAccounts() {
12580
+ _getUserAccounts = // src/accounts/base/interactors/getUserAccounts.ts
12581
+ _async_to_generator(function() {
12582
+ var container2, accountRepository, result, error2;
12583
+ return _ts_generator(this, function(_state) {
12584
+ switch(_state.label){
12585
+ case 0:
12586
+ logDebug("Getting user accounts", {
12587
+ interactor: "getUserAccounts"
12588
+ });
12589
+ _state.label = 1;
12590
+ case 1:
12591
+ _state.trys.push([
12592
+ 1,
12593
+ 3,
12594
+ ,
12595
+ 4
12596
+ ]);
12597
+ container2 = getActiveIocContainer();
12598
+ accountRepository = container2.get(ITF_ACCOUNT_REPOSITORY);
12599
+ return [
12600
+ 4,
12601
+ accountRepository.getUserAccounts()
12602
+ ];
12603
+ case 2:
12604
+ result = _state.sent();
12605
+ logInfo("User accounts retrieved successfully", {
12606
+ interactor: "getUserAccounts"
12607
+ });
12608
+ return [
12609
+ 2,
12610
+ result
12611
+ ];
12612
+ case 3:
12613
+ error2 = _state.sent();
12614
+ logError("Failed to get user accounts", {
12615
+ error: error2,
12616
+ interactor: "getUserAccounts"
12617
+ });
12618
+ throw error2;
12619
+ case 4:
12620
+ return [
12621
+ 2
12622
+ ];
12623
+ }
12624
+ });
12625
+ });
12626
+ return _getUserAccounts.apply(this, arguments);
12627
+ }
12628
+ __name(getUserAccounts, "getUserAccounts");
12228
12629
  // src/accounts/base/repositories/iAccountRepository.ts
12229
12630
  function _ts_decorate35(decorators, target, key, desc) {
12230
12631
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
@@ -12242,6 +12643,23 @@ iAccountRepository = exports.iAccountRepository = _ts_decorate35([
12242
12643
  _inversify.injectable.call(void 0)
12243
12644
  ], iAccountRepository);
12244
12645
  // src/accounts/base/repositories/MockAccountRepository.ts
12646
+ // src/accounts/base/types/UserAccountsResponse.ts
12647
+ var UserAccountStatus;
12648
+ (function(UserAccountStatus2) {
12649
+ UserAccountStatus2["Active"] = "ACTIVE";
12650
+ UserAccountStatus2["Suspended"] = "SUSPENDED";
12651
+ UserAccountStatus2["Terminated"] = "TERMINATED";
12652
+ UserAccountStatus2["Unactivated"] = "UNACTIVATED";
12653
+ UserAccountStatus2["ChargeOff"] = "CHARGE_OFF";
12654
+ })(UserAccountStatus || (UserAccountStatus = exports.UserAccountStatus = {}));
12655
+ var UserAccountType;
12656
+ (function(UserAccountType2) {
12657
+ UserAccountType2["Checking"] = "CHECKING";
12658
+ UserAccountType2["Savings"] = "SAVINGS";
12659
+ UserAccountType2["SecuredDepositAccount"] = "SECURED_DEPOSIT_ACCOUNT";
12660
+ UserAccountType2["Credit"] = "CREDIT";
12661
+ })(UserAccountType || (UserAccountType = exports.UserAccountType = {}));
12662
+ // src/accounts/base/repositories/MockAccountRepository.ts
12245
12663
  function _ts_decorate36(decorators, target, key, desc) {
12246
12664
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
12247
12665
  if ((typeof Reflect === "undefined" ? "undefined" : _type_of(Reflect)) === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
@@ -12260,6 +12678,50 @@ var TEST_DEPOSIT_ACCOUNT = {
12260
12678
  created_time: "",
12261
12679
  last_modified_time: ""
12262
12680
  };
12681
+ var TEST_USER_ACCOUNTS = {
12682
+ count: 2,
12683
+ start_index: 0,
12684
+ end_index: 1,
12685
+ is_more: false,
12686
+ data: [
12687
+ {
12688
+ token: "3d0cbd5d-a535-11f0-bd53-1dbc2894964f",
12689
+ type: UserAccountType.Credit,
12690
+ currency_code: "USD",
12691
+ balance: 0,
12692
+ last_four: "000",
12693
+ routing_number: "routing_number",
12694
+ account_number: "account_numer",
12695
+ branch_code: "branch_code",
12696
+ account_holder_name: "Sample Name",
12697
+ spendable_balance: 0,
12698
+ ledger_balance: 10,
12699
+ credit_balance_details: {
12700
+ credit_limit: 0,
12701
+ owed_balance: -2520,
12702
+ remaining_statement_owed_balance: 0,
12703
+ remaining_min_payment_owed: 0,
12704
+ payment_due_day: 31
12705
+ },
12706
+ status: UserAccountStatus.Active
12707
+ },
12708
+ {
12709
+ token: "3b425d72-a535-11f0-932e-19b50114b91f",
12710
+ type: UserAccountType.SecuredDepositAccount,
12711
+ currency_code: "USD",
12712
+ balance: 0,
12713
+ last_four: "0000",
12714
+ routing_number: "routing_number",
12715
+ account_number: "account_number",
12716
+ branch_code: "branch_code",
12717
+ account_holder_name: "Sample",
12718
+ spendable_balance: 0,
12719
+ ledger_balance: 0,
12720
+ credit_balance_details: {},
12721
+ status: UserAccountStatus.Active
12722
+ }
12723
+ ]
12724
+ };
12263
12725
  var _MockAccountRepository = /*#__PURE__*/ function() {
12264
12726
  function _MockAccountRepository() {
12265
12727
  _class_call_check(this, _MockAccountRepository);
@@ -12268,6 +12730,7 @@ var _MockAccountRepository = /*#__PURE__*/ function() {
12268
12730
  __publicField(this, "_depositAccountsResponse", [
12269
12731
  new DepositAccountEntity(TEST_DEPOSIT_ACCOUNT)
12270
12732
  ]);
12733
+ __publicField(this, "_userAccountsListResponse", TEST_USER_ACCOUNTS);
12271
12734
  }
12272
12735
  _create_class(_MockAccountRepository, [
12273
12736
  {
@@ -12288,6 +12751,12 @@ var _MockAccountRepository = /*#__PURE__*/ function() {
12288
12751
  this._depositAccountsResponse = response;
12289
12752
  }
12290
12753
  },
12754
+ {
12755
+ key: "setUserAccountsResponse",
12756
+ value: function setUserAccountsResponse(response) {
12757
+ this._userAccountsListResponse = response;
12758
+ }
12759
+ },
12291
12760
  {
12292
12761
  key: "getAccountHolderGroup",
12293
12762
  value: function getAccountHolderGroup(shortCode) {
@@ -12341,6 +12810,23 @@ var _MockAccountRepository = /*#__PURE__*/ function() {
12341
12810
  });
12342
12811
  })();
12343
12812
  }
12813
+ },
12814
+ {
12815
+ key: "getUserAccounts",
12816
+ value: function getUserAccounts() {
12817
+ var _this = this;
12818
+ return _async_to_generator(function() {
12819
+ return _ts_generator(this, function(_state) {
12820
+ if (_instanceof(_this._userAccountsListResponse, Error)) {
12821
+ throw _this._userAccountsListResponse;
12822
+ }
12823
+ return [
12824
+ 2,
12825
+ _this._userAccountsListResponse
12826
+ ];
12827
+ });
12828
+ })();
12829
+ }
12344
12830
  }
12345
12831
  ]);
12346
12832
  return _MockAccountRepository;
@@ -12589,7 +13075,58 @@ var _RestAccountRepository = /*#__PURE__*/ function() {
12589
13075
  });
12590
13076
  })();
12591
13077
  }
12592
- }
13078
+ },
13079
+ {
13080
+ key: "getUserAccounts",
13081
+ value: function getUserAccounts() {
13082
+ var _this = this;
13083
+ return _async_to_generator(function() {
13084
+ var cuiApiBaseUrl, path, data, err;
13085
+ return _ts_generator(this, function(_state) {
13086
+ switch(_state.label){
13087
+ case 0:
13088
+ logDebug("Getting user accounts", {
13089
+ adapter: "RestAccountRepository"
13090
+ });
13091
+ _state.label = 1;
13092
+ case 1:
13093
+ _state.trys.push([
13094
+ 1,
13095
+ 3,
13096
+ ,
13097
+ 4
13098
+ ]);
13099
+ cuiApiBaseUrl = getEnvConfigValueByName("CUI_API_BASE_URL");
13100
+ path = "".concat(cuiApiBaseUrl, "/api/v2/users/accounts");
13101
+ return [
13102
+ 4,
13103
+ _this.httpClient.get(path)
13104
+ ];
13105
+ case 2:
13106
+ data = _state.sent();
13107
+ logInfo("User accounts retrieved successfully", {
13108
+ adapter: "RestAccountRepository"
13109
+ });
13110
+ return [
13111
+ 2,
13112
+ data
13113
+ ];
13114
+ case 3:
13115
+ err = _state.sent();
13116
+ logError("Unable to retrieve user accounts", {
13117
+ err: err,
13118
+ adapter: "RestAccountRepository"
13119
+ });
13120
+ throw new MqSDKError("Unable to retrieve user accounts", err);
13121
+ case 4:
13122
+ return [
13123
+ 2
13124
+ ];
13125
+ }
13126
+ });
13127
+ })();
13128
+ }
13129
+ }
12593
13130
  ]);
12594
13131
  return _RestAccountRepository;
12595
13132
  }();
@@ -12619,6 +13156,30 @@ var ACCOUNT_UNVERIFIED_CUI_AUTH_TOKEN = "ACCOUNT_UNVERIFIED_CUI_AUTH_TOKEN";
12619
13156
  var ACCOUNT_SUSPENDED_CUI_AUTH_TOKEN = "ACCOUNT_SUSPENDED_CUI_AUTH_TOKEN";
12620
13157
  var ACCOUNT_CLOSED_CUI_AUTH_TOKEN = "ACCOUNT_CLOSED_CUI_AUTH_TOKEN";
12621
13158
  // src/accounts/adapters/rest/httpMocks.ts
13159
+ var mockUserAccounts = {
13160
+ count: 2,
13161
+ start_index: 0,
13162
+ end_index: 1,
13163
+ is_more: false,
13164
+ data: [
13165
+ {
13166
+ token: "account_token_1",
13167
+ type: UserAccountType.Checking,
13168
+ balance: 1000.5,
13169
+ currency_code: "USD",
13170
+ last_four: "1234",
13171
+ account_number: "1234567890",
13172
+ routing_number: "123456789"
13173
+ },
13174
+ {
13175
+ token: "account_token_2",
13176
+ type: UserAccountType.Savings,
13177
+ balance: 5e3,
13178
+ currency_code: "USD",
13179
+ last_four: "5678"
13180
+ }
13181
+ ]
13182
+ };
12622
13183
  var mswAccountHandlers = [
12623
13184
  // Simulate account holder group statuses by different user tokens
12624
13185
  http.get("".concat(mockMode_exports.CUI_API_BASE_URL, "/api/v1/accountholdergroup"), function() {
@@ -12632,12 +13193,12 @@ var mswAccountHandlers = [
12632
13193
  _$_optionalChain = _sliced_to_array(_optionalChain([
12633
13194
  authorization,
12634
13195
  'optionalAccess',
12635
- function(_45) {
12636
- return _45.split;
13196
+ function(_48) {
13197
+ return _48.split;
12637
13198
  },
12638
13199
  'call',
12639
- function(_46) {
12640
- return _46(" ");
13200
+ function(_49) {
13201
+ return _49(" ");
12641
13202
  }
12642
13203
  ]), 2), _ = _$_optionalChain[0], token = _$_optionalChain[1];
12643
13204
  userStatus = "ACTIVE";
@@ -12784,6 +13345,9 @@ var mswAccountHandlers = [
12784
13345
  ok: true,
12785
13346
  status: 200
12786
13347
  });
13348
+ }),
13349
+ http.get("".concat(mockMode_exports.CUI_API_BASE_URL, "/api/v2/users/accounts"), function() {
13350
+ return HttpResponse.json(mockUserAccounts);
12787
13351
  })
12788
13352
  ];
12789
13353
  // src/analytics/ioc/symbols.ts
@@ -13825,12 +14389,12 @@ var _RestComponentsRepository = /*#__PURE__*/ function() {
13825
14389
  componentCount: _optionalChain([
13826
14390
  data,
13827
14391
  'access',
13828
- function(_47) {
13829
- return _47.components;
14392
+ function(_50) {
14393
+ return _50.components;
13830
14394
  },
13831
14395
  'optionalAccess',
13832
- function(_48) {
13833
- return _48.length;
14396
+ function(_51) {
14397
+ return _51.length;
13834
14398
  }
13835
14399
  ]) || 0,
13836
14400
  adapter: "RestComponentsRepository"
@@ -14356,16 +14920,16 @@ function _retrieveDocumentForDispute() {
14356
14920
  documentCount: _optionalChain([
14357
14921
  result,
14358
14922
  'access',
14359
- function(_49) {
14360
- return _49.data;
14923
+ function(_52) {
14924
+ return _52.data;
14361
14925
  },
14362
14926
  'optionalAccess',
14363
- function(_50) {
14364
- return _50.documents;
14927
+ function(_53) {
14928
+ return _53.documents;
14365
14929
  },
14366
14930
  'optionalAccess',
14367
- function(_51) {
14368
- return _51.length;
14931
+ function(_54) {
14932
+ return _54.length;
14369
14933
  }
14370
14934
  ]) || 0,
14371
14935
  interactor: "retrieveDocumentForDispute"
@@ -15221,12 +15785,12 @@ var _RestDisputeRepository = /*#__PURE__*/ function() {
15221
15785
  stepCount: _optionalChain([
15222
15786
  result,
15223
15787
  'access',
15224
- function(_52) {
15225
- return _52.steps;
15788
+ function(_55) {
15789
+ return _55.steps;
15226
15790
  },
15227
15791
  'optionalAccess',
15228
- function(_53) {
15229
- return _53.length;
15792
+ function(_56) {
15793
+ return _56.length;
15230
15794
  }
15231
15795
  ]),
15232
15796
  adapter: "RestDisputeRepository"
@@ -15547,16 +16111,16 @@ var _RestDisputeRepository = /*#__PURE__*/ function() {
15547
16111
  documentCount: _optionalChain([
15548
16112
  result,
15549
16113
  'access',
15550
- function(_54) {
15551
- return _54.data;
16114
+ function(_57) {
16115
+ return _57.data;
15552
16116
  },
15553
16117
  'optionalAccess',
15554
- function(_55) {
15555
- return _55.documents;
16118
+ function(_58) {
16119
+ return _58.documents;
15556
16120
  },
15557
16121
  'optionalAccess',
15558
- function(_56) {
15559
- return _56.length;
16122
+ function(_59) {
16123
+ return _59.length;
15560
16124
  }
15561
16125
  ]),
15562
16126
  adapter: "RestDisputeRepository"
@@ -15721,65 +16285,65 @@ var mswDisputesHandlers = [
15721
16285
  var initalQnAns = _optionalChain([
15722
16286
  CUR_STEP1_RESPONSE,
15723
16287
  'access',
15724
- function(_57) {
15725
- return _57.defaultValues;
16288
+ function(_60) {
16289
+ return _60.defaultValues;
15726
16290
  },
15727
16291
  'optionalAccess',
15728
- function(_58) {
15729
- return _58["Q-INITIAL-QUESTION"];
16292
+ function(_61) {
16293
+ return _61["Q-INITIAL-QUESTION"];
15730
16294
  }
15731
16295
  ]);
15732
16296
  if (initalQnAns) {
15733
16297
  var initalQnReadableAns = _optionalChain([
15734
16298
  CUR_STEP1_RESPONSE,
15735
16299
  'access',
15736
- function(_59) {
15737
- return _59.schema;
16300
+ function(_62) {
16301
+ return _62.schema;
15738
16302
  },
15739
16303
  'optionalAccess',
15740
- function(_60) {
15741
- return _60.properties;
16304
+ function(_63) {
16305
+ return _63.properties;
15742
16306
  },
15743
16307
  'optionalAccess',
15744
- function(_61) {
15745
- return _61["Q-INITIAL-QUESTION"];
16308
+ function(_64) {
16309
+ return _64["Q-INITIAL-QUESTION"];
15746
16310
  },
15747
16311
  'optionalAccess',
15748
- function(_62) {
15749
- return _62.oneOf;
16312
+ function(_65) {
16313
+ return _65.oneOf;
15750
16314
  },
15751
16315
  'optionalAccess',
15752
- function(_63) {
15753
- return _63.find;
16316
+ function(_66) {
16317
+ return _66.find;
15754
16318
  },
15755
16319
  'call',
15756
- function(_64) {
15757
- return _64(function(val) {
16320
+ function(_67) {
16321
+ return _67(function(val) {
15758
16322
  return val.const === initalQnAns;
15759
16323
  });
15760
16324
  },
15761
16325
  'optionalAccess',
15762
- function(_65) {
15763
- return _65.title;
16326
+ function(_68) {
16327
+ return _68.title;
15764
16328
  }
15765
16329
  ]);
15766
16330
  var initialQuestion = _optionalChain([
15767
16331
  CUR_STEP1_RESPONSE,
15768
16332
  'access',
15769
- function(_66) {
15770
- return _66.schema;
16333
+ function(_69) {
16334
+ return _69.schema;
15771
16335
  },
15772
16336
  'optionalAccess',
15773
- function(_67) {
15774
- return _67.properties;
16337
+ function(_70) {
16338
+ return _70.properties;
15775
16339
  },
15776
16340
  'optionalAccess',
15777
- function(_68) {
15778
- return _68["Q-INITIAL-QUESTION"];
16341
+ function(_71) {
16342
+ return _71["Q-INITIAL-QUESTION"];
15779
16343
  },
15780
16344
  'optionalAccess',
15781
- function(_69) {
15782
- return _69.title;
16345
+ function(_72) {
16346
+ return _72.title;
15783
16347
  }
15784
16348
  ]);
15785
16349
  if (initialQuestion && initalQnReadableAns) {
@@ -15795,64 +16359,64 @@ var mswDisputesHandlers = [
15795
16359
  var fraudQnAns = _optionalChain([
15796
16360
  CUR_FRAUD_STEP_RESPONSE,
15797
16361
  'access',
15798
- function(_70) {
15799
- return _70.defaultValues;
16362
+ function(_73) {
16363
+ return _73.defaultValues;
15800
16364
  },
15801
16365
  'optionalAccess',
15802
- function(_71) {
15803
- return _71["Q-card-with-user"];
16366
+ function(_74) {
16367
+ return _74["Q-card-with-user"];
15804
16368
  }
15805
16369
  ]);
15806
16370
  var fraudQnReadableAns = _optionalChain([
15807
16371
  CUR_FRAUD_STEP_RESPONSE,
15808
16372
  'access',
15809
- function(_72) {
15810
- return _72.schema;
16373
+ function(_75) {
16374
+ return _75.schema;
15811
16375
  },
15812
16376
  'optionalAccess',
15813
- function(_73) {
15814
- return _73.properties;
16377
+ function(_76) {
16378
+ return _76.properties;
15815
16379
  },
15816
16380
  'optionalAccess',
15817
- function(_74) {
15818
- return _74["Q-card-with-user"];
16381
+ function(_77) {
16382
+ return _77["Q-card-with-user"];
15819
16383
  },
15820
16384
  'optionalAccess',
15821
- function(_75) {
15822
- return _75.oneOf;
16385
+ function(_78) {
16386
+ return _78.oneOf;
15823
16387
  },
15824
16388
  'optionalAccess',
15825
- function(_76) {
15826
- return _76.find;
16389
+ function(_79) {
16390
+ return _79.find;
15827
16391
  },
15828
16392
  'call',
15829
- function(_77) {
15830
- return _77(function(val) {
16393
+ function(_80) {
16394
+ return _80(function(val) {
15831
16395
  return val.const === fraudQnAns;
15832
16396
  });
15833
16397
  },
15834
16398
  'optionalAccess',
15835
- function(_78) {
15836
- return _78.title;
16399
+ function(_81) {
16400
+ return _81.title;
15837
16401
  }
15838
16402
  ]);
15839
16403
  var fraudQuestion = _optionalChain([
15840
16404
  CUR_FRAUD_STEP_RESPONSE,
15841
16405
  'access',
15842
- function(_79) {
15843
- return _79.schema;
16406
+ function(_82) {
16407
+ return _82.schema;
15844
16408
  },
15845
16409
  'optionalAccess',
15846
- function(_80) {
15847
- return _80.properties;
16410
+ function(_83) {
16411
+ return _83.properties;
15848
16412
  },
15849
16413
  'optionalAccess',
15850
- function(_81) {
15851
- return _81["Q-card-with-user"];
16414
+ function(_84) {
16415
+ return _84["Q-card-with-user"];
15852
16416
  },
15853
16417
  'optionalAccess',
15854
- function(_82) {
15855
- return _82.title;
16418
+ function(_85) {
16419
+ return _85.title;
15856
16420
  }
15857
16421
  ]);
15858
16422
  if (fraudQnReadableAns && fraudQuestion) answersForReview.push({
@@ -15865,64 +16429,64 @@ var mswDisputesHandlers = [
15865
16429
  var recognizedQnAns = _optionalChain([
15866
16430
  CUR_RECOGNIZED_TRANSACTION_RESPONSE,
15867
16431
  'access',
15868
- function(_83) {
15869
- return _83.defaultValues;
16432
+ function(_86) {
16433
+ return _86.defaultValues;
15870
16434
  },
15871
16435
  'optionalAccess',
15872
- function(_84) {
15873
- return _84.Q2;
16436
+ function(_87) {
16437
+ return _87.Q2;
15874
16438
  }
15875
16439
  ]);
15876
16440
  var recognizedQnReadableAns = _optionalChain([
15877
16441
  CUR_RECOGNIZED_TRANSACTION_RESPONSE,
15878
16442
  'access',
15879
- function(_85) {
15880
- return _85.schema;
16443
+ function(_88) {
16444
+ return _88.schema;
15881
16445
  },
15882
16446
  'optionalAccess',
15883
- function(_86) {
15884
- return _86.properties;
16447
+ function(_89) {
16448
+ return _89.properties;
15885
16449
  },
15886
16450
  'optionalAccess',
15887
- function(_87) {
15888
- return _87.Q2;
16451
+ function(_90) {
16452
+ return _90.Q2;
15889
16453
  },
15890
16454
  'optionalAccess',
15891
- function(_88) {
15892
- return _88.oneOf;
16455
+ function(_91) {
16456
+ return _91.oneOf;
15893
16457
  },
15894
16458
  'optionalAccess',
15895
- function(_89) {
15896
- return _89.find;
16459
+ function(_92) {
16460
+ return _92.find;
15897
16461
  },
15898
16462
  'call',
15899
- function(_90) {
15900
- return _90(function(val) {
16463
+ function(_93) {
16464
+ return _93(function(val) {
15901
16465
  return val.const === recognizedQnAns;
15902
16466
  });
15903
16467
  },
15904
16468
  'optionalAccess',
15905
- function(_91) {
15906
- return _91.title;
16469
+ function(_94) {
16470
+ return _94.title;
15907
16471
  }
15908
16472
  ]);
15909
16473
  var recognizedQuestion = _optionalChain([
15910
16474
  CUR_RECOGNIZED_TRANSACTION_RESPONSE,
15911
16475
  'access',
15912
- function(_92) {
15913
- return _92.schema;
16476
+ function(_95) {
16477
+ return _95.schema;
15914
16478
  },
15915
16479
  'optionalAccess',
15916
- function(_93) {
15917
- return _93.properties;
16480
+ function(_96) {
16481
+ return _96.properties;
15918
16482
  },
15919
16483
  'optionalAccess',
15920
- function(_94) {
15921
- return _94.Q2;
16484
+ function(_97) {
16485
+ return _97.Q2;
15922
16486
  },
15923
16487
  'optionalAccess',
15924
- function(_95) {
15925
- return _95.title;
16488
+ function(_98) {
16489
+ return _98.title;
15926
16490
  }
15927
16491
  ]);
15928
16492
  if (recognizedQnReadableAns && recognizedQuestion) {
@@ -15938,65 +16502,65 @@ var mswDisputesHandlers = [
15938
16502
  var amountQnAns = _optionalChain([
15939
16503
  CUR_AMOUNT_STEP_RESPONSE,
15940
16504
  'access',
15941
- function(_96) {
15942
- return _96.defaultValues;
16505
+ function(_99) {
16506
+ return _99.defaultValues;
15943
16507
  },
15944
16508
  'optionalAccess',
15945
- function(_97) {
15946
- return _97.Q13;
16509
+ function(_100) {
16510
+ return _100.Q13;
15947
16511
  }
15948
16512
  ]);
15949
16513
  if (amountQnAns) {
15950
16514
  var amountQnReadableAns = _optionalChain([
15951
16515
  CUR_AMOUNT_STEP_RESPONSE,
15952
16516
  'access',
15953
- function(_98) {
15954
- return _98.schema;
16517
+ function(_101) {
16518
+ return _101.schema;
15955
16519
  },
15956
16520
  'optionalAccess',
15957
- function(_99) {
15958
- return _99.properties;
16521
+ function(_102) {
16522
+ return _102.properties;
15959
16523
  },
15960
16524
  'optionalAccess',
15961
- function(_100) {
15962
- return _100.Q13;
16525
+ function(_103) {
16526
+ return _103.Q13;
15963
16527
  },
15964
16528
  'optionalAccess',
15965
- function(_101) {
15966
- return _101.oneOf;
16529
+ function(_104) {
16530
+ return _104.oneOf;
15967
16531
  },
15968
16532
  'optionalAccess',
15969
- function(_102) {
15970
- return _102.find;
16533
+ function(_105) {
16534
+ return _105.find;
15971
16535
  },
15972
16536
  'call',
15973
- function(_103) {
15974
- return _103(function(val) {
16537
+ function(_106) {
16538
+ return _106(function(val) {
15975
16539
  return val.const === amountQnAns;
15976
16540
  });
15977
16541
  },
15978
16542
  'optionalAccess',
15979
- function(_104) {
15980
- return _104.title;
16543
+ function(_107) {
16544
+ return _107.title;
15981
16545
  }
15982
16546
  ]);
15983
16547
  var amountQuestion = _optionalChain([
15984
16548
  CUR_AMOUNT_STEP_RESPONSE,
15985
16549
  'access',
15986
- function(_105) {
15987
- return _105.schema;
16550
+ function(_108) {
16551
+ return _108.schema;
15988
16552
  },
15989
16553
  'optionalAccess',
15990
- function(_106) {
15991
- return _106.properties;
16554
+ function(_109) {
16555
+ return _109.properties;
15992
16556
  },
15993
16557
  'optionalAccess',
15994
- function(_107) {
15995
- return _107.Q13;
16558
+ function(_110) {
16559
+ return _110.Q13;
15996
16560
  },
15997
16561
  'optionalAccess',
15998
- function(_108) {
15999
- return _108.title;
16562
+ function(_111) {
16563
+ return _111.title;
16000
16564
  }
16001
16565
  ]);
16002
16566
  if (amountQnReadableAns && amountQuestion) {
@@ -16009,48 +16573,48 @@ var mswDisputesHandlers = [
16009
16573
  if (_optionalChain([
16010
16574
  CUR_AMOUNT_STEP_RESPONSE,
16011
16575
  'access',
16012
- function(_109) {
16013
- return _109.defaultValues;
16576
+ function(_112) {
16577
+ return _112.defaultValues;
16014
16578
  },
16015
16579
  'optionalAccess',
16016
- function(_110) {
16017
- return _110.Q100;
16580
+ function(_113) {
16581
+ return _113.Q100;
16018
16582
  }
16019
16583
  ])) {
16020
16584
  answersForReview.push({
16021
16585
  question: _optionalChain([
16022
16586
  CUR_AMOUNT_STEP_RESPONSE,
16023
16587
  'access',
16024
- function(_111) {
16025
- return _111.schema;
16588
+ function(_114) {
16589
+ return _114.schema;
16026
16590
  },
16027
16591
  'optionalAccess',
16028
- function(_112) {
16029
- return _112.dependencies;
16592
+ function(_115) {
16593
+ return _115.dependencies;
16030
16594
  },
16031
16595
  'optionalAccess',
16032
- function(_113) {
16033
- return _113.Q13;
16596
+ function(_116) {
16597
+ return _116.Q13;
16034
16598
  },
16035
16599
  'optionalAccess',
16036
- function(_114) {
16037
- return _114.oneOf;
16600
+ function(_117) {
16601
+ return _117.oneOf;
16038
16602
  },
16039
16603
  'optionalAccess',
16040
- function(_115) {
16041
- return _115[0];
16604
+ function(_118) {
16605
+ return _118[0];
16042
16606
  },
16043
16607
  'optionalAccess',
16044
- function(_116) {
16045
- return _116.properties;
16608
+ function(_119) {
16609
+ return _119.properties;
16046
16610
  },
16047
16611
  'optionalAccess',
16048
- function(_117) {
16049
- return _117.Q100;
16612
+ function(_120) {
16613
+ return _120.Q100;
16050
16614
  },
16051
16615
  'optionalAccess',
16052
- function(_118) {
16053
- return _118.title;
16616
+ function(_121) {
16617
+ return _121.title;
16054
16618
  }
16055
16619
  ]),
16056
16620
  answers: [
@@ -16061,48 +16625,48 @@ var mswDisputesHandlers = [
16061
16625
  if (_optionalChain([
16062
16626
  CUR_AMOUNT_STEP_RESPONSE,
16063
16627
  'access',
16064
- function(_119) {
16065
- return _119.defaultValues;
16628
+ function(_122) {
16629
+ return _122.defaultValues;
16066
16630
  },
16067
16631
  'optionalAccess',
16068
- function(_120) {
16069
- return _120.Q14;
16632
+ function(_123) {
16633
+ return _123.Q14;
16070
16634
  }
16071
16635
  ])) {
16072
16636
  answersForReview.push({
16073
16637
  question: _optionalChain([
16074
16638
  CUR_AMOUNT_STEP_RESPONSE,
16075
16639
  'access',
16076
- function(_121) {
16077
- return _121.schema;
16640
+ function(_124) {
16641
+ return _124.schema;
16078
16642
  },
16079
16643
  'optionalAccess',
16080
- function(_122) {
16081
- return _122.dependencies;
16644
+ function(_125) {
16645
+ return _125.dependencies;
16082
16646
  },
16083
16647
  'optionalAccess',
16084
- function(_123) {
16085
- return _123.Q13;
16648
+ function(_126) {
16649
+ return _126.Q13;
16086
16650
  },
16087
16651
  'optionalAccess',
16088
- function(_124) {
16089
- return _124.oneOf;
16652
+ function(_127) {
16653
+ return _127.oneOf;
16090
16654
  },
16091
16655
  'optionalAccess',
16092
- function(_125) {
16093
- return _125[1];
16656
+ function(_128) {
16657
+ return _128[1];
16094
16658
  },
16095
16659
  'optionalAccess',
16096
- function(_126) {
16097
- return _126.properties;
16660
+ function(_129) {
16661
+ return _129.properties;
16098
16662
  },
16099
16663
  'optionalAccess',
16100
- function(_127) {
16101
- return _127.Q14;
16664
+ function(_130) {
16665
+ return _130.Q14;
16102
16666
  },
16103
16667
  'optionalAccess',
16104
- function(_128) {
16105
- return _128.title;
16668
+ function(_131) {
16669
+ return _131.title;
16106
16670
  }
16107
16671
  ]),
16108
16672
  answers: [
@@ -16113,48 +16677,48 @@ var mswDisputesHandlers = [
16113
16677
  if (_optionalChain([
16114
16678
  CUR_AMOUNT_STEP_RESPONSE,
16115
16679
  'access',
16116
- function(_129) {
16117
- return _129.defaultValues;
16680
+ function(_132) {
16681
+ return _132.defaultValues;
16118
16682
  },
16119
16683
  'optionalAccess',
16120
- function(_130) {
16121
- return _130.Q15;
16684
+ function(_133) {
16685
+ return _133.Q15;
16122
16686
  }
16123
16687
  ])) {
16124
16688
  answersForReview.push({
16125
16689
  question: _optionalChain([
16126
16690
  CUR_AMOUNT_STEP_RESPONSE,
16127
16691
  'access',
16128
- function(_131) {
16129
- return _131.schema;
16692
+ function(_134) {
16693
+ return _134.schema;
16130
16694
  },
16131
16695
  'optionalAccess',
16132
- function(_132) {
16133
- return _132.dependencies;
16696
+ function(_135) {
16697
+ return _135.dependencies;
16134
16698
  },
16135
16699
  'optionalAccess',
16136
- function(_133) {
16137
- return _133.Q13;
16700
+ function(_136) {
16701
+ return _136.Q13;
16138
16702
  },
16139
16703
  'optionalAccess',
16140
- function(_134) {
16141
- return _134.oneOf;
16704
+ function(_137) {
16705
+ return _137.oneOf;
16142
16706
  },
16143
16707
  'optionalAccess',
16144
- function(_135) {
16145
- return _135[1];
16708
+ function(_138) {
16709
+ return _138[1];
16146
16710
  },
16147
16711
  'optionalAccess',
16148
- function(_136) {
16149
- return _136.properties;
16712
+ function(_139) {
16713
+ return _139.properties;
16150
16714
  },
16151
16715
  'optionalAccess',
16152
- function(_137) {
16153
- return _137.Q15;
16716
+ function(_140) {
16717
+ return _140.Q15;
16154
16718
  },
16155
16719
  'optionalAccess',
16156
- function(_138) {
16157
- return _138.title;
16720
+ function(_141) {
16721
+ return _141.title;
16158
16722
  }
16159
16723
  ]),
16160
16724
  answers: [
@@ -16306,12 +16870,12 @@ var mswDisputesHandlers = [
16306
16870
  var initialQuestionAnswer = _optionalChain([
16307
16871
  CUR_STEP1_RESPONSE,
16308
16872
  'access',
16309
- function(_139) {
16310
- return _139.defaultValues;
16873
+ function(_142) {
16874
+ return _142.defaultValues;
16311
16875
  },
16312
16876
  'optionalAccess',
16313
- function(_140) {
16314
- return _140["Q-INITIAL-QUESTION"];
16877
+ function(_143) {
16878
+ return _143["Q-INITIAL-QUESTION"];
16315
16879
  }
16316
16880
  ]);
16317
16881
  switch(initialQuestionAnswer){
@@ -17917,14 +18481,14 @@ var _RestKycRepository = /*#__PURE__*/ function() {
17917
18481
  if (_optionalChain([
17918
18482
  error2,
17919
18483
  'optionalAccess',
17920
- function(_141) {
17921
- return _141.msg;
18484
+ function(_144) {
18485
+ return _144.msg;
17922
18486
  }
17923
18487
  ]) && _optionalChain([
17924
18488
  error2,
17925
18489
  'optionalAccess',
17926
- function(_142) {
17927
- return _142.debug;
18490
+ function(_145) {
18491
+ return _145.debug;
17928
18492
  }
17929
18493
  ])) {
17930
18494
  logError("KYC verification failed with standardized error", {
@@ -17982,12 +18546,12 @@ function _postVerifyKyb() {
17982
18546
  if (kybVerificationAttributes.locale_code === "INVALID" || !_optionalChain([
17983
18547
  kybVerificationAttributes,
17984
18548
  'access',
17985
- function(_143) {
17986
- return _143.answers;
18549
+ function(_146) {
18550
+ return _146.answers;
17987
18551
  },
17988
18552
  'optionalAccess',
17989
- function(_144) {
17990
- return _144.length;
18553
+ function(_147) {
18554
+ return _147.length;
17991
18555
  }
17992
18556
  ])) {
17993
18557
  logError("Invalid KYB request - invalid locale or no answers", {
@@ -17999,16 +18563,16 @@ function _postVerifyKyb() {
17999
18563
  hasErrorValue = _optionalChain([
18000
18564
  kybVerificationAttributes,
18001
18565
  'access',
18002
- function(_145) {
18003
- return _145.answers;
18566
+ function(_148) {
18567
+ return _148.answers;
18004
18568
  },
18005
18569
  'optionalAccess',
18006
- function(_146) {
18007
- return _146.some;
18570
+ function(_149) {
18571
+ return _149.some;
18008
18572
  },
18009
18573
  'call',
18010
- function(_147) {
18011
- return _147(function(answer) {
18574
+ function(_150) {
18575
+ return _150(function(answer) {
18012
18576
  return [
18013
18577
  "222222222",
18014
18578
  "444444444",
@@ -19490,14 +20054,14 @@ var _RestKybRepository = /*#__PURE__*/ function() {
19490
20054
  if (_optionalChain([
19491
20055
  error2,
19492
20056
  'optionalAccess',
19493
- function(_148) {
19494
- return _148.msg;
20057
+ function(_151) {
20058
+ return _151.msg;
19495
20059
  }
19496
20060
  ]) && _optionalChain([
19497
20061
  error2,
19498
20062
  'optionalAccess',
19499
- function(_149) {
19500
- return _149.debug;
20063
+ function(_152) {
20064
+ return _152.debug;
19501
20065
  }
19502
20066
  ])) {
19503
20067
  logError("KYB onboarding initialization failed with standardized error", {
@@ -19565,14 +20129,14 @@ var _RestKybRepository = /*#__PURE__*/ function() {
19565
20129
  if (_optionalChain([
19566
20130
  error2,
19567
20131
  'optionalAccess',
19568
- function(_150) {
19569
- return _150.msg;
20132
+ function(_153) {
20133
+ return _153.msg;
19570
20134
  }
19571
20135
  ]) && _optionalChain([
19572
20136
  error2,
19573
20137
  'optionalAccess',
19574
- function(_151) {
19575
- return _151.debug;
20138
+ function(_154) {
20139
+ return _154.debug;
19576
20140
  }
19577
20141
  ])) {
19578
20142
  logError("KYB verification failed with standardized error", {
@@ -19911,12 +20475,12 @@ var _RestMoneyMovementRepository = /*#__PURE__*/ function() {
19911
20475
  cardCount: _optionalChain([
19912
20476
  result,
19913
20477
  'access',
19914
- function(_152) {
19915
- return _152.data;
20478
+ function(_155) {
20479
+ return _155.data;
19916
20480
  },
19917
20481
  'optionalAccess',
19918
- function(_153) {
19919
- return _153.length;
20482
+ function(_156) {
20483
+ return _156.length;
19920
20484
  }
19921
20485
  ]) || 0,
19922
20486
  adapter: "RestMoneyMovementRepository"
@@ -20413,12 +20977,12 @@ function _getExternalCards() {
20413
20977
  cardCount: _optionalChain([
20414
20978
  result,
20415
20979
  'access',
20416
- function(_154) {
20417
- return _154.data;
20980
+ function(_157) {
20981
+ return _157.data;
20418
20982
  },
20419
20983
  'optionalAccess',
20420
- function(_155) {
20421
- return _155.length;
20984
+ function(_158) {
20985
+ return _158.length;
20422
20986
  }
20423
20987
  ]) || 0,
20424
20988
  interactor: "getExternalCards"
@@ -21723,67 +22287,372 @@ var StatementAssetStateEnum;
21723
22287
  StatementAssetStateEnum2["RENDERED"] = "Rendered";
21724
22288
  StatementAssetStateEnum2["FAILED"] = "Failed";
21725
22289
  })(StatementAssetStateEnum || (StatementAssetStateEnum = exports.StatementAssetStateEnum = {}));
21726
- // src/statements/ioc/symbols.ts
21727
- var ITF_STATEMENTS = Symbol.for("iStatementsRepository");
21728
- var ITF_STATEMENT_ASSET = Symbol.for("IStatementAssetRepository");
21729
- function getStatements(paginationParams) {
21730
- return _getStatements.apply(this, arguments);
21731
- }
21732
- function _getStatements() {
21733
- _getStatements = // src/statements/base/interactors/getStatements.ts
21734
- _async_to_generator(function(paginationParams) {
21735
- var container2, statementsRepository, response, error2;
21736
- return _ts_generator(this, function(_state) {
21737
- switch(_state.label){
21738
- case 0:
21739
- logDebug("Getting statements", {
21740
- paginationParams: paginationParams,
21741
- interactor: "getStatements"
21742
- });
21743
- _state.label = 1;
21744
- case 1:
21745
- _state.trys.push([
21746
- 1,
21747
- 3,
21748
- ,
21749
- 4
21750
- ]);
21751
- container2 = getActiveIocContainer();
21752
- statementsRepository = container2.get(ITF_STATEMENTS);
21753
- return [
21754
- 4,
21755
- statementsRepository.getStatements(paginationParams)
21756
- ];
21757
- case 2:
21758
- response = _state.sent();
21759
- logInfo("Statements retrieved successfully", {
21760
- count: response.data.length,
21761
- interactor: "getStatements"
21762
- });
21763
- return [
21764
- 2,
21765
- response
21766
- ];
21767
- case 3:
21768
- error2 = _state.sent();
21769
- logError("Failed to get statements", {
21770
- error: error2,
21771
- paginationParams: paginationParams,
21772
- interactor: "getStatements"
21773
- });
21774
- throw error2;
21775
- case 4:
21776
- return [
21777
- 2
21778
- ];
21779
- }
21780
- });
21781
- });
21782
- return _getStatements.apply(this, arguments);
21783
- }
21784
- __name(getStatements, "getStatements");
21785
- function getStatementAsset(issuedDate, accountToken) {
21786
- return _getStatementAsset.apply(this, arguments);
22290
+ var StatementSummaryCycleTypeEnum;
22291
+ (function(StatementSummaryCycleTypeEnum2) {
22292
+ StatementSummaryCycleTypeEnum2["BEGINNING_REVOLVING"] = "BEGINNING_REVOLVING";
22293
+ StatementSummaryCycleTypeEnum2["REVOLVING"] = "REVOLVING";
22294
+ StatementSummaryCycleTypeEnum2["END_REVOLVING"] = "END_REVOLVING";
22295
+ StatementSummaryCycleTypeEnum2["TRANSACTING"] = "TRANSACTING";
22296
+ })(StatementSummaryCycleTypeEnum || (StatementSummaryCycleTypeEnum = exports.StatementSummaryCycleTypeEnum = {}));
22297
+ // src/statements/base/repositories/MockStatementsRepository.ts
22298
+ // src/statements/adapters/rest/constants.ts
22299
+ var VALID_USER_TOKEN = "test_user_token";
22300
+ var INVALID_USER_TOKEN = "invalid_".concat(VALID_USER_TOKEN);
22301
+ var MOCK_STATEMENT_ASSET_SIGNED_URL_PDF = "https://statements-demo.prod.mq01-prod.marqeta.io/Statements_Oct_1_demo.pdf";
22302
+ var MOCK_STATEMENT_ASSET_SIGNED_URL = {
22303
+ pdf: MOCK_STATEMENT_ASSET_SIGNED_URL_PDF
22304
+ };
22305
+ var VALID_ISSUED_DATE = "2024-07-15";
22306
+ var INVALID_ISSUED_DATE = "".concat(VALID_ISSUED_DATE, "-invalid");
22307
+ var MOCK_USER = {
22308
+ token: "a5a6742c-642e-49d0-ad7e-748cf140a03b",
22309
+ active: true,
22310
+ createdTime: "2022-10-08T00:11:11Z",
22311
+ firstName: "Jane",
22312
+ middleName: "",
22313
+ lastName: "Doe",
22314
+ status: "ACTIVE",
22315
+ address1: "123 Main St",
22316
+ address2: "",
22317
+ city: "New York",
22318
+ state: "NY",
22319
+ postalCode: "10001",
22320
+ country: "United States"
22321
+ };
22322
+ // src/statements/adapters/rest/utils.ts
22323
+ var toDateType = /* @__PURE__ */ __name(function(dateString) {
22324
+ try {
22325
+ var dateArray = dateString.split(/\D+/);
22326
+ var numArray = dateArray.map(function(i) {
22327
+ return Number(i);
22328
+ });
22329
+ var dateObj = new Date(Date.UTC(numArray[0], numArray[1] - 1, numArray[2]));
22330
+ if (Math.sign(dateObj.getTimezoneOffset())) {
22331
+ dateObj.setDate(dateObj.getDate() + 1);
22332
+ }
22333
+ return dateObj;
22334
+ } catch (err) {
22335
+ return new Date(dateString);
22336
+ }
22337
+ }, "toDateType");
22338
+ var calculateMonthsDifference = /* @__PURE__ */ __name(function(issuedEndDate, issuedStartDate) {
22339
+ var yearDiff = (issuedEndDate.getFullYear() - issuedStartDate.getFullYear()) * 12;
22340
+ var totalMonthDiff = yearDiff - issuedStartDate.getMonth() + issuedEndDate.getMonth() + 1;
22341
+ return Math.max(0, totalMonthDiff);
22342
+ }, "calculateMonthsDifference");
22343
+ var formatDateForApi = /* @__PURE__ */ __name(function(date) {
22344
+ var year = date.getFullYear();
22345
+ var month = date.getMonth() + 1;
22346
+ var formattedMonth = ("0" + month).slice(-2);
22347
+ var day = ("0" + date.getDate()).slice(-2);
22348
+ return [
22349
+ year,
22350
+ formattedMonth,
22351
+ day
22352
+ ].join("-");
22353
+ }, "formatDateForApi");
22354
+ var formatDateForClient = /* @__PURE__ */ __name(function(timestamp) {
22355
+ if (!timestamp) return "";
22356
+ try {
22357
+ var date = toDateType(timestamp);
22358
+ var formattedDate = date.toLocaleDateString("en-US", {
22359
+ year: "numeric",
22360
+ month: "short",
22361
+ day: "numeric"
22362
+ });
22363
+ return formattedDate.replace("Sep", "Sept");
22364
+ } catch (e6) {
22365
+ return timestamp;
22366
+ }
22367
+ }, "formatDateForClient");
22368
+ var validateIssuedDateQueryParams = /* @__PURE__ */ __name(function(issuedEndDate, issuedStartDate) {
22369
+ var isValidEndDate = issuedEndDate ? validateDateFormat(issuedEndDate) : true;
22370
+ var isValidStartDate = issuedStartDate ? validateDateFormat(issuedStartDate) : true;
22371
+ return Boolean(isValidEndDate && isValidStartDate);
22372
+ }, "validateIssuedDateQueryParams");
22373
+ var validateDateFormat = /* @__PURE__ */ __name(function(date) {
22374
+ if (!date) return false;
22375
+ var regex = new RegExp(/^\d{4}-(0[1-9]|1[012])-(0[1-9]|[12]\d|3[01])$/, "g");
22376
+ return regex.test(date);
22377
+ }, "validateDateFormat");
22378
+ var generateStatementsDateQueries = /* @__PURE__ */ __name(function() {
22379
+ var initEndDate = /* @__PURE__ */ new Date();
22380
+ var initStartDate = /* @__PURE__ */ new Date();
22381
+ initStartDate.setFullYear(initStartDate.getFullYear() - 1);
22382
+ initStartDate.setDate(1);
22383
+ initStartDate.setMonth(initStartDate.getMonth() + 1);
22384
+ return {
22385
+ ISSUED_END_DATE: formatDateForApi(initEndDate),
22386
+ ISSUED_START_DATE: formatDateForApi(initStartDate)
22387
+ };
22388
+ }, "generateStatementsDateQueries");
22389
+ // src/statements/adapters/rest/mockStatements.ts
22390
+ var handleGetStatements = /* @__PURE__ */ __name(function(userToken, issuedEndDate, issuedStartDate, accountToken) {
22391
+ var response;
22392
+ var areIssuedDatesValid = validateIssuedDateQueryParams(issuedEndDate, issuedStartDate);
22393
+ if (!areIssuedDatesValid) {
22394
+ throw new Error("Status: ".concat(400));
22395
+ } else if ([
22396
+ null,
22397
+ INVALID_USER_TOKEN
22398
+ ].includes(userToken)) {
22399
+ throw new Error("Status: ".concat(404));
22400
+ } else if (areIssuedDatesValid) {
22401
+ response = generateStatementSummary(userToken, issuedEndDate, issuedStartDate, accountToken);
22402
+ } else {
22403
+ throw new Error("Status: ".concat(500));
22404
+ }
22405
+ return {
22406
+ is_more: response.is_more,
22407
+ data: response.data,
22408
+ end_index: response.end_index,
22409
+ start_index: response.start_index
22410
+ };
22411
+ }, "handleGetStatements");
22412
+ var handleGetStatementAsset = /* @__PURE__ */ __name(function() {
22413
+ return {
22414
+ state: StatementAssetStateEnum.RENDERED,
22415
+ signed_url: MOCK_STATEMENT_ASSET_SIGNED_URL
22416
+ };
22417
+ }, "handleGetStatementAsset");
22418
+ var isAFutureDate = /* @__PURE__ */ __name(function(timestamp) {
22419
+ return /* @__PURE__ */ new Date() < toDateType(timestamp);
22420
+ }, "isAFutureDate");
22421
+ var getValidEndDate = /* @__PURE__ */ __name(function(issued_end_date) {
22422
+ var defaultEndDate = formatDateForApi(/* @__PURE__ */ new Date());
22423
+ var todayOrEndDate = isAFutureDate(issued_end_date) ? defaultEndDate : issued_end_date;
22424
+ var issuedEndDate = todayOrEndDate || defaultEndDate;
22425
+ var endDateObject = toDateType(issuedEndDate);
22426
+ endDateObject.setDate(Math.min(28, /* @__PURE__ */ new Date().getDate()));
22427
+ return endDateObject;
22428
+ }, "getValidEndDate");
22429
+ var isMockUserCreationYear = /* @__PURE__ */ __name(function(issued_end_date) {
22430
+ var mockUserCreationYear = new Date(MOCK_USER.createdTime).getFullYear();
22431
+ var issuedEndDateYear = toDateType(issued_end_date).getFullYear();
22432
+ return mockUserCreationYear === issuedEndDateYear;
22433
+ }, "isMockUserCreationYear");
22434
+ var handleGetUserAccountStatementsV2 = /* @__PURE__ */ __name(function(params) {
22435
+ return {
22436
+ count: 2,
22437
+ start_index: params.start_index || 0,
22438
+ end_index: 1,
22439
+ is_more: false,
22440
+ data: [
22441
+ {
22442
+ token: "mock-statement-token-1",
22443
+ account_token: params.account_token,
22444
+ opening_balance: 1e3,
22445
+ closing_balance: 850,
22446
+ credit_limit: 5e3,
22447
+ available_credit: 4150,
22448
+ past_due_amount: 0,
22449
+ purchases: 250,
22450
+ interest: 15.5,
22451
+ fees: 0,
22452
+ credits: 0,
22453
+ payments: 415.5,
22454
+ days_in_billing_cycle: 30,
22455
+ cycle_type: "REVOLVING",
22456
+ opening_date: "2024-01-01T00:00:00Z",
22457
+ closing_date: "2024-01-31T23:59:59Z",
22458
+ created_time: "2024-02-01T00:00:00Z"
22459
+ },
22460
+ {
22461
+ token: "mock-statement-token-2",
22462
+ account_token: params.account_token,
22463
+ opening_balance: 850,
22464
+ closing_balance: 1200,
22465
+ credit_limit: 5e3,
22466
+ available_credit: 3800,
22467
+ past_due_amount: 0,
22468
+ purchases: 450,
22469
+ interest: 12.75,
22470
+ fees: 25,
22471
+ credits: 50,
22472
+ payments: 137.75,
22473
+ days_in_billing_cycle: 28,
22474
+ cycle_type: "REVOLVING",
22475
+ opening_date: "2024-02-01T00:00:00Z",
22476
+ closing_date: "2024-02-28T23:59:59Z",
22477
+ created_time: "2024-03-01T00:00:00Z"
22478
+ }
22479
+ ]
22480
+ };
22481
+ }, "handleGetUserAccountStatementsV2");
22482
+ var handleGetUserAccountsStatementDownloadV2 = /* @__PURE__ */ __name(function(params) {
22483
+ return {
22484
+ account_token: params.account_token,
22485
+ statement_summary_token: params.statement_summary_token,
22486
+ opening_date: "2024-01-01T00:00:00Z",
22487
+ closing_date: "2024-01-31T23:59:59Z",
22488
+ signed_url: {
22489
+ pdf: "https://mock-download-url.com/statement/".concat(params.statement_summary_token, ".pdf"),
22490
+ html: "https://mock-download-url.com/statement/".concat(params.statement_summary_token, ".html")
22491
+ }
22492
+ };
22493
+ }, "handleGetUserAccountsStatementDownloadV2");
22494
+ var generateStatementSummary = /* @__PURE__ */ __name(function(user_token, issued_end_date, issued_start_date, account_token) {
22495
+ var data = [];
22496
+ var monthsDifference = 12;
22497
+ var issuedEndDateObject = getValidEndDate(issued_end_date);
22498
+ if (isMockUserCreationYear(issued_end_date)) {
22499
+ monthsDifference = 7;
22500
+ } else if (issued_start_date) {
22501
+ monthsDifference = calculateMonthsDifference(issuedEndDateObject, toDateType(issued_start_date));
22502
+ }
22503
+ for(var i = 0; i < monthsDifference; i += 1){
22504
+ data.push(_object_spread({
22505
+ cardholder_token: user_token || VALID_USER_TOKEN,
22506
+ issued_date: formatDateForApi(issuedEndDateObject),
22507
+ readable_issued_date: formatDateForClient(formatDateForApi(issuedEndDateObject))
22508
+ }, account_token && {
22509
+ account_token: account_token
22510
+ }));
22511
+ issuedEndDateObject.setMonth(issuedEndDateObject.getMonth() - 1);
22512
+ }
22513
+ return {
22514
+ data: data,
22515
+ is_more: false,
22516
+ start_index: 0,
22517
+ end_index: monthsDifference - 1
22518
+ };
22519
+ }, "generateStatementSummary");
22520
+ // src/statements/base/repositories/MockStatementsRepository.ts
22521
+ function _ts_decorate69(decorators, target, key, desc) {
22522
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
22523
+ if ((typeof Reflect === "undefined" ? "undefined" : _type_of(Reflect)) === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
22524
+ else for(var i = decorators.length - 1; i >= 0; i--)if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
22525
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
22526
+ }
22527
+ __name(_ts_decorate69, "_ts_decorate");
22528
+ var _MockStatementsRepository = /*#__PURE__*/ function() {
22529
+ function _MockStatementsRepository() {
22530
+ _class_call_check(this, _MockStatementsRepository);
22531
+ }
22532
+ _create_class(_MockStatementsRepository, [
22533
+ {
22534
+ key: "getStatements",
22535
+ value: function getStatements(paginationParams) {
22536
+ return _async_to_generator(function() {
22537
+ var issuedEndDate, issuedStartDate, accountToken;
22538
+ return _ts_generator(this, function(_state) {
22539
+ issuedEndDate = paginationParams.issuedEndDate, issuedStartDate = paginationParams.issuedStartDate, accountToken = paginationParams.accountToken;
22540
+ return [
22541
+ 2,
22542
+ handleGetStatements(VALID_USER_TOKEN, issuedEndDate, issuedStartDate, accountToken)
22543
+ ];
22544
+ });
22545
+ })();
22546
+ }
22547
+ },
22548
+ {
22549
+ key: "getStatementAsset",
22550
+ value: function getStatementAsset() {
22551
+ return _async_to_generator(function() {
22552
+ return _ts_generator(this, function(_state) {
22553
+ return [
22554
+ 2,
22555
+ handleGetStatementAsset()
22556
+ ];
22557
+ });
22558
+ })();
22559
+ }
22560
+ },
22561
+ {
22562
+ key: "getUserAccountStatementsV2",
22563
+ value: function getUserAccountStatementsV2(params) {
22564
+ return _async_to_generator(function() {
22565
+ return _ts_generator(this, function(_state) {
22566
+ return [
22567
+ 2,
22568
+ handleGetUserAccountStatementsV2(params)
22569
+ ];
22570
+ });
22571
+ })();
22572
+ }
22573
+ },
22574
+ {
22575
+ key: "getUserAccountsStatementDownloadV2",
22576
+ value: function getUserAccountsStatementDownloadV2(params) {
22577
+ return _async_to_generator(function() {
22578
+ return _ts_generator(this, function(_state) {
22579
+ return [
22580
+ 2,
22581
+ handleGetUserAccountsStatementDownloadV2(params)
22582
+ ];
22583
+ });
22584
+ })();
22585
+ }
22586
+ }
22587
+ ]);
22588
+ return _MockStatementsRepository;
22589
+ }();
22590
+ __name(_MockStatementsRepository, "MockStatementsRepository");
22591
+ var MockStatementsRepository = _MockStatementsRepository;
22592
+ MockStatementsRepository = exports.MockStatementsRepository = _ts_decorate69([
22593
+ _inversify.injectable.call(void 0)
22594
+ ], MockStatementsRepository);
22595
+ // src/statements/ioc/symbols.ts
22596
+ var ITF_STATEMENTS = Symbol.for("iStatementsRepository");
22597
+ var ITF_STATEMENT_ASSET = Symbol.for("IStatementAssetRepository");
22598
+ function getStatements(paginationParams) {
22599
+ return _getStatements.apply(this, arguments);
22600
+ }
22601
+ function _getStatements() {
22602
+ _getStatements = // src/statements/base/interactors/getStatements.ts
22603
+ _async_to_generator(function(paginationParams) {
22604
+ var container2, statementsRepository, response, error2;
22605
+ return _ts_generator(this, function(_state) {
22606
+ switch(_state.label){
22607
+ case 0:
22608
+ logDebug("Getting statements", {
22609
+ paginationParams: paginationParams,
22610
+ interactor: "getStatements"
22611
+ });
22612
+ _state.label = 1;
22613
+ case 1:
22614
+ _state.trys.push([
22615
+ 1,
22616
+ 3,
22617
+ ,
22618
+ 4
22619
+ ]);
22620
+ container2 = getActiveIocContainer();
22621
+ statementsRepository = container2.get(ITF_STATEMENTS);
22622
+ return [
22623
+ 4,
22624
+ statementsRepository.getStatements(paginationParams)
22625
+ ];
22626
+ case 2:
22627
+ response = _state.sent();
22628
+ logInfo("Statements retrieved successfully", {
22629
+ count: response.data.length,
22630
+ interactor: "getStatements"
22631
+ });
22632
+ return [
22633
+ 2,
22634
+ response
22635
+ ];
22636
+ case 3:
22637
+ error2 = _state.sent();
22638
+ logError("Failed to get statements", {
22639
+ error: error2,
22640
+ paginationParams: paginationParams,
22641
+ interactor: "getStatements"
22642
+ });
22643
+ throw error2;
22644
+ case 4:
22645
+ return [
22646
+ 2
22647
+ ];
22648
+ }
22649
+ });
22650
+ });
22651
+ return _getStatements.apply(this, arguments);
22652
+ }
22653
+ __name(getStatements, "getStatements");
22654
+ function getStatementAsset(issuedDate, accountToken) {
22655
+ return _getStatementAsset.apply(this, arguments);
21787
22656
  }
21788
22657
  function _getStatementAsset() {
21789
22658
  _getStatementAsset = // src/statements/base/interactors/getStatementAsset.ts
@@ -21841,15 +22710,127 @@ function _getStatementAsset() {
21841
22710
  return _getStatementAsset.apply(this, arguments);
21842
22711
  }
21843
22712
  __name(getStatementAsset, "getStatementAsset");
22713
+ function getUserAccountStatementsV2(params) {
22714
+ return _getUserAccountStatementsV2.apply(this, arguments);
22715
+ }
22716
+ function _getUserAccountStatementsV2() {
22717
+ _getUserAccountStatementsV2 = // src/statements/base/interactors/getUserAccountStatementsV2.ts
22718
+ _async_to_generator(function(params) {
22719
+ var container2, statementsRepository, response, error2;
22720
+ return _ts_generator(this, function(_state) {
22721
+ switch(_state.label){
22722
+ case 0:
22723
+ logDebug("Getting user account statements V2", {
22724
+ params: params,
22725
+ interactor: "getUserAccountStatementsV2"
22726
+ });
22727
+ _state.label = 1;
22728
+ case 1:
22729
+ _state.trys.push([
22730
+ 1,
22731
+ 3,
22732
+ ,
22733
+ 4
22734
+ ]);
22735
+ container2 = getActiveIocContainer();
22736
+ statementsRepository = container2.get(ITF_STATEMENTS);
22737
+ return [
22738
+ 4,
22739
+ statementsRepository.getUserAccountStatementsV2(params)
22740
+ ];
22741
+ case 2:
22742
+ response = _state.sent();
22743
+ logInfo("User account statements V2 retrieved successfully", {
22744
+ count: response.count,
22745
+ interactor: "getUserAccountStatementsV2"
22746
+ });
22747
+ return [
22748
+ 2,
22749
+ response
22750
+ ];
22751
+ case 3:
22752
+ error2 = _state.sent();
22753
+ logError("Failed to get user account statements V2", {
22754
+ error: error2,
22755
+ params: params,
22756
+ interactor: "getUserAccountStatementsV2"
22757
+ });
22758
+ throw error2;
22759
+ case 4:
22760
+ return [
22761
+ 2
22762
+ ];
22763
+ }
22764
+ });
22765
+ });
22766
+ return _getUserAccountStatementsV2.apply(this, arguments);
22767
+ }
22768
+ __name(getUserAccountStatementsV2, "getUserAccountStatementsV2");
22769
+ function getUserAccountsStatementDownloadV2(params) {
22770
+ return _getUserAccountsStatementDownloadV2.apply(this, arguments);
22771
+ }
22772
+ function _getUserAccountsStatementDownloadV2() {
22773
+ _getUserAccountsStatementDownloadV2 = // src/statements/base/interactors/getUserAccountsStatementDownloadV2.ts
22774
+ _async_to_generator(function(params) {
22775
+ var container2, statementsRepository, response, error2;
22776
+ return _ts_generator(this, function(_state) {
22777
+ switch(_state.label){
22778
+ case 0:
22779
+ logDebug("Downloading user account statement V2", {
22780
+ params: params,
22781
+ interactor: "getUserAccountsStatementDownloadV2"
22782
+ });
22783
+ _state.label = 1;
22784
+ case 1:
22785
+ _state.trys.push([
22786
+ 1,
22787
+ 3,
22788
+ ,
22789
+ 4
22790
+ ]);
22791
+ container2 = getActiveIocContainer();
22792
+ statementsRepository = container2.get(ITF_STATEMENTS);
22793
+ return [
22794
+ 4,
22795
+ statementsRepository.getUserAccountsStatementDownloadV2(params)
22796
+ ];
22797
+ case 2:
22798
+ response = _state.sent();
22799
+ logInfo("User account statement V2 downloaded successfully", {
22800
+ statement_summary_token: params.statement_summary_token,
22801
+ interactor: "getUserAccountsStatementDownloadV2"
22802
+ });
22803
+ return [
22804
+ 2,
22805
+ response
22806
+ ];
22807
+ case 3:
22808
+ error2 = _state.sent();
22809
+ logError("Failed to download user account statement V2", {
22810
+ error: error2,
22811
+ params: params,
22812
+ interactor: "getUserAccountsStatementDownloadV2"
22813
+ });
22814
+ throw error2;
22815
+ case 4:
22816
+ return [
22817
+ 2
22818
+ ];
22819
+ }
22820
+ });
22821
+ });
22822
+ return _getUserAccountsStatementDownloadV2.apply(this, arguments);
22823
+ }
22824
+ __name(getUserAccountsStatementDownloadV2, "getUserAccountsStatementDownloadV2");
21844
22825
  // src/statements/ioc/statementsIOCModules.ts
21845
22826
  // src/statements/adapters/rest/RestStatementsRepository.ts
21846
- function _ts_decorate69(decorators, target, key, desc) {
22827
+ function _ts_decorate70(decorators, target, key, desc) {
21847
22828
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
21848
22829
  if ((typeof Reflect === "undefined" ? "undefined" : _type_of(Reflect)) === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
21849
22830
  else for(var i = decorators.length - 1; i >= 0; i--)if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
21850
22831
  return c > 3 && r && Object.defineProperty(target, key, r), r;
21851
22832
  }
21852
- __name(_ts_decorate69, "_ts_decorate");
22833
+ __name(_ts_decorate70, "_ts_decorate");
21853
22834
  function _ts_metadata18(k, v) {
21854
22835
  if ((typeof Reflect === "undefined" ? "undefined" : _type_of(Reflect)) === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
21855
22836
  }
@@ -21895,12 +22876,12 @@ var _RestStatementsRepository = /*#__PURE__*/ function() {
21895
22876
  statementCount: _optionalChain([
21896
22877
  response,
21897
22878
  'access',
21898
- function(_156) {
21899
- return _156.data;
22879
+ function(_159) {
22880
+ return _159.data;
21900
22881
  },
21901
22882
  'optionalAccess',
21902
- function(_157) {
21903
- return _157.length;
22883
+ function(_160) {
22884
+ return _160.length;
21904
22885
  }
21905
22886
  ]) || 0,
21906
22887
  hasMore: response.is_more,
@@ -21949,22 +22930,139 @@ var _RestStatementsRepository = /*#__PURE__*/ function() {
21949
22930
  ,
21950
22931
  4
21951
22932
  ]);
21952
- queryParams = new URLSearchParams();
21953
- queryParams.set("direct", "true");
21954
- if (accountToken) {
21955
- queryParams.set("account_token", accountToken);
21956
- }
22933
+ queryParams = new URLSearchParams();
22934
+ queryParams.set("direct", "true");
22935
+ if (accountToken) {
22936
+ queryParams.set("account_token", accountToken);
22937
+ }
22938
+ cuiApiBaseUrl = getEnvConfigValueByName("CUI_API_BASE_URL");
22939
+ path = "".concat(cuiApiBaseUrl, "/api/v1/statements/").concat(issuedDate, "/download?").concat(queryParams.toString());
22940
+ return [
22941
+ 4,
22942
+ _this.httpClient.get(path)
22943
+ ];
22944
+ case 2:
22945
+ response = _state.sent();
22946
+ logInfo("Statement asset retrieved successfully", {
22947
+ issuedDate: issuedDate,
22948
+ accountToken: accountToken,
22949
+ adapter: "RestStatementsRepository"
22950
+ });
22951
+ return [
22952
+ 2,
22953
+ response
22954
+ ];
22955
+ case 3:
22956
+ err = _state.sent();
22957
+ logError("Unable to retrieve statement asset", {
22958
+ err: err,
22959
+ issuedDate: issuedDate,
22960
+ accountToken: accountToken,
22961
+ adapter: "RestStatementsRepository"
22962
+ });
22963
+ throw new MqSDKError("Unable to retrieve statement asset", err);
22964
+ case 4:
22965
+ return [
22966
+ 2
22967
+ ];
22968
+ }
22969
+ });
22970
+ })();
22971
+ }
22972
+ },
22973
+ {
22974
+ key: "getUserAccountStatementsV2",
22975
+ value: function getUserAccountStatementsV2(params) {
22976
+ var _this = this;
22977
+ return _async_to_generator(function() {
22978
+ var queryParams, cuiApiBaseUrl, path, response, err;
22979
+ return _ts_generator(this, function(_state) {
22980
+ switch(_state.label){
22981
+ case 0:
22982
+ logDebug("Getting user account statements", {
22983
+ params: params,
22984
+ adapter: "RestStatementsRepository"
22985
+ });
22986
+ _state.label = 1;
22987
+ case 1:
22988
+ _state.trys.push([
22989
+ 1,
22990
+ 3,
22991
+ ,
22992
+ 4
22993
+ ]);
22994
+ queryParams = _this.convertUserAccountStatementsParams(params);
22995
+ cuiApiBaseUrl = getEnvConfigValueByName("CUI_API_BASE_URL");
22996
+ path = "".concat(cuiApiBaseUrl, "/api/v2/users/accounts/statements?").concat(queryParams.toString());
22997
+ return [
22998
+ 4,
22999
+ _this.httpClient.get(path)
23000
+ ];
23001
+ case 2:
23002
+ response = _state.sent();
23003
+ logInfo("User account statements retrieved successfully", {
23004
+ count: response.count,
23005
+ hasMore: response.is_more,
23006
+ adapter: "RestStatementsRepository"
23007
+ });
23008
+ return [
23009
+ 2,
23010
+ response
23011
+ ];
23012
+ case 3:
23013
+ err = _state.sent();
23014
+ logError("Unable to retrieve user account statements", {
23015
+ err: err,
23016
+ params: params,
23017
+ adapter: "RestStatementsRepository"
23018
+ });
23019
+ throw new MqSDKError("Unable to retrieve user account statements", err);
23020
+ case 4:
23021
+ return [
23022
+ 2
23023
+ ];
23024
+ }
23025
+ });
23026
+ })();
23027
+ }
23028
+ },
23029
+ {
23030
+ key: "getUserAccountsStatementDownloadV2",
23031
+ value: function getUserAccountsStatementDownloadV2(params) {
23032
+ var _this = this;
23033
+ return _async_to_generator(function() {
23034
+ var queryParams, cuiApiBaseUrl, path, response, err;
23035
+ return _ts_generator(this, function(_state) {
23036
+ switch(_state.label){
23037
+ case 0:
23038
+ logDebug("Downloading statement", {
23039
+ params: params,
23040
+ adapter: "RestStatementsRepository"
23041
+ });
23042
+ _state.label = 1;
23043
+ case 1:
23044
+ _state.trys.push([
23045
+ 1,
23046
+ 3,
23047
+ ,
23048
+ 4
23049
+ ]);
23050
+ queryParams = new URLSearchParams([
23051
+ [
23052
+ "account_token",
23053
+ params.account_token
23054
+ ]
23055
+ ]);
21957
23056
  cuiApiBaseUrl = getEnvConfigValueByName("CUI_API_BASE_URL");
21958
- path = "".concat(cuiApiBaseUrl, "/api/v1/statements/").concat(issuedDate, "/download?").concat(queryParams.toString());
23057
+ path = "".concat(cuiApiBaseUrl, "/api/v2/users/accounts/statements/download?statement_summary_token=").concat(params.statement_summary_token, "&").concat(queryParams.toString());
21959
23058
  return [
21960
23059
  4,
21961
23060
  _this.httpClient.get(path)
21962
23061
  ];
21963
23062
  case 2:
21964
23063
  response = _state.sent();
21965
- logInfo("Statement asset retrieved successfully", {
21966
- issuedDate: issuedDate,
21967
- accountToken: accountToken,
23064
+ logInfo("Statement downloaded successfully", {
23065
+ statement_summary_token: params.statement_summary_token,
21968
23066
  adapter: "RestStatementsRepository"
21969
23067
  });
21970
23068
  return [
@@ -21973,13 +23071,12 @@ var _RestStatementsRepository = /*#__PURE__*/ function() {
21973
23071
  ];
21974
23072
  case 3:
21975
23073
  err = _state.sent();
21976
- logError("Unable to retrieve statement asset", {
23074
+ logError("Unable to download statement", {
21977
23075
  err: err,
21978
- issuedDate: issuedDate,
21979
- accountToken: accountToken,
23076
+ params: params,
21980
23077
  adapter: "RestStatementsRepository"
21981
23078
  });
21982
- throw new MqSDKError("Unable to retrieve statement asset", err);
23079
+ throw new MqSDKError("Unable to download statement", err);
21983
23080
  case 4:
21984
23081
  return [
21985
23082
  2
@@ -22010,17 +23107,41 @@ var _RestStatementsRepository = /*#__PURE__*/ function() {
22010
23107
  ] : [])));
22011
23108
  return queryParams;
22012
23109
  }
23110
+ },
23111
+ {
23112
+ key: "convertUserAccountStatementsParams",
23113
+ value: function convertUserAccountStatementsParams(params) {
23114
+ var account_token = params.account_token, _params_start_index = params.start_index, start_index = _params_start_index === void 0 ? 0 : _params_start_index, _params_count = params.count, count = _params_count === void 0 ? 10 : _params_count, sort_by = params.sort_by;
23115
+ var queryParams = new URLSearchParams([
23116
+ [
23117
+ "account_token",
23118
+ account_token
23119
+ ],
23120
+ [
23121
+ "start_index",
23122
+ start_index.toString()
23123
+ ],
23124
+ [
23125
+ "count",
23126
+ count.toString()
23127
+ ]
23128
+ ]);
23129
+ if (sort_by) {
23130
+ queryParams.append("sort_by", sort_by);
23131
+ }
23132
+ return queryParams;
23133
+ }
22013
23134
  }
22014
23135
  ]);
22015
23136
  return _RestStatementsRepository;
22016
23137
  }();
22017
23138
  __name(_RestStatementsRepository, "RestStatementsRepository");
22018
23139
  var RestStatementsRepository = _RestStatementsRepository;
22019
- _ts_decorate69([
23140
+ _ts_decorate70([
22020
23141
  _inversify.inject.call(void 0, ITF_AUTHENTICATED_HTTP_CLIENT),
22021
23142
  _ts_metadata18("design:type", typeof iAuthenticatedHttpClient === "undefined" ? Object : iAuthenticatedHttpClient)
22022
23143
  ], RestStatementsRepository.prototype, "httpClient", void 0);
22023
- RestStatementsRepository = _ts_decorate69([
23144
+ RestStatementsRepository = _ts_decorate70([
22024
23145
  _inversify.injectable.call(void 0)
22025
23146
  ], RestStatementsRepository);
22026
23147
  // src/statements/ioc/statementsIOCModules.ts
@@ -22028,168 +23149,6 @@ var statementsIOCModule = new (0, _inversify.ContainerModule)(function(bind) {
22028
23149
  bind(ITF_STATEMENTS).to(RestStatementsRepository).inSingletonScope();
22029
23150
  bind(ITF_STATEMENT_ASSET).to(RestStatementsRepository).inSingletonScope();
22030
23151
  });
22031
- // src/statements/adapters/rest/constants.ts
22032
- var VALID_USER_TOKEN = "test_user_token";
22033
- var INVALID_USER_TOKEN = "invalid_".concat(VALID_USER_TOKEN);
22034
- var MOCK_STATEMENT_ASSET_SIGNED_URL_PDF = "https://statements-demo.prod.mq01-prod.marqeta.io/Statements_Oct_1_demo.pdf";
22035
- var MOCK_STATEMENT_ASSET_SIGNED_URL = {
22036
- pdf: MOCK_STATEMENT_ASSET_SIGNED_URL_PDF
22037
- };
22038
- var VALID_ISSUED_DATE = "2024-07-15";
22039
- var INVALID_ISSUED_DATE = "".concat(VALID_ISSUED_DATE, "-invalid");
22040
- var MOCK_USER = {
22041
- token: "a5a6742c-642e-49d0-ad7e-748cf140a03b",
22042
- active: true,
22043
- createdTime: "2022-10-08T00:11:11Z",
22044
- firstName: "Jane",
22045
- middleName: "",
22046
- lastName: "Doe",
22047
- status: "ACTIVE",
22048
- address1: "123 Main St",
22049
- address2: "",
22050
- city: "New York",
22051
- state: "NY",
22052
- postalCode: "10001",
22053
- country: "United States"
22054
- };
22055
- // src/statements/adapters/rest/utils.ts
22056
- var toDateType = /* @__PURE__ */ __name(function(dateString) {
22057
- try {
22058
- var dateArray = dateString.split(/\D+/);
22059
- var numArray = dateArray.map(function(i) {
22060
- return Number(i);
22061
- });
22062
- var dateObj = new Date(Date.UTC(numArray[0], numArray[1] - 1, numArray[2]));
22063
- if (Math.sign(dateObj.getTimezoneOffset())) {
22064
- dateObj.setDate(dateObj.getDate() + 1);
22065
- }
22066
- return dateObj;
22067
- } catch (err) {
22068
- return new Date(dateString);
22069
- }
22070
- }, "toDateType");
22071
- var calculateMonthsDifference = /* @__PURE__ */ __name(function(issuedEndDate, issuedStartDate) {
22072
- var yearDiff = (issuedEndDate.getFullYear() - issuedStartDate.getFullYear()) * 12;
22073
- var totalMonthDiff = yearDiff - issuedStartDate.getMonth() + issuedEndDate.getMonth() + 1;
22074
- return Math.max(0, totalMonthDiff);
22075
- }, "calculateMonthsDifference");
22076
- var formatDateForApi = /* @__PURE__ */ __name(function(date) {
22077
- var year = date.getFullYear();
22078
- var month = date.getMonth() + 1;
22079
- var formattedMonth = ("0" + month).slice(-2);
22080
- var day = ("0" + date.getDate()).slice(-2);
22081
- return [
22082
- year,
22083
- formattedMonth,
22084
- day
22085
- ].join("-");
22086
- }, "formatDateForApi");
22087
- var formatDateForClient = /* @__PURE__ */ __name(function(timestamp) {
22088
- if (!timestamp) return "";
22089
- try {
22090
- var date = toDateType(timestamp);
22091
- var formattedDate = date.toLocaleDateString("en-US", {
22092
- year: "numeric",
22093
- month: "short",
22094
- day: "numeric"
22095
- });
22096
- return formattedDate.replace("Sep", "Sept");
22097
- } catch (e6) {
22098
- return timestamp;
22099
- }
22100
- }, "formatDateForClient");
22101
- var validateIssuedDateQueryParams = /* @__PURE__ */ __name(function(issuedEndDate, issuedStartDate) {
22102
- var isValidEndDate = issuedEndDate ? validateDateFormat(issuedEndDate) : true;
22103
- var isValidStartDate = issuedStartDate ? validateDateFormat(issuedStartDate) : true;
22104
- return Boolean(isValidEndDate && isValidStartDate);
22105
- }, "validateIssuedDateQueryParams");
22106
- var validateDateFormat = /* @__PURE__ */ __name(function(date) {
22107
- if (!date) return false;
22108
- var regex = new RegExp(/^\d{4}-(0[1-9]|1[012])-(0[1-9]|[12]\d|3[01])$/, "g");
22109
- return regex.test(date);
22110
- }, "validateDateFormat");
22111
- var generateStatementsDateQueries = /* @__PURE__ */ __name(function() {
22112
- var initEndDate = /* @__PURE__ */ new Date();
22113
- var initStartDate = /* @__PURE__ */ new Date();
22114
- initStartDate.setFullYear(initStartDate.getFullYear() - 1);
22115
- initStartDate.setDate(1);
22116
- initStartDate.setMonth(initStartDate.getMonth() + 1);
22117
- return {
22118
- ISSUED_END_DATE: formatDateForApi(initEndDate),
22119
- ISSUED_START_DATE: formatDateForApi(initStartDate)
22120
- };
22121
- }, "generateStatementsDateQueries");
22122
- // src/statements/adapters/rest/mockStatements.ts
22123
- var handleGetStatements = /* @__PURE__ */ __name(function(userToken, issuedEndDate, issuedStartDate, accountToken) {
22124
- var response;
22125
- var areIssuedDatesValid = validateIssuedDateQueryParams(issuedEndDate, issuedStartDate);
22126
- if (!areIssuedDatesValid) {
22127
- throw new Error("Status: ".concat(400));
22128
- } else if ([
22129
- null,
22130
- INVALID_USER_TOKEN
22131
- ].includes(userToken)) {
22132
- throw new Error("Status: ".concat(404));
22133
- } else if (areIssuedDatesValid) {
22134
- response = generateStatementSummary(userToken, issuedEndDate, issuedStartDate, accountToken);
22135
- } else {
22136
- throw new Error("Status: ".concat(500));
22137
- }
22138
- return {
22139
- is_more: response.is_more,
22140
- data: response.data,
22141
- end_index: response.end_index,
22142
- start_index: response.start_index
22143
- };
22144
- }, "handleGetStatements");
22145
- var handleGetStatementAsset = /* @__PURE__ */ __name(function() {
22146
- return {
22147
- state: StatementAssetStateEnum.RENDERED,
22148
- signed_url: MOCK_STATEMENT_ASSET_SIGNED_URL
22149
- };
22150
- }, "handleGetStatementAsset");
22151
- var isAFutureDate = /* @__PURE__ */ __name(function(timestamp) {
22152
- return /* @__PURE__ */ new Date() < toDateType(timestamp);
22153
- }, "isAFutureDate");
22154
- var getValidEndDate = /* @__PURE__ */ __name(function(issued_end_date) {
22155
- var defaultEndDate = formatDateForApi(/* @__PURE__ */ new Date());
22156
- var todayOrEndDate = isAFutureDate(issued_end_date) ? defaultEndDate : issued_end_date;
22157
- var issuedEndDate = todayOrEndDate || defaultEndDate;
22158
- var endDateObject = toDateType(issuedEndDate);
22159
- endDateObject.setDate(Math.min(28, /* @__PURE__ */ new Date().getDate()));
22160
- return endDateObject;
22161
- }, "getValidEndDate");
22162
- var isMockUserCreationYear = /* @__PURE__ */ __name(function(issued_end_date) {
22163
- var mockUserCreationYear = new Date(MOCK_USER.createdTime).getFullYear();
22164
- var issuedEndDateYear = toDateType(issued_end_date).getFullYear();
22165
- return mockUserCreationYear === issuedEndDateYear;
22166
- }, "isMockUserCreationYear");
22167
- var generateStatementSummary = /* @__PURE__ */ __name(function(user_token, issued_end_date, issued_start_date, account_token) {
22168
- var data = [];
22169
- var monthsDifference = 12;
22170
- var issuedEndDateObject = getValidEndDate(issued_end_date);
22171
- if (isMockUserCreationYear(issued_end_date)) {
22172
- monthsDifference = 7;
22173
- } else if (issued_start_date) {
22174
- monthsDifference = calculateMonthsDifference(issuedEndDateObject, toDateType(issued_start_date));
22175
- }
22176
- for(var i = 0; i < monthsDifference; i += 1){
22177
- data.push(_object_spread({
22178
- cardholder_token: user_token || VALID_USER_TOKEN,
22179
- issued_date: formatDateForApi(issuedEndDateObject),
22180
- readable_issued_date: formatDateForClient(formatDateForApi(issuedEndDateObject))
22181
- }, account_token && {
22182
- account_token: account_token
22183
- }));
22184
- issuedEndDateObject.setMonth(issuedEndDateObject.getMonth() - 1);
22185
- }
22186
- return {
22187
- data: data,
22188
- is_more: false,
22189
- start_index: 0,
22190
- end_index: monthsDifference - 1
22191
- };
22192
- }, "generateStatementSummary");
22193
23152
  // src/statements/adapters/rest/httpMocks.ts
22194
23153
  var handleAuthorizationCheck = /* @__PURE__ */ __name(function(authorization) {
22195
23154
  var errorResponse2 = null;
@@ -22258,6 +23217,45 @@ var mswStatementsHandlers = [
22258
23217
  response.direct_mode = true;
22259
23218
  }
22260
23219
  return HttpResponse.json(response);
23220
+ }),
23221
+ http.get("".concat(mockMode_exports.CUI_API_BASE_URL, "/api/v2/users/accounts/statements"), function(param) {
23222
+ var request = param.request;
23223
+ var authorization = request.headers.get("authorization");
23224
+ var queryParams = new URLSearchParams(new URL(request.url).search);
23225
+ var accountToken = queryParams.get("account_token");
23226
+ var startIndex = parseInt(queryParams.get("start_index") || "0");
23227
+ var count = parseInt(queryParams.get("count") || "10");
23228
+ var sortBy = queryParams.get("sort_by");
23229
+ var authorizationError = handleAuthorizationCheck(authorization);
23230
+ if (authorizationError !== null) {
23231
+ return authorizationError;
23232
+ }
23233
+ var params = _object_spread({
23234
+ account_token: accountToken,
23235
+ start_index: startIndex,
23236
+ count: count
23237
+ }, sortBy && {
23238
+ sort_by: sortBy
23239
+ });
23240
+ var response = handleGetUserAccountStatementsV2(params);
23241
+ return HttpResponse.json(response);
23242
+ }),
23243
+ http.get("".concat(mockMode_exports.CUI_API_BASE_URL, "/api/v2/users/accounts/statements/download"), function(param) {
23244
+ var request = param.request;
23245
+ var authorization = request.headers.get("authorization");
23246
+ var queryParams = new URLSearchParams(new URL(request.url).search);
23247
+ var statementSummaryToken = queryParams.get("statement_summary_token");
23248
+ var accountToken = queryParams.get("account_token");
23249
+ var authorizationError = handleAuthorizationCheck(authorization);
23250
+ if (authorizationError !== null) {
23251
+ return authorizationError;
23252
+ }
23253
+ var params = {
23254
+ statement_summary_token: statementSummaryToken,
23255
+ account_token: accountToken
23256
+ };
23257
+ var response = handleGetUserAccountsStatementDownloadV2(params);
23258
+ return HttpResponse.json(response);
22261
23259
  })
22262
23260
  ];
22263
23261
  // src/themes/base/constants/defaultTheme.ts
@@ -22809,13 +23807,13 @@ var _iThemeRepository = function _iThemeRepository() {
22809
23807
  __name(_iThemeRepository, "iThemeRepository");
22810
23808
  var iThemeRepository = _iThemeRepository;
22811
23809
  // src/themes/base/repositories/MockThemeRepository.ts
22812
- function _ts_decorate70(decorators, target, key, desc) {
23810
+ function _ts_decorate71(decorators, target, key, desc) {
22813
23811
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
22814
23812
  if ((typeof Reflect === "undefined" ? "undefined" : _type_of(Reflect)) === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
22815
23813
  else for(var i = decorators.length - 1; i >= 0; i--)if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
22816
23814
  return c > 3 && r && Object.defineProperty(target, key, r), r;
22817
23815
  }
22818
- __name(_ts_decorate70, "_ts_decorate");
23816
+ __name(_ts_decorate71, "_ts_decorate");
22819
23817
  var TEST_THEME_NAME = "myTestTheme";
22820
23818
  var TEST_THEME_OBJECT = {
22821
23819
  colors: {
@@ -22857,7 +23855,7 @@ var _MockThemeRepository = /*#__PURE__*/ function() {
22857
23855
  }();
22858
23856
  __name(_MockThemeRepository, "MockThemeRepository");
22859
23857
  var MockThemeRepository = _MockThemeRepository;
22860
- MockThemeRepository = exports.MockThemeRepository = _ts_decorate70([
23858
+ MockThemeRepository = exports.MockThemeRepository = _ts_decorate71([
22861
23859
  _inversify.injectable.call(void 0)
22862
23860
  ], MockThemeRepository);
22863
23861
  // src/themes/base/repositories/iIconsRepository.ts
@@ -22872,13 +23870,13 @@ var mockThemesIOCModule = new (0, _inversify.ContainerModule)(function(bind) {
22872
23870
  });
22873
23871
  // src/themes/ioc/themesIOCModule.ts
22874
23872
  // src/themes/adapters/rest/RestThemeRepository.ts
22875
- function _ts_decorate71(decorators, target, key, desc) {
23873
+ function _ts_decorate72(decorators, target, key, desc) {
22876
23874
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
22877
23875
  if ((typeof Reflect === "undefined" ? "undefined" : _type_of(Reflect)) === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
22878
23876
  else for(var i = decorators.length - 1; i >= 0; i--)if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
22879
23877
  return c > 3 && r && Object.defineProperty(target, key, r), r;
22880
23878
  }
22881
- __name(_ts_decorate71, "_ts_decorate");
23879
+ __name(_ts_decorate72, "_ts_decorate");
22882
23880
  function _ts_metadata19(k, v) {
22883
23881
  if ((typeof Reflect === "undefined" ? "undefined" : _type_of(Reflect)) === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
22884
23882
  }
@@ -22949,11 +23947,11 @@ var _RestThemeRepository = /*#__PURE__*/ function() {
22949
23947
  }();
22950
23948
  __name(_RestThemeRepository, "RestThemeRepository");
22951
23949
  var RestThemeRepository = _RestThemeRepository;
22952
- _ts_decorate71([
23950
+ _ts_decorate72([
22953
23951
  _inversify.inject.call(void 0, ITF_AUTHENTICATED_HTTP_CLIENT),
22954
23952
  _ts_metadata19("design:type", typeof iAuthenticatedHttpClient === "undefined" ? Object : iAuthenticatedHttpClient)
22955
23953
  ], RestThemeRepository.prototype, "httpClient", void 0);
22956
- RestThemeRepository = _ts_decorate71([
23954
+ RestThemeRepository = _ts_decorate72([
22957
23955
  _inversify.injectable.call(void 0)
22958
23956
  ], RestThemeRepository);
22959
23957
  // src/themes/ioc/themesIOCModule.ts
@@ -22962,13 +23960,13 @@ var themesIOCModule = new (0, _inversify.ContainerModule)(function(bind) {
22962
23960
  });
22963
23961
  // src/themes/ioc/iconsIOCModule.ts
22964
23962
  // src/themes/adapters/rest/StaticIconsRepository.ts
22965
- function _ts_decorate72(decorators, target, key, desc) {
23963
+ function _ts_decorate73(decorators, target, key, desc) {
22966
23964
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
22967
23965
  if ((typeof Reflect === "undefined" ? "undefined" : _type_of(Reflect)) === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
22968
23966
  else for(var i = decorators.length - 1; i >= 0; i--)if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
22969
23967
  return c > 3 && r && Object.defineProperty(target, key, r), r;
22970
23968
  }
22971
- __name(_ts_decorate72, "_ts_decorate");
23969
+ __name(_ts_decorate73, "_ts_decorate");
22972
23970
  var _StaticIconsRepository = /*#__PURE__*/ function() {
22973
23971
  function _StaticIconsRepository() {
22974
23972
  _class_call_check(this, _StaticIconsRepository);
@@ -23065,7 +24063,7 @@ var _StaticIconsRepository = /*#__PURE__*/ function() {
23065
24063
  }();
23066
24064
  __name(_StaticIconsRepository, "StaticIconsRepository");
23067
24065
  var StaticIconsRepository = _StaticIconsRepository;
23068
- StaticIconsRepository = _ts_decorate72([
24066
+ StaticIconsRepository = _ts_decorate73([
23069
24067
  _inversify.injectable.call(void 0)
23070
24068
  ], StaticIconsRepository);
23071
24069
  // src/themes/ioc/iconsIOCModule.ts
@@ -23073,19 +24071,19 @@ var iconsIOCModule = new (0, _inversify.ContainerModule)(function(bind) {
23073
24071
  bind(ITF_ICONS_REPOSITORY).to(StaticIconsRepository).inSingletonScope();
23074
24072
  });
23075
24073
  // src/transactions/base/repositories/iTransactionsRepository.ts
23076
- function _ts_decorate73(decorators, target, key, desc) {
24074
+ function _ts_decorate74(decorators, target, key, desc) {
23077
24075
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
23078
24076
  if ((typeof Reflect === "undefined" ? "undefined" : _type_of(Reflect)) === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
23079
24077
  else for(var i = decorators.length - 1; i >= 0; i--)if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
23080
24078
  return c > 3 && r && Object.defineProperty(target, key, r), r;
23081
24079
  }
23082
- __name(_ts_decorate73, "_ts_decorate");
24080
+ __name(_ts_decorate74, "_ts_decorate");
23083
24081
  var _iTransactionsRepository = function _iTransactionsRepository() {
23084
24082
  _class_call_check(this, _iTransactionsRepository);
23085
24083
  };
23086
24084
  __name(_iTransactionsRepository, "iTransactionsRepository");
23087
24085
  var iTransactionsRepository = _iTransactionsRepository;
23088
- iTransactionsRepository = exports.iTransactionsRepository = _ts_decorate73([
24086
+ iTransactionsRepository = exports.iTransactionsRepository = _ts_decorate74([
23089
24087
  _inversify.injectable.call(void 0)
23090
24088
  ], iTransactionsRepository);
23091
24089
  // src/transactions/base/repositories/MockTransactionsRepository.ts
@@ -23102,17 +24100,18 @@ var TransactionDetailsBannerType;
23102
24100
  TransactionDetailsBannerType2["WARNING"] = "WARNING";
23103
24101
  })(TransactionDetailsBannerType || (TransactionDetailsBannerType = exports.TransactionDetailsBannerType = {}));
23104
24102
  // src/transactions/base/repositories/MockTransactionsRepository.ts
23105
- function _ts_decorate74(decorators, target, key, desc) {
24103
+ function _ts_decorate75(decorators, target, key, desc) {
23106
24104
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
23107
24105
  if ((typeof Reflect === "undefined" ? "undefined" : _type_of(Reflect)) === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
23108
24106
  else for(var i = decorators.length - 1; i >= 0; i--)if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
23109
24107
  return c > 3 && r && Object.defineProperty(target, key, r), r;
23110
24108
  }
23111
- __name(_ts_decorate74, "_ts_decorate");
24109
+ __name(_ts_decorate75, "_ts_decorate");
23112
24110
  var _MockTransactionsRepository = /*#__PURE__*/ function() {
23113
24111
  function _MockTransactionsRepository() {
23114
24112
  _class_call_check(this, _MockTransactionsRepository);
23115
24113
  __publicField(this, "transactionDetailsIndex", {});
24114
+ __publicField(this, "transactionByTokenIndex", {});
23116
24115
  __publicField(this, "transactionsStore", {
23117
24116
  pending: [],
23118
24117
  transactions: []
@@ -23220,12 +24219,42 @@ var _MockTransactionsRepository = /*#__PURE__*/ function() {
23220
24219
  if (!transactionDetails) throw new Error("Transaction not found");
23221
24220
  return [
23222
24221
  2,
23223
- {
23224
- data: transactionDetails
23225
- }
24222
+ {
24223
+ data: transactionDetails
24224
+ }
24225
+ ];
24226
+ } catch (err) {
24227
+ throw new MqSDKError("Unable to retrieve transactions details", err);
24228
+ }
24229
+ return [
24230
+ 2
24231
+ ];
24232
+ });
24233
+ })();
24234
+ }
24235
+ },
24236
+ {
24237
+ key: "loadTransactionByToken",
24238
+ value: function loadTransactionByToken(transactionToken, transaction) {
24239
+ this.transactionByTokenIndex[transactionToken] = transaction;
24240
+ }
24241
+ },
24242
+ {
24243
+ key: "getTransactionByToken",
24244
+ value: function getTransactionByToken(request) {
24245
+ var _this = this;
24246
+ return _async_to_generator(function() {
24247
+ var transaction;
24248
+ return _ts_generator(this, function(_state) {
24249
+ try {
24250
+ transaction = _this.transactionByTokenIndex[request.transaction_token];
24251
+ if (!transaction) throw new Error("Transaction not found");
24252
+ return [
24253
+ 2,
24254
+ transaction
23226
24255
  ];
23227
24256
  } catch (err) {
23228
- throw new MqSDKError("Unable to retrieve transactions details", err);
24257
+ throw new MqSDKError("Unable to get transaction by token", err);
23229
24258
  }
23230
24259
  return [
23231
24260
  2
@@ -23239,7 +24268,7 @@ var _MockTransactionsRepository = /*#__PURE__*/ function() {
23239
24268
  }();
23240
24269
  __name(_MockTransactionsRepository, "MockTransactionsRepository");
23241
24270
  var MockTransactionsRepository = _MockTransactionsRepository;
23242
- MockTransactionsRepository = exports.MockTransactionsRepository = _ts_decorate74([
24271
+ MockTransactionsRepository = exports.MockTransactionsRepository = _ts_decorate75([
23243
24272
  _inversify.injectable.call(void 0)
23244
24273
  ], MockTransactionsRepository);
23245
24274
  // src/transactions/ioc/symbols.ts
@@ -23507,6 +24536,62 @@ function _getUserTransactionsV2() {
23507
24536
  return _getUserTransactionsV2.apply(this, arguments);
23508
24537
  }
23509
24538
  __name(getUserTransactionsV2, "getUserTransactionsV2");
24539
+ function getTransactionByToken(request) {
24540
+ return _getTransactionByToken.apply(this, arguments);
24541
+ }
24542
+ function _getTransactionByToken() {
24543
+ _getTransactionByToken = // src/transactions/base/interactors/getTransactionByToken.ts
24544
+ _async_to_generator(function(request) {
24545
+ var container2, transactionsRepository, transaction, error2;
24546
+ return _ts_generator(this, function(_state) {
24547
+ switch(_state.label){
24548
+ case 0:
24549
+ logDebug("Getting transaction by token", {
24550
+ transaction_token: request.transaction_token,
24551
+ interactor: "getTransactionByToken"
24552
+ });
24553
+ _state.label = 1;
24554
+ case 1:
24555
+ _state.trys.push([
24556
+ 1,
24557
+ 3,
24558
+ ,
24559
+ 4
24560
+ ]);
24561
+ container2 = getActiveIocContainer();
24562
+ transactionsRepository = container2.get(ITF_TRANSACTIONS);
24563
+ return [
24564
+ 4,
24565
+ transactionsRepository.getTransactionByToken(request)
24566
+ ];
24567
+ case 2:
24568
+ transaction = _state.sent();
24569
+ logInfo("Transaction retrieved successfully by token", {
24570
+ transaction_token: request.transaction_token,
24571
+ interactor: "getTransactionByToken"
24572
+ });
24573
+ return [
24574
+ 2,
24575
+ transaction
24576
+ ];
24577
+ case 3:
24578
+ error2 = _state.sent();
24579
+ logError("Failed to get transaction by token", {
24580
+ error: error2,
24581
+ transaction_token: request.transaction_token,
24582
+ interactor: "getTransactionByToken"
24583
+ });
24584
+ throw error2;
24585
+ case 4:
24586
+ return [
24587
+ 2
24588
+ ];
24589
+ }
24590
+ });
24591
+ });
24592
+ return _getTransactionByToken.apply(this, arguments);
24593
+ }
24594
+ __name(getTransactionByToken, "getTransactionByToken");
23510
24595
  // src/transactions/base/types/transactionV2Types.ts
23511
24596
  var TransactionDetailIconTypeEnum;
23512
24597
  (function(TransactionDetailIconTypeEnum2) {
@@ -23548,13 +24633,13 @@ var Direction;
23548
24633
  var PENDING_QUERY = "PENDING";
23549
24634
  var NON_PENDING_QUERY = "COMPLETION,DECLINED";
23550
24635
  // src/transactions/adapters/rest/RestTransactionsRepository.ts
23551
- function _ts_decorate75(decorators, target, key, desc) {
24636
+ function _ts_decorate76(decorators, target, key, desc) {
23552
24637
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
23553
24638
  if ((typeof Reflect === "undefined" ? "undefined" : _type_of(Reflect)) === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
23554
24639
  else for(var i = decorators.length - 1; i >= 0; i--)if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
23555
24640
  return c > 3 && r && Object.defineProperty(target, key, r), r;
23556
24641
  }
23557
- __name(_ts_decorate75, "_ts_decorate");
24642
+ __name(_ts_decorate76, "_ts_decorate");
23558
24643
  function _ts_metadata20(k, v) {
23559
24644
  if ((typeof Reflect === "undefined" ? "undefined" : _type_of(Reflect)) === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
23560
24645
  }
@@ -23810,17 +24895,79 @@ var _RestTransactionsRepository = /*#__PURE__*/ function() {
23810
24895
  });
23811
24896
  })();
23812
24897
  }
24898
+ },
24899
+ {
24900
+ key: "getTransactionByToken",
24901
+ value: function getTransactionByToken(request) {
24902
+ var _this = this;
24903
+ return _async_to_generator(function() {
24904
+ var cuiApiBaseUrl, queryParams, queryString, path, response, err;
24905
+ return _ts_generator(this, function(_state) {
24906
+ switch(_state.label){
24907
+ case 0:
24908
+ logDebug("Getting transaction by token", {
24909
+ transaction_token: request.transaction_token,
24910
+ adapter: "RestTransactionsRepository"
24911
+ });
24912
+ _state.label = 1;
24913
+ case 1:
24914
+ _state.trys.push([
24915
+ 1,
24916
+ 3,
24917
+ ,
24918
+ 4
24919
+ ]);
24920
+ cuiApiBaseUrl = getEnvConfigValueByName("CUI_API_BASE_URL");
24921
+ queryParams = new URLSearchParams();
24922
+ if (request.transaction_account_type) {
24923
+ queryParams.append("transaction_account_type", request.transaction_account_type);
24924
+ }
24925
+ if (request.account_token) {
24926
+ queryParams.append("account_token", request.account_token);
24927
+ }
24928
+ queryString = queryParams.toString();
24929
+ path = "".concat(cuiApiBaseUrl, "/api/v2/transactions/").concat(request.transaction_token).concat(queryString ? "?".concat(queryString) : "");
24930
+ return [
24931
+ 4,
24932
+ _this.httpClient.get(path)
24933
+ ];
24934
+ case 2:
24935
+ response = _state.sent();
24936
+ logInfo("Transaction retrieved successfully by token", {
24937
+ transaction_token: request.transaction_token,
24938
+ adapter: "RestTransactionsRepository"
24939
+ });
24940
+ return [
24941
+ 2,
24942
+ response
24943
+ ];
24944
+ case 3:
24945
+ err = _state.sent();
24946
+ logError("Unable to get transaction by token", {
24947
+ err: err,
24948
+ transaction_token: request.transaction_token,
24949
+ adapter: "RestTransactionsRepository"
24950
+ });
24951
+ throw new MqSDKError("Unable to get transaction by token", err);
24952
+ case 4:
24953
+ return [
24954
+ 2
24955
+ ];
24956
+ }
24957
+ });
24958
+ })();
24959
+ }
23813
24960
  }
23814
24961
  ]);
23815
24962
  return _RestTransactionsRepository;
23816
24963
  }();
23817
24964
  __name(_RestTransactionsRepository, "RestTransactionsRepository");
23818
24965
  var RestTransactionsRepository = _RestTransactionsRepository;
23819
- _ts_decorate75([
24966
+ _ts_decorate76([
23820
24967
  _inversify.inject.call(void 0, ITF_AUTHENTICATED_HTTP_CLIENT),
23821
24968
  _ts_metadata20("design:type", typeof iAuthenticatedHttpClient === "undefined" ? Object : iAuthenticatedHttpClient)
23822
24969
  ], RestTransactionsRepository.prototype, "httpClient", void 0);
23823
- RestTransactionsRepository = _ts_decorate75([
24970
+ RestTransactionsRepository = _ts_decorate76([
23824
24971
  _inversify.injectable.call(void 0)
23825
24972
  ], RestTransactionsRepository);
23826
24973
  // src/transactions/ioc/transactionsIOCModule.ts
@@ -24299,12 +25446,12 @@ var filterMockTransactionsByStatus = /* @__PURE__ */ __name(function(statuses) {
24299
25446
  return statuses.includes(_optionalChain([
24300
25447
  status,
24301
25448
  'optionalAccess',
24302
- function(_158) {
24303
- return _158.toUpperCase;
25449
+ function(_161) {
25450
+ return _161.toUpperCase;
24304
25451
  },
24305
25452
  'call',
24306
- function(_159) {
24307
- return _159();
25453
+ function(_162) {
25454
+ return _162();
24308
25455
  }
24309
25456
  ]));
24310
25457
  });
@@ -24356,8 +25503,8 @@ var mswTransactionsHandlers = [
24356
25503
  if (_optionalChain([
24357
25504
  queryStatus,
24358
25505
  'optionalAccess',
24359
- function(_160) {
24360
- return _160[0];
25506
+ function(_163) {
25507
+ return _163[0];
24361
25508
  }
24362
25509
  ]) === "PENDING") {
24363
25510
  is_more = filteredMockData.length > 10;
@@ -24457,6 +25604,51 @@ var mswTransactionsHandlers = [
24457
25604
  })
24458
25605
  });
24459
25606
  }),
25607
+ http.get("".concat(mockMode_exports.CUI_API_BASE_URL, "/api/v2/transactions/:token"), function(param) {
25608
+ var request = param.request, params = param.params;
25609
+ var authorization = request.headers.get("authorization");
25610
+ var token = params.token;
25611
+ var url = new URL(request.url);
25612
+ var transactionAccountType = url.searchParams.get("transaction_account_type");
25613
+ var accountToken = url.searchParams.get("account_token");
25614
+ if (authorization === "DPoP ".concat(NOT_OK_CUI_AUTH_TOKEN)) {
25615
+ return new HttpResponse(null, {
25616
+ status: 500,
25617
+ statusText: "Internal Error"
25618
+ });
25619
+ }
25620
+ if (authorization !== "DPoP ".concat(VALID_CUI_AUTH_TOKEN) && authorization !== "DPoP ".concat(REFRESHED_CUI_AUTH_TOKEN)) {
25621
+ return new HttpResponse(null, {
25622
+ status: 403,
25623
+ statusText: "Forbidden"
25624
+ });
25625
+ }
25626
+ var mockTransaction = {
25627
+ token: token,
25628
+ amount: 25.5,
25629
+ description: "Coffee Shop Purchase",
25630
+ merchant_name: "Local Coffee Shop",
25631
+ merchant_category_code: "5814",
25632
+ merchant_category: "Fast Food Restaurants",
25633
+ merchant_id: "merchant_456",
25634
+ card_last_four: "1234",
25635
+ created_on: "2024-01-15T10:30:00Z",
25636
+ updated_on: "2024-01-15T10:31:00Z",
25637
+ type: "PURCHASE",
25638
+ response: null,
25639
+ status: "FULFILLED",
25640
+ currency_code: "USD",
25641
+ icon_type: "FOOD_AND_DRINK",
25642
+ has_associated_rewards: false,
25643
+ can_file_more_disputes: true,
25644
+ banner_data: transactionAccountType ? {
25645
+ title: "Test Banner",
25646
+ description: "Test banner description",
25647
+ banner_type: "INFO"
25648
+ } : void 0
25649
+ };
25650
+ return HttpResponse.json(mockTransaction);
25651
+ }),
24460
25652
  http.get("".concat(mockMode_exports.CDN_ICONS_BASE_URL, "/icons/txnIcons.json"), function(param) {
24461
25653
  var request = param.request;
24462
25654
  return HttpResponse.json(txnIcons_default);
@@ -24853,13 +26045,13 @@ var TransactionChallengeAuthenticationMethod;
24853
26045
  TransactionChallengeAuthenticationMethod2["Other"] = "OTHER";
24854
26046
  })(TransactionChallengeAuthenticationMethod || (TransactionChallengeAuthenticationMethod = exports.TransactionChallengeAuthenticationMethod = {}));
24855
26047
  // src/wla/adapters/RestWlaService.ts
24856
- function _ts_decorate76(decorators, target, key, desc) {
26048
+ function _ts_decorate77(decorators, target, key, desc) {
24857
26049
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
24858
26050
  if ((typeof Reflect === "undefined" ? "undefined" : _type_of(Reflect)) === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
24859
26051
  else for(var i = decorators.length - 1; i >= 0; i--)if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
24860
26052
  return c > 3 && r && Object.defineProperty(target, key, r), r;
24861
26053
  }
24862
- __name(_ts_decorate76, "_ts_decorate");
26054
+ __name(_ts_decorate77, "_ts_decorate");
24863
26055
  function _ts_metadata21(k, v) {
24864
26056
  if ((typeof Reflect === "undefined" ? "undefined" : _type_of(Reflect)) === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
24865
26057
  }
@@ -24890,8 +26082,6 @@ var _RestWlaService = /*#__PURE__*/ function() {
24890
26082
  cuiApiBaseUrl = getEnvConfigValueByName("CUI_API_BASE_URL");
24891
26083
  path = "".concat(cuiApiBaseUrl, "/api/v1/wla/user/transition-onboarding-status");
24892
26084
  params = {
24893
- method: "POST",
24894
- headers: getCommonApiHeaders(),
24895
26085
  body: JSON.stringify({
24896
26086
  old_status: oldStatus,
24897
26087
  new_status: newStatus
@@ -24924,7 +26114,7 @@ var _RestWlaService = /*#__PURE__*/ function() {
24924
26114
  value: function getUserProfileDetails() {
24925
26115
  var _this = this;
24926
26116
  return _async_to_generator(function() {
24927
- var cuiApiBaseUrl, path, params, data, error2;
26117
+ var cuiApiBaseUrl, path, data, error2;
24928
26118
  return _ts_generator(this, function(_state) {
24929
26119
  switch(_state.label){
24930
26120
  case 0:
@@ -24941,12 +26131,9 @@ var _RestWlaService = /*#__PURE__*/ function() {
24941
26131
  ]);
24942
26132
  cuiApiBaseUrl = getEnvConfigValueByName("CUI_API_BASE_URL");
24943
26133
  path = "".concat(cuiApiBaseUrl, "/api/v1/wla/user/profile");
24944
- params = {
24945
- headers: getCommonApiHeaders()
24946
- };
24947
26134
  return [
24948
26135
  4,
24949
- _this.httpClient.get(path, params)
26136
+ _this.httpClient.get(path)
24950
26137
  ];
24951
26138
  case 2:
24952
26139
  data = _state.sent();
@@ -24996,8 +26183,6 @@ var _RestWlaService = /*#__PURE__*/ function() {
24996
26183
  cuiApiBaseUrl = getEnvConfigValueByName("CUI_API_BASE_URL");
24997
26184
  path = "".concat(cuiApiBaseUrl, "/api/v1/wla/onboarding/create-card");
24998
26185
  params = {
24999
- method: "POST",
25000
- headers: getCommonApiHeaders(),
25001
26186
  body: JSON.stringify(requestBody)
25002
26187
  };
25003
26188
  return [
@@ -25055,8 +26240,6 @@ var _RestWlaService = /*#__PURE__*/ function() {
25055
26240
  cuiApiBaseUrl = getEnvConfigValueByName("CUI_API_BASE_URL");
25056
26241
  path = "".concat(cuiApiBaseUrl, "/api/v1/wla/onboarding/set-pin");
25057
26242
  params = {
25058
- method: "POST",
25059
- headers: getCommonApiHeaders(),
25060
26243
  body: JSON.stringify({
25061
26244
  card_token: cardToken,
25062
26245
  pin: pin,
@@ -25119,8 +26302,6 @@ var _RestWlaService = /*#__PURE__*/ function() {
25119
26302
  cuiApiBaseUrl = getEnvConfigValueByName("CUI_API_BASE_URL");
25120
26303
  path = "".concat(cuiApiBaseUrl, "/api/v1/wla/user/transition-onboarding-status");
25121
26304
  params = {
25122
- method: "POST",
25123
- headers: getCommonApiHeaders(),
25124
26305
  body: JSON.stringify({
25125
26306
  old_status: OnboardingStatus.ACCOUNT_ACTIVATED,
25126
26307
  new_status: OnboardingStatus.ACCOUNT_VERIFIED
@@ -25227,8 +26408,6 @@ var _RestWlaService = /*#__PURE__*/ function() {
25227
26408
  cuiApiBaseUrl = getEnvConfigValueByName("CUI_API_BASE_URL");
25228
26409
  path = "".concat(cuiApiBaseUrl, "/api/v1/wla/user/transition-onboarding-status");
25229
26410
  params = {
25230
- method: "POST",
25231
- headers: getCommonApiHeaders(),
25232
26411
  body: JSON.stringify({
25233
26412
  old_status: OnboardingStatus.CREATED,
25234
26413
  new_status: OnboardingStatus.ACCOUNT_ACTIVATED
@@ -25286,8 +26465,6 @@ var _RestWlaService = /*#__PURE__*/ function() {
25286
26465
  cuiApiBaseUrl = getEnvConfigValueByName("CUI_API_BASE_URL");
25287
26466
  path = "".concat(cuiApiBaseUrl, "/api/v1/wla/settings/push-notification");
25288
26467
  params = {
25289
- method: "POST",
25290
- headers: getCommonApiHeaders(),
25291
26468
  body: JSON.stringify(requestBody)
25292
26469
  };
25293
26470
  return [
@@ -25342,8 +26519,6 @@ var _RestWlaService = /*#__PURE__*/ function() {
25342
26519
  cuiApiBaseUrl = getEnvConfigValueByName("CUI_API_BASE_URL");
25343
26520
  path = "".concat(cuiApiBaseUrl, "/api/v1/wla/settings/push-notification");
25344
26521
  params = {
25345
- method: "PUT",
25346
- headers: getCommonApiHeaders(),
25347
26522
  body: JSON.stringify(requestBody)
25348
26523
  };
25349
26524
  return [
@@ -25380,7 +26555,7 @@ var _RestWlaService = /*#__PURE__*/ function() {
25380
26555
  value: function deleteRegistrationForPushNotifications() {
25381
26556
  var _this = this;
25382
26557
  return _async_to_generator(function() {
25383
- var cuiApiBaseUrl, path, params, error2;
26558
+ var cuiApiBaseUrl, path, error2;
25384
26559
  return _ts_generator(this, function(_state) {
25385
26560
  switch(_state.label){
25386
26561
  case 0:
@@ -25397,13 +26572,9 @@ var _RestWlaService = /*#__PURE__*/ function() {
25397
26572
  ]);
25398
26573
  cuiApiBaseUrl = getEnvConfigValueByName("CUI_API_BASE_URL");
25399
26574
  path = "".concat(cuiApiBaseUrl, "/api/v1/wla/settings/push-notification");
25400
- params = {
25401
- method: "DELETE",
25402
- headers: getCommonApiHeaders()
25403
- };
25404
26575
  return [
25405
26576
  4,
25406
- _this.httpClient.delete(path, params)
26577
+ _this.httpClient.delete(path)
25407
26578
  ];
25408
26579
  case 2:
25409
26580
  _state.sent();
@@ -25435,7 +26606,7 @@ var _RestWlaService = /*#__PURE__*/ function() {
25435
26606
  value: function getOffers() {
25436
26607
  var _this = this;
25437
26608
  return _async_to_generator(function() {
25438
- var cuiApiBaseUrl, path, params, data, error2;
26609
+ var cuiApiBaseUrl, path, data, error2;
25439
26610
  return _ts_generator(this, function(_state) {
25440
26611
  switch(_state.label){
25441
26612
  case 0:
@@ -25452,12 +26623,9 @@ var _RestWlaService = /*#__PURE__*/ function() {
25452
26623
  ]);
25453
26624
  cuiApiBaseUrl = getEnvConfigValueByName("CUI_API_BASE_URL");
25454
26625
  path = "".concat(cuiApiBaseUrl, "/api/v1/wla/offers");
25455
- params = {
25456
- headers: getCommonApiHeaders()
25457
- };
25458
26626
  return [
25459
26627
  4,
25460
- _this.httpClient.get(path, params)
26628
+ _this.httpClient.get(path)
25461
26629
  ];
25462
26630
  case 2:
25463
26631
  data = _state.sent();
@@ -25489,7 +26657,7 @@ var _RestWlaService = /*#__PURE__*/ function() {
25489
26657
  value: function getOfferDetails(offerId) {
25490
26658
  var _this = this;
25491
26659
  return _async_to_generator(function() {
25492
- var cuiApiBaseUrl, queryParams, path, params, data, error2;
26660
+ var cuiApiBaseUrl, queryParams, path, data, error2;
25493
26661
  return _ts_generator(this, function(_state) {
25494
26662
  switch(_state.label){
25495
26663
  case 0:
@@ -25510,12 +26678,9 @@ var _RestWlaService = /*#__PURE__*/ function() {
25510
26678
  offer_id: offerId
25511
26679
  });
25512
26680
  path = "".concat(cuiApiBaseUrl, "/api/v1/wla/offer?").concat(queryParams.toString());
25513
- params = {
25514
- headers: getCommonApiHeaders()
25515
- };
25516
26681
  return [
25517
26682
  4,
25518
- _this.httpClient.get(path, params)
26683
+ _this.httpClient.get(path)
25519
26684
  ];
25520
26685
  case 2:
25521
26686
  data = _state.sent();
@@ -25549,7 +26714,7 @@ var _RestWlaService = /*#__PURE__*/ function() {
25549
26714
  value: function getAccountTransactions(requestBody) {
25550
26715
  var _this = this;
25551
26716
  return _async_to_generator(function() {
25552
- var cuiApiBaseUrl, queryParams, path, status, rest, params, data, error2;
26717
+ var cuiApiBaseUrl, queryParams, path, status, rest, data, error2;
25553
26718
  return _ts_generator(this, function(_state) {
25554
26719
  switch(_state.label){
25555
26720
  case 0:
@@ -25571,24 +26736,24 @@ var _RestWlaService = /*#__PURE__*/ function() {
25571
26736
  }, _optionalChain([
25572
26737
  requestBody,
25573
26738
  'optionalAccess',
25574
- function(_161) {
25575
- return _161.status;
26739
+ function(_164) {
26740
+ return _164.status;
25576
26741
  }
25577
26742
  ]) ? {
25578
26743
  status: requestBody.status.join(",")
25579
26744
  } : {}, _optionalChain([
25580
26745
  requestBody,
25581
26746
  'optionalAccess',
25582
- function(_162) {
25583
- return _162.start_index;
26747
+ function(_165) {
26748
+ return _165.start_index;
25584
26749
  }
25585
26750
  ]) ? {
25586
26751
  start_index: "".concat(requestBody.start_index)
25587
26752
  } : {}, _optionalChain([
25588
26753
  requestBody,
25589
26754
  'optionalAccess',
25590
- function(_163) {
25591
- return _163.count;
26755
+ function(_166) {
26756
+ return _166.count;
25592
26757
  }
25593
26758
  ]) ? {
25594
26759
  count: "".concat(requestBody.count)
@@ -25597,12 +26762,9 @@ var _RestWlaService = /*#__PURE__*/ function() {
25597
26762
  status = requestBody.status, rest = _object_without_properties(requestBody, [
25598
26763
  "status"
25599
26764
  ]);
25600
- params = {
25601
- headers: getCommonApiHeaders()
25602
- };
25603
26765
  return [
25604
26766
  4,
25605
- _this.httpClient.get(path, params)
26767
+ _this.httpClient.get(path)
25606
26768
  ];
25607
26769
  case 2:
25608
26770
  data = _state.sent();
@@ -25636,7 +26798,7 @@ var _RestWlaService = /*#__PURE__*/ function() {
25636
26798
  value: function getCardByToken(cardToken) {
25637
26799
  var _this = this;
25638
26800
  return _async_to_generator(function() {
25639
- var cuiApiBaseUrl, cardArtBaseUrl, queryParams, path, params, data, error2;
26801
+ var cuiApiBaseUrl, cardArtBaseUrl, queryParams, path, data, error2;
25640
26802
  return _ts_generator(this, function(_state) {
25641
26803
  switch(_state.label){
25642
26804
  case 0:
@@ -25658,24 +26820,21 @@ var _RestWlaService = /*#__PURE__*/ function() {
25658
26820
  card_token: cardToken
25659
26821
  });
25660
26822
  path = "".concat(cuiApiBaseUrl, "/api/v1/wla/card?").concat(queryParams.toString());
25661
- params = {
25662
- headers: getCommonApiHeaders()
25663
- };
25664
26823
  return [
25665
26824
  4,
25666
- _this.httpClient.get(path, params)
26825
+ _this.httpClient.get(path)
25667
26826
  ];
25668
26827
  case 2:
25669
26828
  data = _state.sent();
25670
26829
  if (_optionalChain([
25671
26830
  data,
25672
26831
  'access',
25673
- function(_164) {
25674
- return _164.card_art;
26832
+ function(_167) {
26833
+ return _167.card_art;
25675
26834
  },
25676
26835
  'optionalAccess',
25677
- function(_165) {
25678
- return _165.back;
26836
+ function(_168) {
26837
+ return _168.back;
25679
26838
  }
25680
26839
  ])) {
25681
26840
  data.card_art.back = "".concat(cardArtBaseUrl).concat(data.card_art.back);
@@ -25683,12 +26842,12 @@ var _RestWlaService = /*#__PURE__*/ function() {
25683
26842
  if (_optionalChain([
25684
26843
  data,
25685
26844
  'access',
25686
- function(_166) {
25687
- return _166.card_art;
26845
+ function(_169) {
26846
+ return _169.card_art;
25688
26847
  },
25689
26848
  'optionalAccess',
25690
- function(_167) {
25691
- return _167.front;
26849
+ function(_170) {
26850
+ return _170.front;
25692
26851
  }
25693
26852
  ])) {
25694
26853
  data.card_art.front = "".concat(cardArtBaseUrl).concat(data.card_art.front);
@@ -25723,7 +26882,7 @@ var _RestWlaService = /*#__PURE__*/ function() {
25723
26882
  value: function getExternalAccount(token) {
25724
26883
  var _this = this;
25725
26884
  return _async_to_generator(function() {
25726
- var cuiApiBaseUrl, path, params, data, error2;
26885
+ var cuiApiBaseUrl, path, data, error2;
25727
26886
  return _ts_generator(this, function(_state) {
25728
26887
  switch(_state.label){
25729
26888
  case 0:
@@ -25741,12 +26900,9 @@ var _RestWlaService = /*#__PURE__*/ function() {
25741
26900
  ]);
25742
26901
  cuiApiBaseUrl = getEnvConfigValueByName("CUI_API_BASE_URL");
25743
26902
  path = "".concat(cuiApiBaseUrl, "/api/v1/wla/externalaccounts/").concat(token);
25744
- params = {
25745
- headers: getCommonApiHeaders()
25746
- };
25747
26903
  return [
25748
26904
  4,
25749
- _this.httpClient.get(path, params)
26905
+ _this.httpClient.get(path)
25750
26906
  ];
25751
26907
  case 2:
25752
26908
  data = _state.sent();
@@ -25780,7 +26936,7 @@ var _RestWlaService = /*#__PURE__*/ function() {
25780
26936
  value: function getExternalAccountList(requestBody) {
25781
26937
  var _this = this;
25782
26938
  return _async_to_generator(function() {
25783
- var cuiApiBaseUrl, queryParams, path, status, rest, params, data, error2;
26939
+ var cuiApiBaseUrl, queryParams, path, status, rest, data, error2;
25784
26940
  return _ts_generator(this, function(_state) {
25785
26941
  switch(_state.label){
25786
26942
  case 0:
@@ -25799,32 +26955,32 @@ var _RestWlaService = /*#__PURE__*/ function() {
25799
26955
  queryParams = new URLSearchParams(_object_spread({}, _optionalChain([
25800
26956
  requestBody,
25801
26957
  'optionalAccess',
25802
- function(_168) {
25803
- return _168.count;
26958
+ function(_171) {
26959
+ return _171.count;
25804
26960
  }
25805
26961
  ]) ? {
25806
26962
  count: "".concat(requestBody.count)
25807
26963
  } : {}, _optionalChain([
25808
26964
  requestBody,
25809
26965
  'optionalAccess',
25810
- function(_169) {
25811
- return _169.start_index;
26966
+ function(_172) {
26967
+ return _172.start_index;
25812
26968
  }
25813
26969
  ]) ? {
25814
26970
  start_index: "".concat(requestBody.start_index)
25815
26971
  } : {}, _optionalChain([
25816
26972
  requestBody,
25817
26973
  'optionalAccess',
25818
- function(_170) {
25819
- return _170.sort_by;
26974
+ function(_173) {
26975
+ return _173.sort_by;
25820
26976
  }
25821
26977
  ]) ? {
25822
26978
  sort_by: "".concat(requestBody.sort_by)
25823
26979
  } : {}, _optionalChain([
25824
26980
  requestBody,
25825
26981
  'optionalAccess',
25826
- function(_171) {
25827
- return _171.status;
26982
+ function(_174) {
26983
+ return _174.status;
25828
26984
  }
25829
26985
  ]) ? {
25830
26986
  status: requestBody.status.join(",")
@@ -25833,12 +26989,9 @@ var _RestWlaService = /*#__PURE__*/ function() {
25833
26989
  status = requestBody.status, rest = _object_without_properties(requestBody, [
25834
26990
  "status"
25835
26991
  ]);
25836
- params = {
25837
- headers: getCommonApiHeaders()
25838
- };
25839
26992
  return [
25840
26993
  4,
25841
- _this.httpClient.get(path, params)
26994
+ _this.httpClient.get(path)
25842
26995
  ];
25843
26996
  case 2:
25844
26997
  data = _state.sent();
@@ -25854,12 +27007,12 @@ var _RestWlaService = /*#__PURE__*/ function() {
25854
27007
  if (_optionalChain([
25855
27008
  error2,
25856
27009
  'optionalAccess',
25857
- function(_172) {
25858
- return _172.debug;
27010
+ function(_175) {
27011
+ return _175.debug;
25859
27012
  },
25860
27013
  'optionalAccess',
25861
- function(_173) {
25862
- return _173.length;
27014
+ function(_176) {
27015
+ return _176.length;
25863
27016
  }
25864
27017
  ])) {
25865
27018
  logError("Unable to get external account list with standardized error", {
@@ -25906,7 +27059,6 @@ var _RestWlaService = /*#__PURE__*/ function() {
25906
27059
  path = "".concat(cuiApiBaseUrl, "/api/v1/wla/externalaccounts");
25907
27060
  params = {
25908
27061
  method: "POST",
25909
- headers: getCommonApiHeaders(),
25910
27062
  body: JSON.stringify(requestBody)
25911
27063
  };
25912
27064
  return [
@@ -25927,12 +27079,12 @@ var _RestWlaService = /*#__PURE__*/ function() {
25927
27079
  if (_optionalChain([
25928
27080
  error2,
25929
27081
  'optionalAccess',
25930
- function(_174) {
25931
- return _174.debug;
27082
+ function(_177) {
27083
+ return _177.debug;
25932
27084
  },
25933
27085
  'optionalAccess',
25934
- function(_175) {
25935
- return _175.length;
27086
+ function(_178) {
27087
+ return _178.length;
25936
27088
  }
25937
27089
  ])) {
25938
27090
  logError("Unable to create external account with standardized error", {
@@ -25979,7 +27131,6 @@ var _RestWlaService = /*#__PURE__*/ function() {
25979
27131
  path = "".concat(cuiApiBaseUrl, "/api/v1/wla/externalaccounts/verification");
25980
27132
  params = {
25981
27133
  method: "POST",
25982
- headers: getCommonApiHeaders(),
25983
27134
  body: JSON.stringify(requestBody)
25984
27135
  };
25985
27136
  return [
@@ -26000,12 +27151,12 @@ var _RestWlaService = /*#__PURE__*/ function() {
26000
27151
  if (_optionalChain([
26001
27152
  error2,
26002
27153
  'optionalAccess',
26003
- function(_176) {
26004
- return _176.debug;
27154
+ function(_179) {
27155
+ return _179.debug;
26005
27156
  },
26006
27157
  'optionalAccess',
26007
- function(_177) {
26008
- return _177.length;
27158
+ function(_180) {
27159
+ return _180.length;
26009
27160
  }
26010
27161
  ])) {
26011
27162
  logError("Unable to verify external account with standardized error", {
@@ -26053,7 +27204,6 @@ var _RestWlaService = /*#__PURE__*/ function() {
26053
27204
  path = "".concat(cuiApiBaseUrl, "/api/v1/wla/externalaccounts/").concat(token);
26054
27205
  params = {
26055
27206
  method: "PATCH",
26056
- headers: getCommonApiHeaders(),
26057
27207
  body: JSON.stringify(requestBody)
26058
27208
  };
26059
27209
  return [
@@ -26075,12 +27225,12 @@ var _RestWlaService = /*#__PURE__*/ function() {
26075
27225
  if (_optionalChain([
26076
27226
  error2,
26077
27227
  'optionalAccess',
26078
- function(_178) {
26079
- return _178.debug;
27228
+ function(_181) {
27229
+ return _181.debug;
26080
27230
  },
26081
27231
  'optionalAccess',
26082
- function(_179) {
26083
- return _179.length;
27232
+ function(_182) {
27233
+ return _182.length;
26084
27234
  }
26085
27235
  ])) {
26086
27236
  logError("Unable to update external account with standardized error", {
@@ -26110,7 +27260,7 @@ var _RestWlaService = /*#__PURE__*/ function() {
26110
27260
  value: function getTransactionByToken(transactionToken) {
26111
27261
  var _this = this;
26112
27262
  return _async_to_generator(function() {
26113
- var cuiApiBaseUrl, queryParams, path, params, data, error2;
27263
+ var cuiApiBaseUrl, queryParams, path, data, error2;
26114
27264
  return _ts_generator(this, function(_state) {
26115
27265
  switch(_state.label){
26116
27266
  case 0:
@@ -26131,12 +27281,9 @@ var _RestWlaService = /*#__PURE__*/ function() {
26131
27281
  transaction_token: transactionToken
26132
27282
  });
26133
27283
  path = "".concat(cuiApiBaseUrl, "/api/v1/wla/transaction?").concat(queryParams.toString());
26134
- params = {
26135
- headers: getCommonApiHeaders()
26136
- };
26137
27284
  return [
26138
27285
  4,
26139
- _this.httpClient.get(path, params)
27286
+ _this.httpClient.get(path)
26140
27287
  ];
26141
27288
  case 2:
26142
27289
  data = _state.sent();
@@ -26170,7 +27317,7 @@ var _RestWlaService = /*#__PURE__*/ function() {
26170
27317
  value: function getTransactionChallengeByToken(challengeToken) {
26171
27318
  var _this = this;
26172
27319
  return _async_to_generator(function() {
26173
- var cuiApiBaseUrl, path, params, data, error2;
27320
+ var cuiApiBaseUrl, path, data, error2;
26174
27321
  return _ts_generator(this, function(_state) {
26175
27322
  switch(_state.label){
26176
27323
  case 0:
@@ -26188,12 +27335,9 @@ var _RestWlaService = /*#__PURE__*/ function() {
26188
27335
  ]);
26189
27336
  cuiApiBaseUrl = getEnvConfigValueByName("CUI_API_BASE_URL");
26190
27337
  path = "".concat(cuiApiBaseUrl, "/api/v1/wla/transaction/challenge/").concat(challengeToken);
26191
- params = {
26192
- headers: getCommonApiHeaders()
26193
- };
26194
27338
  return [
26195
27339
  4,
26196
- _this.httpClient.get(path, params)
27340
+ _this.httpClient.get(path)
26197
27341
  ];
26198
27342
  case 2:
26199
27343
  data = _state.sent();
@@ -26227,7 +27371,7 @@ var _RestWlaService = /*#__PURE__*/ function() {
26227
27371
  value: function getNextTransactionChallenge() {
26228
27372
  var _this = this;
26229
27373
  return _async_to_generator(function() {
26230
- var cuiApiBaseUrl, path, params, data, error2;
27374
+ var cuiApiBaseUrl, path, data, error2;
26231
27375
  return _ts_generator(this, function(_state) {
26232
27376
  switch(_state.label){
26233
27377
  case 0:
@@ -26244,12 +27388,9 @@ var _RestWlaService = /*#__PURE__*/ function() {
26244
27388
  ]);
26245
27389
  cuiApiBaseUrl = getEnvConfigValueByName("CUI_API_BASE_URL");
26246
27390
  path = "".concat(cuiApiBaseUrl, "/api/v1/wla/transaction/challenge/next");
26247
- params = {
26248
- headers: getCommonApiHeaders()
26249
- };
26250
27391
  return [
26251
27392
  4,
26252
- _this.httpClient.get(path, params)
27393
+ _this.httpClient.get(path)
26253
27394
  ];
26254
27395
  case 2:
26255
27396
  data = _state.sent();
@@ -26302,7 +27443,6 @@ var _RestWlaService = /*#__PURE__*/ function() {
26302
27443
  path = "".concat(cuiApiBaseUrl, "/api/v1/wla/transaction/challenge/").concat(challengeToken, "/decision");
26303
27444
  params = {
26304
27445
  method: "POST",
26305
- headers: getCommonApiHeaders(),
26306
27446
  body: JSON.stringify(body)
26307
27447
  };
26308
27448
  return [
@@ -26360,7 +27500,6 @@ var _RestWlaService = /*#__PURE__*/ function() {
26360
27500
  path = "".concat(cuiApiBaseUrl, "/api/v1/wla/book-transfer");
26361
27501
  params = {
26362
27502
  method: "POST",
26363
- headers: getCommonApiHeaders(),
26364
27503
  body: JSON.stringify(requestBody)
26365
27504
  };
26366
27505
  return [
@@ -26416,7 +27555,6 @@ var _RestWlaService = /*#__PURE__*/ function() {
26416
27555
  path = "".concat(cuiApiBaseUrl, "/api/v1/wla/origination/transfers");
26417
27556
  params = {
26418
27557
  method: "POST",
26419
- headers: getCommonApiHeaders(),
26420
27558
  body: JSON.stringify(requestBody)
26421
27559
  };
26422
27560
  return [
@@ -26454,7 +27592,7 @@ var _RestWlaService = /*#__PURE__*/ function() {
26454
27592
  var includeYtdInterest = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false, includeInterestTiers = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : false;
26455
27593
  var _this = this;
26456
27594
  return _async_to_generator(function() {
26457
- var cuiApiBaseUrl, queryParams, path, params, data, error2;
27595
+ var cuiApiBaseUrl, queryParams, path, data, error2;
26458
27596
  return _ts_generator(this, function(_state) {
26459
27597
  switch(_state.label){
26460
27598
  case 0:
@@ -26479,12 +27617,9 @@ var _RestWlaService = /*#__PURE__*/ function() {
26479
27617
  include_interest_tier: "".concat(includeInterestTiers)
26480
27618
  });
26481
27619
  path = "".concat(cuiApiBaseUrl, "/api/v1/wla/account?").concat(queryParams.toString());
26482
- params = {
26483
- headers: getCommonApiHeaders()
26484
- };
26485
27620
  return [
26486
27621
  4,
26487
- _this.httpClient.get(path, params)
27622
+ _this.httpClient.get(path)
26488
27623
  ];
26489
27624
  case 2:
26490
27625
  data = _state.sent();
@@ -26518,7 +27653,7 @@ var _RestWlaService = /*#__PURE__*/ function() {
26518
27653
  value: function getRewardSummaries(startIndex, count) {
26519
27654
  var _this = this;
26520
27655
  return _async_to_generator(function() {
26521
- var cuiApiBaseUrl, queryParams, path, params, data, error2;
27656
+ var cuiApiBaseUrl, queryParams, path, data, error2;
26522
27657
  return _ts_generator(this, function(_state) {
26523
27658
  switch(_state.label){
26524
27659
  case 0:
@@ -26542,12 +27677,9 @@ var _RestWlaService = /*#__PURE__*/ function() {
26542
27677
  count: "".concat(count)
26543
27678
  } : {}));
26544
27679
  path = "".concat(cuiApiBaseUrl, "/api/v1/wla/rewardsummaries?").concat(queryParams.toString());
26545
- params = {
26546
- headers: getCommonApiHeaders()
26547
- };
26548
27680
  return [
26549
27681
  4,
26550
- _this.httpClient.get(path, params)
27682
+ _this.httpClient.get(path)
26551
27683
  ];
26552
27684
  case 2:
26553
27685
  data = _state.sent();
@@ -26614,7 +27746,6 @@ var _RestWlaService = /*#__PURE__*/ function() {
26614
27746
  } : {}));
26615
27747
  params = {
26616
27748
  method: "POST",
26617
- headers: getCommonApiHeaders(),
26618
27749
  body: JSON.stringify(requestBody)
26619
27750
  };
26620
27751
  path = "".concat(cuiApiBaseUrl, "/api/v1/wla/atms/search?").concat(queryParams.toString());
@@ -26671,7 +27802,6 @@ var _RestWlaService = /*#__PURE__*/ function() {
26671
27802
  cuiApiBaseUrl = getEnvConfigValueByName("CUI_API_BASE_URL");
26672
27803
  params = {
26673
27804
  method: "POST",
26674
- headers: getCommonApiHeaders(),
26675
27805
  body: JSON.stringify(requestBody)
26676
27806
  };
26677
27807
  path = "".concat(cuiApiBaseUrl, "/api/v1/wla/card/replace");
@@ -26731,9 +27861,9 @@ var _RestWlaService = /*#__PURE__*/ function() {
26731
27861
  cuiApiBaseUrl = getEnvConfigValueByName("CUI_API_BASE_URL");
26732
27862
  path = "".concat(cuiApiBaseUrl, "/api/v1/wla/outages/").concat(token, "?device_platform=").concat(devicePlatform);
26733
27863
  params = {
26734
- headers: _object_spread_props(_object_spread({}, getCommonApiHeaders()), {
27864
+ headers: {
26735
27865
  "X-Marqeta-Program-Short-Code": programShortCode
26736
- })
27866
+ }
26737
27867
  };
26738
27868
  return [
26739
27869
  4,
@@ -26792,9 +27922,9 @@ var _RestWlaService = /*#__PURE__*/ function() {
26792
27922
  cuiApiBaseUrl = getEnvConfigValueByName("CUI_API_BASE_URL");
26793
27923
  path = "".concat(cuiApiBaseUrl, "/api/v1/wla/outages?device_platform=").concat(devicePlatform);
26794
27924
  params = {
26795
- headers: _object_spread_props(_object_spread({}, getCommonApiHeaders()), {
27925
+ headers: {
26796
27926
  "X-Marqeta-Program-Short-Code": programShortCode
26797
- })
27927
+ }
26798
27928
  };
26799
27929
  return [
26800
27930
  4,
@@ -26833,7 +27963,7 @@ var _RestWlaService = /*#__PURE__*/ function() {
26833
27963
  var country_code = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "GB";
26834
27964
  var _this = this;
26835
27965
  return _async_to_generator(function() {
26836
- var cuiApiBaseUrl, path, params, result, error2;
27966
+ var cuiApiBaseUrl, path, result, error2;
26837
27967
  return _ts_generator(this, function(_state) {
26838
27968
  switch(_state.label){
26839
27969
  case 0:
@@ -26852,12 +27982,9 @@ var _RestWlaService = /*#__PURE__*/ function() {
26852
27982
  ]);
26853
27983
  cuiApiBaseUrl = getEnvConfigValueByName("CUI_API_BASE_URL");
26854
27984
  path = "".concat(cuiApiBaseUrl, "/api/v1/wla/open-banking/").concat(country_code, "/consents/").concat(id);
26855
- params = {
26856
- headers: getCommonApiHeaders()
26857
- };
26858
27985
  return [
26859
27986
  4,
26860
- _this.httpClient.get(path, params)
27987
+ _this.httpClient.get(path)
26861
27988
  ];
26862
27989
  case 2:
26863
27990
  result = _state.sent();
@@ -26894,7 +28021,7 @@ var _RestWlaService = /*#__PURE__*/ function() {
26894
28021
  var country_code = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "GB";
26895
28022
  var _this = this;
26896
28023
  return _async_to_generator(function() {
26897
- var cuiApiBaseUrl, path, params, result, error2;
28024
+ var cuiApiBaseUrl, path, result, error2;
26898
28025
  return _ts_generator(this, function(_state) {
26899
28026
  switch(_state.label){
26900
28027
  case 0:
@@ -26913,12 +28040,9 @@ var _RestWlaService = /*#__PURE__*/ function() {
26913
28040
  ]);
26914
28041
  cuiApiBaseUrl = getEnvConfigValueByName("CUI_API_BASE_URL");
26915
28042
  path = "".concat(cuiApiBaseUrl, "/api/v1/wla/open-banking/").concat(country_code, "/transfers/").concat(token);
26916
- params = {
26917
- headers: getCommonApiHeaders()
26918
- };
26919
28043
  return [
26920
28044
  4,
26921
- _this.httpClient.get(path, params)
28045
+ _this.httpClient.get(path)
26922
28046
  ];
26923
28047
  case 2:
26924
28048
  result = _state.sent();
@@ -26955,7 +28079,7 @@ var _RestWlaService = /*#__PURE__*/ function() {
26955
28079
  var country_code = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "GB";
26956
28080
  var _this = this;
26957
28081
  return _async_to_generator(function() {
26958
- var queryParams, cuiApiBaseUrl, path, params, result, error2;
28082
+ var queryParams, cuiApiBaseUrl, path, result, error2;
26959
28083
  return _ts_generator(this, function(_state) {
26960
28084
  switch(_state.label){
26961
28085
  case 0:
@@ -26977,12 +28101,9 @@ var _RestWlaService = /*#__PURE__*/ function() {
26977
28101
  });
26978
28102
  cuiApiBaseUrl = getEnvConfigValueByName("CUI_API_BASE_URL");
26979
28103
  path = "".concat(cuiApiBaseUrl, "/api/v1/wla/open-banking/").concat(country_code, "/consents?").concat(queryParams.toString());
26980
- params = {
26981
- headers: getCommonApiHeaders()
26982
- };
26983
28104
  return [
26984
28105
  4,
26985
- _this.httpClient.get(path, params)
28106
+ _this.httpClient.get(path)
26986
28107
  ];
26987
28108
  case 2:
26988
28109
  result = _state.sent();
@@ -27019,7 +28140,7 @@ var _RestWlaService = /*#__PURE__*/ function() {
27019
28140
  var country_code = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "GB";
27020
28141
  var _this = this;
27021
28142
  return _async_to_generator(function() {
27022
- var cuiApiBaseUrl, path, params, result, error2;
28143
+ var cuiApiBaseUrl, path, result, error2;
27023
28144
  return _ts_generator(this, function(_state) {
27024
28145
  switch(_state.label){
27025
28146
  case 0:
@@ -27037,12 +28158,9 @@ var _RestWlaService = /*#__PURE__*/ function() {
27037
28158
  ]);
27038
28159
  cuiApiBaseUrl = getEnvConfigValueByName("CUI_API_BASE_URL");
27039
28160
  path = "".concat(cuiApiBaseUrl, "/api/v1/wla/open-banking/").concat(country_code, "/transfers");
27040
- params = {
27041
- headers: getCommonApiHeaders()
27042
- };
27043
28161
  return [
27044
28162
  4,
27045
- _this.httpClient.get(path, params)
28163
+ _this.httpClient.get(path)
27046
28164
  ];
27047
28165
  case 2:
27048
28166
  result = _state.sent();
@@ -27096,8 +28214,6 @@ var _RestWlaService = /*#__PURE__*/ function() {
27096
28214
  ]);
27097
28215
  cuiApiBaseUrl = getEnvConfigValueByName("CUI_API_BASE_URL");
27098
28216
  params = {
27099
- method: "PATCH",
27100
- headers: getCommonApiHeaders(),
27101
28217
  body: JSON.stringify(requestBody)
27102
28218
  };
27103
28219
  path = "".concat(cuiApiBaseUrl, "/api/v1/wla/open-banking/").concat(country_code, "/consents/").concat(id);
@@ -27159,8 +28275,6 @@ var _RestWlaService = /*#__PURE__*/ function() {
27159
28275
  ]);
27160
28276
  cuiApiBaseUrl = getEnvConfigValueByName("CUI_API_BASE_URL");
27161
28277
  params = {
27162
- method: "PATCH",
27163
- headers: getCommonApiHeaders(),
27164
28278
  body: JSON.stringify(requestBody)
27165
28279
  };
27166
28280
  path = "".concat(cuiApiBaseUrl, "/api/v1/wla/open-banking/").concat(country_code, "/consents/revoke/").concat(id);
@@ -27202,7 +28316,7 @@ var _RestWlaService = /*#__PURE__*/ function() {
27202
28316
  value: function getFaqs() {
27203
28317
  var _this = this;
27204
28318
  return _async_to_generator(function() {
27205
- var cuiApiBaseUrl, params, path, data, error2;
28319
+ var cuiApiBaseUrl, path, data, error2;
27206
28320
  return _ts_generator(this, function(_state) {
27207
28321
  switch(_state.label){
27208
28322
  case 0:
@@ -27218,14 +28332,10 @@ var _RestWlaService = /*#__PURE__*/ function() {
27218
28332
  4
27219
28333
  ]);
27220
28334
  cuiApiBaseUrl = getEnvConfigValueByName("CUI_API_BASE_URL");
27221
- params = {
27222
- method: "GET",
27223
- headers: getCommonApiHeaders()
27224
- };
27225
28335
  path = "".concat(cuiApiBaseUrl, "/api/v1/wla/faqs");
27226
28336
  return [
27227
28337
  4,
27228
- _this.httpClient.get(path, params)
28338
+ _this.httpClient.get(path)
27229
28339
  ];
27230
28340
  case 2:
27231
28341
  data = _state.sent();
@@ -27275,8 +28385,6 @@ var _RestWlaService = /*#__PURE__*/ function() {
27275
28385
  cuiApiBaseUrl = getEnvConfigValueByName("CUI_API_BASE_URL");
27276
28386
  path = "".concat(cuiApiBaseUrl, "/api/v1/wla/user/password");
27277
28387
  params = {
27278
- method: "POST",
27279
- headers: getCommonApiHeaders(),
27280
28388
  body: JSON.stringify({
27281
28389
  password: password
27282
28390
  })
@@ -27312,7 +28420,7 @@ var _RestWlaService = /*#__PURE__*/ function() {
27312
28420
  },
27313
28421
  {
27314
28422
  key: "changePassword",
27315
- value: function changePassword(requestBody, access_token, programShortCode) {
28423
+ value: function changePassword(requestBody, programShortCode) {
27316
28424
  var _this = this;
27317
28425
  return _async_to_generator(function() {
27318
28426
  var cuiApiBaseUrl, path, params, error2, message3;
@@ -27334,11 +28442,9 @@ var _RestWlaService = /*#__PURE__*/ function() {
27334
28442
  cuiApiBaseUrl = getEnvConfigValueByName("CUI_API_BASE_URL");
27335
28443
  path = "".concat(cuiApiBaseUrl, "/api/v1/wla/user/password/change");
27336
28444
  params = {
27337
- method: "POST",
27338
- headers: _object_spread_props(_object_spread({}, getCommonApiHeaders()), {
27339
- "X-Marqeta-Program-Short-Code": programShortCode,
27340
- "Authorization": "SSO ".concat(access_token)
27341
- }),
28445
+ headers: {
28446
+ "X-Marqeta-Program-Short-Code": programShortCode
28447
+ },
27342
28448
  body: JSON.stringify(requestBody)
27343
28449
  };
27344
28450
  return [
@@ -27384,14 +28490,14 @@ var _RestWlaService = /*#__PURE__*/ function() {
27384
28490
  },
27385
28491
  {
27386
28492
  key: "sendResetPasswordLink",
27387
- value: function sendResetPasswordLink(param) {
27388
- var _param_email = param.email, email = _param_email === void 0 ? "" : _param_email, _param_phone = param.phone, phone = _param_phone === void 0 ? "" : _param_phone, programShortCode = param.programShortCode;
28493
+ value: function sendResetPasswordLink(requestBody) {
27389
28494
  var _this = this;
27390
28495
  return _async_to_generator(function() {
27391
- var cuiApiBaseUrl, path, requestBody, params, result, error2;
28496
+ var _requestBody_email, email, _requestBody_phone, phone, programShortCode, cuiApiBaseUrl, path, body, params, result, error2;
27392
28497
  return _ts_generator(this, function(_state) {
27393
28498
  switch(_state.label){
27394
28499
  case 0:
28500
+ _requestBody_email = requestBody.email, email = _requestBody_email === void 0 ? "" : _requestBody_email, _requestBody_phone = requestBody.phone, phone = _requestBody_phone === void 0 ? "" : _requestBody_phone, programShortCode = requestBody.programShortCode;
27395
28501
  logDebug("Sending WLA reset password link", {
27396
28502
  hasEmail: !!email,
27397
28503
  hasPhone: !!phone,
@@ -27408,19 +28514,18 @@ var _RestWlaService = /*#__PURE__*/ function() {
27408
28514
  ]);
27409
28515
  cuiApiBaseUrl = getEnvConfigValueByName("CUI_API_BASE_URL");
27410
28516
  path = "".concat(cuiApiBaseUrl, "/api/v1/wla/user/password-reset-link");
27411
- requestBody = {};
28517
+ body = {};
27412
28518
  if (email && email.trim() !== "") {
27413
- requestBody.email = email;
28519
+ body.email = email;
27414
28520
  } else if (phone && phone.trim() !== "") {
27415
- requestBody.phone = phone;
28521
+ body.phone = phone;
27416
28522
  }
27417
28523
  params = {
27418
- method: "POST",
27419
- headers: _object_spread_props(_object_spread({}, getCommonApiHeaders()), {
28524
+ headers: {
27420
28525
  "Content-Type": "application/json",
27421
28526
  "X-Marqeta-Program-Short-Code": programShortCode
27422
- }),
27423
- body: JSON.stringify(requestBody)
28527
+ },
28528
+ body: JSON.stringify(body)
27424
28529
  };
27425
28530
  return [
27426
28531
  4,
@@ -27478,10 +28583,9 @@ var _RestWlaService = /*#__PURE__*/ function() {
27478
28583
  cuiApiBaseUrl = getEnvConfigValueByName("CUI_API_BASE_URL");
27479
28584
  path = "".concat(cuiApiBaseUrl, "/api/v1/wla/user/resend-verification-email");
27480
28585
  params = {
27481
- method: "POST",
27482
- headers: _object_spread_props(_object_spread({}, getCommonApiHeaders()), {
28586
+ headers: {
27483
28587
  "Content-Type": "application/json"
27484
- }),
28588
+ },
27485
28589
  body: JSON.stringify({})
27486
28590
  };
27487
28591
  return [
@@ -27536,8 +28640,6 @@ var _RestWlaService = /*#__PURE__*/ function() {
27536
28640
  cuiApiBaseUrl = getEnvConfigValueByName("CUI_API_BASE_URL");
27537
28641
  path = "".concat(cuiApiBaseUrl, "/api/v1/wla/verify-user-device");
27538
28642
  params = {
27539
- method: "POST",
27540
- headers: getCommonApiHeaders(),
27541
28643
  body: JSON.stringify(requestBody)
27542
28644
  };
27543
28645
  return [
@@ -27574,19 +28676,19 @@ var _RestWlaService = /*#__PURE__*/ function() {
27574
28676
  }();
27575
28677
  __name(_RestWlaService, "RestWlaService");
27576
28678
  var RestWlaService = _RestWlaService;
27577
- _ts_decorate76([
28679
+ _ts_decorate77([
27578
28680
  _inversify.inject.call(void 0, ITF_CACHE_SERVICE),
27579
28681
  _ts_metadata21("design:type", typeof iCacheService === "undefined" ? Object : iCacheService)
27580
28682
  ], RestWlaService.prototype, "cacheService", void 0);
27581
- _ts_decorate76([
28683
+ _ts_decorate77([
27582
28684
  _inversify.inject.call(void 0, ITF_AUTHENTICATED_HTTP_CLIENT),
27583
28685
  _ts_metadata21("design:type", typeof iAuthenticatedHttpClient === "undefined" ? Object : iAuthenticatedHttpClient)
27584
28686
  ], RestWlaService.prototype, "httpClient", void 0);
27585
- _ts_decorate76([
28687
+ _ts_decorate77([
27586
28688
  _inversify.inject.call(void 0, ITF_HTTP_CLIENT),
27587
28689
  _ts_metadata21("design:type", typeof iHttpClient === "undefined" ? Object : iHttpClient)
27588
28690
  ], RestWlaService.prototype, "unauthenticatedHttpClient", void 0);
27589
- RestWlaService = exports.RestWlaService = _ts_decorate76([
28691
+ RestWlaService = exports.RestWlaService = _ts_decorate77([
27590
28692
  _inversify.injectable.call(void 0)
27591
28693
  ], RestWlaService);
27592
28694
  function bookTransfer(payload) {
@@ -27902,12 +29004,12 @@ function _getAccountTransactions() {
27902
29004
  transactionCount: _optionalChain([
27903
29005
  result,
27904
29006
  'access',
27905
- function(_180) {
27906
- return _180.data;
29007
+ function(_183) {
29008
+ return _183.data;
27907
29009
  },
27908
29010
  'optionalAccess',
27909
- function(_181) {
27910
- return _181.length;
29011
+ function(_184) {
29012
+ return _184.length;
27911
29013
  }
27912
29014
  ]) || 0,
27913
29015
  interactor: "getAccountTransactions"
@@ -28125,12 +29227,12 @@ function _getOffers() {
28125
29227
  offerCount: _optionalChain([
28126
29228
  result,
28127
29229
  'access',
28128
- function(_182) {
28129
- return _182.data;
29230
+ function(_185) {
29231
+ return _185.data;
28130
29232
  },
28131
29233
  'optionalAccess',
28132
- function(_183) {
28133
- return _183.length;
29234
+ function(_186) {
29235
+ return _186.length;
28134
29236
  }
28135
29237
  ]) || 0,
28136
29238
  interactor: "getOffers"
@@ -28993,12 +30095,12 @@ function _getWlaFaqs() {
28993
30095
  return _getWlaFaqs.apply(this, arguments);
28994
30096
  }
28995
30097
  __name(getWlaFaqs, "getWlaFaqs");
28996
- function changeWlaPassword(payload, access_token, programShortCode) {
30098
+ function changeWlaPassword(payload, programShortCode) {
28997
30099
  return _changeWlaPassword.apply(this, arguments);
28998
30100
  }
28999
30101
  function _changeWlaPassword() {
29000
30102
  _changeWlaPassword = // src/wla/base/interactors/changeWlaPassword.ts
29001
- _async_to_generator(function(payload, access_token, programShortCode) {
30103
+ _async_to_generator(function(payload, programShortCode) {
29002
30104
  var container2, wlaService, error2;
29003
30105
  return _ts_generator(this, function(_state) {
29004
30106
  switch(_state.label){
@@ -29019,7 +30121,7 @@ function _changeWlaPassword() {
29019
30121
  wlaService = container2.get(ITF_WLA_SERVICE);
29020
30122
  return [
29021
30123
  4,
29022
- wlaService.changePassword(payload, access_token, programShortCode)
30124
+ wlaService.changePassword(payload, programShortCode)
29023
30125
  ];
29024
30126
  case 2:
29025
30127
  _state.sent();
@@ -29356,7 +30458,6 @@ exports.commonIOCModule = commonIOCModule;
29356
30458
  exports.mockCommonIOCModule = mockCommonIOCModule;
29357
30459
  exports.convertObjKeysToCamelCase = convertObjKeysToCamelCase;
29358
30460
  exports.convertObjKeysToLowerCamelCase = convertObjKeysToLowerCamelCase;
29359
- exports.getCommonApiHeaders = getCommonApiHeaders;
29360
30461
  exports.getCardsByUserToken = getCardsByUserToken;
29361
30462
  exports.getShowpanByCardToken = getShowpanByCardToken;
29362
30463
  exports.activateCardByTokenOrPan = activateCardByTokenOrPan;
@@ -29365,6 +30466,8 @@ exports.replaceCardByToken = replaceCardByToken;
29365
30466
  exports.unlockCardByToken = unlockCardByToken;
29366
30467
  exports.updatePinByCardToken = updatePinByCardToken;
29367
30468
  exports.getPinByCardToken = getPinByCardToken;
30469
+ exports.orderCard = orderCard;
30470
+ exports.replaceCardV2 = replaceCardV2;
29368
30471
  exports.iCardRepository = iCardRepository;
29369
30472
  exports.TEST_CARD_PRODUCT_TOKEN = TEST_CARD_PRODUCT_TOKEN;
29370
30473
  exports.TEST_CARD_TOKEN = TEST_CARD_TOKEN;
@@ -29481,9 +30584,13 @@ exports.ITF_ACCOUNT_REPOSITORY = ITF_ACCOUNT_REPOSITORY;
29481
30584
  exports.getAccountHolderGroup = getAccountHolderGroup;
29482
30585
  exports.getAccountBalances = getAccountBalances;
29483
30586
  exports.getDepositAccounts = getDepositAccounts;
30587
+ exports.getUserAccounts = getUserAccounts;
29484
30588
  exports.iAccountRepository = iAccountRepository;
30589
+ exports.UserAccountStatus = UserAccountStatus;
30590
+ exports.UserAccountType = UserAccountType;
29485
30591
  exports.TEST_USER_TOKEN = TEST_USER_TOKEN;
29486
30592
  exports.TEST_DEPOSIT_ACCOUNT = TEST_DEPOSIT_ACCOUNT;
30593
+ exports.TEST_USER_ACCOUNTS = TEST_USER_ACCOUNTS;
29487
30594
  exports.MockAccountRepository = MockAccountRepository;
29488
30595
  exports.accountsIOCModule = accountsIOCModule;
29489
30596
  exports.mockAccountsIOCModule = mockAccountsIOCModule;
@@ -29658,11 +30765,7 @@ exports.idpIOCModule = idpIOCModule;
29658
30765
  exports.mockIdpIOCModule = mockIdpIOCModule;
29659
30766
  exports.iStatementsRepository = iStatementsRepository;
29660
30767
  exports.StatementAssetStateEnum = StatementAssetStateEnum;
29661
- exports.ITF_STATEMENTS = ITF_STATEMENTS;
29662
- exports.ITF_STATEMENT_ASSET = ITF_STATEMENT_ASSET;
29663
- exports.getStatements = getStatements;
29664
- exports.getStatementAsset = getStatementAsset;
29665
- exports.statementsIOCModule = statementsIOCModule;
30768
+ exports.StatementSummaryCycleTypeEnum = StatementSummaryCycleTypeEnum;
29666
30769
  exports.MOCK_STATEMENT_ASSET_SIGNED_URL_PDF = MOCK_STATEMENT_ASSET_SIGNED_URL_PDF;
29667
30770
  exports.MOCK_USER = MOCK_USER;
29668
30771
  exports.toDateType = toDateType;
@@ -29670,6 +30773,14 @@ exports.formatDateForApi = formatDateForApi;
29670
30773
  exports.generateStatementsDateQueries = generateStatementsDateQueries;
29671
30774
  exports.handleGetStatements = handleGetStatements;
29672
30775
  exports.handleGetStatementAsset = handleGetStatementAsset;
30776
+ exports.MockStatementsRepository = MockStatementsRepository;
30777
+ exports.ITF_STATEMENTS = ITF_STATEMENTS;
30778
+ exports.ITF_STATEMENT_ASSET = ITF_STATEMENT_ASSET;
30779
+ exports.getStatements = getStatements;
30780
+ exports.getStatementAsset = getStatementAsset;
30781
+ exports.getUserAccountStatementsV2 = getUserAccountStatementsV2;
30782
+ exports.getUserAccountsStatementDownloadV2 = getUserAccountsStatementDownloadV2;
30783
+ exports.statementsIOCModule = statementsIOCModule;
29673
30784
  exports.mswStatementsHandlers = mswStatementsHandlers;
29674
30785
  exports.DEFAULT_THEME = DEFAULT_THEME;
29675
30786
  exports.getActiveTheme = getActiveTheme;
@@ -29694,6 +30805,7 @@ exports.ITF_TRANSACTIONS = ITF_TRANSACTIONS;
29694
30805
  exports.getTransactions = getTransactions;
29695
30806
  exports.getTransactionDetails = getTransactionDetails;
29696
30807
  exports.getUserTransactionsV2 = getUserTransactionsV2;
30808
+ exports.getTransactionByToken = getTransactionByToken;
29697
30809
  exports.TransactionDetailIconTypeEnum = TransactionDetailIconTypeEnum;
29698
30810
  exports.Direction = Direction;
29699
30811
  exports.transactionsIOCModule = transactionsIOCModule;