@infrab4a/connect-angular 3.0.0 → 3.1.0-beta.2

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.
@@ -852,7 +852,7 @@
852
852
  this.buildLineItem = function (_h) {
853
853
  var checkout = _h.checkout, item = _h.item, quantity = _h.quantity;
854
854
  return __awaiter(_this, void 0, void 0, function () {
855
- var _a, _b, _c, _d, _e, _f, _g, product, image, id, name, EAN, brand, slug, stock, price, weight, categories, sku, isGift, pricePaid;
855
+ var _a, _b, _c, _d, _e, _f, _g, product, image, id, name, EAN, brand, slug, stock, price, weight, categories, sku, type, isGift, pricePaid;
856
856
  return __generator(this, function (_h) {
857
857
  switch (_h.label) {
858
858
  case 0: return [4 /*yield*/, this.productRepository.get({ id: item.id })];
@@ -862,7 +862,7 @@
862
862
  if (this.checkMaxStock(item, quantity || 0))
863
863
  throw new Error('Desculpe! Temos apenas ' + ((_c = item.stock) === null || _c === void 0 ? void 0 : _c.quantity) + ' em estoque.');
864
864
  image = item.image || ((_d = item.images) === null || _d === void 0 ? void 0 : _d.shift());
865
- id = item.id, name = item.name, EAN = item.EAN, brand = item.brand, slug = item.slug, stock = item.stock, price = item.price, weight = item.weight, categories = item.categories, sku = item.sku;
865
+ id = item.id, name = item.name, EAN = item.EAN, brand = item.brand, slug = item.slug, stock = item.stock, price = item.price, weight = item.weight, categories = item.categories, sku = item.sku, type = item.type;
866
866
  isGift = item.isGift || null;
867
867
  pricePaid = this.getProductPrice({
868
868
  product: item,
@@ -887,6 +887,7 @@
887
887
  categories: (_f = product.categories) !== null && _f !== void 0 ? _f : [],
888
888
  isGift: isGift !== null && isGift !== void 0 ? isGift : null,
889
889
  costPrice: (_g = product.costPrice) !== null && _g !== void 0 ? _g : 0,
890
+ type: type,
890
891
  }),
891
892
  }];
892
893
  }
@@ -1112,6 +1113,7 @@
1112
1113
  'name',
1113
1114
  'weight',
1114
1115
  'rate',
1116
+ 'type'
1115
1117
  ])); }),
1116
1118
  }); };
1117
1119
  }