@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
|
@@ -909,6 +909,8 @@
|
|
|
909
909
|
TransactionDocument.prototype.externalTransactionDetails;
|
|
910
910
|
/** @type {?|undefined} */
|
|
911
911
|
TransactionDocument.prototype.refundRequest;
|
|
912
|
+
/** @type {?|undefined} */
|
|
913
|
+
TransactionDocument.prototype.isInStoreOrder;
|
|
912
914
|
}
|
|
913
915
|
/**
|
|
914
916
|
* @record
|
|
@@ -1688,6 +1690,8 @@
|
|
|
1688
1690
|
OrderDetails.prototype.tax_rounded_at_group;
|
|
1689
1691
|
/** @type {?|undefined} */
|
|
1690
1692
|
OrderDetails.prototype.tax_total;
|
|
1693
|
+
/** @type {?|undefined} */
|
|
1694
|
+
OrderDetails.prototype.c_isInStoreOrder;
|
|
1691
1695
|
}
|
|
1692
1696
|
/** @enum {string} */
|
|
1693
1697
|
var PROVIDERS = {
|
|
@@ -7100,6 +7104,7 @@
|
|
|
7100
7104
|
terminalId: "",
|
|
7101
7105
|
initiatingModule: "",
|
|
7102
7106
|
export: false,
|
|
7107
|
+
isInStoreOrder: false,
|
|
7103
7108
|
basket: {},
|
|
7104
7109
|
basketSummary: {},
|
|
7105
7110
|
baseCurrency: "",
|
|
@@ -7418,6 +7423,24 @@
|
|
|
7418
7423
|
return new Date(date).toISOString();
|
|
7419
7424
|
}
|
|
7420
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
|
+
};
|
|
7421
7444
|
return WebReturnMapperBuilderClass;
|
|
7422
7445
|
}());
|
|
7423
7446
|
if (false) {
|
|
@@ -7451,6 +7474,7 @@
|
|
|
7451
7474
|
terminalId: "",
|
|
7452
7475
|
initiatingModule: "",
|
|
7453
7476
|
export: false,
|
|
7477
|
+
isInStoreOrder: false,
|
|
7454
7478
|
basket: {},
|
|
7455
7479
|
basketSummary: {},
|
|
7456
7480
|
baseCurrency: "",
|
|
@@ -7990,6 +8014,24 @@
|
|
|
7990
8014
|
console.log("Mapper library: WebReturnSalesforceMapperBuilderClass: customer mapping ended...");
|
|
7991
8015
|
return (/** @type {?} */ (this));
|
|
7992
8016
|
};
|
|
8017
|
+
/**
|
|
8018
|
+
* @template THIS
|
|
8019
|
+
* @this {THIS}
|
|
8020
|
+
* @return {THIS}
|
|
8021
|
+
*/
|
|
8022
|
+
WebReturnSalesforceMapperBuilderClass.prototype.isInStoreOrder = /**
|
|
8023
|
+
* @template THIS
|
|
8024
|
+
* @this {THIS}
|
|
8025
|
+
* @return {THIS}
|
|
8026
|
+
*/
|
|
8027
|
+
function () {
|
|
8028
|
+
console.log("Mapper library: WebReturnSalesforceMapperBuilderClass: isInStoreOrder mapping started...");
|
|
8029
|
+
if ((/** @type {?} */ (this)).orderDetails.c_isInStoreOrder) {
|
|
8030
|
+
(/** @type {?} */ (this)).webReturnObject.isInStoreOrder = true;
|
|
8031
|
+
}
|
|
8032
|
+
console.log("Mapper library: WebReturnSalesforceMapperBuilderClass: isInStoreOrder mapping ended...");
|
|
8033
|
+
return (/** @type {?} */ (this));
|
|
8034
|
+
};
|
|
7993
8035
|
/**
|
|
7994
8036
|
* @template THIS
|
|
7995
8037
|
* @this {THIS}
|