     POST 'plans', xml, (err, res) ->
       callback err, unless err then new models.Plan res.plan
 
-  @updatePlan: (data, callback)->
+  @updatePlan = (data, callback)->
     data.feeInitial  ?= 0
     data.feeInterval ?= 1
 


      callback null, subs

  @fetchSubscription: (paymentMethodId, data, callback) ->
    GET "subscriptions/#{data.uuid}", (err, res) ->
      return callback err  if err


  # See https://docs.recurly.com/api/invoices for XML format
  #

  @fetchInvoices = (paymentMethodId, callback) ->
    GET "accounts/#{paymentMethodId}/invoices", (err, res) ->
      return callback err  if err

