libraries/tracking-core/helpers/formatHelpers.js
function formatSgDataProduct(product) {
  return {
    id: getProductIdentifier(product),
    type: 'product',
    name: get(product, 'name'),
    priceNet: getUnifiedNumber(get(product, 'amount.net')),
    priceGross: getUnifiedNumber(get(product, 'amount.gross')),
    quantity: getUnifiedNumber(get(product, 'quantity')),
    currency: get(product, 'amount.currency'),
  };
}
function formatSgDataProduct(product) {
  return {
    id: getProductIdentifier(product),
    type: 'product',
    name: get(product, 'name'),
    priceNet: getUnifiedNumber(get(product, 'amount.net')),
    priceGross: getUnifiedNumber(get(product, 'amount.gross')),
    quantity: getUnifiedNumber(get(product, 'quantity')),
    currency: get(product, 'amount.currency'),
  };
}
function formatSgDataProduct ( product ) { return { id : getProductIdentifier ( product ) , type : 'product' , name : get ( product , 'name' ) , priceNet : getUnifiedNumber ( get ( product , 'amount.net' ) ) , priceGross : getUnifiedNumber ( get ( product , 'amount.gross' ) ) , quantity : getUnifiedNumber ( get ( product , 'quantity' ) ) , currency : get ( product , 'amount.currency' ) , } ; }
Convert sgData product to unified item

@param {Object} product Item from sgData
@returns {Object} Data for the unified item
Convert sgData product to unified item