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


  createPaymentInfo: (customer, paymentInfo) ->
    unless paymentInfo?
      Q customer
    else
      customObj =
        container: "paymentMethodInfo"


  run: (xmlString) ->
    Q.all([
      @ensureCustomerGroupByName CUSTOMER_GROUP_B2B_NAME
      @ensureCustomerGroupByName CUSTOMER_GROUP_B2C_WITH_CARD_NAME
    ])
    .spread (b2bCustomerGroup, b2cWithCardCustomerGroup) =>
      customerGroupName2Id = {}
      customerGroupName2Id[CUSTOMER_GROUP_B2B_NAME] = b2bCustomerGroup.id
      customerGroupName2Id[CUSTOMER_GROUP_B2C_WITH_CARD_NAME] = b2cWithCardCustomerGroup.id
      @transform(xmlString, customerGroupName2Id)
    .then (customerData) =>
      @createOrUpdate customerData
