@infrab4a/connect-angular 3.5.0 → 3.5.2-beta.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.
|
@@ -876,6 +876,7 @@
|
|
|
876
876
|
checkout: checkout,
|
|
877
877
|
lineItem: i1$1.LineItem.toInstance({
|
|
878
878
|
id: id,
|
|
879
|
+
parentId: item.parentId,
|
|
879
880
|
name: name !== null && name !== void 0 ? name : product.name,
|
|
880
881
|
EAN: EAN !== null && EAN !== void 0 ? EAN : product.EAN,
|
|
881
882
|
brand: product.brand,
|
|
@@ -962,7 +963,8 @@
|
|
|
962
963
|
return __generator(this, function (_s) {
|
|
963
964
|
switch (_s.label) {
|
|
964
965
|
case 0:
|
|
965
|
-
_j = (_h = this.checkoutService)
|
|
966
|
+
_j = (_h = this.checkoutService)
|
|
967
|
+
.updateCheckoutLineItems;
|
|
966
968
|
_l = (_k = i1$1.Checkout).toInstance;
|
|
967
969
|
_o = (_m = Object).assign;
|
|
968
970
|
_p = [Object.assign({}, checkout.toPlain())];
|
|
@@ -980,7 +982,8 @@
|
|
|
980
982
|
case 2:
|
|
981
983
|
_r = [];
|
|
982
984
|
_s.label = 3;
|
|
983
|
-
case 3: return [2 /*return*/, _j.apply(_h, [_l.apply(_k, [_o.apply(_m, _p.concat([(_q.lineItems = _r, _q)]))])])
|
|
985
|
+
case 3: return [2 /*return*/, _j.apply(_h, [_l.apply(_k, [_o.apply(_m, _p.concat([(_q.lineItems = _r, _q)]))])])
|
|
986
|
+
.toPromise()];
|
|
984
987
|
}
|
|
985
988
|
});
|
|
986
989
|
}); }), operators.map(function (checkout) { return _this.generateCartObject(checkout.lineItems); }), operators.tap(function (cart) { return _this.cartSubject.next(cart); }));
|