@marqeta/ux-toolkit-sdk-javascript 2.0.0 → 2.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -579,6 +579,24 @@ __export(src_exports, {
579
579
  CleanupOnUnload: function() {
580
580
  return CleanupOnUnload;
581
581
  },
582
+ ConsentAction: function() {
583
+ return ConsentAction;
584
+ },
585
+ ConsentPaymentScope: function() {
586
+ return ConsentPaymentScope;
587
+ },
588
+ ConsentPaymentType: function() {
589
+ return ConsentPaymentType;
590
+ },
591
+ ConsentPermissionType: function() {
592
+ return ConsentPermissionType;
593
+ },
594
+ ConsentScope: function() {
595
+ return ConsentScope;
596
+ },
597
+ ConsentStatus: function() {
598
+ return ConsentStatus;
599
+ },
582
600
  CreateUserRequestIdentificationsInnerTypeEnum: function() {
583
601
  return CreateUserRequestIdentificationsInnerTypeEnum;
584
602
  },
@@ -1107,6 +1125,9 @@ __export(src_exports, {
1107
1125
  RetrieveDocumentForDispute: function() {
1108
1126
  return RetrieveDocumentForDispute;
1109
1127
  },
1128
+ RevokeConsentStatus: function() {
1129
+ return RevokeConsentStatus;
1130
+ },
1110
1131
  SESSION_TTL: function() {
1111
1132
  return SESSION_TTL;
1112
1133
  },
@@ -1413,6 +1434,12 @@ __export(src_exports, {
1413
1434
  getClientId: function() {
1414
1435
  return getClientId;
1415
1436
  },
1437
+ getConsentById: function() {
1438
+ return getConsentById;
1439
+ },
1440
+ getConsents: function() {
1441
+ return getConsents;
1442
+ },
1416
1443
  getExternalAccount: function() {
1417
1444
  return getExternalAccount;
1418
1445
  },
@@ -1443,6 +1470,12 @@ __export(src_exports, {
1443
1470
  getSsoAccessTokenHandler: function() {
1444
1471
  return getSsoAccessTokenHandler;
1445
1472
  },
1473
+ getTransferByToken: function() {
1474
+ return getTransferByToken;
1475
+ },
1476
+ getTransfers: function() {
1477
+ return getTransfers;
1478
+ },
1446
1479
  getUserProgram: function() {
1447
1480
  return getUserProgram;
1448
1481
  },
@@ -1695,6 +1728,9 @@ __export(src_exports, {
1695
1728
  replaceWlaCard: function() {
1696
1729
  return replaceWlaCard;
1697
1730
  },
1731
+ revokeConsent: function() {
1732
+ return revokeConsent;
1733
+ },
1698
1734
  sandbox: function() {
1699
1735
  return sandbox_exports;
1700
1736
  },
@@ -1743,6 +1779,9 @@ __export(src_exports, {
1743
1779
  transactionsIOCModule: function() {
1744
1780
  return transactionsIOCModule;
1745
1781
  },
1782
+ updateConsentStatus: function() {
1783
+ return updateConsentStatus;
1784
+ },
1746
1785
  updateExternalAccount: function() {
1747
1786
  return updateExternalAccount;
1748
1787
  },
@@ -19199,6 +19238,63 @@ var TransactionDirection;
19199
19238
  TransactionDirection2["In"] = "IN";
19200
19239
  TransactionDirection2["Out"] = "OUT";
19201
19240
  })(TransactionDirection || (TransactionDirection = {}));
19241
+ // src/wla/base/types/AtmSearch.ts
19242
+ var AtmLocationAccessFeesEnum;
19243
+ (function(AtmLocationAccessFeesEnum2) {
19244
+ AtmLocationAccessFeesEnum2["Unknown"] = "UNKNOWN";
19245
+ AtmLocationAccessFeesEnum2["Domestic"] = "DOMESTIC";
19246
+ AtmLocationAccessFeesEnum2["International"] = "INTERNATIONAL";
19247
+ AtmLocationAccessFeesEnum2["DomesticAndInternational"] = "DOMESTIC_AND_INTERNATIONAL";
19248
+ AtmLocationAccessFeesEnum2["NoFee"] = "NO_FEE";
19249
+ })(AtmLocationAccessFeesEnum || (AtmLocationAccessFeesEnum = {}));
19250
+ var AtmLocationAvailabilityEnum;
19251
+ (function(AtmLocationAvailabilityEnum2) {
19252
+ AtmLocationAvailabilityEnum2["Unknown"] = "UNKNOWN";
19253
+ AtmLocationAvailabilityEnum2["AlwaysAvailable"] = "ALWAYS_AVAILABLE";
19254
+ AtmLocationAvailabilityEnum2["BusinessHours"] = "BUSINESS_HOURS";
19255
+ AtmLocationAvailabilityEnum2["IrregularHours"] = "IRREGULAR_HOURS";
19256
+ })(AtmLocationAvailabilityEnum || (AtmLocationAvailabilityEnum = {}));
19257
+ var AtmLocationDistanceUnitEnum;
19258
+ (function(AtmLocationDistanceUnitEnum2) {
19259
+ AtmLocationDistanceUnitEnum2["Km"] = "KM";
19260
+ AtmLocationDistanceUnitEnum2["Mile"] = "MILE";
19261
+ })(AtmLocationDistanceUnitEnum || (AtmLocationDistanceUnitEnum = {}));
19262
+ var AtmLocationHandicapAccessibleEnum;
19263
+ (function(AtmLocationHandicapAccessibleEnum2) {
19264
+ AtmLocationHandicapAccessibleEnum2["Unknown"] = "UNKNOWN";
19265
+ AtmLocationHandicapAccessibleEnum2["IsHandicapAccessible"] = "IS_HANDICAP_ACCESSIBLE";
19266
+ AtmLocationHandicapAccessibleEnum2["NotHandicapAccessible"] = "NOT_HANDICAP_ACCESSIBLE";
19267
+ })(AtmLocationHandicapAccessibleEnum || (AtmLocationHandicapAccessibleEnum = {}));
19268
+ var AtmLocationHasSharedDepositEnum;
19269
+ (function(AtmLocationHasSharedDepositEnum2) {
19270
+ AtmLocationHasSharedDepositEnum2["True"] = "true";
19271
+ AtmLocationHasSharedDepositEnum2["False"] = "false";
19272
+ })(AtmLocationHasSharedDepositEnum || (AtmLocationHasSharedDepositEnum = {}));
19273
+ var AtmLocationIsSurchargeFreeAllianceEnum;
19274
+ (function(AtmLocationIsSurchargeFreeAllianceEnum2) {
19275
+ AtmLocationIsSurchargeFreeAllianceEnum2["True"] = "true";
19276
+ AtmLocationIsSurchargeFreeAllianceEnum2["False"] = "false";
19277
+ })(AtmLocationIsSurchargeFreeAllianceEnum || (AtmLocationIsSurchargeFreeAllianceEnum = {}));
19278
+ var AtmLocationLocationTypeEnum;
19279
+ (function(AtmLocationLocationTypeEnum2) {
19280
+ AtmLocationLocationTypeEnum2["Other"] = "OTHER";
19281
+ AtmLocationLocationTypeEnum2["Airport"] = "AIRPORT";
19282
+ AtmLocationLocationTypeEnum2["Hospital"] = "HOSPITAL";
19283
+ AtmLocationLocationTypeEnum2["FinancialInstitution"] = "FINANCIAL_INSTITUTION";
19284
+ })(AtmLocationLocationTypeEnum || (AtmLocationLocationTypeEnum = {}));
19285
+ var AtmLocationSupportsContactLessEnum;
19286
+ (function(AtmLocationSupportsContactLessEnum2) {
19287
+ AtmLocationSupportsContactLessEnum2["SupportsContactless"] = "SUPPORTS_CONTACTLESS";
19288
+ AtmLocationSupportsContactLessEnum2["DoesNotSupportContactless"] = "DOES_NOT_SUPPORT_CONTACTLESS";
19289
+ AtmLocationSupportsContactLessEnum2["Unknown"] = "UNKNOWN";
19290
+ })(AtmLocationSupportsContactLessEnum || (AtmLocationSupportsContactLessEnum = {}));
19291
+ var AtmLocationSurchargeFreeAllianceNetworkEnum;
19292
+ (function(AtmLocationSurchargeFreeAllianceNetworkEnum2) {
19293
+ AtmLocationSurchargeFreeAllianceNetworkEnum2["DoesNotParticipateInSfa"] = "DOES_NOT_PARTICIPATE_IN_SFA";
19294
+ AtmLocationSurchargeFreeAllianceNetworkEnum2["AllpointPrepaid"] = "ALLPOINT_PREPAID";
19295
+ AtmLocationSurchargeFreeAllianceNetworkEnum2["MoneypassDebit"] = "MONEYPASS_DEBIT";
19296
+ AtmLocationSurchargeFreeAllianceNetworkEnum2["AllSurchargeFree"] = "ALL_SURCHARGE_FREE";
19297
+ })(AtmLocationSurchargeFreeAllianceNetworkEnum || (AtmLocationSurchargeFreeAllianceNetworkEnum = {}));
19202
19298
  // src/wla/base/types/BookTransferResponse.ts
19203
19299
  var BookTransferResponseStatusEnum;
19204
19300
  (function(BookTransferResponseStatusEnum2) {
@@ -19230,6 +19326,30 @@ var ShippingMethodEnum;
19230
19326
  ShippingMethodEnum2["USPS_EXPEDITED"] = "USPS_EXPEDITED";
19231
19327
  ShippingMethodEnum2["USPS_REGULAR"] = "USPS_REGULAR";
19232
19328
  })(ShippingMethodEnum || (ShippingMethodEnum = {}));
19329
+ // src/wla/base/types/ConsentResponse.ts
19330
+ var ConsentStatus;
19331
+ (function(ConsentStatus2) {
19332
+ ConsentStatus2["AUTHORISED"] = "authorised";
19333
+ ConsentStatus2["REJECTED"] = "rejected";
19334
+ ConsentStatus2["AWAITING_AUTHORISATION"] = "awaiting-authorisation";
19335
+ ConsentStatus2["REVOKED"] = "revoked";
19336
+ ConsentStatus2["CONSUMED"] = "consumed";
19337
+ })(ConsentStatus || (ConsentStatus = {}));
19338
+ var ConsentScope;
19339
+ (function(ConsentScope2) {
19340
+ ConsentScope2["ACCOUNTS"] = "accounts";
19341
+ ConsentScope2["PAYMENTS"] = "payments";
19342
+ })(ConsentScope || (ConsentScope = {}));
19343
+ var ConsentPaymentScope;
19344
+ (function(ConsentPaymentScope2) {
19345
+ ConsentPaymentScope2["DOMESTIC"] = "domestic";
19346
+ ConsentPaymentScope2["INTERNATIONAL"] = "international";
19347
+ })(ConsentPaymentScope || (ConsentPaymentScope = {}));
19348
+ var ConsentPaymentType;
19349
+ (function(ConsentPaymentType2) {
19350
+ ConsentPaymentType2["STANDARD"] = "standard";
19351
+ ConsentPaymentType2["SCHEDULED"] = "scheduled";
19352
+ })(ConsentPaymentType || (ConsentPaymentType = {}));
19233
19353
  // src/wla/base/types/ExternalAccountListRequest.ts
19234
19354
  var ExternalAccountStatus;
19235
19355
  (function(ExternalAccountStatus3) {
@@ -19304,6 +19424,27 @@ var PushRegistrationRequestDevicePlatformEnum;
19304
19424
  PushRegistrationRequestDevicePlatformEnum2["IOS"] = "IOS";
19305
19425
  PushRegistrationRequestDevicePlatformEnum2["ANDROID"] = "ANDROID";
19306
19426
  })(PushRegistrationRequestDevicePlatformEnum || (PushRegistrationRequestDevicePlatformEnum = {}));
19427
+ // src/wla/base/types/ReplaceCard.ts
19428
+ var ReplaceCardRequestReasonEnum;
19429
+ (function(ReplaceCardRequestReasonEnum2) {
19430
+ ReplaceCardRequestReasonEnum2["Lost"] = "LOST";
19431
+ ReplaceCardRequestReasonEnum2["Stolen"] = "STOLEN";
19432
+ ReplaceCardRequestReasonEnum2["Damaged"] = "DAMAGED";
19433
+ })(ReplaceCardRequestReasonEnum || (ReplaceCardRequestReasonEnum = {}));
19434
+ // src/wla/base/types/RevokeConsentResponse.ts
19435
+ var RevokeConsentStatus;
19436
+ (function(RevokeConsentStatus2) {
19437
+ RevokeConsentStatus2["AUTHORISED"] = "authorised";
19438
+ RevokeConsentStatus2["REJECTED"] = "rejected";
19439
+ RevokeConsentStatus2["AWAITING_AUTHORISATION"] = "awaiting-authorisation";
19440
+ RevokeConsentStatus2["REVOKED"] = "revoked";
19441
+ RevokeConsentStatus2["CONSUMED"] = "consumed";
19442
+ })(RevokeConsentStatus || (RevokeConsentStatus = {}));
19443
+ var ConsentPermissionType;
19444
+ (function(ConsentPermissionType2) {
19445
+ ConsentPermissionType2["GB"] = "GB";
19446
+ ConsentPermissionType2["EU"] = "EU";
19447
+ })(ConsentPermissionType || (ConsentPermissionType = {}));
19307
19448
  // src/wla/base/types/TransactionListResponse.ts
19308
19449
  var TransactionStatus;
19309
19450
  (function(TransactionStatus2) {
@@ -19350,6 +19491,13 @@ var TransactionDetailResponseIconTypeEnum;
19350
19491
  TransactionDetailResponseIconTypeEnum2["MoneyIn"] = "MONEY_IN";
19351
19492
  TransactionDetailResponseIconTypeEnum2["MoneyOut"] = "MONEY_OUT";
19352
19493
  })(TransactionDetailResponseIconTypeEnum || (TransactionDetailResponseIconTypeEnum = {}));
19494
+ // src/wla/base/types/UpdateConsentStatusRequest.ts
19495
+ var ConsentAction;
19496
+ (function(ConsentAction2) {
19497
+ ConsentAction2["APPROVE"] = "approve";
19498
+ ConsentAction2["REVOKE"] = "revoke";
19499
+ ConsentAction2["REJECT"] = "reject";
19500
+ })(ConsentAction || (ConsentAction = {}));
19353
19501
  // src/wla/base/types/UserResponse.ts
19354
19502
  var LoyaltyTier;
19355
19503
  (function(LoyaltyTier2) {
@@ -19372,70 +19520,6 @@ var WlaUserStatus;
19372
19520
  WlaUserStatus2["SUSPENDED"] = "SUSPENDED";
19373
19521
  WlaUserStatus2["TERMINATED"] = "TERMINATED";
19374
19522
  })(WlaUserStatus || (WlaUserStatus = {}));
19375
- // src/wla/base/types/AtmSearch.ts
19376
- var AtmLocationAccessFeesEnum;
19377
- (function(AtmLocationAccessFeesEnum2) {
19378
- AtmLocationAccessFeesEnum2["Unknown"] = "UNKNOWN";
19379
- AtmLocationAccessFeesEnum2["Domestic"] = "DOMESTIC";
19380
- AtmLocationAccessFeesEnum2["International"] = "INTERNATIONAL";
19381
- AtmLocationAccessFeesEnum2["DomesticAndInternational"] = "DOMESTIC_AND_INTERNATIONAL";
19382
- AtmLocationAccessFeesEnum2["NoFee"] = "NO_FEE";
19383
- })(AtmLocationAccessFeesEnum || (AtmLocationAccessFeesEnum = {}));
19384
- var AtmLocationAvailabilityEnum;
19385
- (function(AtmLocationAvailabilityEnum2) {
19386
- AtmLocationAvailabilityEnum2["Unknown"] = "UNKNOWN";
19387
- AtmLocationAvailabilityEnum2["AlwaysAvailable"] = "ALWAYS_AVAILABLE";
19388
- AtmLocationAvailabilityEnum2["BusinessHours"] = "BUSINESS_HOURS";
19389
- AtmLocationAvailabilityEnum2["IrregularHours"] = "IRREGULAR_HOURS";
19390
- })(AtmLocationAvailabilityEnum || (AtmLocationAvailabilityEnum = {}));
19391
- var AtmLocationDistanceUnitEnum;
19392
- (function(AtmLocationDistanceUnitEnum2) {
19393
- AtmLocationDistanceUnitEnum2["Km"] = "KM";
19394
- AtmLocationDistanceUnitEnum2["Mile"] = "MILE";
19395
- })(AtmLocationDistanceUnitEnum || (AtmLocationDistanceUnitEnum = {}));
19396
- var AtmLocationHandicapAccessibleEnum;
19397
- (function(AtmLocationHandicapAccessibleEnum2) {
19398
- AtmLocationHandicapAccessibleEnum2["Unknown"] = "UNKNOWN";
19399
- AtmLocationHandicapAccessibleEnum2["IsHandicapAccessible"] = "IS_HANDICAP_ACCESSIBLE";
19400
- AtmLocationHandicapAccessibleEnum2["NotHandicapAccessible"] = "NOT_HANDICAP_ACCESSIBLE";
19401
- })(AtmLocationHandicapAccessibleEnum || (AtmLocationHandicapAccessibleEnum = {}));
19402
- var AtmLocationHasSharedDepositEnum;
19403
- (function(AtmLocationHasSharedDepositEnum2) {
19404
- AtmLocationHasSharedDepositEnum2["True"] = "true";
19405
- AtmLocationHasSharedDepositEnum2["False"] = "false";
19406
- })(AtmLocationHasSharedDepositEnum || (AtmLocationHasSharedDepositEnum = {}));
19407
- var AtmLocationIsSurchargeFreeAllianceEnum;
19408
- (function(AtmLocationIsSurchargeFreeAllianceEnum2) {
19409
- AtmLocationIsSurchargeFreeAllianceEnum2["True"] = "true";
19410
- AtmLocationIsSurchargeFreeAllianceEnum2["False"] = "false";
19411
- })(AtmLocationIsSurchargeFreeAllianceEnum || (AtmLocationIsSurchargeFreeAllianceEnum = {}));
19412
- var AtmLocationLocationTypeEnum;
19413
- (function(AtmLocationLocationTypeEnum2) {
19414
- AtmLocationLocationTypeEnum2["Other"] = "OTHER";
19415
- AtmLocationLocationTypeEnum2["Airport"] = "AIRPORT";
19416
- AtmLocationLocationTypeEnum2["Hospital"] = "HOSPITAL";
19417
- AtmLocationLocationTypeEnum2["FinancialInstitution"] = "FINANCIAL_INSTITUTION";
19418
- })(AtmLocationLocationTypeEnum || (AtmLocationLocationTypeEnum = {}));
19419
- var AtmLocationSupportsContactLessEnum;
19420
- (function(AtmLocationSupportsContactLessEnum2) {
19421
- AtmLocationSupportsContactLessEnum2["SupportsContactless"] = "SUPPORTS_CONTACTLESS";
19422
- AtmLocationSupportsContactLessEnum2["DoesNotSupportContactless"] = "DOES_NOT_SUPPORT_CONTACTLESS";
19423
- AtmLocationSupportsContactLessEnum2["Unknown"] = "UNKNOWN";
19424
- })(AtmLocationSupportsContactLessEnum || (AtmLocationSupportsContactLessEnum = {}));
19425
- var AtmLocationSurchargeFreeAllianceNetworkEnum;
19426
- (function(AtmLocationSurchargeFreeAllianceNetworkEnum2) {
19427
- AtmLocationSurchargeFreeAllianceNetworkEnum2["DoesNotParticipateInSfa"] = "DOES_NOT_PARTICIPATE_IN_SFA";
19428
- AtmLocationSurchargeFreeAllianceNetworkEnum2["AllpointPrepaid"] = "ALLPOINT_PREPAID";
19429
- AtmLocationSurchargeFreeAllianceNetworkEnum2["MoneypassDebit"] = "MONEYPASS_DEBIT";
19430
- AtmLocationSurchargeFreeAllianceNetworkEnum2["AllSurchargeFree"] = "ALL_SURCHARGE_FREE";
19431
- })(AtmLocationSurchargeFreeAllianceNetworkEnum || (AtmLocationSurchargeFreeAllianceNetworkEnum = {}));
19432
- // src/wla/base/types/ReplaceCard.ts
19433
- var ReplaceCardRequestReasonEnum;
19434
- (function(ReplaceCardRequestReasonEnum2) {
19435
- ReplaceCardRequestReasonEnum2["Lost"] = "LOST";
19436
- ReplaceCardRequestReasonEnum2["Stolen"] = "STOLEN";
19437
- ReplaceCardRequestReasonEnum2["Damaged"] = "DAMAGED";
19438
- })(ReplaceCardRequestReasonEnum || (ReplaceCardRequestReasonEnum = {}));
19439
19523
  // src/wla/adapters/RestWlaService.ts
19440
19524
  function _ts_decorate104(decorators, target, key, desc) {
19441
19525
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
@@ -20644,86 +20728,344 @@ var _RestWlaService = /*#__PURE__*/ function() {
20644
20728
  });
20645
20729
  })();
20646
20730
  }
20647
- }
20648
- ]);
20649
- return _RestWlaService;
20650
- }();
20651
- __name(_RestWlaService, "RestWlaService");
20652
- var RestWlaService = _RestWlaService;
20653
- _ts_decorate104([
20654
- (0, import_inversify133.inject)(ITF_CACHE_SERVICE),
20655
- _ts_metadata61("design:type", typeof iCacheService === "undefined" ? Object : iCacheService)
20656
- ], RestWlaService.prototype, "cacheService", void 0);
20657
- _ts_decorate104([
20658
- (0, import_inversify133.inject)(ITF_AUTHENTICATED_HTTP_CLIENT),
20659
- _ts_metadata61("design:type", typeof iAuthenticatedHttpClient === "undefined" ? Object : iAuthenticatedHttpClient)
20660
- ], RestWlaService.prototype, "httpClient", void 0);
20661
- _ts_decorate104([
20662
- (0, import_inversify133.inject)(INTR_GET_ENV_CONFIG_VALUE_BY_NAME),
20663
- _ts_metadata61("design:type", typeof GetEnvConfigValueByName === "undefined" ? Object : GetEnvConfigValueByName)
20664
- ], RestWlaService.prototype, "getEnvConfigValueByName", void 0);
20665
- RestWlaService = _ts_decorate104([
20666
- (0, import_inversify133.injectable)()
20667
- ], RestWlaService);
20668
- // src/wla/ioc/symbols.ts
20669
- var ITF_WLA_SERVICE = Symbol.for("iWlaService");
20670
- function bookTransfer(payload) {
20671
- return _bookTransfer.apply(this, arguments);
20672
- }
20673
- function _bookTransfer() {
20674
- _bookTransfer = // src/wla/base/interactors/bookTransfer.ts
20675
- _async_to_generator(function(payload) {
20676
- var container2, wlaService, error2;
20677
- return _ts_generator(this, function(_state) {
20678
- switch(_state.label){
20679
- case 0:
20680
- _state.trys.push([
20681
- 0,
20682
- 2,
20683
- ,
20684
- 3
20685
- ]);
20686
- container2 = getActiveIocContainer();
20687
- wlaService = container2.get(ITF_WLA_SERVICE);
20688
- return [
20689
- 4,
20690
- wlaService.bookTransfer(payload)
20691
- ];
20692
- case 1:
20693
- return [
20694
- 2,
20695
- _state.sent()
20696
- ];
20697
- case 2:
20698
- error2 = _state.sent();
20699
- throw new MqSDKError("Unable to book transfer");
20700
- case 3:
20701
- return [
20702
- 2
20703
- ];
20731
+ },
20732
+ {
20733
+ key: "getConsentById",
20734
+ value: function getConsentById(id) {
20735
+ var country_code = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "GB";
20736
+ var _this = this;
20737
+ return _async_to_generator(function() {
20738
+ var cuiApiBaseUrl, path, params, error2;
20739
+ return _ts_generator(this, function(_state) {
20740
+ switch(_state.label){
20741
+ case 0:
20742
+ _state.trys.push([
20743
+ 0,
20744
+ 2,
20745
+ ,
20746
+ 3
20747
+ ]);
20748
+ cuiApiBaseUrl = _this.getEnvConfigValueByName.execute("CUI_API_BASE_URL");
20749
+ path = "".concat(cuiApiBaseUrl, "/api/v1/wla/open-banking/").concat(country_code, "/consents/").concat(id);
20750
+ params = {
20751
+ headers: _this.getCommonWlaApiHeaders()
20752
+ };
20753
+ return [
20754
+ 4,
20755
+ _this.httpClient.get(path, params)
20756
+ ];
20757
+ case 1:
20758
+ return [
20759
+ 2,
20760
+ _state.sent()
20761
+ ];
20762
+ case 2:
20763
+ error2 = _state.sent();
20764
+ throw new MqSDKError("Unable to get consent for the id provided", error2);
20765
+ case 3:
20766
+ return [
20767
+ 2
20768
+ ];
20769
+ }
20770
+ });
20771
+ })();
20704
20772
  }
20705
- });
20706
- });
20707
- return _bookTransfer.apply(this, arguments);
20708
- }
20709
- __name(bookTransfer, "bookTransfer");
20710
- function createOriginationTransfer(payload) {
20711
- return _createOriginationTransfer.apply(this, arguments);
20712
- }
20713
- function _createOriginationTransfer() {
20714
- _createOriginationTransfer = // src/wla/base/interactors/createOriginationTransfer.ts
20715
- _async_to_generator(function(payload) {
20716
- var container2, wlaService;
20717
- return _ts_generator(this, function(_state) {
20718
- switch(_state.label){
20719
- case 0:
20720
- container2 = getActiveIocContainer();
20721
- wlaService = container2.get(ITF_WLA_SERVICE);
20722
- return [
20723
- 4,
20724
- wlaService.createOriginationTransfer(payload)
20725
- ];
20726
- case 1:
20773
+ },
20774
+ {
20775
+ key: "getTransferByToken",
20776
+ value: function getTransferByToken(token) {
20777
+ var country_code = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "GB";
20778
+ var _this = this;
20779
+ return _async_to_generator(function() {
20780
+ var cuiApiBaseUrl, path, params, error2;
20781
+ return _ts_generator(this, function(_state) {
20782
+ switch(_state.label){
20783
+ case 0:
20784
+ _state.trys.push([
20785
+ 0,
20786
+ 2,
20787
+ ,
20788
+ 3
20789
+ ]);
20790
+ cuiApiBaseUrl = _this.getEnvConfigValueByName.execute("CUI_API_BASE_URL");
20791
+ path = "".concat(cuiApiBaseUrl, "/api/v1/wla/open-banking/").concat(country_code, "/transfers/").concat(token);
20792
+ params = {
20793
+ headers: _this.getCommonWlaApiHeaders()
20794
+ };
20795
+ return [
20796
+ 4,
20797
+ _this.httpClient.get(path, params)
20798
+ ];
20799
+ case 1:
20800
+ return [
20801
+ 2,
20802
+ _state.sent()
20803
+ ];
20804
+ case 2:
20805
+ error2 = _state.sent();
20806
+ throw new MqSDKError("Unable to get transfer for the token provided", error2);
20807
+ case 3:
20808
+ return [
20809
+ 2
20810
+ ];
20811
+ }
20812
+ });
20813
+ })();
20814
+ }
20815
+ },
20816
+ {
20817
+ key: "getConsents",
20818
+ value: function getConsents() {
20819
+ var country_code = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "GB";
20820
+ var _this = this;
20821
+ return _async_to_generator(function() {
20822
+ var cuiApiBaseUrl, path, params, error2;
20823
+ return _ts_generator(this, function(_state) {
20824
+ switch(_state.label){
20825
+ case 0:
20826
+ _state.trys.push([
20827
+ 0,
20828
+ 2,
20829
+ ,
20830
+ 3
20831
+ ]);
20832
+ cuiApiBaseUrl = _this.getEnvConfigValueByName.execute("CUI_API_BASE_URL");
20833
+ path = "".concat(cuiApiBaseUrl, "/api/v1/wla/open-banking/").concat(country_code, "/consents");
20834
+ params = {
20835
+ headers: _this.getCommonWlaApiHeaders()
20836
+ };
20837
+ return [
20838
+ 4,
20839
+ _this.httpClient.get(path, params)
20840
+ ];
20841
+ case 1:
20842
+ return [
20843
+ 2,
20844
+ _state.sent()
20845
+ ];
20846
+ case 2:
20847
+ error2 = _state.sent();
20848
+ throw new MqSDKError("Unable to get consents", error2);
20849
+ case 3:
20850
+ return [
20851
+ 2
20852
+ ];
20853
+ }
20854
+ });
20855
+ })();
20856
+ }
20857
+ },
20858
+ {
20859
+ key: "getTransfers",
20860
+ value: function getTransfers() {
20861
+ var country_code = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "GB";
20862
+ var _this = this;
20863
+ return _async_to_generator(function() {
20864
+ var cuiApiBaseUrl, path, params, error2;
20865
+ return _ts_generator(this, function(_state) {
20866
+ switch(_state.label){
20867
+ case 0:
20868
+ _state.trys.push([
20869
+ 0,
20870
+ 2,
20871
+ ,
20872
+ 3
20873
+ ]);
20874
+ cuiApiBaseUrl = _this.getEnvConfigValueByName.execute("CUI_API_BASE_URL");
20875
+ path = "".concat(cuiApiBaseUrl, "/api/v1/wla/open-banking/").concat(country_code, "/transfers");
20876
+ params = {
20877
+ headers: _this.getCommonWlaApiHeaders()
20878
+ };
20879
+ return [
20880
+ 4,
20881
+ _this.httpClient.get(path, params)
20882
+ ];
20883
+ case 1:
20884
+ return [
20885
+ 2,
20886
+ _state.sent()
20887
+ ];
20888
+ case 2:
20889
+ error2 = _state.sent();
20890
+ throw new MqSDKError("Unable to get transfers", error2);
20891
+ case 3:
20892
+ return [
20893
+ 2
20894
+ ];
20895
+ }
20896
+ });
20897
+ })();
20898
+ }
20899
+ },
20900
+ {
20901
+ key: "updateConsentStatus",
20902
+ value: function updateConsentStatus(id) {
20903
+ var country_code = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "GB", requestBody = arguments.length > 2 ? arguments[2] : void 0;
20904
+ var _this = this;
20905
+ return _async_to_generator(function() {
20906
+ var cuiApiBaseUrl, params, path, data, error2;
20907
+ return _ts_generator(this, function(_state) {
20908
+ switch(_state.label){
20909
+ case 0:
20910
+ _state.trys.push([
20911
+ 0,
20912
+ 2,
20913
+ ,
20914
+ 3
20915
+ ]);
20916
+ cuiApiBaseUrl = _this.getEnvConfigValueByName.execute("CUI_API_BASE_URL");
20917
+ params = {
20918
+ method: "PATCH",
20919
+ headers: _this.getCommonWlaApiHeaders(),
20920
+ body: JSON.stringify(requestBody)
20921
+ };
20922
+ path = "".concat(cuiApiBaseUrl, "/api/v1/wla/open-banking/").concat(country_code, "/consents/").concat(id);
20923
+ return [
20924
+ 4,
20925
+ _this.httpClient.post(path, params)
20926
+ ];
20927
+ case 1:
20928
+ data = _state.sent();
20929
+ return [
20930
+ 2,
20931
+ data
20932
+ ];
20933
+ case 2:
20934
+ error2 = _state.sent();
20935
+ throw new MqSDKError("Unable to update consent status", error2);
20936
+ case 3:
20937
+ return [
20938
+ 2
20939
+ ];
20940
+ }
20941
+ });
20942
+ })();
20943
+ }
20944
+ },
20945
+ {
20946
+ key: "revokeConsent",
20947
+ value: function revokeConsent(id) {
20948
+ var country_code = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "GB", requestBody = arguments.length > 2 ? arguments[2] : void 0;
20949
+ var _this = this;
20950
+ return _async_to_generator(function() {
20951
+ var cuiApiBaseUrl, params, path, data, error2;
20952
+ return _ts_generator(this, function(_state) {
20953
+ switch(_state.label){
20954
+ case 0:
20955
+ _state.trys.push([
20956
+ 0,
20957
+ 2,
20958
+ ,
20959
+ 3
20960
+ ]);
20961
+ cuiApiBaseUrl = _this.getEnvConfigValueByName.execute("CUI_API_BASE_URL");
20962
+ params = {
20963
+ method: "PATCH",
20964
+ headers: _this.getCommonWlaApiHeaders(),
20965
+ body: JSON.stringify(requestBody)
20966
+ };
20967
+ path = "".concat(cuiApiBaseUrl, "/api/v1/wla/open-banking/").concat(country_code, "/consents/revoke/").concat(id);
20968
+ return [
20969
+ 4,
20970
+ _this.httpClient.post(path, params)
20971
+ ];
20972
+ case 1:
20973
+ data = _state.sent();
20974
+ return [
20975
+ 2,
20976
+ data
20977
+ ];
20978
+ case 2:
20979
+ error2 = _state.sent();
20980
+ throw new MqSDKError("Unable to revoke consent status", error2);
20981
+ case 3:
20982
+ return [
20983
+ 2
20984
+ ];
20985
+ }
20986
+ });
20987
+ })();
20988
+ }
20989
+ }
20990
+ ]);
20991
+ return _RestWlaService;
20992
+ }();
20993
+ __name(_RestWlaService, "RestWlaService");
20994
+ var RestWlaService = _RestWlaService;
20995
+ _ts_decorate104([
20996
+ (0, import_inversify133.inject)(ITF_CACHE_SERVICE),
20997
+ _ts_metadata61("design:type", typeof iCacheService === "undefined" ? Object : iCacheService)
20998
+ ], RestWlaService.prototype, "cacheService", void 0);
20999
+ _ts_decorate104([
21000
+ (0, import_inversify133.inject)(ITF_AUTHENTICATED_HTTP_CLIENT),
21001
+ _ts_metadata61("design:type", typeof iAuthenticatedHttpClient === "undefined" ? Object : iAuthenticatedHttpClient)
21002
+ ], RestWlaService.prototype, "httpClient", void 0);
21003
+ _ts_decorate104([
21004
+ (0, import_inversify133.inject)(INTR_GET_ENV_CONFIG_VALUE_BY_NAME),
21005
+ _ts_metadata61("design:type", typeof GetEnvConfigValueByName === "undefined" ? Object : GetEnvConfigValueByName)
21006
+ ], RestWlaService.prototype, "getEnvConfigValueByName", void 0);
21007
+ RestWlaService = _ts_decorate104([
21008
+ (0, import_inversify133.injectable)()
21009
+ ], RestWlaService);
21010
+ // src/wla/ioc/symbols.ts
21011
+ var ITF_WLA_SERVICE = Symbol.for("iWlaService");
21012
+ function bookTransfer(payload) {
21013
+ return _bookTransfer.apply(this, arguments);
21014
+ }
21015
+ function _bookTransfer() {
21016
+ _bookTransfer = // src/wla/base/interactors/bookTransfer.ts
21017
+ _async_to_generator(function(payload) {
21018
+ var container2, wlaService, error2;
21019
+ return _ts_generator(this, function(_state) {
21020
+ switch(_state.label){
21021
+ case 0:
21022
+ _state.trys.push([
21023
+ 0,
21024
+ 2,
21025
+ ,
21026
+ 3
21027
+ ]);
21028
+ container2 = getActiveIocContainer();
21029
+ wlaService = container2.get(ITF_WLA_SERVICE);
21030
+ return [
21031
+ 4,
21032
+ wlaService.bookTransfer(payload)
21033
+ ];
21034
+ case 1:
21035
+ return [
21036
+ 2,
21037
+ _state.sent()
21038
+ ];
21039
+ case 2:
21040
+ error2 = _state.sent();
21041
+ throw new MqSDKError("Unable to book transfer");
21042
+ case 3:
21043
+ return [
21044
+ 2
21045
+ ];
21046
+ }
21047
+ });
21048
+ });
21049
+ return _bookTransfer.apply(this, arguments);
21050
+ }
21051
+ __name(bookTransfer, "bookTransfer");
21052
+ function createOriginationTransfer(payload) {
21053
+ return _createOriginationTransfer.apply(this, arguments);
21054
+ }
21055
+ function _createOriginationTransfer() {
21056
+ _createOriginationTransfer = // src/wla/base/interactors/createOriginationTransfer.ts
21057
+ _async_to_generator(function(payload) {
21058
+ var container2, wlaService;
21059
+ return _ts_generator(this, function(_state) {
21060
+ switch(_state.label){
21061
+ case 0:
21062
+ container2 = getActiveIocContainer();
21063
+ wlaService = container2.get(ITF_WLA_SERVICE);
21064
+ return [
21065
+ 4,
21066
+ wlaService.createOriginationTransfer(payload)
21067
+ ];
21068
+ case 1:
20727
21069
  return [
20728
21070
  2,
20729
21071
  _state.sent()
@@ -20847,6 +21189,64 @@ function _getAccountTransactions() {
20847
21189
  return _getAccountTransactions.apply(this, arguments);
20848
21190
  }
20849
21191
  __name(getAccountTransactions, "getAccountTransactions");
21192
+ function getConsentById(id) {
21193
+ return _getConsentById.apply(this, arguments);
21194
+ }
21195
+ function _getConsentById() {
21196
+ _getConsentById = // src/wla/base/interactors/getConsentById.ts
21197
+ _async_to_generator(function(id) {
21198
+ var country_code, container2, wlaService;
21199
+ var _arguments = arguments;
21200
+ return _ts_generator(this, function(_state) {
21201
+ switch(_state.label){
21202
+ case 0:
21203
+ country_code = _arguments.length > 1 && _arguments[1] !== void 0 ? _arguments[1] : "GB";
21204
+ container2 = getActiveIocContainer();
21205
+ wlaService = container2.get(ITF_WLA_SERVICE);
21206
+ return [
21207
+ 4,
21208
+ wlaService.getConsentById(id, country_code)
21209
+ ];
21210
+ case 1:
21211
+ return [
21212
+ 2,
21213
+ _state.sent()
21214
+ ];
21215
+ }
21216
+ });
21217
+ });
21218
+ return _getConsentById.apply(this, arguments);
21219
+ }
21220
+ __name(getConsentById, "getConsentById");
21221
+ function getConsents() {
21222
+ return _getConsents.apply(this, arguments);
21223
+ }
21224
+ function _getConsents() {
21225
+ _getConsents = // src/wla/base/interactors/getConsents.ts
21226
+ _async_to_generator(function() {
21227
+ var country_code, container2, wlaService;
21228
+ var _arguments = arguments;
21229
+ return _ts_generator(this, function(_state) {
21230
+ switch(_state.label){
21231
+ case 0:
21232
+ country_code = _arguments.length > 0 && _arguments[0] !== void 0 ? _arguments[0] : "GB";
21233
+ container2 = getActiveIocContainer();
21234
+ wlaService = container2.get(ITF_WLA_SERVICE);
21235
+ return [
21236
+ 4,
21237
+ wlaService.getConsents(country_code)
21238
+ ];
21239
+ case 1:
21240
+ return [
21241
+ 2,
21242
+ _state.sent()
21243
+ ];
21244
+ }
21245
+ });
21246
+ });
21247
+ return _getConsents.apply(this, arguments);
21248
+ }
21249
+ __name(getConsents, "getConsents");
20850
21250
  function getExternalAccount(token) {
20851
21251
  return _getExternalAccount.apply(this, arguments);
20852
21252
  }
@@ -20923,13 +21323,109 @@ function _getOffers() {
20923
21323
  wlaService = container2.get(ITF_WLA_SERVICE);
20924
21324
  return [
20925
21325
  2,
20926
- wlaService.getOffers()
21326
+ wlaService.getOffers()
21327
+ ];
21328
+ });
21329
+ });
21330
+ return _getOffers.apply(this, arguments);
21331
+ }
21332
+ __name(getOffers, "getOffers");
21333
+ function getOutagesByToken(outageToken, devicePlatform) {
21334
+ return _getOutagesByToken.apply(this, arguments);
21335
+ }
21336
+ function _getOutagesByToken() {
21337
+ _getOutagesByToken = // src/wla/base/interactors/getOutagesByToken.ts
21338
+ _async_to_generator(function(outageToken, devicePlatform) {
21339
+ var container2, wlaService;
21340
+ return _ts_generator(this, function(_state) {
21341
+ container2 = getActiveIocContainer();
21342
+ wlaService = container2.get(ITF_WLA_SERVICE);
21343
+ return [
21344
+ 2,
21345
+ wlaService.getOutageByToken(outageToken, devicePlatform)
21346
+ ];
21347
+ });
21348
+ });
21349
+ return _getOutagesByToken.apply(this, arguments);
21350
+ }
21351
+ __name(getOutagesByToken, "getOutagesByToken");
21352
+ function getOutagesList(devicePlatform) {
21353
+ return _getOutagesList.apply(this, arguments);
21354
+ }
21355
+ function _getOutagesList() {
21356
+ _getOutagesList = // src/wla/base/interactors/getOutagesList.ts
21357
+ _async_to_generator(function(devicePlatform) {
21358
+ var container2, wlaService;
21359
+ return _ts_generator(this, function(_state) {
21360
+ container2 = getActiveIocContainer();
21361
+ wlaService = container2.get(ITF_WLA_SERVICE);
21362
+ return [
21363
+ 2,
21364
+ wlaService.getOutagesList(devicePlatform)
20927
21365
  ];
20928
21366
  });
20929
21367
  });
20930
- return _getOffers.apply(this, arguments);
21368
+ return _getOutagesList.apply(this, arguments);
20931
21369
  }
20932
- __name(getOffers, "getOffers");
21370
+ __name(getOutagesList, "getOutagesList");
21371
+ function getTransferByToken(token) {
21372
+ return _getTransferByToken.apply(this, arguments);
21373
+ }
21374
+ function _getTransferByToken() {
21375
+ _getTransferByToken = // src/wla/base/interactors/getTransferByToken.ts
21376
+ _async_to_generator(function(token) {
21377
+ var country_code, container2, wlaService;
21378
+ var _arguments = arguments;
21379
+ return _ts_generator(this, function(_state) {
21380
+ switch(_state.label){
21381
+ case 0:
21382
+ country_code = _arguments.length > 1 && _arguments[1] !== void 0 ? _arguments[1] : "GB";
21383
+ container2 = getActiveIocContainer();
21384
+ wlaService = container2.get(ITF_WLA_SERVICE);
21385
+ return [
21386
+ 4,
21387
+ wlaService.getTransferByToken(token, country_code)
21388
+ ];
21389
+ case 1:
21390
+ return [
21391
+ 2,
21392
+ _state.sent()
21393
+ ];
21394
+ }
21395
+ });
21396
+ });
21397
+ return _getTransferByToken.apply(this, arguments);
21398
+ }
21399
+ __name(getTransferByToken, "getTransferByToken");
21400
+ function getTransfers() {
21401
+ return _getTransfers.apply(this, arguments);
21402
+ }
21403
+ function _getTransfers() {
21404
+ _getTransfers = // src/wla/base/interactors/getTransfers.ts
21405
+ _async_to_generator(function() {
21406
+ var country_code, container2, wlaService;
21407
+ var _arguments = arguments;
21408
+ return _ts_generator(this, function(_state) {
21409
+ switch(_state.label){
21410
+ case 0:
21411
+ country_code = _arguments.length > 0 && _arguments[0] !== void 0 ? _arguments[0] : "GB";
21412
+ container2 = getActiveIocContainer();
21413
+ wlaService = container2.get(ITF_WLA_SERVICE);
21414
+ return [
21415
+ 4,
21416
+ wlaService.getTransfers(country_code)
21417
+ ];
21418
+ case 1:
21419
+ return [
21420
+ 2,
21421
+ _state.sent()
21422
+ ];
21423
+ }
21424
+ });
21425
+ });
21426
+ return _getTransfers.apply(this, arguments);
21427
+ }
21428
+ __name(getTransfers, "getTransfers");
20933
21429
  function getWlaAccountDetails(accountToken, includeYtdInterest, includeInterestTiers) {
20934
21430
  return _getWlaAccountDetails.apply(this, arguments);
20935
21431
  }
@@ -21049,11 +21545,11 @@ function _getWlaUserProfile() {
21049
21545
  return _getWlaUserProfile.apply(this, arguments);
21050
21546
  }
21051
21547
  __name(getWlaUserProfile, "getWlaUserProfile");
21052
- function markAccountVerified() {
21053
- return _markAccountVerified.apply(this, arguments);
21548
+ function markAccountActivated() {
21549
+ return _markAccountActivated.apply(this, arguments);
21054
21550
  }
21055
- function _markAccountVerified() {
21056
- _markAccountVerified = // src/wla/base/interactors/markAccountVerified.ts
21551
+ function _markAccountActivated() {
21552
+ _markAccountActivated = // src/wla/base/interactors/markAccountActivated.ts
21057
21553
  _async_to_generator(function() {
21058
21554
  var container2, wlaService;
21059
21555
  return _ts_generator(this, function(_state) {
@@ -21063,7 +21559,7 @@ function _markAccountVerified() {
21063
21559
  wlaService = container2.get(ITF_WLA_SERVICE);
21064
21560
  return [
21065
21561
  4,
21066
- wlaService.markAccountVerified()
21562
+ wlaService.markAccountActivated()
21067
21563
  ];
21068
21564
  case 1:
21069
21565
  return [
@@ -21073,14 +21569,14 @@ function _markAccountVerified() {
21073
21569
  }
21074
21570
  });
21075
21571
  });
21076
- return _markAccountVerified.apply(this, arguments);
21077
- }
21078
- __name(markAccountVerified, "markAccountVerified");
21079
- function markAccountActivated() {
21080
21572
  return _markAccountActivated.apply(this, arguments);
21081
21573
  }
21082
- function _markAccountActivated() {
21083
- _markAccountActivated = // src/wla/base/interactors/markAccountActivated.ts
21574
+ __name(markAccountActivated, "markAccountActivated");
21575
+ function markAccountVerified() {
21576
+ return _markAccountVerified.apply(this, arguments);
21577
+ }
21578
+ function _markAccountVerified() {
21579
+ _markAccountVerified = // src/wla/base/interactors/markAccountVerified.ts
21084
21580
  _async_to_generator(function() {
21085
21581
  var container2, wlaService;
21086
21582
  return _ts_generator(this, function(_state) {
@@ -21090,7 +21586,7 @@ function _markAccountActivated() {
21090
21586
  wlaService = container2.get(ITF_WLA_SERVICE);
21091
21587
  return [
21092
21588
  4,
21093
- wlaService.markAccountActivated()
21589
+ wlaService.markAccountVerified()
21094
21590
  ];
21095
21591
  case 1:
21096
21592
  return [
@@ -21100,9 +21596,9 @@ function _markAccountActivated() {
21100
21596
  }
21101
21597
  });
21102
21598
  });
21103
- return _markAccountActivated.apply(this, arguments);
21599
+ return _markAccountVerified.apply(this, arguments);
21104
21600
  }
21105
- __name(markAccountActivated, "markAccountActivated");
21601
+ __name(markAccountVerified, "markAccountVerified");
21106
21602
  function registerDeviceForPushNotifications(requestBody) {
21107
21603
  return _registerDeviceForPushNotifications.apply(this, arguments);
21108
21604
  }
@@ -21130,6 +21626,89 @@ function _registerDeviceForPushNotifications() {
21130
21626
  return _registerDeviceForPushNotifications.apply(this, arguments);
21131
21627
  }
21132
21628
  __name(registerDeviceForPushNotifications, "registerDeviceForPushNotifications");
21629
+ function replaceWlaCard(requestBody) {
21630
+ return _replaceWlaCard.apply(this, arguments);
21631
+ }
21632
+ function _replaceWlaCard() {
21633
+ _replaceWlaCard = // src/wla/base/interactors/replaceWlaCard.ts
21634
+ _async_to_generator(function(requestBody) {
21635
+ var container2, wlaService;
21636
+ return _ts_generator(this, function(_state) {
21637
+ switch(_state.label){
21638
+ case 0:
21639
+ container2 = getActiveIocContainer();
21640
+ wlaService = container2.get(ITF_WLA_SERVICE);
21641
+ return [
21642
+ 4,
21643
+ wlaService.replaceCard(requestBody)
21644
+ ];
21645
+ case 1:
21646
+ return [
21647
+ 2,
21648
+ _state.sent()
21649
+ ];
21650
+ }
21651
+ });
21652
+ });
21653
+ return _replaceWlaCard.apply(this, arguments);
21654
+ }
21655
+ __name(replaceWlaCard, "replaceWlaCard");
21656
+ function revokeConsent(id) {
21657
+ return _revokeConsent.apply(this, arguments);
21658
+ }
21659
+ function _revokeConsent() {
21660
+ _revokeConsent = // src/wla/base/interactors/revokeConsent.ts
21661
+ _async_to_generator(function(id) {
21662
+ var country_code, requestBody, container2, wlaService;
21663
+ var _arguments = arguments;
21664
+ return _ts_generator(this, function(_state) {
21665
+ switch(_state.label){
21666
+ case 0:
21667
+ country_code = _arguments.length > 1 && _arguments[1] !== void 0 ? _arguments[1] : "GB", requestBody = _arguments.length > 2 ? _arguments[2] : void 0;
21668
+ container2 = getActiveIocContainer();
21669
+ wlaService = container2.get(ITF_WLA_SERVICE);
21670
+ return [
21671
+ 4,
21672
+ wlaService.revokeConsent(id, country_code, requestBody)
21673
+ ];
21674
+ case 1:
21675
+ return [
21676
+ 2,
21677
+ _state.sent()
21678
+ ];
21679
+ }
21680
+ });
21681
+ });
21682
+ return _revokeConsent.apply(this, arguments);
21683
+ }
21684
+ __name(revokeConsent, "revokeConsent");
21685
+ function searchAtms(requestBody, requestFilters) {
21686
+ return _searchAtms.apply(this, arguments);
21687
+ }
21688
+ function _searchAtms() {
21689
+ _searchAtms = // src/wla/base/interactors/searchAtms.ts
21690
+ _async_to_generator(function(requestBody, requestFilters) {
21691
+ var container2, wlaService;
21692
+ return _ts_generator(this, function(_state) {
21693
+ switch(_state.label){
21694
+ case 0:
21695
+ container2 = getActiveIocContainer();
21696
+ wlaService = container2.get(ITF_WLA_SERVICE);
21697
+ return [
21698
+ 4,
21699
+ wlaService.searchAtms(requestBody, requestFilters)
21700
+ ];
21701
+ case 1:
21702
+ return [
21703
+ 2,
21704
+ _state.sent()
21705
+ ];
21706
+ }
21707
+ });
21708
+ });
21709
+ return _searchAtms.apply(this, arguments);
21710
+ }
21711
+ __name(searchAtms, "searchAtms");
21133
21712
  function setWlaCardPin(cardToken, pin) {
21134
21713
  return _setWlaCardPin.apply(this, arguments);
21135
21714
  }
@@ -21176,6 +21755,35 @@ function _setWlaConfig() {
21176
21755
  return _setWlaConfig.apply(this, arguments);
21177
21756
  }
21178
21757
  __name(setWlaConfig, "setWlaConfig");
21758
+ function updateConsentStatus(id) {
21759
+ return _updateConsentStatus.apply(this, arguments);
21760
+ }
21761
+ function _updateConsentStatus() {
21762
+ _updateConsentStatus = // src/wla/base/interactors/updateConsentStatus.ts
21763
+ _async_to_generator(function(id) {
21764
+ var country_code, requestBody, container2, wlaService;
21765
+ var _arguments = arguments;
21766
+ return _ts_generator(this, function(_state) {
21767
+ switch(_state.label){
21768
+ case 0:
21769
+ country_code = _arguments.length > 1 && _arguments[1] !== void 0 ? _arguments[1] : "GB", requestBody = _arguments.length > 2 ? _arguments[2] : void 0;
21770
+ container2 = getActiveIocContainer();
21771
+ wlaService = container2.get(ITF_WLA_SERVICE);
21772
+ return [
21773
+ 4,
21774
+ wlaService.updateConsentStatus(id, country_code, requestBody)
21775
+ ];
21776
+ case 1:
21777
+ return [
21778
+ 2,
21779
+ _state.sent()
21780
+ ];
21781
+ }
21782
+ });
21783
+ });
21784
+ return _updateConsentStatus.apply(this, arguments);
21785
+ }
21786
+ __name(updateConsentStatus, "updateConsentStatus");
21179
21787
  function updateExternalAccount(token, payload) {
21180
21788
  return _updateExternalAccount.apply(this, arguments);
21181
21789
  }
@@ -21256,98 +21864,6 @@ function _verifyExternalAccount() {
21256
21864
  return _verifyExternalAccount.apply(this, arguments);
21257
21865
  }
21258
21866
  __name(verifyExternalAccount, "verifyExternalAccount");
21259
- function searchAtms(requestBody, requestFilters) {
21260
- return _searchAtms.apply(this, arguments);
21261
- }
21262
- function _searchAtms() {
21263
- _searchAtms = // src/wla/base/interactors/searchAtms.ts
21264
- _async_to_generator(function(requestBody, requestFilters) {
21265
- var container2, wlaService;
21266
- return _ts_generator(this, function(_state) {
21267
- switch(_state.label){
21268
- case 0:
21269
- container2 = getActiveIocContainer();
21270
- wlaService = container2.get(ITF_WLA_SERVICE);
21271
- return [
21272
- 4,
21273
- wlaService.searchAtms(requestBody, requestFilters)
21274
- ];
21275
- case 1:
21276
- return [
21277
- 2,
21278
- _state.sent()
21279
- ];
21280
- }
21281
- });
21282
- });
21283
- return _searchAtms.apply(this, arguments);
21284
- }
21285
- __name(searchAtms, "searchAtms");
21286
- function replaceWlaCard(requestBody) {
21287
- return _replaceWlaCard.apply(this, arguments);
21288
- }
21289
- function _replaceWlaCard() {
21290
- _replaceWlaCard = // src/wla/base/interactors/replaceWlaCard.ts
21291
- _async_to_generator(function(requestBody) {
21292
- var container2, wlaService;
21293
- return _ts_generator(this, function(_state) {
21294
- switch(_state.label){
21295
- case 0:
21296
- container2 = getActiveIocContainer();
21297
- wlaService = container2.get(ITF_WLA_SERVICE);
21298
- return [
21299
- 4,
21300
- wlaService.replaceCard(requestBody)
21301
- ];
21302
- case 1:
21303
- return [
21304
- 2,
21305
- _state.sent()
21306
- ];
21307
- }
21308
- });
21309
- });
21310
- return _replaceWlaCard.apply(this, arguments);
21311
- }
21312
- __name(replaceWlaCard, "replaceWlaCard");
21313
- function getOutagesList(devicePlatform) {
21314
- return _getOutagesList.apply(this, arguments);
21315
- }
21316
- function _getOutagesList() {
21317
- _getOutagesList = // src/wla/base/interactors/getOutagesList.ts
21318
- _async_to_generator(function(devicePlatform) {
21319
- var container2, wlaService;
21320
- return _ts_generator(this, function(_state) {
21321
- container2 = getActiveIocContainer();
21322
- wlaService = container2.get(ITF_WLA_SERVICE);
21323
- return [
21324
- 2,
21325
- wlaService.getOutagesList(devicePlatform)
21326
- ];
21327
- });
21328
- });
21329
- return _getOutagesList.apply(this, arguments);
21330
- }
21331
- __name(getOutagesList, "getOutagesList");
21332
- function getOutagesByToken(outageToken, devicePlatform) {
21333
- return _getOutagesByToken.apply(this, arguments);
21334
- }
21335
- function _getOutagesByToken() {
21336
- _getOutagesByToken = // src/wla/base/interactors/getOutagesByToken.ts
21337
- _async_to_generator(function(outageToken, devicePlatform) {
21338
- var container2, wlaService;
21339
- return _ts_generator(this, function(_state) {
21340
- container2 = getActiveIocContainer();
21341
- wlaService = container2.get(ITF_WLA_SERVICE);
21342
- return [
21343
- 2,
21344
- wlaService.getOutageByToken(outageToken, devicePlatform)
21345
- ];
21346
- });
21347
- });
21348
- return _getOutagesByToken.apply(this, arguments);
21349
- }
21350
- __name(getOutagesByToken, "getOutagesByToken");
21351
21867
  // src/wla/ioc/WlaIocModule.ts
21352
21868
  var import_inversify134 = require("inversify");
21353
21869
  var WlaIocModule = new import_inversify134.ContainerModule(function(bind) {
@@ -21746,6 +22262,12 @@ setActiveIocContainer(container);
21746
22262
  CardholderContextEntity: CardholderContextEntity,
21747
22263
  CardholderVerificationMethods: CardholderVerificationMethods,
21748
22264
  CleanupOnUnload: CleanupOnUnload,
22265
+ ConsentAction: ConsentAction,
22266
+ ConsentPaymentScope: ConsentPaymentScope,
22267
+ ConsentPaymentType: ConsentPaymentType,
22268
+ ConsentPermissionType: ConsentPermissionType,
22269
+ ConsentScope: ConsentScope,
22270
+ ConsentStatus: ConsentStatus,
21749
22271
  CreateUserRequestIdentificationsInnerTypeEnum: CreateUserRequestIdentificationsInnerTypeEnum,
21750
22272
  CreateUserResponseStatusEnum: CreateUserResponseStatusEnum,
21751
22273
  Currency: Currency,
@@ -21922,6 +22444,7 @@ setActiveIocContainer(container);
21922
22444
  RestUsersRepository: RestUsersRepository,
21923
22445
  RestWlaService: RestWlaService,
21924
22446
  RetrieveDocumentForDispute: RetrieveDocumentForDispute,
22447
+ RevokeConsentStatus: RevokeConsentStatus,
21925
22448
  SESSION_TTL: SESSION_TTL,
21926
22449
  STATEMENTS_MOCK_USER: STATEMENTS_MOCK_USER,
21927
22450
  SUSPENDED_CARD_ACTIONS: SUSPENDED_CARD_ACTIONS,
@@ -22024,6 +22547,8 @@ setActiveIocContainer(container);
22024
22547
  getCachedAuthTokenExpiration: getCachedAuthTokenExpiration,
22025
22548
  getCardholderContext: getCardholderContext,
22026
22549
  getClientId: getClientId,
22550
+ getConsentById: getConsentById,
22551
+ getConsents: getConsents,
22027
22552
  getExternalAccount: getExternalAccount,
22028
22553
  getExternalAccountList: getExternalAccountList,
22029
22554
  getMockUpdatedUserRequestToCreateResponse: getMockUpdatedUserRequestToCreateResponse,
@@ -22034,6 +22559,8 @@ setActiveIocContainer(container);
22034
22559
  getOutagesList: getOutagesList,
22035
22560
  getSessionId: getSessionId,
22036
22561
  getSsoAccessTokenHandler: getSsoAccessTokenHandler,
22562
+ getTransferByToken: getTransferByToken,
22563
+ getTransfers: getTransfers,
22037
22564
  getUserProgram: getUserProgram,
22038
22565
  getUserTokenHash: getUserTokenHash,
22039
22566
  getWlaAccountDetails: getWlaAccountDetails,
@@ -22118,6 +22645,7 @@ setActiveIocContainer(container);
22118
22645
  reactNativeSdkJsContainer: reactNativeSdkJsContainer,
22119
22646
  registerDeviceForPushNotifications: registerDeviceForPushNotifications,
22120
22647
  replaceWlaCard: replaceWlaCard,
22648
+ revokeConsent: revokeConsent,
22121
22649
  sandbox: sandbox,
22122
22650
  sdkJsContainer: sdkJsContainer,
22123
22651
  searchAtms: searchAtms,
@@ -22134,6 +22662,7 @@ setActiveIocContainer(container);
22134
22662
  toDateType: toDateType,
22135
22663
  trackEvent: trackEvent,
22136
22664
  transactionsIOCModule: transactionsIOCModule,
22665
+ updateConsentStatus: updateConsentStatus,
22137
22666
  updateExternalAccount: updateExternalAccount,
22138
22667
  usersIOCModule: usersIOCModule,
22139
22668
  verifyExternalAccount: verifyExternalAccount,