@infrab4a/connect-angular 2.0.6-beta.8 → 2.0.6-beta.9
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/bundles/infrab4a-connect-angular.umd.js +7 -2
- package/bundles/infrab4a-connect-angular.umd.js.map +1 -1
- package/esm2015/services/checkout.service.js +2 -2
- package/esm2015/services/coupon.service.js +2 -2
- package/fesm2015/infrab4a-connect-angular.js +2 -2
- package/fesm2015/infrab4a-connect-angular.js.map +1 -1
- package/package.json +1 -1
- package/services/checkout.service.d.ts +1 -1
- package/services/coupon.service.d.ts +1 -1
|
@@ -562,7 +562,7 @@
|
|
|
562
562
|
case 3:
|
|
563
563
|
discount = _e.sent();
|
|
564
564
|
return [3 /*break*/, 4];
|
|
565
|
-
case 4: return [2 /*return*/,
|
|
565
|
+
case 4: return [2 /*return*/, discount];
|
|
566
566
|
}
|
|
567
567
|
});
|
|
568
568
|
});
|
|
@@ -786,7 +786,12 @@
|
|
|
786
786
|
};
|
|
787
787
|
CheckoutService.prototype.calcDiscount = function (coupon) {
|
|
788
788
|
var _this = this;
|
|
789
|
-
return this.getCheckout().pipe(operators.concatMap(function (checkout) { return _this
|
|
789
|
+
return this.getCheckout().pipe(operators.concatMap(function (checkout) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_b) {
|
|
790
|
+
switch (_b.label) {
|
|
791
|
+
case 0: return [4 /*yield*/, this.couponService.calcDiscountShopping(coupon, checkout)];
|
|
792
|
+
case 1: return [2 /*return*/, _b.sent()];
|
|
793
|
+
}
|
|
794
|
+
}); }); }));
|
|
790
795
|
};
|
|
791
796
|
CheckoutService.prototype.checkCoupon = function (nickname, checkoutType) {
|
|
792
797
|
var _this = this;
|