@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.
@@ -284,6 +284,7 @@
284
284
  SALE_REFUND: "SALE_REFUND",
285
285
  SALE_EXCHANGE: "SALE_EXCHANGE",
286
286
  VOID: "VOID",
287
+ WEB_RETURNS: "WEB_RETURNS",
287
288
  };
288
289
  /**
289
290
  * @record
@@ -304,10 +305,12 @@
304
305
  DELIVERY: 1,
305
306
  DROP_SHIP: 2,
306
307
  COLLECT_FROM_STORE: 3,
308
+ SHIP_TO_STORE: 4,
307
309
  };
308
310
  DELIVERY_METHODS[DELIVERY_METHODS.DELIVERY] = 'DELIVERY';
309
311
  DELIVERY_METHODS[DELIVERY_METHODS.DROP_SHIP] = 'DROP_SHIP';
310
312
  DELIVERY_METHODS[DELIVERY_METHODS.COLLECT_FROM_STORE] = 'COLLECT_FROM_STORE';
313
+ DELIVERY_METHODS[DELIVERY_METHODS.SHIP_TO_STORE] = 'SHIP_TO_STORE';
311
314
  /**
312
315
  * @record
313
316
  */
@@ -884,6 +887,8 @@
884
887
  TransactionDocument.prototype.currentTransactionDetails;
885
888
  /** @type {?|undefined} */
886
889
  TransactionDocument.prototype.isChecked;
890
+ /** @type {?|undefined} */
891
+ TransactionDocument.prototype.externalTransactionDetails;
887
892
  }
888
893
  /**
889
894
  * @record
@@ -922,18 +927,50 @@
922
927
  */
923
928
  function BasketSummary() { }
924
929
  if (false) {
925
- /** @type {?} */
930
+ /** @type {?|undefined} */
926
931
  BasketSummary.prototype.totalItems;
927
- /** @type {?} */
932
+ /** @type {?|undefined} */
928
933
  BasketSummary.prototype.saleTotal;
929
- /** @type {?} */
934
+ /** @type {?|undefined} */
930
935
  BasketSummary.prototype.VATTotal;
931
- /** @type {?} */
936
+ /** @type {?|undefined} */
932
937
  BasketSummary.prototype.discountTotal;
933
- /** @type {?} */
938
+ /** @type {?|undefined} */
934
939
  BasketSummary.prototype.basketTotal;
935
940
  /** @type {?|undefined} */
936
941
  BasketSummary.prototype.refundTotal;
942
+ /** @type {?|undefined} */
943
+ BasketSummary.prototype.shippingTotal;
944
+ /** @type {?|undefined} */
945
+ BasketSummary.prototype.basketTotalWithShippingTotal;
946
+ /** @type {?|undefined} */
947
+ BasketSummary.prototype.inStore;
948
+ /** @type {?|undefined} */
949
+ BasketSummary.prototype.webOrder;
950
+ /** @type {?|undefined} */
951
+ BasketSummary.prototype.cnc;
952
+ }
953
+ /**
954
+ * @record
955
+ */
956
+ function BasketSummaryDetails() { }
957
+ if (false) {
958
+ /** @type {?|undefined} */
959
+ BasketSummaryDetails.prototype.totalItems;
960
+ /** @type {?|undefined} */
961
+ BasketSummaryDetails.prototype.saleTotal;
962
+ /** @type {?|undefined} */
963
+ BasketSummaryDetails.prototype.VATTotal;
964
+ /** @type {?|undefined} */
965
+ BasketSummaryDetails.prototype.discountTotal;
966
+ /** @type {?|undefined} */
967
+ BasketSummaryDetails.prototype.basketTotal;
968
+ /** @type {?|undefined} */
969
+ BasketSummaryDetails.prototype.refundTotal;
970
+ /** @type {?|undefined} */
971
+ BasketSummaryDetails.prototype.shippingTotal;
972
+ /** @type {?|undefined} */
973
+ BasketSummaryDetails.prototype.basketTotalWithShippingTotal;
937
974
  }
938
975
  /**
939
976
  * @record
@@ -1119,6 +1156,8 @@
1119
1156
  /** @type {?|undefined} */
1120
1157
  Customer.prototype.shippingAddress;
1121
1158
  /** @type {?|undefined} */
1159
+ Customer.prototype.shipmentDetails;
1160
+ /** @type {?|undefined} */
1122
1161
  Customer.prototype.addressDetail;
1123
1162
  /** @type {?|undefined} */
1124
1163
  Customer.prototype.noCustomerSelected;
@@ -1130,6 +1169,10 @@
1130
1169
  */
1131
1170
  function Address() { }
1132
1171
  if (false) {
1172
+ /** @type {?|undefined} */
1173
+ Address.prototype.id;
1174
+ /** @type {?|undefined} */
1175
+ Address.prototype.countryCode;
1133
1176
  /** @type {?|undefined} */
1134
1177
  Address.prototype.address1;
1135
1178
  /** @type {?|undefined} */
@@ -1145,6 +1188,16 @@
1145
1188
  /** @type {?|undefined} */
1146
1189
  Address.prototype.country;
1147
1190
  }
1191
+ /**
1192
+ * @record
1193
+ */
1194
+ function ShipmentDetails() { }
1195
+ if (false) {
1196
+ /** @type {?|undefined} */
1197
+ ShipmentDetails.prototype.id;
1198
+ /** @type {?|undefined} */
1199
+ ShipmentDetails.prototype.deliveryGroup;
1200
+ }
1148
1201
  /**
1149
1202
  * @record
1150
1203
  */
@@ -1243,6 +1296,380 @@
1243
1296
  var DISCOUNTTYPE = {
1244
1297
  PERCENT: "Percent",
1245
1298
  AMOUNT: "AMOUNT",
1299
+ };
1300
+ /**
1301
+ * @record
1302
+ */
1303
+ function TransactionInfo() { }
1304
+ if (false) {
1305
+ /** @type {?|undefined} */
1306
+ TransactionInfo.prototype.shippingId;
1307
+ /** @type {?|undefined} */
1308
+ TransactionInfo.prototype.externalShippingId;
1309
+ }
1310
+ /**
1311
+ * @record
1312
+ */
1313
+ function externalTransactionDetails() { }
1314
+ if (false) {
1315
+ /** @type {?|undefined} */
1316
+ externalTransactionDetails.prototype.uniqueId;
1317
+ /** @type {?|undefined} */
1318
+ externalTransactionDetails.prototype.providerType;
1319
+ /** @type {?|undefined} */
1320
+ externalTransactionDetails.prototype.details;
1321
+ }
1322
+ /** @enum {string} */
1323
+ var INITIATING_MODULE = {
1324
+ EBASKET: "eBasket",
1325
+ };
1326
+ /**
1327
+ * @record
1328
+ */
1329
+ function pendingMethod() { }
1330
+ if (false) {
1331
+ /** @type {?|undefined} */
1332
+ pendingMethod.prototype._type;
1333
+ /** @type {?|undefined} */
1334
+ pendingMethod.prototype.type;
1335
+ /** @type {?|undefined} */
1336
+ pendingMethod.prototype.message;
1337
+ /** @type {?|undefined} */
1338
+ pendingMethod.prototype.path;
1339
+ /** @type {?|undefined} */
1340
+ pendingMethod.prototype.details;
1341
+ }
1342
+ /**
1343
+ * @record
1344
+ */
1345
+ function ShipmentId() { }
1346
+ if (false) {
1347
+ /** @type {?|undefined} */
1348
+ ShipmentId.prototype.shipmentId;
1349
+ }
1350
+ /**
1351
+ * @record
1352
+ */
1353
+ function CustomerAddress() { }
1354
+ if (false) {
1355
+ /** @type {?|undefined} */
1356
+ CustomerAddress.prototype._type;
1357
+ /** @type {?|undefined} */
1358
+ CustomerAddress.prototype.email;
1359
+ /** @type {?|undefined} */
1360
+ CustomerAddress.prototype.address1;
1361
+ /** @type {?|undefined} */
1362
+ CustomerAddress.prototype.city;
1363
+ /** @type {?|undefined} */
1364
+ CustomerAddress.prototype.country_code;
1365
+ /** @type {?|undefined} */
1366
+ CustomerAddress.prototype.first_name;
1367
+ /** @type {?|undefined} */
1368
+ CustomerAddress.prototype.full_name;
1369
+ /** @type {?|undefined} */
1370
+ CustomerAddress.prototype.id;
1371
+ /** @type {?|undefined} */
1372
+ CustomerAddress.prototype.last_name;
1373
+ /** @type {?|undefined} */
1374
+ CustomerAddress.prototype.phone;
1375
+ /** @type {?|undefined} */
1376
+ CustomerAddress.prototype.salutation;
1377
+ /** @type {?|undefined} */
1378
+ CustomerAddress.prototype.c_area;
1379
+ /** @type {?|undefined} */
1380
+ CustomerAddress.prototype.c_email;
1381
+ /** @type {?|undefined} */
1382
+ CustomerAddress.prototype.c_phoneWhatsApp;
1383
+ /** @type {?|undefined} */
1384
+ CustomerAddress.prototype.c_strValue;
1385
+ /** @type {?|undefined} */
1386
+ CustomerAddress.prototype.postal_code;
1387
+ }
1388
+ /**
1389
+ * @record
1390
+ */
1391
+ function CustomerInfo() { }
1392
+ if (false) {
1393
+ /** @type {?|undefined} */
1394
+ CustomerInfo.prototype._type;
1395
+ /** @type {?|undefined} */
1396
+ CustomerInfo.prototype.customer_id;
1397
+ /** @type {?|undefined} */
1398
+ CustomerInfo.prototype.email;
1399
+ }
1400
+ /**
1401
+ * @record
1402
+ */
1403
+ function GroupedTaxItem() { }
1404
+ if (false) {
1405
+ /** @type {?|undefined} */
1406
+ GroupedTaxItem.prototype._type;
1407
+ /** @type {?|undefined} */
1408
+ GroupedTaxItem.prototype.tax_rate;
1409
+ /** @type {?|undefined} */
1410
+ GroupedTaxItem.prototype.tax_value;
1411
+ }
1412
+ /**
1413
+ * @record
1414
+ */
1415
+ function additionalNotes() { }
1416
+ if (false) {
1417
+ /** @type {?|undefined} */
1418
+ additionalNotes.prototype._type;
1419
+ /** @type {?|undefined} */
1420
+ additionalNotes.prototype.link;
1421
+ }
1422
+ /**
1423
+ * @record
1424
+ */
1425
+ function ProductItem() { }
1426
+ if (false) {
1427
+ /** @type {?|undefined} */
1428
+ ProductItem.prototype._type;
1429
+ /** @type {?|undefined} */
1430
+ ProductItem.prototype.adjusted_tax;
1431
+ /** @type {?|undefined} */
1432
+ ProductItem.prototype.base_price;
1433
+ /** @type {?|undefined} */
1434
+ ProductItem.prototype.bonus_product_line_item;
1435
+ /** @type {?|undefined} */
1436
+ ProductItem.prototype.gift;
1437
+ /** @type {?|undefined} */
1438
+ ProductItem.prototype.item_id;
1439
+ /** @type {?|undefined} */
1440
+ ProductItem.prototype.item_text;
1441
+ /** @type {?|undefined} */
1442
+ ProductItem.prototype.price;
1443
+ /** @type {?|undefined} */
1444
+ ProductItem.prototype.price_adjustments;
1445
+ /** @type {?|undefined} */
1446
+ ProductItem.prototype.price_after_item_discount;
1447
+ /** @type {?|undefined} */
1448
+ ProductItem.prototype.price_after_order_discount;
1449
+ /** @type {?|undefined} */
1450
+ ProductItem.prototype.product_id;
1451
+ /** @type {?|undefined} */
1452
+ ProductItem.prototype.product_name;
1453
+ /** @type {?|undefined} */
1454
+ ProductItem.prototype.quantity;
1455
+ /** @type {?|undefined} */
1456
+ ProductItem.prototype.shipment_id;
1457
+ /** @type {?|undefined} */
1458
+ ProductItem.prototype.tax;
1459
+ /** @type {?|undefined} */
1460
+ ProductItem.prototype.tax_basis;
1461
+ /** @type {?|undefined} */
1462
+ ProductItem.prototype.tax_class_id;
1463
+ /** @type {?|undefined} */
1464
+ ProductItem.prototype.tax_rate;
1465
+ }
1466
+ /**
1467
+ * @record
1468
+ */
1469
+ function ShippingMethod() { }
1470
+ if (false) {
1471
+ /** @type {?|undefined} */
1472
+ ShippingMethod.prototype._type;
1473
+ /** @type {?|undefined} */
1474
+ ShippingMethod.prototype.description;
1475
+ /** @type {?|undefined} */
1476
+ ShippingMethod.prototype.id;
1477
+ /** @type {?|undefined} */
1478
+ ShippingMethod.prototype.name;
1479
+ /** @type {?|undefined} */
1480
+ ShippingMethod.prototype.price;
1481
+ /** @type {?|undefined} */
1482
+ ShippingMethod.prototype.c_approachingThresholdMessage;
1483
+ /** @type {?|undefined} */
1484
+ ShippingMethod.prototype.c_estimatedArrivalTime;
1485
+ /** @type {?|undefined} */
1486
+ ShippingMethod.prototype.c_isEmail;
1487
+ /** @type {?|undefined} */
1488
+ ShippingMethod.prototype.c_storePickupEnabled;
1489
+ /** @type {?|undefined} */
1490
+ ShippingMethod.prototype.c_thresholdValue;
1491
+ }
1492
+ /**
1493
+ * @record
1494
+ */
1495
+ function shipment() { }
1496
+ if (false) {
1497
+ /** @type {?|undefined} */
1498
+ shipment.prototype._type;
1499
+ /** @type {?|undefined} */
1500
+ shipment.prototype.adjusted_merchandize_total_tax;
1501
+ /** @type {?|undefined} */
1502
+ shipment.prototype.adjusted_shipping_total_tax;
1503
+ /** @type {?|undefined} */
1504
+ shipment.prototype.gift;
1505
+ /** @type {?|undefined} */
1506
+ shipment.prototype.merchandize_total_tax;
1507
+ /** @type {?|undefined} */
1508
+ shipment.prototype.product_sub_total;
1509
+ /** @type {?|undefined} */
1510
+ shipment.prototype.product_total;
1511
+ /** @type {?|undefined} */
1512
+ shipment.prototype.shipment_id;
1513
+ /** @type {?|undefined} */
1514
+ shipment.prototype.shipment_total;
1515
+ /** @type {?|undefined} */
1516
+ shipment.prototype.shipping_address;
1517
+ /** @type {?|undefined} */
1518
+ shipment.prototype.shipping_method;
1519
+ /** @type {?|undefined} */
1520
+ shipment.prototype.shipping_status;
1521
+ /** @type {?|undefined} */
1522
+ shipment.prototype.shipping_total;
1523
+ /** @type {?|undefined} */
1524
+ shipment.prototype.shipping_total_tax;
1525
+ /** @type {?|undefined} */
1526
+ shipment.prototype.tax_total;
1527
+ /** @type {?|undefined} */
1528
+ shipment.prototype.c_fromStoreId;
1529
+ }
1530
+ /**
1531
+ * @record
1532
+ */
1533
+ function ShippingItem() { }
1534
+ if (false) {
1535
+ /** @type {?|undefined} */
1536
+ ShippingItem.prototype._type;
1537
+ /** @type {?|undefined} */
1538
+ ShippingItem.prototype.adjusted_tax;
1539
+ /** @type {?|undefined} */
1540
+ ShippingItem.prototype.base_price;
1541
+ /** @type {?|undefined} */
1542
+ ShippingItem.prototype.item_id;
1543
+ /** @type {?|undefined} */
1544
+ ShippingItem.prototype.item_text;
1545
+ /** @type {?|undefined} */
1546
+ ShippingItem.prototype.price;
1547
+ /** @type {?|undefined} */
1548
+ ShippingItem.prototype.price_after_item_discount;
1549
+ /** @type {?|undefined} */
1550
+ ShippingItem.prototype.shipment_id;
1551
+ /** @type {?|undefined} */
1552
+ ShippingItem.prototype.tax;
1553
+ /** @type {?|undefined} */
1554
+ ShippingItem.prototype.tax_basis;
1555
+ /** @type {?|undefined} */
1556
+ ShippingItem.prototype.tax_class_id;
1557
+ /** @type {?|undefined} */
1558
+ ShippingItem.prototype.tax_rate;
1559
+ }
1560
+ /**
1561
+ * @record
1562
+ */
1563
+ function AppliedDiscount() { }
1564
+ if (false) {
1565
+ /** @type {?|undefined} */
1566
+ AppliedDiscount.prototype._type;
1567
+ /** @type {?|undefined} */
1568
+ AppliedDiscount.prototype.amount;
1569
+ /** @type {?|undefined} */
1570
+ AppliedDiscount.prototype.percentage;
1571
+ /** @type {?|undefined} */
1572
+ AppliedDiscount.prototype.type;
1573
+ }
1574
+ /**
1575
+ * @record
1576
+ */
1577
+ function PriceAdjustment() { }
1578
+ if (false) {
1579
+ /** @type {?|undefined} */
1580
+ PriceAdjustment.prototype._type;
1581
+ /** @type {?|undefined} */
1582
+ PriceAdjustment.prototype.applied_discount;
1583
+ /** @type {?|undefined} */
1584
+ PriceAdjustment.prototype.coupon_code;
1585
+ /** @type {?|undefined} */
1586
+ PriceAdjustment.prototype.creation_date;
1587
+ /** @type {?|undefined} */
1588
+ PriceAdjustment.prototype.custom;
1589
+ /** @type {?|undefined} */
1590
+ PriceAdjustment.prototype.item_text;
1591
+ /** @type {?|undefined} */
1592
+ PriceAdjustment.prototype.last_modified;
1593
+ /** @type {?|undefined} */
1594
+ PriceAdjustment.prototype.manual;
1595
+ /** @type {?|undefined} */
1596
+ PriceAdjustment.prototype.price;
1597
+ /** @type {?|undefined} */
1598
+ PriceAdjustment.prototype.price_adjustment_id;
1599
+ /** @type {?|undefined} */
1600
+ PriceAdjustment.prototype.promotion_id;
1601
+ /** @type {?|undefined} */
1602
+ PriceAdjustment.prototype.promotion_link;
1603
+ }
1604
+ /**
1605
+ * @record
1606
+ */
1607
+ function OrderDetails() { }
1608
+ if (false) {
1609
+ /** @type {?|undefined} */
1610
+ OrderDetails.prototype._v;
1611
+ /** @type {?|undefined} */
1612
+ OrderDetails.prototype._type;
1613
+ /** @type {?|undefined} */
1614
+ OrderDetails.prototype._resource_state;
1615
+ /** @type {?|undefined} */
1616
+ OrderDetails.prototype._flash;
1617
+ /** @type {?|undefined} */
1618
+ OrderDetails.prototype.adjusted_merchandize_total_tax;
1619
+ /** @type {?|undefined} */
1620
+ OrderDetails.prototype.adjusted_shipping_total_tax;
1621
+ /** @type {?|undefined} */
1622
+ OrderDetails.prototype.agent_basket;
1623
+ /** @type {?|undefined} */
1624
+ OrderDetails.prototype.basket_id;
1625
+ /** @type {?|undefined} */
1626
+ OrderDetails.prototype.billing_address;
1627
+ /** @type {?|undefined} */
1628
+ OrderDetails.prototype.channel_type;
1629
+ /** @type {?|undefined} */
1630
+ OrderDetails.prototype.creation_date;
1631
+ /** @type {?|undefined} */
1632
+ OrderDetails.prototype.currency;
1633
+ /** @type {?|undefined} */
1634
+ OrderDetails.prototype.customer_info;
1635
+ /** @type {?|undefined} */
1636
+ OrderDetails.prototype.grouped_tax_items;
1637
+ /** @type {?|undefined} */
1638
+ OrderDetails.prototype.last_modified;
1639
+ /** @type {?|undefined} */
1640
+ OrderDetails.prototype.merchandize_total_tax;
1641
+ /** @type {?|undefined} */
1642
+ OrderDetails.prototype.notes;
1643
+ /** @type {?|undefined} */
1644
+ OrderDetails.prototype.order_price_adjustments;
1645
+ /** @type {?|undefined} */
1646
+ OrderDetails.prototype.order_no;
1647
+ /** @type {?|undefined} */
1648
+ OrderDetails.prototype.order_total;
1649
+ /** @type {?|undefined} */
1650
+ OrderDetails.prototype.product_items;
1651
+ /** @type {?|undefined} */
1652
+ OrderDetails.prototype.product_sub_total;
1653
+ /** @type {?|undefined} */
1654
+ OrderDetails.prototype.product_total;
1655
+ /** @type {?|undefined} */
1656
+ OrderDetails.prototype.shipments;
1657
+ /** @type {?|undefined} */
1658
+ OrderDetails.prototype.shipping_items;
1659
+ /** @type {?|undefined} */
1660
+ OrderDetails.prototype.shipping_total;
1661
+ /** @type {?|undefined} */
1662
+ OrderDetails.prototype.shipping_total_tax;
1663
+ /** @type {?|undefined} */
1664
+ OrderDetails.prototype.taxation;
1665
+ /** @type {?|undefined} */
1666
+ OrderDetails.prototype.tax_rounded_at_group;
1667
+ /** @type {?|undefined} */
1668
+ OrderDetails.prototype.tax_total;
1669
+ }
1670
+ /** @enum {string} */
1671
+ var PROVIDERS = {
1672
+ SALESFORCE: "Salesforce",
1246
1673
  };
1247
1674
 
1248
1675
  /**
@@ -6974,10 +7401,630 @@
6974
7401
  WebReturnMapperBuilderClass.prototype.webReturnObject;
6975
7402
  }
6976
7403
 
7404
+ /**
7405
+ * @fileoverview added by tsickle
7406
+ * Generated from: lib/WebReturnSalesforceMapper.class.ts
7407
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
7408
+ */
7409
+ var WebReturnSalesforceMapperBuilderClass = /** @class */ (function () {
7410
+ function WebReturnSalesforceMapperBuilderClass(orderDetails) {
7411
+ this.webReturnObject = {
7412
+ id: '',
7413
+ orgCode: "",
7414
+ storeId: "",
7415
+ storeNodeId: "",
7416
+ storeNodeStructure: "",
7417
+ deviceId: "",
7418
+ terminalId: "",
7419
+ initiatingModule: "",
7420
+ export: false,
7421
+ basket: {},
7422
+ basketSummary: {},
7423
+ baseCurrency: "",
7424
+ customer: {
7425
+ id: '',
7426
+ email: '',
7427
+ firstName: '',
7428
+ lastName: '',
7429
+ billingAddress: [],
7430
+ shippingAddress: [],
7431
+ shipmentDetails: [],
7432
+ telephone: '',
7433
+ postCode: '',
7434
+ noCustomerSelected: false
7435
+ },
7436
+ currentTransactionDetails: (/** @type {?} */ ({}))
7437
+ };
7438
+ if (orderDetails) {
7439
+ this.orderDetails = orderDetails;
7440
+ }
7441
+ }
7442
+ /**
7443
+ * @template THIS
7444
+ * @this {THIS}
7445
+ * @return {THIS}
7446
+ */
7447
+ WebReturnSalesforceMapperBuilderClass.prototype.webReturnCommonMapper = /**
7448
+ * @template THIS
7449
+ * @this {THIS}
7450
+ * @return {THIS}
7451
+ */
7452
+ function () {
7453
+ console.log("Mapper library: WebReturnSalesforceMapperBuilderClass: webReturnCommonMapper started...");
7454
+ (/** @type {?} */ (this)).webReturnObject['type'] = TRANSACTION_TYPE.WEB_RETURNS;
7455
+ (/** @type {?} */ (this)).webReturnObject['datetime'] = (/** @type {?} */ (this)).getUTCDateTime((/** @type {?} */ (this)).orderDetails.last_modified);
7456
+ (/** @type {?} */ (this)).webReturnObject.baseCurrency = (/** @type {?} */ (this)).orderDetails.currency;
7457
+ (/** @type {?} */ (this)).webReturnObject.subsidiaryId = '1';
7458
+ (/** @type {?} */ (this)).webReturnObject.export = true;
7459
+ (/** @type {?} */ (this)).webReturnObject.initiatingModule = INITIATING_MODULE.EBASKET;
7460
+ (/** @type {?} */ (this)).webReturnObject.createdAt = (/** @type {?} */ (this)).getUTCDateTime((/** @type {?} */ (this)).orderDetails.creation_date);
7461
+ (/** @type {?} */ (this)).webReturnObject.updatedAt = (/** @type {?} */ (this)).getUTCDateTime((/** @type {?} */ (this)).orderDetails.last_modified);
7462
+ (/** @type {?} */ (this)).webReturnObject.transCompletedAt = (/** @type {?} */ (this)).getUTCDateTime((/** @type {?} */ (this)).orderDetails.last_modified);
7463
+ (/** @type {?} */ (this)).webReturnObject['externalTransactionId'] = (/** @type {?} */ (this)).orderDetails.order_no;
7464
+ console.log("Mapper library: WebReturnSalesforceMapperBuilderClass: webReturnCommonMapper ended...");
7465
+ return (/** @type {?} */ (this));
7466
+ };
7467
+ // export(status, details) {
7468
+ // console.log("Mapper library: WebReturnSalesforceMapperBuilderClass: export mapping started...");
7469
+ // console.log("Mapper library: WebReturnSalesforceMapperBuilderClass: status:", status);
7470
+ // console.log("Mapper library: WebReturnSalesforceMapperBuilderClass: details:", JSON.stringify(details));
7471
+ // if (status && details && details.providers && details.providers.length > 0) {
7472
+ // details.providers.forEach(
7473
+ // providerObj => {
7474
+ // if (providerObj.provider && providerObj.provider === PROVIDERS.SALESFORCE) {
7475
+ // this.webReturnObject.export = true;
7476
+ // } else {
7477
+ // this.webReturnObject.export = false;
7478
+ // }
7479
+ // }
7480
+ // );
7481
+ // } else {
7482
+ // this.webReturnObject.export = false;
7483
+ // }
7484
+ // console.log("Mapper library: WebReturnSalesforceMapperBuilderClass: export mapping end...")
7485
+ // return this;
7486
+ // }
7487
+ // export(status, details) {
7488
+ // console.log("Mapper library: WebReturnSalesforceMapperBuilderClass: export mapping started...");
7489
+ // console.log("Mapper library: WebReturnSalesforceMapperBuilderClass: status:", status);
7490
+ // console.log("Mapper library: WebReturnSalesforceMapperBuilderClass: details:", JSON.stringify(details));
7491
+ // if (status && details && details.providers && details.providers.length > 0) {
7492
+ // details.providers.forEach(
7493
+ // providerObj => {
7494
+ // if (providerObj.provider && providerObj.provider === PROVIDERS.SALESFORCE) {
7495
+ // this.webReturnObject.export = true;
7496
+ // } else {
7497
+ // this.webReturnObject.export = false;
7498
+ // }
7499
+ // }
7500
+ // );
7501
+ // } else {
7502
+ // this.webReturnObject.export = false;
7503
+ // }
7504
+ // console.log("Mapper library: WebReturnSalesforceMapperBuilderClass: export mapping end...")
7505
+ // return this;
7506
+ // }
7507
+ /**
7508
+ * @return {?}
7509
+ */
7510
+ WebReturnSalesforceMapperBuilderClass.prototype.getDeliveryMethod =
7511
+ // export(status, details) {
7512
+ // console.log("Mapper library: WebReturnSalesforceMapperBuilderClass: export mapping started...");
7513
+ // console.log("Mapper library: WebReturnSalesforceMapperBuilderClass: status:", status);
7514
+ // console.log("Mapper library: WebReturnSalesforceMapperBuilderClass: details:", JSON.stringify(details));
7515
+ // if (status && details && details.providers && details.providers.length > 0) {
7516
+ // details.providers.forEach(
7517
+ // providerObj => {
7518
+ // if (providerObj.provider && providerObj.provider === PROVIDERS.SALESFORCE) {
7519
+ // this.webReturnObject.export = true;
7520
+ // } else {
7521
+ // this.webReturnObject.export = false;
7522
+ // }
7523
+ // }
7524
+ // );
7525
+ // } else {
7526
+ // this.webReturnObject.export = false;
7527
+ // }
7528
+ // console.log("Mapper library: WebReturnSalesforceMapperBuilderClass: export mapping end...")
7529
+ // return this;
7530
+ // }
7531
+ /**
7532
+ * @return {?}
7533
+ */
7534
+ function () {
7535
+ if (this.orderDetails.shipments && this.orderDetails.shipments.length > 0) {
7536
+ /** @type {?} */
7537
+ var shipToStoreShipment = this.orderDetails.shipments.find((/**
7538
+ * @param {?} shipment
7539
+ * @return {?}
7540
+ */
7541
+ function (shipment) { return shipment.c_fromStoreId; }));
7542
+ if (shipToStoreShipment)
7543
+ return DELIVERY_METHODS.SHIP_TO_STORE;
7544
+ else
7545
+ return DELIVERY_METHODS.DELIVERY;
7546
+ }
7547
+ else {
7548
+ return '';
7549
+ }
7550
+ };
7551
+ /**
7552
+ * @template THIS
7553
+ * @this {THIS}
7554
+ * @return {THIS}
7555
+ */
7556
+ WebReturnSalesforceMapperBuilderClass.prototype.product = /**
7557
+ * @template THIS
7558
+ * @this {THIS}
7559
+ * @return {THIS}
7560
+ */
7561
+ function () {
7562
+ var _this = this;
7563
+ console.log("Mapper library: WebReturnSalesforceMapperBuilderClass: product mapping started...");
7564
+ (/** @type {?} */ (this)).webReturnObject.basket['products'] = [];
7565
+ if ((/** @type {?} */ (this)).orderDetails.product_items && (/** @type {?} */ (this)).orderDetails.product_items.length > 0) {
7566
+ (/** @type {?} */ (this)).orderDetails.product_items.forEach((/**
7567
+ * @param {?} product
7568
+ * @param {?} index
7569
+ * @return {?}
7570
+ */
7571
+ function (product, index) {
7572
+ /** @type {?} */
7573
+ var productObj = {
7574
+ description: product.item_text ? product.item_text : '',
7575
+ SKU: product.product_id ? product.product_id : '',
7576
+ quantity: product.quantity ? product.quantity : 0,
7577
+ refundedQuantity: 0,
7578
+ price: product.price ? product.price : 0,
7579
+ itemLineId: index + 1,
7580
+ deliveryMethod: (/** @type {?} */ (_this)).getDeliveryMethod().toString(),
7581
+ 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
7582
+ };
7583
+ if (product && product.price != 0) {
7584
+ (/** @type {?} */ (_this)).webReturnObject.basket['products'].push(productObj);
7585
+ }
7586
+ }));
7587
+ }
7588
+ console.log("Mapper library: WebReturnSalesforceMapperBuilderClass: product mapping ended...");
7589
+ return (/** @type {?} */ (this));
7590
+ };
7591
+ /**
7592
+ * @template THIS
7593
+ * @this {THIS}
7594
+ * @return {THIS}
7595
+ */
7596
+ WebReturnSalesforceMapperBuilderClass.prototype.linePromotion = /**
7597
+ * @template THIS
7598
+ * @this {THIS}
7599
+ * @return {THIS}
7600
+ */
7601
+ function () {
7602
+ console.log("Mapper library: WebReturnSalesforceMapperBuilderClass: linePromotion mapping started...");
7603
+ (/** @type {?} */ (this)).webReturnObject.basket.linePromotion = (/** @type {?} */ ([]));
7604
+ /** @type {?} */
7605
+ var linePromotionArray = (/** @type {?} */ ([]));
7606
+ if ((/** @type {?} */ (this)).orderDetails.product_items && (/** @type {?} */ (this)).orderDetails.product_items.length > 0) {
7607
+ (/** @type {?} */ (this)).orderDetails.product_items.forEach((/**
7608
+ * @param {?} product
7609
+ * @param {?} index
7610
+ * @return {?}
7611
+ */
7612
+ function (product, index) {
7613
+ product.item_id = (index + 1).toString();
7614
+ if (product.price_adjustments && product.price_adjustments.length > 0) {
7615
+ product.price_adjustments.forEach((/**
7616
+ * @param {?} promotion
7617
+ * @return {?}
7618
+ */
7619
+ function (promotion) {
7620
+ /** @type {?} */
7621
+ var linePromotionObj = (/** @type {?} */ ({}));
7622
+ /** @type {?} */
7623
+ var trigger = (/** @type {?} */ ({}));
7624
+ trigger.itemLineId = product.item_id;
7625
+ trigger.quantity = product.quantity ? product.quantity : 0;
7626
+ linePromotionObj.trigger = (/** @type {?} */ ([]));
7627
+ linePromotionObj.trigger.push(trigger);
7628
+ linePromotionObj.itemLineId = index + 1;
7629
+ linePromotionObj.promotionId = promotion.promotion_id ? promotion.promotion_id : '';
7630
+ linePromotionObj.displayText = promotion.item_text ? promotion.item_text : '';
7631
+ linePromotionObj.promotionType = promotion.applied_discount && promotion.applied_discount.type ? promotion.applied_discount.type : '';
7632
+ linePromotionObj.promotionAmount = promotion.price ? Math.abs(promotion.price) : 0;
7633
+ linePromotionObj.name = promotion.item_text ? promotion.item_text : '';
7634
+ linePromotionObj.promotionInfo = promotion.item_text ? promotion.item_text : '';
7635
+ linePromotionObj.promotionLinePrice = product.price_after_item_discount ? product.price_after_item_discount : 0;
7636
+ linePromotionArray.push(linePromotionObj);
7637
+ }));
7638
+ }
7639
+ }));
7640
+ }
7641
+ (/** @type {?} */ (this)).webReturnObject.basket.linePromotion = linePromotionArray;
7642
+ console.log("Mapper library: WebReturnSalesforceMapperBuilderClass: linePromotion mapping ended...");
7643
+ return (/** @type {?} */ (this));
7644
+ };
7645
+ /**
7646
+ * @template THIS
7647
+ * @this {THIS}
7648
+ * @return {THIS}
7649
+ */
7650
+ WebReturnSalesforceMapperBuilderClass.prototype.transactionPromotion = /**
7651
+ * @template THIS
7652
+ * @this {THIS}
7653
+ * @return {THIS}
7654
+ */
7655
+ function () {
7656
+ var _this = this;
7657
+ console.log("Mapper library: WebReturnSalesforceMapperBuilderClass: transactionPromotion mapping started...");
7658
+ /** @type {?} */
7659
+ var transactionPromotionArray = (/** @type {?} */ ([]));
7660
+ (/** @type {?} */ (this)).webReturnObject.basket.transactionPromotion = (/** @type {?} */ ([]));
7661
+ if ((/** @type {?} */ (this)).orderDetails.order_price_adjustments && (/** @type {?} */ (this)).orderDetails.order_price_adjustments.length > 0) {
7662
+ (/** @type {?} */ (this)).orderDetails.order_price_adjustments.forEach((/**
7663
+ * @param {?} transactionPromotion
7664
+ * @return {?}
7665
+ */
7666
+ function (transactionPromotion) {
7667
+ /** @type {?} */
7668
+ var transactionPromotionObj = (/** @type {?} */ ({}));
7669
+ transactionPromotionObj.displayText = transactionPromotion.item_text ? transactionPromotion.item_text : '';
7670
+ transactionPromotionObj.name = transactionPromotion.item_text ? transactionPromotion.item_text : '';
7671
+ transactionPromotionObj.promotionAmount = transactionPromotion.price ? Math.abs(transactionPromotion.price) : 0;
7672
+ transactionPromotionObj.promotionId = transactionPromotion.promotion_id ? transactionPromotion.promotion_id : '';
7673
+ transactionPromotionObj.promotionInfo = transactionPromotion.item_text ? transactionPromotion.item_text : '';
7674
+ transactionPromotionObj.promotionType = transactionPromotion.applied_discount && transactionPromotion.applied_discount.type ? transactionPromotion.applied_discount.type : '';
7675
+ transactionPromotionObj.itemLineIds = (/** @type {?} */ (_this)).orderDetails.product_items.map((/**
7676
+ * @param {?} product
7677
+ * @param {?} index
7678
+ * @return {?}
7679
+ */
7680
+ function (product, index) { return index + 1; }));
7681
+ transactionPromotionArray.push(transactionPromotionObj);
7682
+ }));
7683
+ }
7684
+ (/** @type {?} */ (this)).webReturnObject.basket.transactionPromotion = transactionPromotionArray;
7685
+ console.log("Mapper library: WebReturnSalesforceMapperBuilderClass: transactionPromotion mapping ended...");
7686
+ return (/** @type {?} */ (this));
7687
+ };
7688
+ /**
7689
+ * @template THIS
7690
+ * @this {THIS}
7691
+ * @return {THIS}
7692
+ */
7693
+ WebReturnSalesforceMapperBuilderClass.prototype.customer = /**
7694
+ * @template THIS
7695
+ * @this {THIS}
7696
+ * @return {THIS}
7697
+ */
7698
+ function () {
7699
+ console.log("Mapper library: WebReturnSalesforceMapperBuilderClass: customer mapping started...");
7700
+ /** @type {?} */
7701
+ var customerObj = (/** @type {?} */ ({}));
7702
+ customerObj.email = (/** @type {?} */ (this)).orderDetails.customer_info && (/** @type {?} */ (this)).orderDetails.customer_info.email ? (/** @type {?} */ (this)).orderDetails.customer_info.email : '';
7703
+ customerObj.firstName = (/** @type {?} */ (this)).orderDetails.billing_address && (/** @type {?} */ (this)).orderDetails.billing_address.first_name ? (/** @type {?} */ (this)).orderDetails.billing_address.first_name : '';
7704
+ customerObj.lastName = (/** @type {?} */ (this)).orderDetails.billing_address && (/** @type {?} */ (this)).orderDetails.billing_address.last_name ? (/** @type {?} */ (this)).orderDetails.billing_address.last_name : '';
7705
+ /** @type {?} */
7706
+ var shippingAddress = (/** @type {?} */ ([]));
7707
+ (/** @type {?} */ (this)).orderDetails.shipments.forEach((/**
7708
+ * @param {?} shipment
7709
+ * @return {?}
7710
+ */
7711
+ function (shipment) {
7712
+ /** @type {?} */
7713
+ var shippingAddressObj = (/** @type {?} */ ({}));
7714
+ shippingAddressObj.id = shipment.shipping_address && shipment.shipping_address.id ? shipment.shipping_address.id : '';
7715
+ shippingAddressObj.countryCode = shipment.shipping_address && shipment.shipping_address.country_code ? shipment.shipping_address.country_code : '';
7716
+ shippingAddressObj.address1 = shipment.shipping_address && shipment.shipping_address.address1 ? shipment.shipping_address.address1 : '';
7717
+ shippingAddressObj.city = shipment.shipping_address && shipment.shipping_address.city ? shipment.shipping_address.city : '';
7718
+ shippingAddressObj.country = '';
7719
+ shippingAddressObj.postCode = shipment.shipping_address && shipment.shipping_address.postal_code ? shipment.shipping_address.postal_code : '';
7720
+ shippingAddress.push(shippingAddressObj);
7721
+ }));
7722
+ customerObj.shippingAddress = shippingAddress;
7723
+ /** @type {?} */
7724
+ var billingAddress = (/** @type {?} */ ([]));
7725
+ /** @type {?} */
7726
+ var billingAddressObj = (/** @type {?} */ ({}));
7727
+ billingAddressObj.id = (/** @type {?} */ (this)).orderDetails.billing_address && (/** @type {?} */ (this)).orderDetails.billing_address.id ? (/** @type {?} */ (this)).orderDetails.billing_address.id : '';
7728
+ billingAddressObj.countryCode = (/** @type {?} */ (this)).orderDetails.billing_address && (/** @type {?} */ (this)).orderDetails.billing_address.country_code ? (/** @type {?} */ (this)).orderDetails.billing_address.country_code : '';
7729
+ billingAddressObj.address1 = (/** @type {?} */ (this)).orderDetails.billing_address && (/** @type {?} */ (this)).orderDetails.billing_address.address1 ? (/** @type {?} */ (this)).orderDetails.billing_address.address1 : '';
7730
+ billingAddressObj.city = (/** @type {?} */ (this)).orderDetails.billing_address && (/** @type {?} */ (this)).orderDetails.billing_address.city ? (/** @type {?} */ (this)).orderDetails.billing_address.city : '';
7731
+ billingAddressObj.country = '';
7732
+ billingAddressObj.postCode = '';
7733
+ billingAddress.push(billingAddressObj);
7734
+ customerObj.billingAddress = billingAddress;
7735
+ /** @type {?} */
7736
+ var shipmentDetails = (/** @type {?} */ ([]));
7737
+ (/** @type {?} */ (this)).orderDetails.shipments.forEach((/**
7738
+ * @param {?} shipment
7739
+ * @return {?}
7740
+ */
7741
+ function (shipment) {
7742
+ /** @type {?} */
7743
+ var shipmentDetailsObj = (/** @type {?} */ ({}));
7744
+ shipmentDetailsObj.id = shipment.shipment_id ? shipment.shipment_id : '';
7745
+ shipmentDetailsObj.deliveryGroup = shipment.shipment_id ? shipment.shipment_id : '';
7746
+ shipmentDetails.push(shipmentDetailsObj);
7747
+ }));
7748
+ customerObj.shipmentDetails = shipmentDetails;
7749
+ (/** @type {?} */ (this)).webReturnObject.customer = customerObj;
7750
+ console.log("Mapper library: WebReturnSalesforceMapperBuilderClass: customer mapping ended...");
7751
+ return (/** @type {?} */ (this));
7752
+ };
7753
+ /**
7754
+ * @template THIS
7755
+ * @this {THIS}
7756
+ * @return {THIS}
7757
+ */
7758
+ WebReturnSalesforceMapperBuilderClass.prototype.externalTransactionDetails = /**
7759
+ * @template THIS
7760
+ * @this {THIS}
7761
+ * @return {THIS}
7762
+ */
7763
+ function () {
7764
+ var _this = this;
7765
+ console.log("Mapper library: WebReturnSalesforceMapperBuilderClass: externalTransactionDetails mapping started...");
7766
+ /** @type {?} */
7767
+ var externalTransactionDetails = (/** @type {?} */ ([]));
7768
+ if ((/** @type {?} */ (this)).orderDetails.shipments && (/** @type {?} */ (this)).orderDetails.shipments.length > 0) {
7769
+ (/** @type {?} */ (this)).orderDetails.shipments.forEach((/**
7770
+ * @param {?} shipment
7771
+ * @return {?}
7772
+ */
7773
+ function (shipment) {
7774
+ /** @type {?} */
7775
+ var externalTransactionDetailsObj = (/** @type {?} */ ({}));
7776
+ /** @type {?} */
7777
+ var transactionInfo = (/** @type {?} */ ({}));
7778
+ externalTransactionDetailsObj.uniqueId = (/** @type {?} */ (_this)).orderDetails.order_no ? (/** @type {?} */ (_this)).orderDetails.order_no : '';
7779
+ externalTransactionDetailsObj.providerType = PROVIDERS.SALESFORCE;
7780
+ transactionInfo.shippingId = shipment.shipping_method && shipment.shipping_method.id ? shipment.shipping_method.id : '';
7781
+ transactionInfo.externalShippingId = shipment.shipment_id ? shipment.shipment_id : '';
7782
+ externalTransactionDetailsObj.details = transactionInfo;
7783
+ externalTransactionDetails.push(externalTransactionDetailsObj);
7784
+ }));
7785
+ }
7786
+ (/** @type {?} */ (this)).webReturnObject.externalTransactionDetails = externalTransactionDetails;
7787
+ console.log("Mapper library: WebReturnSalesforceMapperBuilderClass: externalTransactionDetails mapping ended...");
7788
+ return (/** @type {?} */ (this));
7789
+ };
7790
+ /**
7791
+ * @template THIS
7792
+ * @this {THIS}
7793
+ * @return {THIS}
7794
+ */
7795
+ WebReturnSalesforceMapperBuilderClass.prototype.basketSummary = /**
7796
+ * @template THIS
7797
+ * @this {THIS}
7798
+ * @return {THIS}
7799
+ */
7800
+ function () {
7801
+ console.log("Mapper library: WebReturnSalesforceMapperBuilderClass: basketSummary mapping started...");
7802
+ /** @type {?} */
7803
+ var basketSummary = (/** @type {?} */ ({}));
7804
+ /** @type {?} */
7805
+ var basketSummaryWebOrder = (/** @type {?} */ ({}));
7806
+ /** @type {?} */
7807
+ var linePromotionTotal = (/** @type {?} */ (this)).webReturnObject.basket.linePromotion.map((/**
7808
+ * @param {?} linePromotion
7809
+ * @return {?}
7810
+ */
7811
+ function (linePromotion) { return linePromotion.promotionAmount; })).reduce((/**
7812
+ * @param {?} accumulator
7813
+ * @param {?} currentValue
7814
+ * @return {?}
7815
+ */
7816
+ function (accumulator, currentValue) { return accumulator + currentValue; }), 0);
7817
+ /** @type {?} */
7818
+ var transactionPromotionTotal = (/** @type {?} */ (this)).webReturnObject.basket.transactionPromotion.map((/**
7819
+ * @param {?} transactionPromotion
7820
+ * @return {?}
7821
+ */
7822
+ function (transactionPromotion) { return transactionPromotion.promotionAmount; })).reduce((/**
7823
+ * @param {?} accumulator
7824
+ * @param {?} currentValue
7825
+ * @return {?}
7826
+ */
7827
+ function (accumulator, currentValue) { return accumulator + currentValue; }), 0);
7828
+ basketSummary.discountTotal = linePromotionTotal + transactionPromotionTotal;
7829
+ basketSummary.VATTotal = (/** @type {?} */ (this)).orderDetails.tax_total ? (/** @type {?} */ (this)).orderDetails.tax_total : 0;
7830
+ basketSummary.saleTotal = (/** @type {?} */ (this)).orderDetails.order_total ? (/** @type {?} */ (this)).orderDetails.order_total : 0;
7831
+ basketSummary.basketTotal = (/** @type {?} */ (this)).orderDetails.order_total ? (/** @type {?} */ (this)).orderDetails.order_total : 0;
7832
+ basketSummary.totalItems = (/** @type {?} */ (this)).orderDetails.product_items && (/** @type {?} */ (this)).orderDetails.product_items.length > 0 ? (/** @type {?} */ (this)).orderDetails.product_items.length : 0;
7833
+ basketSummary.basketTotalWithShippingTotal = (/** @type {?} */ (this)).orderDetails.order_total ? (/** @type {?} */ (this)).orderDetails.order_total : 0;
7834
+ basketSummaryWebOrder.shippingTotal = (/** @type {?} */ (this)).orderDetails.shipping_total ? (/** @type {?} */ (this)).orderDetails.shipping_total : 0;
7835
+ basketSummaryWebOrder.basketTotalWithShippingTotal = (/** @type {?} */ (this)).orderDetails.order_total ? (/** @type {?} */ (this)).orderDetails.order_total : 0;
7836
+ basketSummary.webOrder = basketSummaryWebOrder;
7837
+ (/** @type {?} */ (this)).webReturnObject.basketSummary = basketSummary;
7838
+ console.log("Mapper library: WebReturnSalesforceMapperBuilderClass: basketSummary mapping ended...");
7839
+ return (/** @type {?} */ (this));
7840
+ };
7841
+ /**
7842
+ * @template THIS
7843
+ * @this {THIS}
7844
+ * @param {?} deviceId
7845
+ * @return {THIS}
7846
+ */
7847
+ WebReturnSalesforceMapperBuilderClass.prototype.deviceId = /**
7848
+ * @template THIS
7849
+ * @this {THIS}
7850
+ * @param {?} deviceId
7851
+ * @return {THIS}
7852
+ */
7853
+ function (deviceId) {
7854
+ (/** @type {?} */ (this)).webReturnObject.deviceId = deviceId;
7855
+ return (/** @type {?} */ (this));
7856
+ };
7857
+ /**
7858
+ * @template THIS
7859
+ * @this {THIS}
7860
+ * @param {?} terminalId
7861
+ * @return {THIS}
7862
+ */
7863
+ WebReturnSalesforceMapperBuilderClass.prototype.terminalId = /**
7864
+ * @template THIS
7865
+ * @this {THIS}
7866
+ * @param {?} terminalId
7867
+ * @return {THIS}
7868
+ */
7869
+ function (terminalId) {
7870
+ (/** @type {?} */ (this)).webReturnObject.terminalId = terminalId;
7871
+ return (/** @type {?} */ (this));
7872
+ };
7873
+ /**
7874
+ * @template THIS
7875
+ * @this {THIS}
7876
+ * @param {?} orgCode
7877
+ * @return {THIS}
7878
+ */
7879
+ WebReturnSalesforceMapperBuilderClass.prototype.orgCode = /**
7880
+ * @template THIS
7881
+ * @this {THIS}
7882
+ * @param {?} orgCode
7883
+ * @return {THIS}
7884
+ */
7885
+ function (orgCode) {
7886
+ (/** @type {?} */ (this)).webReturnObject.orgCode = orgCode;
7887
+ return (/** @type {?} */ (this));
7888
+ };
7889
+ /**
7890
+ * @template THIS
7891
+ * @this {THIS}
7892
+ * @param {?} storeId
7893
+ * @return {THIS}
7894
+ */
7895
+ WebReturnSalesforceMapperBuilderClass.prototype.storeId = /**
7896
+ * @template THIS
7897
+ * @this {THIS}
7898
+ * @param {?} storeId
7899
+ * @return {THIS}
7900
+ */
7901
+ function (storeId) {
7902
+ (/** @type {?} */ (this)).webReturnObject.storeId = storeId;
7903
+ return (/** @type {?} */ (this));
7904
+ };
7905
+ /**
7906
+ * @template THIS
7907
+ * @this {THIS}
7908
+ * @param {?} storeNodeId
7909
+ * @return {THIS}
7910
+ */
7911
+ WebReturnSalesforceMapperBuilderClass.prototype.storeNodeId = /**
7912
+ * @template THIS
7913
+ * @this {THIS}
7914
+ * @param {?} storeNodeId
7915
+ * @return {THIS}
7916
+ */
7917
+ function (storeNodeId) {
7918
+ (/** @type {?} */ (this)).webReturnObject.storeNodeId = storeNodeId;
7919
+ return (/** @type {?} */ (this));
7920
+ };
7921
+ /**
7922
+ * @template THIS
7923
+ * @this {THIS}
7924
+ * @param {?} storeNodeStructure
7925
+ * @return {THIS}
7926
+ */
7927
+ WebReturnSalesforceMapperBuilderClass.prototype.storeNodeStructure = /**
7928
+ * @template THIS
7929
+ * @this {THIS}
7930
+ * @param {?} storeNodeStructure
7931
+ * @return {THIS}
7932
+ */
7933
+ function (storeNodeStructure) {
7934
+ (/** @type {?} */ (this)).webReturnObject.storeNodeStructure = storeNodeStructure;
7935
+ return (/** @type {?} */ (this));
7936
+ };
7937
+ /**
7938
+ * @template THIS
7939
+ * @this {THIS}
7940
+ * @param {?} docId
7941
+ * @return {THIS}
7942
+ */
7943
+ WebReturnSalesforceMapperBuilderClass.prototype.docId = /**
7944
+ * @template THIS
7945
+ * @this {THIS}
7946
+ * @param {?} docId
7947
+ * @return {THIS}
7948
+ */
7949
+ function (docId) {
7950
+ (/** @type {?} */ (this)).webReturnObject.id = docId;
7951
+ return (/** @type {?} */ (this));
7952
+ };
7953
+ /**
7954
+ * @template THIS
7955
+ * @this {THIS}
7956
+ * @param {?} userID
7957
+ * @return {THIS}
7958
+ */
7959
+ WebReturnSalesforceMapperBuilderClass.prototype.updateUserID = /**
7960
+ * @template THIS
7961
+ * @this {THIS}
7962
+ * @param {?} userID
7963
+ * @return {THIS}
7964
+ */
7965
+ function (userID) {
7966
+ (/** @type {?} */ (this)).webReturnObject.userId = userID;
7967
+ return (/** @type {?} */ (this));
7968
+ };
7969
+ /**
7970
+ * @template THIS
7971
+ * @this {THIS}
7972
+ * @param {?} name
7973
+ * @return {THIS}
7974
+ */
7975
+ WebReturnSalesforceMapperBuilderClass.prototype.updateUserName = /**
7976
+ * @template THIS
7977
+ * @this {THIS}
7978
+ * @param {?} name
7979
+ * @return {THIS}
7980
+ */
7981
+ function (name) {
7982
+ (/** @type {?} */ (this)).webReturnObject.userName = name;
7983
+ return (/** @type {?} */ (this));
7984
+ };
7985
+ /**
7986
+ * @return {?}
7987
+ */
7988
+ WebReturnSalesforceMapperBuilderClass.prototype.build = /**
7989
+ * @return {?}
7990
+ */
7991
+ function () {
7992
+ console.log("Mapper library: WebReturnSalesforceMapperBuilderClass: mapping done...");
7993
+ return this.webReturnObject;
7994
+ };
7995
+ /**
7996
+ * @param {?} date
7997
+ * @return {?}
7998
+ */
7999
+ WebReturnSalesforceMapperBuilderClass.prototype.getUTCDateTime = /**
8000
+ * @param {?} date
8001
+ * @return {?}
8002
+ */
8003
+ function (date) {
8004
+ if (date) {
8005
+ return new Date(date).toISOString();
8006
+ }
8007
+ };
8008
+ return WebReturnSalesforceMapperBuilderClass;
8009
+ }());
8010
+ if (false) {
8011
+ /**
8012
+ * @type {?}
8013
+ * @private
8014
+ */
8015
+ WebReturnSalesforceMapperBuilderClass.prototype.orderDetails;
8016
+ /**
8017
+ * @type {?}
8018
+ * @private
8019
+ */
8020
+ WebReturnSalesforceMapperBuilderClass.prototype.webReturnObject;
8021
+ }
8022
+
6977
8023
  exports.MapperLibraryComponent = MapperLibraryComponent;
6978
8024
  exports.MapperLibraryModule = MapperLibraryModule;
6979
8025
  exports.RJMapperBuilderClass = RJMapperBuilderClass;
6980
8026
  exports.WebReturnMapperBuilderClass = WebReturnMapperBuilderClass;
8027
+ exports.WebReturnSalesforceMapperBuilderClass = WebReturnSalesforceMapperBuilderClass;
6981
8028
 
6982
8029
  Object.defineProperty(exports, '__esModule', { value: true });
6983
8030