@pmcretail/mapper-library 0.0.29 → 0.0.30

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.
@@ -7575,10 +7575,10 @@
7575
7575
  SKU: product.product_id ? product.product_id : '',
7576
7576
  quantity: product.quantity ? product.quantity : 0,
7577
7577
  refundedQuantity: 0,
7578
- price: product.price ? product.price : 0,
7578
+ price: product.base_price ? product.base_price : 0,
7579
7579
  itemLineId: index + 1,
7580
7580
  deliveryMethod: (/** @type {?} */ (_this)).getDeliveryMethod().toString(),
7581
- totalLinePrice: product.price_after_order_discount || product.price_after_item_discount || product.price ? product.price_after_order_discount * product.quantity || product.price_after_item_discount * product.quantity || product.price * product.quantity : 0
7581
+ totalLinePrice: product.price ? product.price : 0
7582
7582
  };
7583
7583
  if (product && product.price != 0) {
7584
7584
  (/** @type {?} */ (_this)).webReturnObject.basket['products'].push(productObj);
@@ -7830,6 +7830,7 @@
7830
7830
  basketSummary.saleTotal = (/** @type {?} */ (this)).orderDetails.order_total ? (/** @type {?} */ (this)).orderDetails.order_total : 0;
7831
7831
  basketSummary.basketTotal = (/** @type {?} */ (this)).orderDetails.order_total ? (/** @type {?} */ (this)).orderDetails.order_total : 0;
7832
7832
  basketSummary.totalItems = (/** @type {?} */ (this)).orderDetails.product_items && (/** @type {?} */ (this)).orderDetails.product_items.length > 0 ? (/** @type {?} */ (this)).orderDetails.product_items.length : 0;
7833
+ basketSummary.shippingTotal = (/** @type {?} */ (this)).orderDetails.shipping_total ? (/** @type {?} */ (this)).orderDetails.shipping_total : 0;
7833
7834
  basketSummary.basketTotalWithShippingTotal = (/** @type {?} */ (this)).orderDetails.order_total ? (/** @type {?} */ (this)).orderDetails.order_total : 0;
7834
7835
  basketSummaryWebOrder.shippingTotal = (/** @type {?} */ (this)).orderDetails.shipping_total ? (/** @type {?} */ (this)).orderDetails.shipping_total : 0;
7835
7836
  basketSummaryWebOrder.basketTotalWithShippingTotal = (/** @type {?} */ (this)).orderDetails.order_total ? (/** @type {?} */ (this)).orderDetails.order_total : 0;