Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

paidup-commerce-connect

Package Overview
Dependencies
Maintainers
2
Versions
85
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

paidup-commerce-connect - npm Package Compare versions

Comparing version 0.14.13 to 0.14.14

58

machines/order-get-organization.js

@@ -31,2 +31,12 @@ module.exports = {

required: true
},
fromDate: {
example: '2016-01-01',
description: 'start date query',
required: false
},
toDate: {
example: '2016-06-01',
description: 'end date query',
required: false
}

@@ -146,23 +156,33 @@ },

var config = {
url: '/api/v3/commerce/order/organization/' + inputs.organizationId + '/' + inputs.limit + '/' + inputs.sort,
baseUrl: inputs.baseUrl,
method: 'get',
token: inputs.token
try {
var from = inputs.fromDate ? new Date(inputs.fromDate).toISOString().substr(0, 10) : new Date().getFullYear() + '-01-01';
var to = inputs.toDate ? new Date(inputs.toDate).toISOString().substr(0, 10) : new Date().toISOString().substr(0, 10);
var config = {
url: '/api/v3/commerce/order/organization/' + inputs.organizationId + '/' + inputs.limit + '/' + inputs.sort ,
//+'/'+from+'/'+to,
baseUrl: inputs.baseUrl,
method: 'get',
token: inputs.token
}
Connector.request(config, {}, {}, function (err, resp) {
if (err) {
return exits.error({
status: err.status,
message: JSON.stringify(err.message)
})
} else {
return exits.success({
status: resp.status,
body: resp.body
})
}
})
} catch (error) {
return exits.error({
status: 500,
message: JSON.stringify(err)
})
}
Connector.request(config, {}, {}, function (err, resp) {
if (err) {
return exits.error({
status: err.status,
message: JSON.stringify(err.message)
})
} else {
return exits.success({
status: resp.status,
body: resp.body
})
}
})
}
}
{
"name": "paidup-commerce-connect",
"version": "0.14.13",
"version": "0.14.14",
"description": "Connector for PaidUp Microservice Commerce",

@@ -5,0 +5,0 @@ "scripts": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc