   @setPaymentInfo = secure (client, paymentMethodId, data, callback) ->
     [data, callback, paymentMethodId] = [paymentMethodId, data, callback]  unless callback
     (require './method').updatePaymentMethodById client, paymentMethodId, data, callback
-
-  @fetchAccountDetails = secure ({ connection:{ delegate }}, callback)->
-    console.error 'needs to be reimplemented'
-#    recurly.fetchAccountDetailsByPaymentMethodId (userCodeOf delegate), callback
 
   @fetchTransactions = secure ({ connection:{ delegate }}, callback) ->
     delegate.fetchPaymentMethods (err, paymentMethods) ->


module.exports = class JPayment extends Base

  {secure, dash} = require 'bongo'
  {difference, extend} = require 'underscore'

  JUser = require '../user'


  @set
    sharedMethods  :
      static       :
        setPaymentInfo:
          (signature String, Object, Function)
        fetchTransactions:
          (signature Function)
        fetchCountryDataByIp:
          (signature String, Function)
        removePaymentMethod:
          (signature String, Function)

  @removePaymentMethod: secure (client, paymentMethodId, callback) ->
    (require './method').removePaymentMethod client, paymentMethodId, callback
