@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.
@@ -7355,10 +7355,10 @@ var WebReturnSalesforceMapperBuilderClass = /** @class */ (function () {
7355
7355
  SKU: product.product_id ? product.product_id : '',
7356
7356
  quantity: product.quantity ? product.quantity : 0,
7357
7357
  refundedQuantity: 0,
7358
- price: product.price ? product.price : 0,
7358
+ price: product.base_price ? product.base_price : 0,
7359
7359
  itemLineId: index + 1,
7360
7360
  deliveryMethod: (/** @type {?} */ (_this)).getDeliveryMethod().toString(),
7361
- 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
7361
+ totalLinePrice: product.price ? product.price : 0
7362
7362
  };
7363
7363
  if (product && product.price != 0) {
7364
7364
  (/** @type {?} */ (_this)).webReturnObject.basket['products'].push(productObj);
@@ -7610,6 +7610,7 @@ var WebReturnSalesforceMapperBuilderClass = /** @class */ (function () {
7610
7610
  basketSummary.saleTotal = (/** @type {?} */ (this)).orderDetails.order_total ? (/** @type {?} */ (this)).orderDetails.order_total : 0;
7611
7611
  basketSummary.basketTotal = (/** @type {?} */ (this)).orderDetails.order_total ? (/** @type {?} */ (this)).orderDetails.order_total : 0;
7612
7612
  basketSummary.totalItems = (/** @type {?} */ (this)).orderDetails.product_items && (/** @type {?} */ (this)).orderDetails.product_items.length > 0 ? (/** @type {?} */ (this)).orderDetails.product_items.length : 0;
7613
+ basketSummary.shippingTotal = (/** @type {?} */ (this)).orderDetails.shipping_total ? (/** @type {?} */ (this)).orderDetails.shipping_total : 0;
7613
7614
  basketSummary.basketTotalWithShippingTotal = (/** @type {?} */ (this)).orderDetails.order_total ? (/** @type {?} */ (this)).orderDetails.order_total : 0;
7614
7615
  basketSummaryWebOrder.shippingTotal = (/** @type {?} */ (this)).orderDetails.shipping_total ? (/** @type {?} */ (this)).orderDetails.shipping_total : 0;
7615
7616
  basketSummaryWebOrder.basketTotalWithShippingTotal = (/** @type {?} */ (this)).orderDetails.order_total ? (/** @type {?} */ (this)).orderDetails.order_total : 0;