Showing 4 of 6 total issues
Function Order
has 85 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function Order(options) {
var self = this;
this.options = options || {};
Function makeRequest
has 72 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function makeRequest(options, callback) {
options = options || {};
options.options = options.options || {};
options.context = options.context || {
config: {},
Function post
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
post: function(params, callback) {
var schema = {
order_id: {
description: 'Order ID. If this field is present all other fields are ignored',
type: 'number',
Function post
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
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)',