       </transaction>
       """
 
-    post 'transactions', xml, (err, res)->
+    POST 'transactions', xml, (err, res)->
       callback err, unless err then createTransactionObject res.transaction
 
   @deleteTransaction: (accountCode, data, callback)->
-    del "transactions/#{data.uuid}?amount_in_cents=##{data.amount}", callback
+    DEL "transactions/#{data.uuid}?amount_in_cents=##{data.amount}", callback
 
   #
   # INVOICES


    @fetchAccountDetailsByAccountCode accountCode, (err, account) ->
      if err or not account?.username
        post 'accounts', xml, callback
      else
        put "accounts/#{accountCode}", xml, callback

  @deleteAccount: (accountCode, callback)->
    del "accounts/#{accountCode}", callback

  filterNils = (ob) ->
    ob[key] = null  for own key, val of ob when val?.$?.nil?

      </subscription>
      """

    PUT "subscriptions/#{data.uuid}", xml, (err, res)->
      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 createSubscriptionObject res.subscription

  @cancelSubscription: (accountCode, data, callback)->
    PUT "subscriptions/#{data.uuid}/cancel", '', (err, res)->
      callback err, unless err then createSubscriptionObject res.subscription

  @reactivateUserSubscription: (accountCode, data, callback)->
    PUT "subscriptions/#{data.uuid}/reactivate", '', (err, res)->
      callback err, unless err then createSubscriptionObject res.subscription

  #
