@vendit-dev/thirdparty-adapters 0.7.12 → 0.7.14
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.
|
@@ -184,13 +184,16 @@ var TlLincoln = /** @class */ (function () {
|
|
|
184
184
|
var refinedDatas;
|
|
185
185
|
var _this = this;
|
|
186
186
|
return __generator(this, function (_a) {
|
|
187
|
-
refinedDatas = input.
|
|
188
|
-
refinedDatas.
|
|
187
|
+
refinedDatas = input.flatMap(this.refineUpdateStockData.bind(this));
|
|
188
|
+
refinedDatas.reduce(function (promise, refinedData) { return __awaiter(_this, void 0, void 0, function () {
|
|
189
189
|
var result, _a, errorDescription, failureReason;
|
|
190
190
|
return __generator(this, function (_b) {
|
|
191
191
|
switch (_b.label) {
|
|
192
|
-
case 0: return [4 /*yield*/,
|
|
192
|
+
case 0: return [4 /*yield*/, promise];
|
|
193
193
|
case 1:
|
|
194
|
+
_b.sent();
|
|
195
|
+
return [4 /*yield*/, this.netStockAdjustmentService(refinedData)];
|
|
196
|
+
case 2:
|
|
194
197
|
result = _b.sent();
|
|
195
198
|
if (!result['S:Envelope']['S:Body']['ns2:executeResponse'].return.commonResponse.isSuccess) {
|
|
196
199
|
_a = result['S:Envelope']['S:Body']['ns2:executeResponse'].return.commonResponse, errorDescription = _a.errorDescription, failureReason = _a.failureReason;
|
|
@@ -200,10 +203,10 @@ var TlLincoln = /** @class */ (function () {
|
|
|
200
203
|
description: "".concat(errorDescription, ": ").concat(JSON.stringify(refinedData)),
|
|
201
204
|
});
|
|
202
205
|
}
|
|
203
|
-
return [2 /*return*/, result === null || result === void 0 ? void 0 : result['S:Envelope']['S:Body']['ns2:executeResponse'].return.commonResponse.isSuccess];
|
|
206
|
+
return [2 /*return*/, Promise.resolve(result === null || result === void 0 ? void 0 : result['S:Envelope']['S:Body']['ns2:executeResponse'].return.commonResponse.isSuccess)];
|
|
204
207
|
}
|
|
205
208
|
});
|
|
206
|
-
}); });
|
|
209
|
+
}); }, Promise.resolve(true));
|
|
207
210
|
return [2 /*return*/, true];
|
|
208
211
|
});
|
|
209
212
|
});
|
|
@@ -107,7 +107,7 @@ exports.TL_LINCOLN_TO_VENDIT_OTA_MAP = (_a = {},
|
|
|
107
107
|
_a[TlLincolnOta.DRTRIP] = 'DRTRIP',
|
|
108
108
|
_a[TlLincolnOta.NANUGO] = 'NANUGO',
|
|
109
109
|
_a[TlLincolnOta.ONDA] = 'ONDA',
|
|
110
|
-
_a[TlLincolnOta.GC_COMPANY] = '
|
|
110
|
+
_a[TlLincolnOta.GC_COMPANY] = 'HOTELTIME',
|
|
111
111
|
_a[TlLincolnOta.TRIPTOPAZ] = 'TRIPTOPAZ',
|
|
112
112
|
_a[TlLincolnOta.TAMNAO] = 'TAMNAO',
|
|
113
113
|
_a[TlLincolnOta.STAYNMORE] = 'STAYNMORE',
|