         console.error "Unsupported country '#{country}'"
         continue
 
-      customerGroup = xmlHelpers.xmlVal xml, 'group', @NO_CUSTOMER_GROUP
+      customerGroup = xmlHelpers.xmlVal xml, 'group', NO_CUSTOMER_GROUP
       discount = xmlHelpers.xmlVal xml, 'Discount', '0.0'
       discount = parseFloat discount
 
       # B2C: set customer group if she has a discount. Otherwise the customer isn't in any group
-      customerGroup = @CUSTOMER_GROUP_B2C_WITH_CARD_NAME if customerGroup is @CUSTOMER_GROUP_B2C_NAME
-      customerGroup = @NO_CUSTOMER_GROUP if customerGroup is @CUSTOMER_GROUP_B2C_WITH_CARD_NAME and discount is 0
+      customerGroup = CUSTOMER_GROUP_B2C_WITH_CARD_NAME if customerGroup is CUSTOMER_GROUP_B2C_NAME
+      customerGroup = NO_CUSTOMER_GROUP if customerGroup is CUSTOMER_GROUP_B2C_WITH_CARD_NAME and discount is 0
 
       paymentMethodCode = xmlHelpers.xmlVal xml, 'PaymentMethodCode', []
       paymentMethod = xmlHelpers.xmlVal xml, 'PaymentMethod', []


  linkCustomerIntoGroup: (customer, customerGroup) ->
    unless customerGroup?
      Q customer
    else
      data =
        id: customer.id

    .then (result) =>
      @linkCustomerIntoGroup(result.body, newCustomer.customerGroup)
    .then (result) =>
      @createPaymentInfo(result.body, paymentInfo)
    .then (result) ->
      deferred.resolve 'Customer created.'
    .fail (err) ->
