@pmcretail/mapper-library 0.0.28 → 0.0.29

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.
@@ -64,6 +64,7 @@ var TRANSACTION_TYPE = {
64
64
  SALE_REFUND: "SALE_REFUND",
65
65
  SALE_EXCHANGE: "SALE_EXCHANGE",
66
66
  VOID: "VOID",
67
+ WEB_RETURNS: "WEB_RETURNS",
67
68
  };
68
69
  /**
69
70
  * @record
@@ -84,10 +85,12 @@ var DELIVERY_METHODS = {
84
85
  DELIVERY: 1,
85
86
  DROP_SHIP: 2,
86
87
  COLLECT_FROM_STORE: 3,
88
+ SHIP_TO_STORE: 4,
87
89
  };
88
90
  DELIVERY_METHODS[DELIVERY_METHODS.DELIVERY] = 'DELIVERY';
89
91
  DELIVERY_METHODS[DELIVERY_METHODS.DROP_SHIP] = 'DROP_SHIP';
90
92
  DELIVERY_METHODS[DELIVERY_METHODS.COLLECT_FROM_STORE] = 'COLLECT_FROM_STORE';
93
+ DELIVERY_METHODS[DELIVERY_METHODS.SHIP_TO_STORE] = 'SHIP_TO_STORE';
91
94
  /**
92
95
  * @record
93
96
  */
@@ -664,6 +667,8 @@ if (false) {
664
667
  TransactionDocument.prototype.currentTransactionDetails;
665
668
  /** @type {?|undefined} */
666
669
  TransactionDocument.prototype.isChecked;
670
+ /** @type {?|undefined} */
671
+ TransactionDocument.prototype.externalTransactionDetails;
667
672
  }
668
673
  /**
669
674
  * @record
@@ -702,18 +707,50 @@ if (false) {
702
707
  */
703
708
  function BasketSummary() { }
704
709
  if (false) {
705
- /** @type {?} */
710
+ /** @type {?|undefined} */
706
711
  BasketSummary.prototype.totalItems;
707
- /** @type {?} */
712
+ /** @type {?|undefined} */
708
713
  BasketSummary.prototype.saleTotal;
709
- /** @type {?} */
714
+ /** @type {?|undefined} */
710
715
  BasketSummary.prototype.VATTotal;
711
- /** @type {?} */
716
+ /** @type {?|undefined} */
712
717
  BasketSummary.prototype.discountTotal;
713
- /** @type {?} */
718
+ /** @type {?|undefined} */
714
719
  BasketSummary.prototype.basketTotal;
715
720
  /** @type {?|undefined} */
716
721
  BasketSummary.prototype.refundTotal;
722
+ /** @type {?|undefined} */
723
+ BasketSummary.prototype.shippingTotal;
724
+ /** @type {?|undefined} */
725
+ BasketSummary.prototype.basketTotalWithShippingTotal;
726
+ /** @type {?|undefined} */
727
+ BasketSummary.prototype.inStore;
728
+ /** @type {?|undefined} */
729
+ BasketSummary.prototype.webOrder;
730
+ /** @type {?|undefined} */
731
+ BasketSummary.prototype.cnc;
732
+ }
733
+ /**
734
+ * @record
735
+ */
736
+ function BasketSummaryDetails() { }
737
+ if (false) {
738
+ /** @type {?|undefined} */
739
+ BasketSummaryDetails.prototype.totalItems;
740
+ /** @type {?|undefined} */
741
+ BasketSummaryDetails.prototype.saleTotal;
742
+ /** @type {?|undefined} */
743
+ BasketSummaryDetails.prototype.VATTotal;
744
+ /** @type {?|undefined} */
745
+ BasketSummaryDetails.prototype.discountTotal;
746
+ /** @type {?|undefined} */
747
+ BasketSummaryDetails.prototype.basketTotal;
748
+ /** @type {?|undefined} */
749
+ BasketSummaryDetails.prototype.refundTotal;
750
+ /** @type {?|undefined} */
751
+ BasketSummaryDetails.prototype.shippingTotal;
752
+ /** @type {?|undefined} */
753
+ BasketSummaryDetails.prototype.basketTotalWithShippingTotal;
717
754
  }
718
755
  /**
719
756
  * @record
@@ -899,6 +936,8 @@ if (false) {
899
936
  /** @type {?|undefined} */
900
937
  Customer.prototype.shippingAddress;
901
938
  /** @type {?|undefined} */
939
+ Customer.prototype.shipmentDetails;
940
+ /** @type {?|undefined} */
902
941
  Customer.prototype.addressDetail;
903
942
  /** @type {?|undefined} */
904
943
  Customer.prototype.noCustomerSelected;
@@ -910,6 +949,10 @@ if (false) {
910
949
  */
911
950
  function Address() { }
912
951
  if (false) {
952
+ /** @type {?|undefined} */
953
+ Address.prototype.id;
954
+ /** @type {?|undefined} */
955
+ Address.prototype.countryCode;
913
956
  /** @type {?|undefined} */
914
957
  Address.prototype.address1;
915
958
  /** @type {?|undefined} */
@@ -925,6 +968,16 @@ if (false) {
925
968
  /** @type {?|undefined} */
926
969
  Address.prototype.country;
927
970
  }
971
+ /**
972
+ * @record
973
+ */
974
+ function ShipmentDetails() { }
975
+ if (false) {
976
+ /** @type {?|undefined} */
977
+ ShipmentDetails.prototype.id;
978
+ /** @type {?|undefined} */
979
+ ShipmentDetails.prototype.deliveryGroup;
980
+ }
928
981
  /**
929
982
  * @record
930
983
  */
@@ -1023,6 +1076,380 @@ if (false) {
1023
1076
  var DISCOUNTTYPE = {
1024
1077
  PERCENT: "Percent",
1025
1078
  AMOUNT: "AMOUNT",
1079
+ };
1080
+ /**
1081
+ * @record
1082
+ */
1083
+ function TransactionInfo() { }
1084
+ if (false) {
1085
+ /** @type {?|undefined} */
1086
+ TransactionInfo.prototype.shippingId;
1087
+ /** @type {?|undefined} */
1088
+ TransactionInfo.prototype.externalShippingId;
1089
+ }
1090
+ /**
1091
+ * @record
1092
+ */
1093
+ function externalTransactionDetails() { }
1094
+ if (false) {
1095
+ /** @type {?|undefined} */
1096
+ externalTransactionDetails.prototype.uniqueId;
1097
+ /** @type {?|undefined} */
1098
+ externalTransactionDetails.prototype.providerType;
1099
+ /** @type {?|undefined} */
1100
+ externalTransactionDetails.prototype.details;
1101
+ }
1102
+ /** @enum {string} */
1103
+ var INITIATING_MODULE = {
1104
+ EBASKET: "eBasket",
1105
+ };
1106
+ /**
1107
+ * @record
1108
+ */
1109
+ function pendingMethod() { }
1110
+ if (false) {
1111
+ /** @type {?|undefined} */
1112
+ pendingMethod.prototype._type;
1113
+ /** @type {?|undefined} */
1114
+ pendingMethod.prototype.type;
1115
+ /** @type {?|undefined} */
1116
+ pendingMethod.prototype.message;
1117
+ /** @type {?|undefined} */
1118
+ pendingMethod.prototype.path;
1119
+ /** @type {?|undefined} */
1120
+ pendingMethod.prototype.details;
1121
+ }
1122
+ /**
1123
+ * @record
1124
+ */
1125
+ function ShipmentId() { }
1126
+ if (false) {
1127
+ /** @type {?|undefined} */
1128
+ ShipmentId.prototype.shipmentId;
1129
+ }
1130
+ /**
1131
+ * @record
1132
+ */
1133
+ function CustomerAddress() { }
1134
+ if (false) {
1135
+ /** @type {?|undefined} */
1136
+ CustomerAddress.prototype._type;
1137
+ /** @type {?|undefined} */
1138
+ CustomerAddress.prototype.email;
1139
+ /** @type {?|undefined} */
1140
+ CustomerAddress.prototype.address1;
1141
+ /** @type {?|undefined} */
1142
+ CustomerAddress.prototype.city;
1143
+ /** @type {?|undefined} */
1144
+ CustomerAddress.prototype.country_code;
1145
+ /** @type {?|undefined} */
1146
+ CustomerAddress.prototype.first_name;
1147
+ /** @type {?|undefined} */
1148
+ CustomerAddress.prototype.full_name;
1149
+ /** @type {?|undefined} */
1150
+ CustomerAddress.prototype.id;
1151
+ /** @type {?|undefined} */
1152
+ CustomerAddress.prototype.last_name;
1153
+ /** @type {?|undefined} */
1154
+ CustomerAddress.prototype.phone;
1155
+ /** @type {?|undefined} */
1156
+ CustomerAddress.prototype.salutation;
1157
+ /** @type {?|undefined} */
1158
+ CustomerAddress.prototype.c_area;
1159
+ /** @type {?|undefined} */
1160
+ CustomerAddress.prototype.c_email;
1161
+ /** @type {?|undefined} */
1162
+ CustomerAddress.prototype.c_phoneWhatsApp;
1163
+ /** @type {?|undefined} */
1164
+ CustomerAddress.prototype.c_strValue;
1165
+ /** @type {?|undefined} */
1166
+ CustomerAddress.prototype.postal_code;
1167
+ }
1168
+ /**
1169
+ * @record
1170
+ */
1171
+ function CustomerInfo() { }
1172
+ if (false) {
1173
+ /** @type {?|undefined} */
1174
+ CustomerInfo.prototype._type;
1175
+ /** @type {?|undefined} */
1176
+ CustomerInfo.prototype.customer_id;
1177
+ /** @type {?|undefined} */
1178
+ CustomerInfo.prototype.email;
1179
+ }
1180
+ /**
1181
+ * @record
1182
+ */
1183
+ function GroupedTaxItem() { }
1184
+ if (false) {
1185
+ /** @type {?|undefined} */
1186
+ GroupedTaxItem.prototype._type;
1187
+ /** @type {?|undefined} */
1188
+ GroupedTaxItem.prototype.tax_rate;
1189
+ /** @type {?|undefined} */
1190
+ GroupedTaxItem.prototype.tax_value;
1191
+ }
1192
+ /**
1193
+ * @record
1194
+ */
1195
+ function additionalNotes() { }
1196
+ if (false) {
1197
+ /** @type {?|undefined} */
1198
+ additionalNotes.prototype._type;
1199
+ /** @type {?|undefined} */
1200
+ additionalNotes.prototype.link;
1201
+ }
1202
+ /**
1203
+ * @record
1204
+ */
1205
+ function ProductItem() { }
1206
+ if (false) {
1207
+ /** @type {?|undefined} */
1208
+ ProductItem.prototype._type;
1209
+ /** @type {?|undefined} */
1210
+ ProductItem.prototype.adjusted_tax;
1211
+ /** @type {?|undefined} */
1212
+ ProductItem.prototype.base_price;
1213
+ /** @type {?|undefined} */
1214
+ ProductItem.prototype.bonus_product_line_item;
1215
+ /** @type {?|undefined} */
1216
+ ProductItem.prototype.gift;
1217
+ /** @type {?|undefined} */
1218
+ ProductItem.prototype.item_id;
1219
+ /** @type {?|undefined} */
1220
+ ProductItem.prototype.item_text;
1221
+ /** @type {?|undefined} */
1222
+ ProductItem.prototype.price;
1223
+ /** @type {?|undefined} */
1224
+ ProductItem.prototype.price_adjustments;
1225
+ /** @type {?|undefined} */
1226
+ ProductItem.prototype.price_after_item_discount;
1227
+ /** @type {?|undefined} */
1228
+ ProductItem.prototype.price_after_order_discount;
1229
+ /** @type {?|undefined} */
1230
+ ProductItem.prototype.product_id;
1231
+ /** @type {?|undefined} */
1232
+ ProductItem.prototype.product_name;
1233
+ /** @type {?|undefined} */
1234
+ ProductItem.prototype.quantity;
1235
+ /** @type {?|undefined} */
1236
+ ProductItem.prototype.shipment_id;
1237
+ /** @type {?|undefined} */
1238
+ ProductItem.prototype.tax;
1239
+ /** @type {?|undefined} */
1240
+ ProductItem.prototype.tax_basis;
1241
+ /** @type {?|undefined} */
1242
+ ProductItem.prototype.tax_class_id;
1243
+ /** @type {?|undefined} */
1244
+ ProductItem.prototype.tax_rate;
1245
+ }
1246
+ /**
1247
+ * @record
1248
+ */
1249
+ function ShippingMethod() { }
1250
+ if (false) {
1251
+ /** @type {?|undefined} */
1252
+ ShippingMethod.prototype._type;
1253
+ /** @type {?|undefined} */
1254
+ ShippingMethod.prototype.description;
1255
+ /** @type {?|undefined} */
1256
+ ShippingMethod.prototype.id;
1257
+ /** @type {?|undefined} */
1258
+ ShippingMethod.prototype.name;
1259
+ /** @type {?|undefined} */
1260
+ ShippingMethod.prototype.price;
1261
+ /** @type {?|undefined} */
1262
+ ShippingMethod.prototype.c_approachingThresholdMessage;
1263
+ /** @type {?|undefined} */
1264
+ ShippingMethod.prototype.c_estimatedArrivalTime;
1265
+ /** @type {?|undefined} */
1266
+ ShippingMethod.prototype.c_isEmail;
1267
+ /** @type {?|undefined} */
1268
+ ShippingMethod.prototype.c_storePickupEnabled;
1269
+ /** @type {?|undefined} */
1270
+ ShippingMethod.prototype.c_thresholdValue;
1271
+ }
1272
+ /**
1273
+ * @record
1274
+ */
1275
+ function shipment() { }
1276
+ if (false) {
1277
+ /** @type {?|undefined} */
1278
+ shipment.prototype._type;
1279
+ /** @type {?|undefined} */
1280
+ shipment.prototype.adjusted_merchandize_total_tax;
1281
+ /** @type {?|undefined} */
1282
+ shipment.prototype.adjusted_shipping_total_tax;
1283
+ /** @type {?|undefined} */
1284
+ shipment.prototype.gift;
1285
+ /** @type {?|undefined} */
1286
+ shipment.prototype.merchandize_total_tax;
1287
+ /** @type {?|undefined} */
1288
+ shipment.prototype.product_sub_total;
1289
+ /** @type {?|undefined} */
1290
+ shipment.prototype.product_total;
1291
+ /** @type {?|undefined} */
1292
+ shipment.prototype.shipment_id;
1293
+ /** @type {?|undefined} */
1294
+ shipment.prototype.shipment_total;
1295
+ /** @type {?|undefined} */
1296
+ shipment.prototype.shipping_address;
1297
+ /** @type {?|undefined} */
1298
+ shipment.prototype.shipping_method;
1299
+ /** @type {?|undefined} */
1300
+ shipment.prototype.shipping_status;
1301
+ /** @type {?|undefined} */
1302
+ shipment.prototype.shipping_total;
1303
+ /** @type {?|undefined} */
1304
+ shipment.prototype.shipping_total_tax;
1305
+ /** @type {?|undefined} */
1306
+ shipment.prototype.tax_total;
1307
+ /** @type {?|undefined} */
1308
+ shipment.prototype.c_fromStoreId;
1309
+ }
1310
+ /**
1311
+ * @record
1312
+ */
1313
+ function ShippingItem() { }
1314
+ if (false) {
1315
+ /** @type {?|undefined} */
1316
+ ShippingItem.prototype._type;
1317
+ /** @type {?|undefined} */
1318
+ ShippingItem.prototype.adjusted_tax;
1319
+ /** @type {?|undefined} */
1320
+ ShippingItem.prototype.base_price;
1321
+ /** @type {?|undefined} */
1322
+ ShippingItem.prototype.item_id;
1323
+ /** @type {?|undefined} */
1324
+ ShippingItem.prototype.item_text;
1325
+ /** @type {?|undefined} */
1326
+ ShippingItem.prototype.price;
1327
+ /** @type {?|undefined} */
1328
+ ShippingItem.prototype.price_after_item_discount;
1329
+ /** @type {?|undefined} */
1330
+ ShippingItem.prototype.shipment_id;
1331
+ /** @type {?|undefined} */
1332
+ ShippingItem.prototype.tax;
1333
+ /** @type {?|undefined} */
1334
+ ShippingItem.prototype.tax_basis;
1335
+ /** @type {?|undefined} */
1336
+ ShippingItem.prototype.tax_class_id;
1337
+ /** @type {?|undefined} */
1338
+ ShippingItem.prototype.tax_rate;
1339
+ }
1340
+ /**
1341
+ * @record
1342
+ */
1343
+ function AppliedDiscount() { }
1344
+ if (false) {
1345
+ /** @type {?|undefined} */
1346
+ AppliedDiscount.prototype._type;
1347
+ /** @type {?|undefined} */
1348
+ AppliedDiscount.prototype.amount;
1349
+ /** @type {?|undefined} */
1350
+ AppliedDiscount.prototype.percentage;
1351
+ /** @type {?|undefined} */
1352
+ AppliedDiscount.prototype.type;
1353
+ }
1354
+ /**
1355
+ * @record
1356
+ */
1357
+ function PriceAdjustment() { }
1358
+ if (false) {
1359
+ /** @type {?|undefined} */
1360
+ PriceAdjustment.prototype._type;
1361
+ /** @type {?|undefined} */
1362
+ PriceAdjustment.prototype.applied_discount;
1363
+ /** @type {?|undefined} */
1364
+ PriceAdjustment.prototype.coupon_code;
1365
+ /** @type {?|undefined} */
1366
+ PriceAdjustment.prototype.creation_date;
1367
+ /** @type {?|undefined} */
1368
+ PriceAdjustment.prototype.custom;
1369
+ /** @type {?|undefined} */
1370
+ PriceAdjustment.prototype.item_text;
1371
+ /** @type {?|undefined} */
1372
+ PriceAdjustment.prototype.last_modified;
1373
+ /** @type {?|undefined} */
1374
+ PriceAdjustment.prototype.manual;
1375
+ /** @type {?|undefined} */
1376
+ PriceAdjustment.prototype.price;
1377
+ /** @type {?|undefined} */
1378
+ PriceAdjustment.prototype.price_adjustment_id;
1379
+ /** @type {?|undefined} */
1380
+ PriceAdjustment.prototype.promotion_id;
1381
+ /** @type {?|undefined} */
1382
+ PriceAdjustment.prototype.promotion_link;
1383
+ }
1384
+ /**
1385
+ * @record
1386
+ */
1387
+ function OrderDetails() { }
1388
+ if (false) {
1389
+ /** @type {?|undefined} */
1390
+ OrderDetails.prototype._v;
1391
+ /** @type {?|undefined} */
1392
+ OrderDetails.prototype._type;
1393
+ /** @type {?|undefined} */
1394
+ OrderDetails.prototype._resource_state;
1395
+ /** @type {?|undefined} */
1396
+ OrderDetails.prototype._flash;
1397
+ /** @type {?|undefined} */
1398
+ OrderDetails.prototype.adjusted_merchandize_total_tax;
1399
+ /** @type {?|undefined} */
1400
+ OrderDetails.prototype.adjusted_shipping_total_tax;
1401
+ /** @type {?|undefined} */
1402
+ OrderDetails.prototype.agent_basket;
1403
+ /** @type {?|undefined} */
1404
+ OrderDetails.prototype.basket_id;
1405
+ /** @type {?|undefined} */
1406
+ OrderDetails.prototype.billing_address;
1407
+ /** @type {?|undefined} */
1408
+ OrderDetails.prototype.channel_type;
1409
+ /** @type {?|undefined} */
1410
+ OrderDetails.prototype.creation_date;
1411
+ /** @type {?|undefined} */
1412
+ OrderDetails.prototype.currency;
1413
+ /** @type {?|undefined} */
1414
+ OrderDetails.prototype.customer_info;
1415
+ /** @type {?|undefined} */
1416
+ OrderDetails.prototype.grouped_tax_items;
1417
+ /** @type {?|undefined} */
1418
+ OrderDetails.prototype.last_modified;
1419
+ /** @type {?|undefined} */
1420
+ OrderDetails.prototype.merchandize_total_tax;
1421
+ /** @type {?|undefined} */
1422
+ OrderDetails.prototype.notes;
1423
+ /** @type {?|undefined} */
1424
+ OrderDetails.prototype.order_price_adjustments;
1425
+ /** @type {?|undefined} */
1426
+ OrderDetails.prototype.order_no;
1427
+ /** @type {?|undefined} */
1428
+ OrderDetails.prototype.order_total;
1429
+ /** @type {?|undefined} */
1430
+ OrderDetails.prototype.product_items;
1431
+ /** @type {?|undefined} */
1432
+ OrderDetails.prototype.product_sub_total;
1433
+ /** @type {?|undefined} */
1434
+ OrderDetails.prototype.product_total;
1435
+ /** @type {?|undefined} */
1436
+ OrderDetails.prototype.shipments;
1437
+ /** @type {?|undefined} */
1438
+ OrderDetails.prototype.shipping_items;
1439
+ /** @type {?|undefined} */
1440
+ OrderDetails.prototype.shipping_total;
1441
+ /** @type {?|undefined} */
1442
+ OrderDetails.prototype.shipping_total_tax;
1443
+ /** @type {?|undefined} */
1444
+ OrderDetails.prototype.taxation;
1445
+ /** @type {?|undefined} */
1446
+ OrderDetails.prototype.tax_rounded_at_group;
1447
+ /** @type {?|undefined} */
1448
+ OrderDetails.prototype.tax_total;
1449
+ }
1450
+ /** @enum {string} */
1451
+ var PROVIDERS = {
1452
+ SALESFORCE: "Salesforce",
1026
1453
  };
1027
1454
 
1028
1455
  /**
@@ -6754,6 +7181,625 @@ if (false) {
6754
7181
  WebReturnMapperBuilderClass.prototype.webReturnObject;
6755
7182
  }
6756
7183
 
7184
+ /**
7185
+ * @fileoverview added by tsickle
7186
+ * Generated from: lib/WebReturnSalesforceMapper.class.ts
7187
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
7188
+ */
7189
+ var WebReturnSalesforceMapperBuilderClass = /** @class */ (function () {
7190
+ function WebReturnSalesforceMapperBuilderClass(orderDetails) {
7191
+ this.webReturnObject = {
7192
+ id: '',
7193
+ orgCode: "",
7194
+ storeId: "",
7195
+ storeNodeId: "",
7196
+ storeNodeStructure: "",
7197
+ deviceId: "",
7198
+ terminalId: "",
7199
+ initiatingModule: "",
7200
+ export: false,
7201
+ basket: {},
7202
+ basketSummary: {},
7203
+ baseCurrency: "",
7204
+ customer: {
7205
+ id: '',
7206
+ email: '',
7207
+ firstName: '',
7208
+ lastName: '',
7209
+ billingAddress: [],
7210
+ shippingAddress: [],
7211
+ shipmentDetails: [],
7212
+ telephone: '',
7213
+ postCode: '',
7214
+ noCustomerSelected: false
7215
+ },
7216
+ currentTransactionDetails: (/** @type {?} */ ({}))
7217
+ };
7218
+ if (orderDetails) {
7219
+ this.orderDetails = orderDetails;
7220
+ }
7221
+ }
7222
+ /**
7223
+ * @template THIS
7224
+ * @this {THIS}
7225
+ * @return {THIS}
7226
+ */
7227
+ WebReturnSalesforceMapperBuilderClass.prototype.webReturnCommonMapper = /**
7228
+ * @template THIS
7229
+ * @this {THIS}
7230
+ * @return {THIS}
7231
+ */
7232
+ function () {
7233
+ console.log("Mapper library: WebReturnSalesforceMapperBuilderClass: webReturnCommonMapper started...");
7234
+ (/** @type {?} */ (this)).webReturnObject['type'] = TRANSACTION_TYPE.WEB_RETURNS;
7235
+ (/** @type {?} */ (this)).webReturnObject['datetime'] = (/** @type {?} */ (this)).getUTCDateTime((/** @type {?} */ (this)).orderDetails.last_modified);
7236
+ (/** @type {?} */ (this)).webReturnObject.baseCurrency = (/** @type {?} */ (this)).orderDetails.currency;
7237
+ (/** @type {?} */ (this)).webReturnObject.subsidiaryId = '1';
7238
+ (/** @type {?} */ (this)).webReturnObject.export = true;
7239
+ (/** @type {?} */ (this)).webReturnObject.initiatingModule = INITIATING_MODULE.EBASKET;
7240
+ (/** @type {?} */ (this)).webReturnObject.createdAt = (/** @type {?} */ (this)).getUTCDateTime((/** @type {?} */ (this)).orderDetails.creation_date);
7241
+ (/** @type {?} */ (this)).webReturnObject.updatedAt = (/** @type {?} */ (this)).getUTCDateTime((/** @type {?} */ (this)).orderDetails.last_modified);
7242
+ (/** @type {?} */ (this)).webReturnObject.transCompletedAt = (/** @type {?} */ (this)).getUTCDateTime((/** @type {?} */ (this)).orderDetails.last_modified);
7243
+ (/** @type {?} */ (this)).webReturnObject['externalTransactionId'] = (/** @type {?} */ (this)).orderDetails.order_no;
7244
+ console.log("Mapper library: WebReturnSalesforceMapperBuilderClass: webReturnCommonMapper ended...");
7245
+ return (/** @type {?} */ (this));
7246
+ };
7247
+ // export(status, details) {
7248
+ // console.log("Mapper library: WebReturnSalesforceMapperBuilderClass: export mapping started...");
7249
+ // console.log("Mapper library: WebReturnSalesforceMapperBuilderClass: status:", status);
7250
+ // console.log("Mapper library: WebReturnSalesforceMapperBuilderClass: details:", JSON.stringify(details));
7251
+ // if (status && details && details.providers && details.providers.length > 0) {
7252
+ // details.providers.forEach(
7253
+ // providerObj => {
7254
+ // if (providerObj.provider && providerObj.provider === PROVIDERS.SALESFORCE) {
7255
+ // this.webReturnObject.export = true;
7256
+ // } else {
7257
+ // this.webReturnObject.export = false;
7258
+ // }
7259
+ // }
7260
+ // );
7261
+ // } else {
7262
+ // this.webReturnObject.export = false;
7263
+ // }
7264
+ // console.log("Mapper library: WebReturnSalesforceMapperBuilderClass: export mapping end...")
7265
+ // return this;
7266
+ // }
7267
+ // export(status, details) {
7268
+ // console.log("Mapper library: WebReturnSalesforceMapperBuilderClass: export mapping started...");
7269
+ // console.log("Mapper library: WebReturnSalesforceMapperBuilderClass: status:", status);
7270
+ // console.log("Mapper library: WebReturnSalesforceMapperBuilderClass: details:", JSON.stringify(details));
7271
+ // if (status && details && details.providers && details.providers.length > 0) {
7272
+ // details.providers.forEach(
7273
+ // providerObj => {
7274
+ // if (providerObj.provider && providerObj.provider === PROVIDERS.SALESFORCE) {
7275
+ // this.webReturnObject.export = true;
7276
+ // } else {
7277
+ // this.webReturnObject.export = false;
7278
+ // }
7279
+ // }
7280
+ // );
7281
+ // } else {
7282
+ // this.webReturnObject.export = false;
7283
+ // }
7284
+ // console.log("Mapper library: WebReturnSalesforceMapperBuilderClass: export mapping end...")
7285
+ // return this;
7286
+ // }
7287
+ /**
7288
+ * @return {?}
7289
+ */
7290
+ WebReturnSalesforceMapperBuilderClass.prototype.getDeliveryMethod =
7291
+ // export(status, details) {
7292
+ // console.log("Mapper library: WebReturnSalesforceMapperBuilderClass: export mapping started...");
7293
+ // console.log("Mapper library: WebReturnSalesforceMapperBuilderClass: status:", status);
7294
+ // console.log("Mapper library: WebReturnSalesforceMapperBuilderClass: details:", JSON.stringify(details));
7295
+ // if (status && details && details.providers && details.providers.length > 0) {
7296
+ // details.providers.forEach(
7297
+ // providerObj => {
7298
+ // if (providerObj.provider && providerObj.provider === PROVIDERS.SALESFORCE) {
7299
+ // this.webReturnObject.export = true;
7300
+ // } else {
7301
+ // this.webReturnObject.export = false;
7302
+ // }
7303
+ // }
7304
+ // );
7305
+ // } else {
7306
+ // this.webReturnObject.export = false;
7307
+ // }
7308
+ // console.log("Mapper library: WebReturnSalesforceMapperBuilderClass: export mapping end...")
7309
+ // return this;
7310
+ // }
7311
+ /**
7312
+ * @return {?}
7313
+ */
7314
+ function () {
7315
+ if (this.orderDetails.shipments && this.orderDetails.shipments.length > 0) {
7316
+ /** @type {?} */
7317
+ var shipToStoreShipment = this.orderDetails.shipments.find((/**
7318
+ * @param {?} shipment
7319
+ * @return {?}
7320
+ */
7321
+ function (shipment) { return shipment.c_fromStoreId; }));
7322
+ if (shipToStoreShipment)
7323
+ return DELIVERY_METHODS.SHIP_TO_STORE;
7324
+ else
7325
+ return DELIVERY_METHODS.DELIVERY;
7326
+ }
7327
+ else {
7328
+ return '';
7329
+ }
7330
+ };
7331
+ /**
7332
+ * @template THIS
7333
+ * @this {THIS}
7334
+ * @return {THIS}
7335
+ */
7336
+ WebReturnSalesforceMapperBuilderClass.prototype.product = /**
7337
+ * @template THIS
7338
+ * @this {THIS}
7339
+ * @return {THIS}
7340
+ */
7341
+ function () {
7342
+ var _this = this;
7343
+ console.log("Mapper library: WebReturnSalesforceMapperBuilderClass: product mapping started...");
7344
+ (/** @type {?} */ (this)).webReturnObject.basket['products'] = [];
7345
+ if ((/** @type {?} */ (this)).orderDetails.product_items && (/** @type {?} */ (this)).orderDetails.product_items.length > 0) {
7346
+ (/** @type {?} */ (this)).orderDetails.product_items.forEach((/**
7347
+ * @param {?} product
7348
+ * @param {?} index
7349
+ * @return {?}
7350
+ */
7351
+ function (product, index) {
7352
+ /** @type {?} */
7353
+ var productObj = {
7354
+ description: product.item_text ? product.item_text : '',
7355
+ SKU: product.product_id ? product.product_id : '',
7356
+ quantity: product.quantity ? product.quantity : 0,
7357
+ refundedQuantity: 0,
7358
+ price: product.price ? product.price : 0,
7359
+ itemLineId: index + 1,
7360
+ deliveryMethod: (/** @type {?} */ (_this)).getDeliveryMethod().toString(),
7361
+ totalLinePrice: product.price_after_order_discount || product.price_after_item_discount || product.price ? product.price_after_order_discount * product.quantity || product.price_after_item_discount * product.quantity || product.price * product.quantity : 0
7362
+ };
7363
+ if (product && product.price != 0) {
7364
+ (/** @type {?} */ (_this)).webReturnObject.basket['products'].push(productObj);
7365
+ }
7366
+ }));
7367
+ }
7368
+ console.log("Mapper library: WebReturnSalesforceMapperBuilderClass: product mapping ended...");
7369
+ return (/** @type {?} */ (this));
7370
+ };
7371
+ /**
7372
+ * @template THIS
7373
+ * @this {THIS}
7374
+ * @return {THIS}
7375
+ */
7376
+ WebReturnSalesforceMapperBuilderClass.prototype.linePromotion = /**
7377
+ * @template THIS
7378
+ * @this {THIS}
7379
+ * @return {THIS}
7380
+ */
7381
+ function () {
7382
+ console.log("Mapper library: WebReturnSalesforceMapperBuilderClass: linePromotion mapping started...");
7383
+ (/** @type {?} */ (this)).webReturnObject.basket.linePromotion = (/** @type {?} */ ([]));
7384
+ /** @type {?} */
7385
+ var linePromotionArray = (/** @type {?} */ ([]));
7386
+ if ((/** @type {?} */ (this)).orderDetails.product_items && (/** @type {?} */ (this)).orderDetails.product_items.length > 0) {
7387
+ (/** @type {?} */ (this)).orderDetails.product_items.forEach((/**
7388
+ * @param {?} product
7389
+ * @param {?} index
7390
+ * @return {?}
7391
+ */
7392
+ function (product, index) {
7393
+ product.item_id = (index + 1).toString();
7394
+ if (product.price_adjustments && product.price_adjustments.length > 0) {
7395
+ product.price_adjustments.forEach((/**
7396
+ * @param {?} promotion
7397
+ * @return {?}
7398
+ */
7399
+ function (promotion) {
7400
+ /** @type {?} */
7401
+ var linePromotionObj = (/** @type {?} */ ({}));
7402
+ /** @type {?} */
7403
+ var trigger = (/** @type {?} */ ({}));
7404
+ trigger.itemLineId = product.item_id;
7405
+ trigger.quantity = product.quantity ? product.quantity : 0;
7406
+ linePromotionObj.trigger = (/** @type {?} */ ([]));
7407
+ linePromotionObj.trigger.push(trigger);
7408
+ linePromotionObj.itemLineId = index + 1;
7409
+ linePromotionObj.promotionId = promotion.promotion_id ? promotion.promotion_id : '';
7410
+ linePromotionObj.displayText = promotion.item_text ? promotion.item_text : '';
7411
+ linePromotionObj.promotionType = promotion.applied_discount && promotion.applied_discount.type ? promotion.applied_discount.type : '';
7412
+ linePromotionObj.promotionAmount = promotion.price ? Math.abs(promotion.price) : 0;
7413
+ linePromotionObj.name = promotion.item_text ? promotion.item_text : '';
7414
+ linePromotionObj.promotionInfo = promotion.item_text ? promotion.item_text : '';
7415
+ linePromotionObj.promotionLinePrice = product.price_after_item_discount ? product.price_after_item_discount : 0;
7416
+ linePromotionArray.push(linePromotionObj);
7417
+ }));
7418
+ }
7419
+ }));
7420
+ }
7421
+ (/** @type {?} */ (this)).webReturnObject.basket.linePromotion = linePromotionArray;
7422
+ console.log("Mapper library: WebReturnSalesforceMapperBuilderClass: linePromotion mapping ended...");
7423
+ return (/** @type {?} */ (this));
7424
+ };
7425
+ /**
7426
+ * @template THIS
7427
+ * @this {THIS}
7428
+ * @return {THIS}
7429
+ */
7430
+ WebReturnSalesforceMapperBuilderClass.prototype.transactionPromotion = /**
7431
+ * @template THIS
7432
+ * @this {THIS}
7433
+ * @return {THIS}
7434
+ */
7435
+ function () {
7436
+ var _this = this;
7437
+ console.log("Mapper library: WebReturnSalesforceMapperBuilderClass: transactionPromotion mapping started...");
7438
+ /** @type {?} */
7439
+ var transactionPromotionArray = (/** @type {?} */ ([]));
7440
+ (/** @type {?} */ (this)).webReturnObject.basket.transactionPromotion = (/** @type {?} */ ([]));
7441
+ if ((/** @type {?} */ (this)).orderDetails.order_price_adjustments && (/** @type {?} */ (this)).orderDetails.order_price_adjustments.length > 0) {
7442
+ (/** @type {?} */ (this)).orderDetails.order_price_adjustments.forEach((/**
7443
+ * @param {?} transactionPromotion
7444
+ * @return {?}
7445
+ */
7446
+ function (transactionPromotion) {
7447
+ /** @type {?} */
7448
+ var transactionPromotionObj = (/** @type {?} */ ({}));
7449
+ transactionPromotionObj.displayText = transactionPromotion.item_text ? transactionPromotion.item_text : '';
7450
+ transactionPromotionObj.name = transactionPromotion.item_text ? transactionPromotion.item_text : '';
7451
+ transactionPromotionObj.promotionAmount = transactionPromotion.price ? Math.abs(transactionPromotion.price) : 0;
7452
+ transactionPromotionObj.promotionId = transactionPromotion.promotion_id ? transactionPromotion.promotion_id : '';
7453
+ transactionPromotionObj.promotionInfo = transactionPromotion.item_text ? transactionPromotion.item_text : '';
7454
+ transactionPromotionObj.promotionType = transactionPromotion.applied_discount && transactionPromotion.applied_discount.type ? transactionPromotion.applied_discount.type : '';
7455
+ transactionPromotionObj.itemLineIds = (/** @type {?} */ (_this)).orderDetails.product_items.map((/**
7456
+ * @param {?} product
7457
+ * @param {?} index
7458
+ * @return {?}
7459
+ */
7460
+ function (product, index) { return index + 1; }));
7461
+ transactionPromotionArray.push(transactionPromotionObj);
7462
+ }));
7463
+ }
7464
+ (/** @type {?} */ (this)).webReturnObject.basket.transactionPromotion = transactionPromotionArray;
7465
+ console.log("Mapper library: WebReturnSalesforceMapperBuilderClass: transactionPromotion mapping ended...");
7466
+ return (/** @type {?} */ (this));
7467
+ };
7468
+ /**
7469
+ * @template THIS
7470
+ * @this {THIS}
7471
+ * @return {THIS}
7472
+ */
7473
+ WebReturnSalesforceMapperBuilderClass.prototype.customer = /**
7474
+ * @template THIS
7475
+ * @this {THIS}
7476
+ * @return {THIS}
7477
+ */
7478
+ function () {
7479
+ console.log("Mapper library: WebReturnSalesforceMapperBuilderClass: customer mapping started...");
7480
+ /** @type {?} */
7481
+ var customerObj = (/** @type {?} */ ({}));
7482
+ customerObj.email = (/** @type {?} */ (this)).orderDetails.customer_info && (/** @type {?} */ (this)).orderDetails.customer_info.email ? (/** @type {?} */ (this)).orderDetails.customer_info.email : '';
7483
+ customerObj.firstName = (/** @type {?} */ (this)).orderDetails.billing_address && (/** @type {?} */ (this)).orderDetails.billing_address.first_name ? (/** @type {?} */ (this)).orderDetails.billing_address.first_name : '';
7484
+ customerObj.lastName = (/** @type {?} */ (this)).orderDetails.billing_address && (/** @type {?} */ (this)).orderDetails.billing_address.last_name ? (/** @type {?} */ (this)).orderDetails.billing_address.last_name : '';
7485
+ /** @type {?} */
7486
+ var shippingAddress = (/** @type {?} */ ([]));
7487
+ (/** @type {?} */ (this)).orderDetails.shipments.forEach((/**
7488
+ * @param {?} shipment
7489
+ * @return {?}
7490
+ */
7491
+ function (shipment) {
7492
+ /** @type {?} */
7493
+ var shippingAddressObj = (/** @type {?} */ ({}));
7494
+ shippingAddressObj.id = shipment.shipping_address && shipment.shipping_address.id ? shipment.shipping_address.id : '';
7495
+ shippingAddressObj.countryCode = shipment.shipping_address && shipment.shipping_address.country_code ? shipment.shipping_address.country_code : '';
7496
+ shippingAddressObj.address1 = shipment.shipping_address && shipment.shipping_address.address1 ? shipment.shipping_address.address1 : '';
7497
+ shippingAddressObj.city = shipment.shipping_address && shipment.shipping_address.city ? shipment.shipping_address.city : '';
7498
+ shippingAddressObj.country = '';
7499
+ shippingAddressObj.postCode = shipment.shipping_address && shipment.shipping_address.postal_code ? shipment.shipping_address.postal_code : '';
7500
+ shippingAddress.push(shippingAddressObj);
7501
+ }));
7502
+ customerObj.shippingAddress = shippingAddress;
7503
+ /** @type {?} */
7504
+ var billingAddress = (/** @type {?} */ ([]));
7505
+ /** @type {?} */
7506
+ var billingAddressObj = (/** @type {?} */ ({}));
7507
+ billingAddressObj.id = (/** @type {?} */ (this)).orderDetails.billing_address && (/** @type {?} */ (this)).orderDetails.billing_address.id ? (/** @type {?} */ (this)).orderDetails.billing_address.id : '';
7508
+ billingAddressObj.countryCode = (/** @type {?} */ (this)).orderDetails.billing_address && (/** @type {?} */ (this)).orderDetails.billing_address.country_code ? (/** @type {?} */ (this)).orderDetails.billing_address.country_code : '';
7509
+ billingAddressObj.address1 = (/** @type {?} */ (this)).orderDetails.billing_address && (/** @type {?} */ (this)).orderDetails.billing_address.address1 ? (/** @type {?} */ (this)).orderDetails.billing_address.address1 : '';
7510
+ billingAddressObj.city = (/** @type {?} */ (this)).orderDetails.billing_address && (/** @type {?} */ (this)).orderDetails.billing_address.city ? (/** @type {?} */ (this)).orderDetails.billing_address.city : '';
7511
+ billingAddressObj.country = '';
7512
+ billingAddressObj.postCode = '';
7513
+ billingAddress.push(billingAddressObj);
7514
+ customerObj.billingAddress = billingAddress;
7515
+ /** @type {?} */
7516
+ var shipmentDetails = (/** @type {?} */ ([]));
7517
+ (/** @type {?} */ (this)).orderDetails.shipments.forEach((/**
7518
+ * @param {?} shipment
7519
+ * @return {?}
7520
+ */
7521
+ function (shipment) {
7522
+ /** @type {?} */
7523
+ var shipmentDetailsObj = (/** @type {?} */ ({}));
7524
+ shipmentDetailsObj.id = shipment.shipment_id ? shipment.shipment_id : '';
7525
+ shipmentDetailsObj.deliveryGroup = shipment.shipment_id ? shipment.shipment_id : '';
7526
+ shipmentDetails.push(shipmentDetailsObj);
7527
+ }));
7528
+ customerObj.shipmentDetails = shipmentDetails;
7529
+ (/** @type {?} */ (this)).webReturnObject.customer = customerObj;
7530
+ console.log("Mapper library: WebReturnSalesforceMapperBuilderClass: customer mapping ended...");
7531
+ return (/** @type {?} */ (this));
7532
+ };
7533
+ /**
7534
+ * @template THIS
7535
+ * @this {THIS}
7536
+ * @return {THIS}
7537
+ */
7538
+ WebReturnSalesforceMapperBuilderClass.prototype.externalTransactionDetails = /**
7539
+ * @template THIS
7540
+ * @this {THIS}
7541
+ * @return {THIS}
7542
+ */
7543
+ function () {
7544
+ var _this = this;
7545
+ console.log("Mapper library: WebReturnSalesforceMapperBuilderClass: externalTransactionDetails mapping started...");
7546
+ /** @type {?} */
7547
+ var externalTransactionDetails = (/** @type {?} */ ([]));
7548
+ if ((/** @type {?} */ (this)).orderDetails.shipments && (/** @type {?} */ (this)).orderDetails.shipments.length > 0) {
7549
+ (/** @type {?} */ (this)).orderDetails.shipments.forEach((/**
7550
+ * @param {?} shipment
7551
+ * @return {?}
7552
+ */
7553
+ function (shipment) {
7554
+ /** @type {?} */
7555
+ var externalTransactionDetailsObj = (/** @type {?} */ ({}));
7556
+ /** @type {?} */
7557
+ var transactionInfo = (/** @type {?} */ ({}));
7558
+ externalTransactionDetailsObj.uniqueId = (/** @type {?} */ (_this)).orderDetails.order_no ? (/** @type {?} */ (_this)).orderDetails.order_no : '';
7559
+ externalTransactionDetailsObj.providerType = PROVIDERS.SALESFORCE;
7560
+ transactionInfo.shippingId = shipment.shipping_method && shipment.shipping_method.id ? shipment.shipping_method.id : '';
7561
+ transactionInfo.externalShippingId = shipment.shipment_id ? shipment.shipment_id : '';
7562
+ externalTransactionDetailsObj.details = transactionInfo;
7563
+ externalTransactionDetails.push(externalTransactionDetailsObj);
7564
+ }));
7565
+ }
7566
+ (/** @type {?} */ (this)).webReturnObject.externalTransactionDetails = externalTransactionDetails;
7567
+ console.log("Mapper library: WebReturnSalesforceMapperBuilderClass: externalTransactionDetails mapping ended...");
7568
+ return (/** @type {?} */ (this));
7569
+ };
7570
+ /**
7571
+ * @template THIS
7572
+ * @this {THIS}
7573
+ * @return {THIS}
7574
+ */
7575
+ WebReturnSalesforceMapperBuilderClass.prototype.basketSummary = /**
7576
+ * @template THIS
7577
+ * @this {THIS}
7578
+ * @return {THIS}
7579
+ */
7580
+ function () {
7581
+ console.log("Mapper library: WebReturnSalesforceMapperBuilderClass: basketSummary mapping started...");
7582
+ /** @type {?} */
7583
+ var basketSummary = (/** @type {?} */ ({}));
7584
+ /** @type {?} */
7585
+ var basketSummaryWebOrder = (/** @type {?} */ ({}));
7586
+ /** @type {?} */
7587
+ var linePromotionTotal = (/** @type {?} */ (this)).webReturnObject.basket.linePromotion.map((/**
7588
+ * @param {?} linePromotion
7589
+ * @return {?}
7590
+ */
7591
+ function (linePromotion) { return linePromotion.promotionAmount; })).reduce((/**
7592
+ * @param {?} accumulator
7593
+ * @param {?} currentValue
7594
+ * @return {?}
7595
+ */
7596
+ function (accumulator, currentValue) { return accumulator + currentValue; }), 0);
7597
+ /** @type {?} */
7598
+ var transactionPromotionTotal = (/** @type {?} */ (this)).webReturnObject.basket.transactionPromotion.map((/**
7599
+ * @param {?} transactionPromotion
7600
+ * @return {?}
7601
+ */
7602
+ function (transactionPromotion) { return transactionPromotion.promotionAmount; })).reduce((/**
7603
+ * @param {?} accumulator
7604
+ * @param {?} currentValue
7605
+ * @return {?}
7606
+ */
7607
+ function (accumulator, currentValue) { return accumulator + currentValue; }), 0);
7608
+ basketSummary.discountTotal = linePromotionTotal + transactionPromotionTotal;
7609
+ basketSummary.VATTotal = (/** @type {?} */ (this)).orderDetails.tax_total ? (/** @type {?} */ (this)).orderDetails.tax_total : 0;
7610
+ basketSummary.saleTotal = (/** @type {?} */ (this)).orderDetails.order_total ? (/** @type {?} */ (this)).orderDetails.order_total : 0;
7611
+ basketSummary.basketTotal = (/** @type {?} */ (this)).orderDetails.order_total ? (/** @type {?} */ (this)).orderDetails.order_total : 0;
7612
+ basketSummary.totalItems = (/** @type {?} */ (this)).orderDetails.product_items && (/** @type {?} */ (this)).orderDetails.product_items.length > 0 ? (/** @type {?} */ (this)).orderDetails.product_items.length : 0;
7613
+ basketSummary.basketTotalWithShippingTotal = (/** @type {?} */ (this)).orderDetails.order_total ? (/** @type {?} */ (this)).orderDetails.order_total : 0;
7614
+ basketSummaryWebOrder.shippingTotal = (/** @type {?} */ (this)).orderDetails.shipping_total ? (/** @type {?} */ (this)).orderDetails.shipping_total : 0;
7615
+ basketSummaryWebOrder.basketTotalWithShippingTotal = (/** @type {?} */ (this)).orderDetails.order_total ? (/** @type {?} */ (this)).orderDetails.order_total : 0;
7616
+ basketSummary.webOrder = basketSummaryWebOrder;
7617
+ (/** @type {?} */ (this)).webReturnObject.basketSummary = basketSummary;
7618
+ console.log("Mapper library: WebReturnSalesforceMapperBuilderClass: basketSummary mapping ended...");
7619
+ return (/** @type {?} */ (this));
7620
+ };
7621
+ /**
7622
+ * @template THIS
7623
+ * @this {THIS}
7624
+ * @param {?} deviceId
7625
+ * @return {THIS}
7626
+ */
7627
+ WebReturnSalesforceMapperBuilderClass.prototype.deviceId = /**
7628
+ * @template THIS
7629
+ * @this {THIS}
7630
+ * @param {?} deviceId
7631
+ * @return {THIS}
7632
+ */
7633
+ function (deviceId) {
7634
+ (/** @type {?} */ (this)).webReturnObject.deviceId = deviceId;
7635
+ return (/** @type {?} */ (this));
7636
+ };
7637
+ /**
7638
+ * @template THIS
7639
+ * @this {THIS}
7640
+ * @param {?} terminalId
7641
+ * @return {THIS}
7642
+ */
7643
+ WebReturnSalesforceMapperBuilderClass.prototype.terminalId = /**
7644
+ * @template THIS
7645
+ * @this {THIS}
7646
+ * @param {?} terminalId
7647
+ * @return {THIS}
7648
+ */
7649
+ function (terminalId) {
7650
+ (/** @type {?} */ (this)).webReturnObject.terminalId = terminalId;
7651
+ return (/** @type {?} */ (this));
7652
+ };
7653
+ /**
7654
+ * @template THIS
7655
+ * @this {THIS}
7656
+ * @param {?} orgCode
7657
+ * @return {THIS}
7658
+ */
7659
+ WebReturnSalesforceMapperBuilderClass.prototype.orgCode = /**
7660
+ * @template THIS
7661
+ * @this {THIS}
7662
+ * @param {?} orgCode
7663
+ * @return {THIS}
7664
+ */
7665
+ function (orgCode) {
7666
+ (/** @type {?} */ (this)).webReturnObject.orgCode = orgCode;
7667
+ return (/** @type {?} */ (this));
7668
+ };
7669
+ /**
7670
+ * @template THIS
7671
+ * @this {THIS}
7672
+ * @param {?} storeId
7673
+ * @return {THIS}
7674
+ */
7675
+ WebReturnSalesforceMapperBuilderClass.prototype.storeId = /**
7676
+ * @template THIS
7677
+ * @this {THIS}
7678
+ * @param {?} storeId
7679
+ * @return {THIS}
7680
+ */
7681
+ function (storeId) {
7682
+ (/** @type {?} */ (this)).webReturnObject.storeId = storeId;
7683
+ return (/** @type {?} */ (this));
7684
+ };
7685
+ /**
7686
+ * @template THIS
7687
+ * @this {THIS}
7688
+ * @param {?} storeNodeId
7689
+ * @return {THIS}
7690
+ */
7691
+ WebReturnSalesforceMapperBuilderClass.prototype.storeNodeId = /**
7692
+ * @template THIS
7693
+ * @this {THIS}
7694
+ * @param {?} storeNodeId
7695
+ * @return {THIS}
7696
+ */
7697
+ function (storeNodeId) {
7698
+ (/** @type {?} */ (this)).webReturnObject.storeNodeId = storeNodeId;
7699
+ return (/** @type {?} */ (this));
7700
+ };
7701
+ /**
7702
+ * @template THIS
7703
+ * @this {THIS}
7704
+ * @param {?} storeNodeStructure
7705
+ * @return {THIS}
7706
+ */
7707
+ WebReturnSalesforceMapperBuilderClass.prototype.storeNodeStructure = /**
7708
+ * @template THIS
7709
+ * @this {THIS}
7710
+ * @param {?} storeNodeStructure
7711
+ * @return {THIS}
7712
+ */
7713
+ function (storeNodeStructure) {
7714
+ (/** @type {?} */ (this)).webReturnObject.storeNodeStructure = storeNodeStructure;
7715
+ return (/** @type {?} */ (this));
7716
+ };
7717
+ /**
7718
+ * @template THIS
7719
+ * @this {THIS}
7720
+ * @param {?} docId
7721
+ * @return {THIS}
7722
+ */
7723
+ WebReturnSalesforceMapperBuilderClass.prototype.docId = /**
7724
+ * @template THIS
7725
+ * @this {THIS}
7726
+ * @param {?} docId
7727
+ * @return {THIS}
7728
+ */
7729
+ function (docId) {
7730
+ (/** @type {?} */ (this)).webReturnObject.id = docId;
7731
+ return (/** @type {?} */ (this));
7732
+ };
7733
+ /**
7734
+ * @template THIS
7735
+ * @this {THIS}
7736
+ * @param {?} userID
7737
+ * @return {THIS}
7738
+ */
7739
+ WebReturnSalesforceMapperBuilderClass.prototype.updateUserID = /**
7740
+ * @template THIS
7741
+ * @this {THIS}
7742
+ * @param {?} userID
7743
+ * @return {THIS}
7744
+ */
7745
+ function (userID) {
7746
+ (/** @type {?} */ (this)).webReturnObject.userId = userID;
7747
+ return (/** @type {?} */ (this));
7748
+ };
7749
+ /**
7750
+ * @template THIS
7751
+ * @this {THIS}
7752
+ * @param {?} name
7753
+ * @return {THIS}
7754
+ */
7755
+ WebReturnSalesforceMapperBuilderClass.prototype.updateUserName = /**
7756
+ * @template THIS
7757
+ * @this {THIS}
7758
+ * @param {?} name
7759
+ * @return {THIS}
7760
+ */
7761
+ function (name) {
7762
+ (/** @type {?} */ (this)).webReturnObject.userName = name;
7763
+ return (/** @type {?} */ (this));
7764
+ };
7765
+ /**
7766
+ * @return {?}
7767
+ */
7768
+ WebReturnSalesforceMapperBuilderClass.prototype.build = /**
7769
+ * @return {?}
7770
+ */
7771
+ function () {
7772
+ console.log("Mapper library: WebReturnSalesforceMapperBuilderClass: mapping done...");
7773
+ return this.webReturnObject;
7774
+ };
7775
+ /**
7776
+ * @param {?} date
7777
+ * @return {?}
7778
+ */
7779
+ WebReturnSalesforceMapperBuilderClass.prototype.getUTCDateTime = /**
7780
+ * @param {?} date
7781
+ * @return {?}
7782
+ */
7783
+ function (date) {
7784
+ if (date) {
7785
+ return new Date(date).toISOString();
7786
+ }
7787
+ };
7788
+ return WebReturnSalesforceMapperBuilderClass;
7789
+ }());
7790
+ if (false) {
7791
+ /**
7792
+ * @type {?}
7793
+ * @private
7794
+ */
7795
+ WebReturnSalesforceMapperBuilderClass.prototype.orderDetails;
7796
+ /**
7797
+ * @type {?}
7798
+ * @private
7799
+ */
7800
+ WebReturnSalesforceMapperBuilderClass.prototype.webReturnObject;
7801
+ }
7802
+
6757
7803
  /**
6758
7804
  * @fileoverview added by tsickle
6759
7805
  * Generated from: public-api.ts
@@ -6766,5 +7812,5 @@ if (false) {
6766
7812
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
6767
7813
  */
6768
7814
 
6769
- export { MapperLibraryComponent, MapperLibraryModule, RJMapperBuilderClass, WebReturnMapperBuilderClass };
7815
+ export { MapperLibraryComponent, MapperLibraryModule, RJMapperBuilderClass, WebReturnMapperBuilderClass, WebReturnSalesforceMapperBuilderClass };
6770
7816
  //# sourceMappingURL=pmcretail-mapper-library.js.map