 module.exports = class JPaymentSubscription extends jraphical.Module
 
   {secure, dash} = require 'bongo'
+  {partition} = require '../../util'
   JUser    = require '../user'
   JPayment = require './index'
 

        'calculateRefund'
        'checkUsage'
        'debit'
      ]
    schema          :
      uuid          : String

    selector = { paymentMethodId: selector }  if 'string' is typeof selector
    @fetchAllSubscriptions selec, callback

  @fetchAllSubscriptions = (selector, callback) ->
    console.log { selector }
    JPayment.invalidateCacheAndLoad this, selector, {
      forceRefresh
      forceInterval
    }, callback

  @updateCache = (selector, callback)->
    JPayment.updateCache
