           else
             @upgrade transitionOptions, callback
 
-  debitPack: ({tag, multiplyFactor}, callback) ->
+  debitPack: ({ tag, multiplyFactor }, callback) ->
     multiplyFactor ?= 1
     JPaymentPack = require './pack'
     JPaymentPack.one tags: $in: [tag], {}, (err, pack) =>
       return callback err  if err
-      return callback new KodingError "pack not found"  unless pack
-      @debit {pack, multiplyFactor}, callback
-
-  creditPack: ({tag, multiplyFactor}, callback) ->
+      return callback new KodingError 'pack not found'  unless pack
+      @debit { pack, multiplyFactor }, callback
+
+  creditPack: ({ tag, multiplyFactor }, callback) ->
     multiplyFactor ?= 1
     multiplyFactor *= -1
-    @debitPack {tag, multiplyFactor}, callback
+    @debitPack { tag, multiplyFactor }, callback
 
   @createFreeSubscription = (account, callback) ->
     JPaymentPlan = require './plan'
-    JPaymentPlan.one tags: "nosync", (err, plan) ->
+    JPaymentPlan.one tags: 'nosync', (err, plan) ->
       return \
         if err then callback err
-        else if not plan then callback new KodingError "nosync plan not found"
-
-      {planCode, quantities, tags} = plan
+        else if not plan then callback new KodingError 'nosync plan not found'
+
+      { planCode, quantities, tags } = plan
       freePlanSubscription = new JPaymentSubscription
         planCode   : planCode
         quantity   : 1
-        status     : "active"
+        status     : 'active'
         feeAmount  : 0
         quantities : quantities
         tags       : tags


    @isOwnedBy delegate, (err, hasTarget) =>
      return callback err  if err
      return callback { message: 'Access denied!' }  unless hasTarget

      options.shouldCreateNonce ?= yes

      @debit options, callback

  credit: ({pack}, callback) ->
    @debit { pack, multiplyFactor: -1 }, callback

  credit$: secure (client, options, callback) ->

          queue.fin()
      dash queue, -> callback null, subscriptions

  @checkUserSubscription = secure ({ connection:{ delegate } }, planCode, callback) ->
    throw Error 'reimplement this!'

  isOwnedBy: (account, callback) ->
