@pmcretail/mapper-library 0.0.25 → 0.0.27

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.
@@ -6652,7 +6652,8 @@
6652
6652
  id: '',
6653
6653
  billingAddress: {},
6654
6654
  shippingAddress: {},
6655
- }
6655
+ },
6656
+ currentTransactionDetails: {}
6656
6657
  };
6657
6658
  if (document) {
6658
6659
  this.document = document;
@@ -6724,7 +6725,7 @@
6724
6725
  (/** @type {?} */ (this)).webReturnObject.basket['products'] = [];
6725
6726
  /** @type {?} */
6726
6727
  var product = {};
6727
- if ((/** @type {?} */ (this)).document.items && (/** @type {?} */ (this)).document.items.item && (/** @type {?} */ (this)).document.items.item) {
6728
+ if ((/** @type {?} */ (this)).document.items && (/** @type {?} */ (this)).document.items.item) {
6728
6729
  if ((/** @type {?} */ (this)).document.items.item instanceof Array) {
6729
6730
  (/** @type {?} */ (this)).document.items.item.forEach((/**
6730
6731
  * @param {?} element
@@ -6741,7 +6742,7 @@
6741
6742
  description: (element.name) ? (/** @type {?} */ (_this)).getText(element.name) : '',
6742
6743
  SKU: (element.sku) ? (/** @type {?} */ (_this)).getText(element.sku) : '',
6743
6744
  quantity: (element.qty_ordered) ? Number((/** @type {?} */ (_this)).getText(element.qty_ordered)) : 0,
6744
- refundedQuantity: (element.qty_refunded) ? Number((/** @type {?} */ (_this)).getText((/** @type {?} */ (_this)).document.items.item.qty_refunded)) : 0,
6745
+ refundedQuantity: (element.qty_refunded) ? Number((/** @type {?} */ (_this)).getText(element.qty_refunded)) : 0,
6745
6746
  price: (element.original_price) ? Number((/** @type {?} */ (_this)).getText(element.original_price)) : 0,
6746
6747
  itemLineId: (element.item_id) ? Number((/** @type {?} */ (_this)).getText(element.item_id)) : 0,
6747
6748
  // totalLinePrice: (element.row_invoiced) ? Number(this.getText(element.row_invoiced)) : 0,