@pmcretail/mapper-library 0.0.36 → 0.0.37

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.
@@ -7104,6 +7104,7 @@
7104
7104
  terminalId: "",
7105
7105
  initiatingModule: "",
7106
7106
  export: false,
7107
+ isInStoreOrder: false,
7107
7108
  basket: {},
7108
7109
  basketSummary: {},
7109
7110
  baseCurrency: "",
@@ -7422,6 +7423,24 @@
7422
7423
  return new Date(date).toISOString();
7423
7424
  }
7424
7425
  };
7426
+ /**
7427
+ * @template THIS
7428
+ * @this {THIS}
7429
+ * @return {THIS}
7430
+ */
7431
+ WebReturnMapperBuilderClass.prototype.isInStoreOrder = /**
7432
+ * @template THIS
7433
+ * @this {THIS}
7434
+ * @return {THIS}
7435
+ */
7436
+ function () {
7437
+ console.log("Mapper library: WebReturnMapperBuilderClass: isInStoreOrder mapping started...");
7438
+ if ((/** @type {?} */ (this)).document.payment && (/** @type {?} */ (this)).document.payment.method && (/** @type {?} */ (this)).document.payment.method === 'pos_order') {
7439
+ (/** @type {?} */ (this)).webReturnObject.isInStoreOrder = true;
7440
+ }
7441
+ console.log("Mapper library: WebReturnMapperBuilderClass: isInStoreOrder mapping ended...");
7442
+ return (/** @type {?} */ (this));
7443
+ };
7425
7444
  return WebReturnMapperBuilderClass;
7426
7445
  }());
7427
7446
  if (false) {