-{Module, Relationship} = require 'jraphical'
+# coffeelint: disable=no_implicit_braces
+{ Module, Relationship } = require 'jraphical'
+KodingError              = require '../../error'
 
 module.exports = class JPaymentMethod extends Module
 
-  {secure, dash, signature} = require 'bongo'
-  {extend} = require 'underscore'
+  { secure, dash, signature } = require 'bongo'
+  { extend } = require 'underscore'
   { v4: createId } = require 'node-uuid'
 
   recurly = require 'koding-payment'

        callback null, paymentMethod

  @create = secure (client, formData, callback) ->
    {delegate} = client.connection

    @createPaymentMethod client, formData, (err, paymentMethod) ->
      return callback err  if err

    JSession = require '../session'

    unless @requirePaymentFields formData
      return callback new KodingError 'Missed a required value!'

    { delegate } = client.connection

