@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.
@@ -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
- (/** @type {?} */ (this)).webReturnObject.basket.transactionPromotion.push(transactionPromotion);
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
- doc =
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
  };