@pmcretail/mapper-library 0.0.35 → 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 +42 -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/esm2015/lib/WebReturnSalesforceMapper.class.js +15 -1
- package/esm2015/lib/mapper-library.model.js +5 -1
- package/esm5/lib/WebReturn-mapper.class.js +20 -1
- package/esm5/lib/WebReturnSalesforceMapper.class.js +20 -1
- package/esm5/lib/mapper-library.model.js +5 -1
- package/fesm2015/pmcretail-mapper-library.js +32 -0
- package/fesm2015/pmcretail-mapper-library.js.map +1 -1
- package/fesm5/pmcretail-mapper-library.js +42 -0
- package/fesm5/pmcretail-mapper-library.js.map +1 -1
- package/lib/WebReturn-mapper.class.d.ts +1 -0
- package/lib/WebReturnSalesforceMapper.class.d.ts +1 -0
- package/lib/mapper-library.model.d.ts +2 -0
- package/package.json +1 -1
- package/pmcretail-mapper-library.metadata.json +1 -1
|
@@ -689,6 +689,8 @@ if (false) {
|
|
|
689
689
|
TransactionDocument.prototype.externalTransactionDetails;
|
|
690
690
|
/** @type {?|undefined} */
|
|
691
691
|
TransactionDocument.prototype.refundRequest;
|
|
692
|
+
/** @type {?|undefined} */
|
|
693
|
+
TransactionDocument.prototype.isInStoreOrder;
|
|
692
694
|
}
|
|
693
695
|
/**
|
|
694
696
|
* @record
|
|
@@ -1468,6 +1470,8 @@ if (false) {
|
|
|
1468
1470
|
OrderDetails.prototype.tax_rounded_at_group;
|
|
1469
1471
|
/** @type {?|undefined} */
|
|
1470
1472
|
OrderDetails.prototype.tax_total;
|
|
1473
|
+
/** @type {?|undefined} */
|
|
1474
|
+
OrderDetails.prototype.c_isInStoreOrder;
|
|
1471
1475
|
}
|
|
1472
1476
|
/** @enum {string} */
|
|
1473
1477
|
var PROVIDERS = {
|
|
@@ -6880,6 +6884,7 @@ var WebReturnMapperBuilderClass = /** @class */ (function () {
|
|
|
6880
6884
|
terminalId: "",
|
|
6881
6885
|
initiatingModule: "",
|
|
6882
6886
|
export: false,
|
|
6887
|
+
isInStoreOrder: false,
|
|
6883
6888
|
basket: {},
|
|
6884
6889
|
basketSummary: {},
|
|
6885
6890
|
baseCurrency: "",
|
|
@@ -7198,6 +7203,24 @@ var WebReturnMapperBuilderClass = /** @class */ (function () {
|
|
|
7198
7203
|
return new Date(date).toISOString();
|
|
7199
7204
|
}
|
|
7200
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
|
+
};
|
|
7201
7224
|
return WebReturnMapperBuilderClass;
|
|
7202
7225
|
}());
|
|
7203
7226
|
if (false) {
|
|
@@ -7231,6 +7254,7 @@ var WebReturnSalesforceMapperBuilderClass = /** @class */ (function () {
|
|
|
7231
7254
|
terminalId: "",
|
|
7232
7255
|
initiatingModule: "",
|
|
7233
7256
|
export: false,
|
|
7257
|
+
isInStoreOrder: false,
|
|
7234
7258
|
basket: {},
|
|
7235
7259
|
basketSummary: {},
|
|
7236
7260
|
baseCurrency: "",
|
|
@@ -7770,6 +7794,24 @@ var WebReturnSalesforceMapperBuilderClass = /** @class */ (function () {
|
|
|
7770
7794
|
console.log("Mapper library: WebReturnSalesforceMapperBuilderClass: customer mapping ended...");
|
|
7771
7795
|
return (/** @type {?} */ (this));
|
|
7772
7796
|
};
|
|
7797
|
+
/**
|
|
7798
|
+
* @template THIS
|
|
7799
|
+
* @this {THIS}
|
|
7800
|
+
* @return {THIS}
|
|
7801
|
+
*/
|
|
7802
|
+
WebReturnSalesforceMapperBuilderClass.prototype.isInStoreOrder = /**
|
|
7803
|
+
* @template THIS
|
|
7804
|
+
* @this {THIS}
|
|
7805
|
+
* @return {THIS}
|
|
7806
|
+
*/
|
|
7807
|
+
function () {
|
|
7808
|
+
console.log("Mapper library: WebReturnSalesforceMapperBuilderClass: isInStoreOrder mapping started...");
|
|
7809
|
+
if ((/** @type {?} */ (this)).orderDetails.c_isInStoreOrder) {
|
|
7810
|
+
(/** @type {?} */ (this)).webReturnObject.isInStoreOrder = true;
|
|
7811
|
+
}
|
|
7812
|
+
console.log("Mapper library: WebReturnSalesforceMapperBuilderClass: isInStoreOrder mapping ended...");
|
|
7813
|
+
return (/** @type {?} */ (this));
|
|
7814
|
+
};
|
|
7773
7815
|
/**
|
|
7774
7816
|
* @template THIS
|
|
7775
7817
|
* @this {THIS}
|