@pmcretail/mapper-library 0.0.31 → 0.0.33
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 +5 -7
- 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 +6 -8
- package/esm2015/lib/mapper-library.component.js +5 -5
- package/esm2015/lib/mapper-library.model.js +1 -1
- package/esm2015/lib/mapper-library.module.js +1 -1
- package/esm5/lib/WebReturnSalesforceMapper.class.js +6 -8
- package/esm5/lib/mapper-library.component.js +1 -1
- package/esm5/lib/mapper-library.model.js +1 -1
- package/esm5/lib/mapper-library.module.js +1 -1
- package/fesm2015/pmcretail-mapper-library.js +9 -11
- package/fesm2015/pmcretail-mapper-library.js.map +1 -1
- package/fesm5/pmcretail-mapper-library.js +5 -7
- package/fesm5/pmcretail-mapper-library.js.map +1 -1
- package/lib/mapper-library.model.d.ts +1 -1
- package/package.json +1 -1
|
@@ -7597,7 +7597,9 @@ var WebReturnSalesforceMapperBuilderClass = /** @class */ (function () {
|
|
|
7597
7597
|
if (!(/** @type {?} */ (this)).webReturnObject.basket.transactionPromotion) {
|
|
7598
7598
|
(/** @type {?} */ (this)).webReturnObject.basket.transactionPromotion = [];
|
|
7599
7599
|
}
|
|
7600
|
-
(
|
|
7600
|
+
if (transactionPromotion && transactionPromotion.promotionId) {
|
|
7601
|
+
(/** @type {?} */ (this)).webReturnObject.basket.transactionPromotion.push(transactionPromotion);
|
|
7602
|
+
}
|
|
7601
7603
|
return (/** @type {?} */ (this));
|
|
7602
7604
|
}
|
|
7603
7605
|
catch (error) {
|
|
@@ -7618,18 +7620,14 @@ var WebReturnSalesforceMapperBuilderClass = /** @class */ (function () {
|
|
|
7618
7620
|
*/
|
|
7619
7621
|
function () {
|
|
7620
7622
|
var _this = this;
|
|
7621
|
-
/** @type {?} */
|
|
7622
|
-
var doc;
|
|
7623
|
-
if ((/** @type {?} */ (this)).webReturnObject.basket.transactionPromotion) {
|
|
7623
|
+
if ((/** @type {?} */ (this)).webReturnObject.basket.transactionPromotion && (/** @type {?} */ (this)).webReturnObject.basket.transactionPromotion.length > 0) {
|
|
7624
7624
|
(/** @type {?} */ (this)).webReturnObject.basket.transactionPromotion.forEach((/**
|
|
7625
7625
|
* @param {?} tr
|
|
7626
7626
|
* @return {?}
|
|
7627
7627
|
*/
|
|
7628
7628
|
function (tr) {
|
|
7629
|
-
|
|
7630
|
-
(/** @type {?} */ (_this)).transactionPromotionProductPortionCalc((/** @type {?} */ (_this)).webReturnObject, tr);
|
|
7629
|
+
(/** @type {?} */ (_this)).transactionPromotionProductPortionCalc((/** @type {?} */ (_this)).webReturnObject, tr);
|
|
7631
7630
|
}));
|
|
7632
|
-
(/** @type {?} */ (this)).webReturnObject = doc;
|
|
7633
7631
|
}
|
|
7634
7632
|
return (/** @type {?} */ (this));
|
|
7635
7633
|
};
|