vincentbriglia/node-emerchantpay-api

View on GitHub
lib/apis/order/index.js

Summary

Maintainability
B
6 hrs
Test Coverage

Function Order has 85 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function Order(options) {
  var self = this;

  this.options = options || {};

Severity: Major
Found in lib/apis/order/index.js - About 3 hrs to fix

    Function post has 44 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        post: function(params, callback) {
          var schema = {
            order_id: {
              description: 'Order ID. If this field is present all other fields are ignored',
              type: 'number',
    Severity: Minor
    Found in lib/apis/order/index.js - About 1 hr to fix

      Function post has 30 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          post: function(params, callback) {
            var schema = {
              notify: {
                description:
                  'Allows disabling of merchant notifications for this order. Notifications must be enabled, and a notification URL configured in your Account settings. 0 – Disabled, 1 – Enabled (Default)',
      Severity: Minor
      Found in lib/apis/order/index.js - About 1 hr to fix

        There are no issues that match your filters.

        Category
        Status