sk-front-lib 0.14.7-alpha.5 → 0.14.8

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.
@@ -652,9 +652,6 @@
652
652
  SkPromotionService.prototype.getAdminPromotion = function (id) {
653
653
  return this._apiService.get("/api/admin/promotions/" + id).pipe(operators.map(function (response) { return new model.SkPromotion(response.data); }));
654
654
  };
655
- SkPromotionService.prototype.getAdminPromotionGift = function (id) {
656
- return this._apiService.get("/api/admin/promotions/" + id + "/gift").pipe(operators.map(function (response) { return response.data; }));
657
- };
658
655
  SkPromotionService.prototype.getAdminPromotionTarget = function (id) {
659
656
  return this._apiService.get("/api/admin/promotions/" + id + "/target").pipe(operators.map(function (response) { return response.data; }));
660
657
  };
@@ -1078,10 +1075,11 @@
1078
1075
  product: cart.product.id,
1079
1076
  selectedOptions: cart.options.map(function (item) { return ({
1080
1077
  value: item.value.id,
1081
- option: item.option.id
1078
+ option: item.option.id,
1079
+ amount: item.amount
1082
1080
  }); }),
1083
1081
  amount: cart.amount,
1084
- selectedGifts: (cart.gifts || []).map(function (item) { return item.id; })
1082
+ selectedGifts: (cart.gifts || []).map(function (item) { return ({ id: item.id }); })
1085
1083
  };
1086
1084
  return this._apiService.post("/api/public/carts", data).pipe(operators.map(function (response) { return (response.data || []).map(function (item) { return new model.SkCart(item); }); }));
1087
1085
  };
@@ -1308,7 +1306,7 @@
1308
1306
  valueId: option.value.id,
1309
1307
  amount: option.amount || 1
1310
1308
  }); }),
1311
- selectedGifts: (cart.gifts || []).map(function (item) { return item.id; })
1309
+ gifts: (cart.gifts || []).map(function (item) { return ({ id: item.id }); })
1312
1310
  }); })
1313
1311
  };
1314
1312
  }