       currencyCode: currency
     customerGroup:
       typeId: 'customer-group'
-      id: @customerGroupId()
+      id: customerGroupId
   j.prices.push p
 
   return if @val(row, 'specialpriceflag', '') is '0'

Config = require('../config').config
Rest = require('sphere-node-connect').Rest
OAuth2 = require('sphere-node-connect').OAuth2
#Q = require('q')

# Define XmlImport object
exports.XmlImport = (options)-> @_options = options

exports.XmlImport.prototype.process = (data, callback)->
  throw new Error 'JSON Object required' unless _.isObject data

  variants = {} # uid -> [variant]
  images = {} # uid: variantId -> [images]
  varianId = 0

  productTypeId = 'TODO'
  taxCategoryId = 'TODO'
  customerGroupId = 'TODO'

  @productType().then(@taxCategory()).then(@customerGroup()).then (pId)->
    console.log pId

  for k,row of xmljs.row
    v =
      id: 0
    @mapCategories(row, v)
    @mapAttributes(row, v)
    @mapPrices(row, v, customerGroupId)
    img = @mapImages(row)

    if @isVariant(row)
