@marqeta/ux-toolkit-sdk-javascript 0.25.0 → 0.27.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.d.mts +217 -50
- package/dist/index.d.ts +217 -50
- package/dist/index.js +434 -24
- package/dist/index.mjs +394 -24
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -522,6 +522,9 @@ __export(src_exports, {
|
|
|
522
522
|
BAD_GENERAL_SSN: function() {
|
|
523
523
|
return BAD_GENERAL_SSN;
|
|
524
524
|
},
|
|
525
|
+
BookTransferResponseStatusEnum: function() {
|
|
526
|
+
return BookTransferResponseStatusEnum;
|
|
527
|
+
},
|
|
525
528
|
CUI_ENABLED_SHORT_CODE: function() {
|
|
526
529
|
return CUI_ENABLED_SHORT_CODE;
|
|
527
530
|
},
|
|
@@ -549,6 +552,9 @@ __export(src_exports, {
|
|
|
549
552
|
CreateUserResponseStatusEnum: function() {
|
|
550
553
|
return CreateUserResponseStatusEnum;
|
|
551
554
|
},
|
|
555
|
+
Currency: function() {
|
|
556
|
+
return Currency;
|
|
557
|
+
},
|
|
552
558
|
DEFAULT_THEME: function() {
|
|
553
559
|
return DEFAULT_THEME;
|
|
554
560
|
},
|
|
@@ -993,6 +999,15 @@ __export(src_exports, {
|
|
|
993
999
|
OnboardingStatus: function() {
|
|
994
1000
|
return OnboardingStatus;
|
|
995
1001
|
},
|
|
1002
|
+
OriginationDirection: function() {
|
|
1003
|
+
return OriginationDirection;
|
|
1004
|
+
},
|
|
1005
|
+
OriginationTransferReasonCode: function() {
|
|
1006
|
+
return OriginationTransferReasonCode;
|
|
1007
|
+
},
|
|
1008
|
+
OriginationTransferScheme: function() {
|
|
1009
|
+
return OriginationTransferScheme;
|
|
1010
|
+
},
|
|
996
1011
|
PushRegistrationRequestDevicePlatformEnum: function() {
|
|
997
1012
|
return PushRegistrationRequestDevicePlatformEnum;
|
|
998
1013
|
},
|
|
@@ -1183,11 +1198,14 @@ __export(src_exports, {
|
|
|
1183
1198
|
return TransactionRecordStatus;
|
|
1184
1199
|
},
|
|
1185
1200
|
TransactionStatus: function() {
|
|
1186
|
-
return
|
|
1201
|
+
return TransactionStatus;
|
|
1187
1202
|
},
|
|
1188
1203
|
TransactionType: function() {
|
|
1189
1204
|
return TransactionType;
|
|
1190
1205
|
},
|
|
1206
|
+
TransferStatus: function() {
|
|
1207
|
+
return TransferStatus;
|
|
1208
|
+
},
|
|
1191
1209
|
UnlockCardByToken: function() {
|
|
1192
1210
|
return UnlockCardByToken;
|
|
1193
1211
|
},
|
|
@@ -1233,6 +1251,9 @@ __export(src_exports, {
|
|
|
1233
1251
|
authIOCModule: function() {
|
|
1234
1252
|
return authIOCModule;
|
|
1235
1253
|
},
|
|
1254
|
+
bookTransfer: function() {
|
|
1255
|
+
return bookTransfer;
|
|
1256
|
+
},
|
|
1236
1257
|
cardsIOCModule: function() {
|
|
1237
1258
|
return cardsIOCModule;
|
|
1238
1259
|
},
|
|
@@ -1311,9 +1332,18 @@ __export(src_exports, {
|
|
|
1311
1332
|
getUserTokenHash: function() {
|
|
1312
1333
|
return getUserTokenHash;
|
|
1313
1334
|
},
|
|
1335
|
+
getWlaAccountDetails: function() {
|
|
1336
|
+
return getWlaAccountDetails;
|
|
1337
|
+
},
|
|
1314
1338
|
getWlaCardByToken: function() {
|
|
1315
1339
|
return getWlaCardByToken;
|
|
1316
1340
|
},
|
|
1341
|
+
getWlaRewardSummaries: function() {
|
|
1342
|
+
return getWlaRewardSummaries;
|
|
1343
|
+
},
|
|
1344
|
+
getWlaTransactionByToken: function() {
|
|
1345
|
+
return getWlaTransactionByToken;
|
|
1346
|
+
},
|
|
1317
1347
|
getWlaUserProfile: function() {
|
|
1318
1348
|
return getWlaUserProfile;
|
|
1319
1349
|
},
|
|
@@ -17853,15 +17883,13 @@ var mswTransactionsHandlers = [
|
|
|
17853
17883
|
];
|
|
17854
17884
|
// src/wla/adapters/RestWlaService.ts
|
|
17855
17885
|
var import_inversify127 = require("inversify");
|
|
17856
|
-
// src/wla/base/types/
|
|
17857
|
-
var
|
|
17858
|
-
(function(
|
|
17859
|
-
|
|
17860
|
-
|
|
17861
|
-
|
|
17862
|
-
|
|
17863
|
-
TransactionStatus3["REFUNDED"] = "REFUNDED";
|
|
17864
|
-
})(TransactionStatus || (TransactionStatus = {}));
|
|
17886
|
+
// src/wla/base/types/BookTransferResponse.ts
|
|
17887
|
+
var BookTransferResponseStatusEnum;
|
|
17888
|
+
(function(BookTransferResponseStatusEnum2) {
|
|
17889
|
+
BookTransferResponseStatusEnum2["COMPLETED"] = "COMPLETED";
|
|
17890
|
+
BookTransferResponseStatusEnum2["PENDING"] = "PENDING";
|
|
17891
|
+
BookTransferResponseStatusEnum2["FAILED"] = "FAILED";
|
|
17892
|
+
})(BookTransferResponseStatusEnum || (BookTransferResponseStatusEnum = {}));
|
|
17865
17893
|
// src/wla/base/types/CardRequest.ts
|
|
17866
17894
|
var CardFulfillmentRequestCardFulfillmentReasonEnum;
|
|
17867
17895
|
(function(CardFulfillmentRequestCardFulfillmentReasonEnum2) {
|
|
@@ -17915,6 +17943,45 @@ var OnboardingStatus;
|
|
|
17915
17943
|
OnboardingStatus2["ACCOUNT_CLAIMED"] = "ACCOUNT_CLAIMED";
|
|
17916
17944
|
OnboardingStatus2["ONBOARDING_COMPLETED"] = "ONBOARDING_COMPLETED";
|
|
17917
17945
|
})(OnboardingStatus || (OnboardingStatus = {}));
|
|
17946
|
+
// src/wla/base/types/OriginationTransferResponse.ts
|
|
17947
|
+
var Currency;
|
|
17948
|
+
(function(Currency2) {
|
|
17949
|
+
Currency2["GBP"] = "GBP";
|
|
17950
|
+
Currency2["USD"] = "USD";
|
|
17951
|
+
})(Currency || (Currency = {}));
|
|
17952
|
+
var OriginationTransferScheme;
|
|
17953
|
+
(function(OriginationTransferScheme2) {
|
|
17954
|
+
OriginationTransferScheme2["FASTER_PAYMENTS"] = "FASTER_PAYMENTS";
|
|
17955
|
+
})(OriginationTransferScheme || (OriginationTransferScheme = {}));
|
|
17956
|
+
var TransferStatus;
|
|
17957
|
+
(function(TransferStatus2) {
|
|
17958
|
+
TransferStatus2["INITIATED"] = "INITIATED";
|
|
17959
|
+
TransferStatus2["PENDING"] = "PENDING";
|
|
17960
|
+
TransferStatus2["CANCELLED"] = "CANCELLED";
|
|
17961
|
+
TransferStatus2["ERROR"] = "ERROR";
|
|
17962
|
+
TransferStatus2["SUBMITTED"] = "SUBMITTED";
|
|
17963
|
+
TransferStatus2["COMPLETED"] = "COMPLETED";
|
|
17964
|
+
TransferStatus2["RETURNED"] = "RETURNED";
|
|
17965
|
+
TransferStatus2["FAILED"] = "FAILED";
|
|
17966
|
+
})(TransferStatus || (TransferStatus = {}));
|
|
17967
|
+
var OriginationTransferReasonCode;
|
|
17968
|
+
(function(OriginationTransferReasonCode2) {
|
|
17969
|
+
OriginationTransferReasonCode2["TRANSFER_TO_OWN_ACCOUNT"] = "TRANSFER_TO_OWN_ACCOUNT";
|
|
17970
|
+
OriginationTransferReasonCode2["RETURNING_TO_AN_OVERPAYMENT"] = "RETURNING_TO_AN_OVERPAYMENT";
|
|
17971
|
+
OriginationTransferReasonCode2["PAYING_A_FRIEND"] = "PAYING_A_FRIEND";
|
|
17972
|
+
OriginationTransferReasonCode2["PAYING_FAMILY"] = "PAYING_FAMILY";
|
|
17973
|
+
OriginationTransferReasonCode2["PAYING_FOR_A_SERVICE"] = "PAYING_FOR_A_SERVICE";
|
|
17974
|
+
OriginationTransferReasonCode2["BUYING_GOODS"] = "BUYING_GOODS";
|
|
17975
|
+
OriginationTransferReasonCode2["PAYING_FOR_BUILDING_WORK"] = "PAYING_FOR_BUILDING_WORK";
|
|
17976
|
+
OriginationTransferReasonCode2["TRANSFER_TO_AN_INVESTMENT"] = "TRANSFER_TO_AN_INVESTMENT";
|
|
17977
|
+
OriginationTransferReasonCode2["PROPERTY_OR_LARGE_PURCHASE"] = "PROPERTY_OR_LARGE_PURCHASE";
|
|
17978
|
+
OriginationTransferReasonCode2["OTHERS"] = "OTHERS";
|
|
17979
|
+
})(OriginationTransferReasonCode || (OriginationTransferReasonCode = {}));
|
|
17980
|
+
var OriginationDirection;
|
|
17981
|
+
(function(OriginationDirection2) {
|
|
17982
|
+
OriginationDirection2["DEBIT"] = "DEBIT";
|
|
17983
|
+
OriginationDirection2["CREDIT"] = "CREDIT";
|
|
17984
|
+
})(OriginationDirection || (OriginationDirection = {}));
|
|
17918
17985
|
// src/wla/base/types/PushRegistrationRequest.ts
|
|
17919
17986
|
var PushRegistrationRequestDevicePlatformEnum;
|
|
17920
17987
|
(function(PushRegistrationRequestDevicePlatformEnum2) {
|
|
@@ -17922,26 +17989,21 @@ var PushRegistrationRequestDevicePlatformEnum;
|
|
|
17922
17989
|
PushRegistrationRequestDevicePlatformEnum2["ANDROID"] = "ANDROID";
|
|
17923
17990
|
})(PushRegistrationRequestDevicePlatformEnum || (PushRegistrationRequestDevicePlatformEnum = {}));
|
|
17924
17991
|
// src/wla/base/types/TransactionListResponse.ts
|
|
17925
|
-
var
|
|
17926
|
-
(function(
|
|
17927
|
-
|
|
17928
|
-
|
|
17929
|
-
|
|
17930
|
-
|
|
17931
|
-
|
|
17932
|
-
})(
|
|
17992
|
+
var TransactionStatus;
|
|
17993
|
+
(function(TransactionStatus2) {
|
|
17994
|
+
TransactionStatus2["PENDING"] = "PENDING";
|
|
17995
|
+
TransactionStatus2["BLOCKED"] = "BLOCKED";
|
|
17996
|
+
TransactionStatus2["FULFILLED"] = "FULFILLED";
|
|
17997
|
+
TransactionStatus2["CANCELED"] = "CANCELED";
|
|
17998
|
+
TransactionStatus2["REFUNDED"] = "REFUNDED";
|
|
17999
|
+
})(TransactionStatus || (TransactionStatus = {}));
|
|
17933
18000
|
var TransactionType;
|
|
17934
18001
|
(function(TransactionType2) {
|
|
17935
18002
|
TransactionType2["PURCHASE"] = "PURCHASE";
|
|
17936
18003
|
TransactionType2["PAYOUT"] = "PAYOUT";
|
|
17937
18004
|
TransactionType2["TRANSFER"] = "TRANSFER";
|
|
18005
|
+
TransactionType2["INTEREST"] = "INTEREST";
|
|
17938
18006
|
})(TransactionType || (TransactionType = {}));
|
|
17939
|
-
// src/wla/base/types/UserProfileResponse.ts
|
|
17940
|
-
var AccountType;
|
|
17941
|
-
(function(AccountType2) {
|
|
17942
|
-
AccountType2["CHECKING"] = "CHECKING";
|
|
17943
|
-
AccountType2["SAVINGS"] = "SAVINGS";
|
|
17944
|
-
})(AccountType || (AccountType = {}));
|
|
17945
18007
|
// src/wla/base/types/UserResponse.ts
|
|
17946
18008
|
var LoyaltyTier;
|
|
17947
18009
|
(function(LoyaltyTier2) {
|
|
@@ -17964,6 +18026,12 @@ var WlaUserStatus;
|
|
|
17964
18026
|
WlaUserStatus2["SUSPENDED"] = "SUSPENDED";
|
|
17965
18027
|
WlaUserStatus2["TERMINATED"] = "TERMINATED";
|
|
17966
18028
|
})(WlaUserStatus || (WlaUserStatus = {}));
|
|
18029
|
+
// src/wla/base/types/AccountResponse.ts
|
|
18030
|
+
var AccountType;
|
|
18031
|
+
(function(AccountType2) {
|
|
18032
|
+
AccountType2["CHECKING"] = "CHECKING";
|
|
18033
|
+
AccountType2["SAVINGS"] = "SAVINGS";
|
|
18034
|
+
})(AccountType || (AccountType = {}));
|
|
17967
18035
|
// src/wla/adapters/RestWlaService.ts
|
|
17968
18036
|
function _ts_decorate98(decorators, target, key, desc) {
|
|
17969
18037
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
@@ -18615,6 +18683,233 @@ var _RestWlaService = /*#__PURE__*/ function() {
|
|
|
18615
18683
|
});
|
|
18616
18684
|
})();
|
|
18617
18685
|
}
|
|
18686
|
+
},
|
|
18687
|
+
{
|
|
18688
|
+
key: "getTransactionByToken",
|
|
18689
|
+
value: function getTransactionByToken(transactionToken) {
|
|
18690
|
+
var _this = this;
|
|
18691
|
+
return _async_to_generator(function() {
|
|
18692
|
+
var cuiApiBaseUrl, queryParams, path, params, data, error2;
|
|
18693
|
+
return _ts_generator(this, function(_state) {
|
|
18694
|
+
switch(_state.label){
|
|
18695
|
+
case 0:
|
|
18696
|
+
_state.trys.push([
|
|
18697
|
+
0,
|
|
18698
|
+
2,
|
|
18699
|
+
,
|
|
18700
|
+
3
|
|
18701
|
+
]);
|
|
18702
|
+
cuiApiBaseUrl = _this.getEnvConfigValueByName.execute("CUI_API_BASE_URL");
|
|
18703
|
+
queryParams = new URLSearchParams({
|
|
18704
|
+
transaction_token: transactionToken
|
|
18705
|
+
});
|
|
18706
|
+
path = "".concat(cuiApiBaseUrl, "/api/v1/wla/transaction?").concat(queryParams.toString());
|
|
18707
|
+
params = {
|
|
18708
|
+
headers: _this.getCommonWlaApiHeaders()
|
|
18709
|
+
};
|
|
18710
|
+
return [
|
|
18711
|
+
4,
|
|
18712
|
+
_this.httpClient.get(path, params)
|
|
18713
|
+
];
|
|
18714
|
+
case 1:
|
|
18715
|
+
data = _state.sent();
|
|
18716
|
+
return [
|
|
18717
|
+
2,
|
|
18718
|
+
data
|
|
18719
|
+
];
|
|
18720
|
+
case 2:
|
|
18721
|
+
error2 = _state.sent();
|
|
18722
|
+
throw new MqSDKError("Unable to get transaction details", error2);
|
|
18723
|
+
case 3:
|
|
18724
|
+
return [
|
|
18725
|
+
2
|
|
18726
|
+
];
|
|
18727
|
+
}
|
|
18728
|
+
});
|
|
18729
|
+
})();
|
|
18730
|
+
}
|
|
18731
|
+
},
|
|
18732
|
+
{
|
|
18733
|
+
key: "bookTransfer",
|
|
18734
|
+
value: function bookTransfer(requestBody) {
|
|
18735
|
+
var _this = this;
|
|
18736
|
+
return _async_to_generator(function() {
|
|
18737
|
+
var cuiApiBaseUrl, path, params, data, error2;
|
|
18738
|
+
return _ts_generator(this, function(_state) {
|
|
18739
|
+
switch(_state.label){
|
|
18740
|
+
case 0:
|
|
18741
|
+
_state.trys.push([
|
|
18742
|
+
0,
|
|
18743
|
+
2,
|
|
18744
|
+
,
|
|
18745
|
+
3
|
|
18746
|
+
]);
|
|
18747
|
+
cuiApiBaseUrl = _this.getEnvConfigValueByName.execute("CUI_API_BASE_URL");
|
|
18748
|
+
path = "".concat(cuiApiBaseUrl, "/api/v1/wla/book-transfer");
|
|
18749
|
+
params = {
|
|
18750
|
+
method: "POST",
|
|
18751
|
+
headers: _this.getCommonWlaApiHeaders(),
|
|
18752
|
+
body: JSON.stringify(requestBody)
|
|
18753
|
+
};
|
|
18754
|
+
return [
|
|
18755
|
+
4,
|
|
18756
|
+
_this.httpClient.post(path, params)
|
|
18757
|
+
];
|
|
18758
|
+
case 1:
|
|
18759
|
+
data = _state.sent();
|
|
18760
|
+
return [
|
|
18761
|
+
2,
|
|
18762
|
+
data
|
|
18763
|
+
];
|
|
18764
|
+
case 2:
|
|
18765
|
+
error2 = _state.sent();
|
|
18766
|
+
throw new MqSDKError("Unable to book transfer", error2);
|
|
18767
|
+
case 3:
|
|
18768
|
+
return [
|
|
18769
|
+
2
|
|
18770
|
+
];
|
|
18771
|
+
}
|
|
18772
|
+
});
|
|
18773
|
+
})();
|
|
18774
|
+
}
|
|
18775
|
+
},
|
|
18776
|
+
{
|
|
18777
|
+
key: "createOriginationTransfer",
|
|
18778
|
+
value: function createOriginationTransfer(requestBody) {
|
|
18779
|
+
var _this = this;
|
|
18780
|
+
return _async_to_generator(function() {
|
|
18781
|
+
var cuiApiBaseUrl, path, params, data, error2;
|
|
18782
|
+
return _ts_generator(this, function(_state) {
|
|
18783
|
+
switch(_state.label){
|
|
18784
|
+
case 0:
|
|
18785
|
+
_state.trys.push([
|
|
18786
|
+
0,
|
|
18787
|
+
2,
|
|
18788
|
+
,
|
|
18789
|
+
3
|
|
18790
|
+
]);
|
|
18791
|
+
cuiApiBaseUrl = _this.getEnvConfigValueByName.execute("CUI_API_BASE_URL");
|
|
18792
|
+
path = "".concat(cuiApiBaseUrl, "/api/v1/wla/origination/transfer");
|
|
18793
|
+
params = {
|
|
18794
|
+
method: "POST",
|
|
18795
|
+
headers: _this.getCommonWlaApiHeaders(),
|
|
18796
|
+
body: JSON.stringify(requestBody)
|
|
18797
|
+
};
|
|
18798
|
+
return [
|
|
18799
|
+
4,
|
|
18800
|
+
_this.httpClient.post(path, params)
|
|
18801
|
+
];
|
|
18802
|
+
case 1:
|
|
18803
|
+
data = _state.sent();
|
|
18804
|
+
return [
|
|
18805
|
+
2,
|
|
18806
|
+
data
|
|
18807
|
+
];
|
|
18808
|
+
case 2:
|
|
18809
|
+
error2 = _state.sent();
|
|
18810
|
+
throw new MqSDKError("Unable to create an origination transfer", error2);
|
|
18811
|
+
case 3:
|
|
18812
|
+
return [
|
|
18813
|
+
2
|
|
18814
|
+
];
|
|
18815
|
+
}
|
|
18816
|
+
});
|
|
18817
|
+
})();
|
|
18818
|
+
}
|
|
18819
|
+
},
|
|
18820
|
+
{
|
|
18821
|
+
key: "getAccountDetails",
|
|
18822
|
+
value: function getAccountDetails(accountToken) {
|
|
18823
|
+
var includeYtdInterest = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false;
|
|
18824
|
+
var _this = this;
|
|
18825
|
+
return _async_to_generator(function() {
|
|
18826
|
+
var cuiApiBaseUrl, queryParams, path, params, data, error2;
|
|
18827
|
+
return _ts_generator(this, function(_state) {
|
|
18828
|
+
switch(_state.label){
|
|
18829
|
+
case 0:
|
|
18830
|
+
_state.trys.push([
|
|
18831
|
+
0,
|
|
18832
|
+
2,
|
|
18833
|
+
,
|
|
18834
|
+
3
|
|
18835
|
+
]);
|
|
18836
|
+
cuiApiBaseUrl = _this.getEnvConfigValueByName.execute("CUI_API_BASE_URL");
|
|
18837
|
+
queryParams = new URLSearchParams({
|
|
18838
|
+
account_token: accountToken,
|
|
18839
|
+
include_ytd_interest: "".concat(includeYtdInterest)
|
|
18840
|
+
});
|
|
18841
|
+
path = "".concat(cuiApiBaseUrl, "/api/v1/wla/account?").concat(queryParams.toString());
|
|
18842
|
+
params = {
|
|
18843
|
+
headers: _this.getCommonWlaApiHeaders()
|
|
18844
|
+
};
|
|
18845
|
+
return [
|
|
18846
|
+
4,
|
|
18847
|
+
_this.httpClient.get(path, params)
|
|
18848
|
+
];
|
|
18849
|
+
case 1:
|
|
18850
|
+
data = _state.sent();
|
|
18851
|
+
return [
|
|
18852
|
+
2,
|
|
18853
|
+
data
|
|
18854
|
+
];
|
|
18855
|
+
case 2:
|
|
18856
|
+
error2 = _state.sent();
|
|
18857
|
+
throw new MqSDKError("Unable to get account details", error2);
|
|
18858
|
+
case 3:
|
|
18859
|
+
return [
|
|
18860
|
+
2
|
|
18861
|
+
];
|
|
18862
|
+
}
|
|
18863
|
+
});
|
|
18864
|
+
})();
|
|
18865
|
+
}
|
|
18866
|
+
},
|
|
18867
|
+
{
|
|
18868
|
+
key: "getRewardSummaries",
|
|
18869
|
+
value: function getRewardSummaries(startIndex, count) {
|
|
18870
|
+
var _this = this;
|
|
18871
|
+
return _async_to_generator(function() {
|
|
18872
|
+
var cuiApiBaseUrl, queryParams, path, params, data, error2;
|
|
18873
|
+
return _ts_generator(this, function(_state) {
|
|
18874
|
+
switch(_state.label){
|
|
18875
|
+
case 0:
|
|
18876
|
+
_state.trys.push([
|
|
18877
|
+
0,
|
|
18878
|
+
2,
|
|
18879
|
+
,
|
|
18880
|
+
3
|
|
18881
|
+
]);
|
|
18882
|
+
cuiApiBaseUrl = _this.getEnvConfigValueByName.execute("CUI_API_BASE_URL");
|
|
18883
|
+
queryParams = new URLSearchParams(_object_spread({}, startIndex ? {
|
|
18884
|
+
start_index: "".concat(startIndex)
|
|
18885
|
+
} : {}, count ? {
|
|
18886
|
+
count: "".concat(count)
|
|
18887
|
+
} : {}));
|
|
18888
|
+
path = "".concat(cuiApiBaseUrl, "/api/v1/wla/rewardsummaries?").concat(queryParams.toString());
|
|
18889
|
+
params = {
|
|
18890
|
+
headers: _this.getCommonWlaApiHeaders()
|
|
18891
|
+
};
|
|
18892
|
+
return [
|
|
18893
|
+
4,
|
|
18894
|
+
_this.httpClient.get(path, params)
|
|
18895
|
+
];
|
|
18896
|
+
case 1:
|
|
18897
|
+
data = _state.sent();
|
|
18898
|
+
return [
|
|
18899
|
+
2,
|
|
18900
|
+
data
|
|
18901
|
+
];
|
|
18902
|
+
case 2:
|
|
18903
|
+
error2 = _state.sent();
|
|
18904
|
+
throw new MqSDKError("Unable to get reward summary", error2);
|
|
18905
|
+
case 3:
|
|
18906
|
+
return [
|
|
18907
|
+
2
|
|
18908
|
+
];
|
|
18909
|
+
}
|
|
18910
|
+
});
|
|
18911
|
+
})();
|
|
18912
|
+
}
|
|
18618
18913
|
}
|
|
18619
18914
|
]);
|
|
18620
18915
|
return _RestWlaService;
|
|
@@ -18638,6 +18933,46 @@ RestWlaService = _ts_decorate98([
|
|
|
18638
18933
|
], RestWlaService);
|
|
18639
18934
|
// src/wla/ioc/symbols.ts
|
|
18640
18935
|
var ITF_WLA_SERVICE = Symbol.for("iWlaService");
|
|
18936
|
+
function bookTransfer(payload) {
|
|
18937
|
+
return _bookTransfer.apply(this, arguments);
|
|
18938
|
+
}
|
|
18939
|
+
function _bookTransfer() {
|
|
18940
|
+
_bookTransfer = // src/wla/base/interactors/bookTransfer.ts
|
|
18941
|
+
_async_to_generator(function(payload) {
|
|
18942
|
+
var container2, wlaService, error2;
|
|
18943
|
+
return _ts_generator(this, function(_state) {
|
|
18944
|
+
switch(_state.label){
|
|
18945
|
+
case 0:
|
|
18946
|
+
_state.trys.push([
|
|
18947
|
+
0,
|
|
18948
|
+
2,
|
|
18949
|
+
,
|
|
18950
|
+
3
|
|
18951
|
+
]);
|
|
18952
|
+
container2 = getActiveIocContainer();
|
|
18953
|
+
wlaService = container2.get(ITF_WLA_SERVICE);
|
|
18954
|
+
return [
|
|
18955
|
+
4,
|
|
18956
|
+
wlaService.bookTransfer(payload)
|
|
18957
|
+
];
|
|
18958
|
+
case 1:
|
|
18959
|
+
return [
|
|
18960
|
+
2,
|
|
18961
|
+
_state.sent()
|
|
18962
|
+
];
|
|
18963
|
+
case 2:
|
|
18964
|
+
error2 = _state.sent();
|
|
18965
|
+
throw new MqSDKError("Unable to book transfer");
|
|
18966
|
+
case 3:
|
|
18967
|
+
return [
|
|
18968
|
+
2
|
|
18969
|
+
];
|
|
18970
|
+
}
|
|
18971
|
+
});
|
|
18972
|
+
});
|
|
18973
|
+
return _bookTransfer.apply(this, arguments);
|
|
18974
|
+
}
|
|
18975
|
+
__name(bookTransfer, "bookTransfer");
|
|
18641
18976
|
function createWlaCard(payload) {
|
|
18642
18977
|
return _createWlaCard.apply(this, arguments);
|
|
18643
18978
|
}
|
|
@@ -18835,6 +19170,33 @@ function _getWlaCardByToken() {
|
|
|
18835
19170
|
return _getWlaCardByToken.apply(this, arguments);
|
|
18836
19171
|
}
|
|
18837
19172
|
__name(getWlaCardByToken, "getWlaCardByToken");
|
|
19173
|
+
function getWlaTransactionByToken(transactionToken) {
|
|
19174
|
+
return _getWlaTransactionByToken.apply(this, arguments);
|
|
19175
|
+
}
|
|
19176
|
+
function _getWlaTransactionByToken() {
|
|
19177
|
+
_getWlaTransactionByToken = // src/wla/base/interactors/getWlaTransactionByToken.ts
|
|
19178
|
+
_async_to_generator(function(transactionToken) {
|
|
19179
|
+
var container2, wlaService;
|
|
19180
|
+
return _ts_generator(this, function(_state) {
|
|
19181
|
+
switch(_state.label){
|
|
19182
|
+
case 0:
|
|
19183
|
+
container2 = getActiveIocContainer();
|
|
19184
|
+
wlaService = container2.get(ITF_WLA_SERVICE);
|
|
19185
|
+
return [
|
|
19186
|
+
4,
|
|
19187
|
+
wlaService.getTransactionByToken(transactionToken)
|
|
19188
|
+
];
|
|
19189
|
+
case 1:
|
|
19190
|
+
return [
|
|
19191
|
+
2,
|
|
19192
|
+
_state.sent()
|
|
19193
|
+
];
|
|
19194
|
+
}
|
|
19195
|
+
});
|
|
19196
|
+
});
|
|
19197
|
+
return _getWlaTransactionByToken.apply(this, arguments);
|
|
19198
|
+
}
|
|
19199
|
+
__name(getWlaTransactionByToken, "getWlaTransactionByToken");
|
|
18838
19200
|
function getWlaUserProfile() {
|
|
18839
19201
|
return _getWlaUserProfile.apply(this, arguments);
|
|
18840
19202
|
}
|
|
@@ -18989,6 +19351,44 @@ function _verifyExternalAccount() {
|
|
|
18989
19351
|
return _verifyExternalAccount.apply(this, arguments);
|
|
18990
19352
|
}
|
|
18991
19353
|
__name(verifyExternalAccount, "verifyExternalAccount");
|
|
19354
|
+
function getWlaAccountDetails(accountToken, includeYtdInterest) {
|
|
19355
|
+
return _getWlaAccountDetails.apply(this, arguments);
|
|
19356
|
+
}
|
|
19357
|
+
function _getWlaAccountDetails() {
|
|
19358
|
+
_getWlaAccountDetails = // src/wla/base/interactors/getWlaAccountDetails.ts
|
|
19359
|
+
_async_to_generator(function(accountToken, includeYtdInterest) {
|
|
19360
|
+
var container2, wlaService;
|
|
19361
|
+
return _ts_generator(this, function(_state) {
|
|
19362
|
+
container2 = getActiveIocContainer();
|
|
19363
|
+
wlaService = container2.get(ITF_WLA_SERVICE);
|
|
19364
|
+
return [
|
|
19365
|
+
2,
|
|
19366
|
+
wlaService.getAccountDetails(accountToken, includeYtdInterest)
|
|
19367
|
+
];
|
|
19368
|
+
});
|
|
19369
|
+
});
|
|
19370
|
+
return _getWlaAccountDetails.apply(this, arguments);
|
|
19371
|
+
}
|
|
19372
|
+
__name(getWlaAccountDetails, "getWlaAccountDetails");
|
|
19373
|
+
function getWlaRewardSummaries(startIndex, count) {
|
|
19374
|
+
return _getWlaRewardSummaries.apply(this, arguments);
|
|
19375
|
+
}
|
|
19376
|
+
function _getWlaRewardSummaries() {
|
|
19377
|
+
_getWlaRewardSummaries = // src/wla/base/interactors/getWlaRewardSummaries.ts
|
|
19378
|
+
_async_to_generator(function(startIndex, count) {
|
|
19379
|
+
var container2, wlaService;
|
|
19380
|
+
return _ts_generator(this, function(_state) {
|
|
19381
|
+
container2 = getActiveIocContainer();
|
|
19382
|
+
wlaService = container2.get(ITF_WLA_SERVICE);
|
|
19383
|
+
return [
|
|
19384
|
+
2,
|
|
19385
|
+
wlaService.getRewardSummaries(startIndex, count)
|
|
19386
|
+
];
|
|
19387
|
+
});
|
|
19388
|
+
});
|
|
19389
|
+
return _getWlaRewardSummaries.apply(this, arguments);
|
|
19390
|
+
}
|
|
19391
|
+
__name(getWlaRewardSummaries, "getWlaRewardSummaries");
|
|
18992
19392
|
// src/wla/ioc/WlaIocModule.ts
|
|
18993
19393
|
var import_inversify128 = require("inversify");
|
|
18994
19394
|
var WlaIocModule = new import_inversify128.ContainerModule(function(bind) {
|
|
@@ -19056,6 +19456,7 @@ setActiveIocContainer(container);
|
|
|
19056
19456
|
ActivateCardByTokenOrPan: ActivateCardByTokenOrPan,
|
|
19057
19457
|
AddSourceCard: AddSourceCard,
|
|
19058
19458
|
BAD_GENERAL_SSN: BAD_GENERAL_SSN,
|
|
19459
|
+
BookTransferResponseStatusEnum: BookTransferResponseStatusEnum,
|
|
19059
19460
|
CUI_ENABLED_SHORT_CODE: CUI_ENABLED_SHORT_CODE,
|
|
19060
19461
|
CardEntity: CardEntity,
|
|
19061
19462
|
CardFulfillmentRequestCardFulfillmentReasonEnum: CardFulfillmentRequestCardFulfillmentReasonEnum,
|
|
@@ -19065,6 +19466,7 @@ setActiveIocContainer(container);
|
|
|
19065
19466
|
CleanupOnUnload: CleanupOnUnload,
|
|
19066
19467
|
CreateUserRequestIdentificationsInnerTypeEnum: CreateUserRequestIdentificationsInnerTypeEnum,
|
|
19067
19468
|
CreateUserResponseStatusEnum: CreateUserResponseStatusEnum,
|
|
19469
|
+
Currency: Currency,
|
|
19068
19470
|
DEFAULT_THEME: DEFAULT_THEME,
|
|
19069
19471
|
DEPOSIT_ACCOUNTS_TERMINATED_CUI_AUTH_TOKEN: DEPOSIT_ACCOUNTS_TERMINATED_CUI_AUTH_TOKEN,
|
|
19070
19472
|
DOB_ISSUE_SSN: DOB_ISSUE_SSN,
|
|
@@ -19213,6 +19615,9 @@ setActiveIocContainer(container);
|
|
|
19213
19615
|
NOT_OK_CUI_AUTH_TOKEN: NOT_OK_CUI_AUTH_TOKEN,
|
|
19214
19616
|
OBAC_ISSUE_SSN: OBAC_ISSUE_SSN,
|
|
19215
19617
|
OnboardingStatus: OnboardingStatus,
|
|
19618
|
+
OriginationDirection: OriginationDirection,
|
|
19619
|
+
OriginationTransferReasonCode: OriginationTransferReasonCode,
|
|
19620
|
+
OriginationTransferScheme: OriginationTransferScheme,
|
|
19216
19621
|
PushRegistrationRequestDevicePlatformEnum: PushRegistrationRequestDevicePlatformEnum,
|
|
19217
19622
|
PutUpdateUser: PutUpdateUser,
|
|
19218
19623
|
REFRESHED_CUI_AUTH_TOKEN: REFRESHED_CUI_AUTH_TOKEN,
|
|
@@ -19278,6 +19683,7 @@ setActiveIocContainer(container);
|
|
|
19278
19683
|
TransactionRecordStatus: TransactionRecordStatus,
|
|
19279
19684
|
TransactionStatus: TransactionStatus,
|
|
19280
19685
|
TransactionType: TransactionType,
|
|
19686
|
+
TransferStatus: TransferStatus,
|
|
19281
19687
|
UnlockCardByToken: UnlockCardByToken,
|
|
19282
19688
|
UpdatePinByCardToken: UpdatePinByCardToken,
|
|
19283
19689
|
UploadDocumentForDispute: UploadDocumentForDispute,
|
|
@@ -19293,6 +19699,7 @@ setActiveIocContainer(container);
|
|
|
19293
19699
|
WlaUserStatus: WlaUserStatus,
|
|
19294
19700
|
accountsIOCModule: accountsIOCModule,
|
|
19295
19701
|
authIOCModule: authIOCModule,
|
|
19702
|
+
bookTransfer: bookTransfer,
|
|
19296
19703
|
cardsIOCModule: cardsIOCModule,
|
|
19297
19704
|
commonIOCModule: commonIOCModule,
|
|
19298
19705
|
componentsIOCModule: componentsIOCModule,
|
|
@@ -19319,7 +19726,10 @@ setActiveIocContainer(container);
|
|
|
19319
19726
|
getSessionId: getSessionId,
|
|
19320
19727
|
getUserProgram: getUserProgram,
|
|
19321
19728
|
getUserTokenHash: getUserTokenHash,
|
|
19729
|
+
getWlaAccountDetails: getWlaAccountDetails,
|
|
19322
19730
|
getWlaCardByToken: getWlaCardByToken,
|
|
19731
|
+
getWlaRewardSummaries: getWlaRewardSummaries,
|
|
19732
|
+
getWlaTransactionByToken: getWlaTransactionByToken,
|
|
19323
19733
|
getWlaUserProfile: getWlaUserProfile,
|
|
19324
19734
|
handleGetStatementAsset: handleGetStatementAsset,
|
|
19325
19735
|
handleGetStatements: handleGetStatements,
|