@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.
- package/bundles/pmcretail-mapper-library.umd.js +3 -2
- package/bundles/pmcretail-mapper-library.umd.js.map +1 -1
- package/bundles/pmcretail-mapper-library.umd.min.js +1 -1
- package/bundles/pmcretail-mapper-library.umd.min.js.map +1 -1
- package/esm2015/lib/WebReturnSalesforceMapper.class.js +4 -3
- package/esm5/lib/WebReturnSalesforceMapper.class.js +4 -3
- package/fesm2015/pmcretail-mapper-library.js +3 -2
- package/fesm2015/pmcretail-mapper-library.js.map +1 -1
- package/fesm5/pmcretail-mapper-library.js +3 -2
- package/fesm5/pmcretail-mapper-library.js.map +1 -1
- package/package.json +1 -1
|
@@ -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.
|
|
7358
|
+
price: product.base_price ? product.base_price : 0,
|
|
7359
7359
|
itemLineId: index + 1,
|
|
7360
7360
|
deliveryMethod: (/** @type {?} */ (_this)).getDeliveryMethod().toString(),
|
|
7361
|
-
totalLinePrice: product.
|
|
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;
|