@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.
- package/bundles/pmcretail-mapper-library.umd.js +19 -0
- 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/WebReturn-mapper.class.js +15 -1
- package/esm5/lib/WebReturn-mapper.class.js +20 -1
- package/fesm2015/pmcretail-mapper-library.js +14 -0
- package/fesm2015/pmcretail-mapper-library.js.map +1 -1
- package/fesm5/pmcretail-mapper-library.js +19 -0
- package/fesm5/pmcretail-mapper-library.js.map +1 -1
- package/lib/WebReturn-mapper.class.d.ts +1 -0
- package/package.json +1 -1
- package/pmcretail-mapper-library.metadata.json +1 -1
|
@@ -6884,6 +6884,7 @@ var WebReturnMapperBuilderClass = /** @class */ (function () {
|
|
|
6884
6884
|
terminalId: "",
|
|
6885
6885
|
initiatingModule: "",
|
|
6886
6886
|
export: false,
|
|
6887
|
+
isInStoreOrder: false,
|
|
6887
6888
|
basket: {},
|
|
6888
6889
|
basketSummary: {},
|
|
6889
6890
|
baseCurrency: "",
|
|
@@ -7202,6 +7203,24 @@ var WebReturnMapperBuilderClass = /** @class */ (function () {
|
|
|
7202
7203
|
return new Date(date).toISOString();
|
|
7203
7204
|
}
|
|
7204
7205
|
};
|
|
7206
|
+
/**
|
|
7207
|
+
* @template THIS
|
|
7208
|
+
* @this {THIS}
|
|
7209
|
+
* @return {THIS}
|
|
7210
|
+
*/
|
|
7211
|
+
WebReturnMapperBuilderClass.prototype.isInStoreOrder = /**
|
|
7212
|
+
* @template THIS
|
|
7213
|
+
* @this {THIS}
|
|
7214
|
+
* @return {THIS}
|
|
7215
|
+
*/
|
|
7216
|
+
function () {
|
|
7217
|
+
console.log("Mapper library: WebReturnMapperBuilderClass: isInStoreOrder mapping started...");
|
|
7218
|
+
if ((/** @type {?} */ (this)).document.payment && (/** @type {?} */ (this)).document.payment.method && (/** @type {?} */ (this)).document.payment.method === 'pos_order') {
|
|
7219
|
+
(/** @type {?} */ (this)).webReturnObject.isInStoreOrder = true;
|
|
7220
|
+
}
|
|
7221
|
+
console.log("Mapper library: WebReturnMapperBuilderClass: isInStoreOrder mapping ended...");
|
|
7222
|
+
return (/** @type {?} */ (this));
|
|
7223
|
+
};
|
|
7205
7224
|
return WebReturnMapperBuilderClass;
|
|
7206
7225
|
}());
|
|
7207
7226
|
if (false) {
|