       """
 
     put "subscriptions/#{data.uuid}", xml, (err, res)->
-      callback err, unless err then subObj res.subscription
+      callback err, unless err then createSubscriptionObject res.subscription
 
   @terminateSubscription: (accountCode, data, callback)->
     data.refund ?= 'none'
 
     put "subscriptions/#{data.uuid}/terminate?refund=#{data.refund}", '', (err, res)->
-      callback err, unless err then subObj res.subscription
+      callback err, unless err then createSubscriptionObject res.subscription
 
   @cancelSubscription: (accountCode, data, callback)->
     put "subscriptions/#{data.uuid}/cancel", '', (err, res)->
-      callback err, unless err then subObj res.subscription
+      callback err, unless err then createSubscriptionObject res.subscription
 
   @reactivateUserSubscription: (accountCode, data, callback)->
     put "subscriptions/#{data.uuid}/reactivate", '', (err, res)->
-      callback err, unless err then subObj res.subscription
+      callback err, unless err then createSubscriptionObject res.subscription
 
   #
   # TRANSACTIONS
   # See https://docs.recurly.com/api/transactions for documentation
   #
 
-  transObj = (t)->
+  createTransactionObject = (t)->
     trans =
       uuid       : t.uuid[0]
       status     : t.status[0]


      trans = []
      for page in res
        trans.push transObj t  for t in page.transactions?.transaction

      callback null, trans


            callback null, result, nextUrl

    req.on 'error', (e)->
      callback [createErrorObject 'connection', 'Unable to connect to payment backend.']

    req.end(data, 'utf8')

