node-radial
Advanced tools
Comparing version 0.6.0 to 0.6.1
@@ -11,2 +11,3 @@ /* LIB */ | ||
const xmlConvert = require('xml-js'); | ||
const moment = require('moment'); | ||
@@ -200,4 +201,5 @@ /* CONSTRUCTOR */ | ||
if (customer.loyalty.signupDate) { | ||
var signupDate = moment(customer.loyalty.signupDate); | ||
customerData.CustLoyalty.SignupDate = { | ||
_text: customer.loyalty.signupDate.toISOString() | ||
_text: signupDate.format('YYYY-MM-DD') | ||
}; | ||
@@ -204,0 +206,0 @@ } |
{ | ||
"name": "node-radial", | ||
"version": "0.6.0", | ||
"version": "0.6.1", | ||
"description": "NodeJS SDK for the Radial APIs", | ||
@@ -22,6 +22,7 @@ "main": "radial.js", | ||
"dependencies": { | ||
"request": "2.x.x", | ||
"xml-js": "1.x.x" | ||
"moment": "^2.20.1", | ||
"request": "^2.83.0", | ||
"xml-js": "^1.6.1" | ||
}, | ||
"devDependencies": {} | ||
} |
@@ -657,2 +657,3 @@ [![NPM version][npm-version-image]][npm-url] [![NPM downloads][npm-downloads-image]][npm-url] [![MIT License][license-image]][license-url] [![Build Status][travis-image]][travis-url] | ||
- **0.6.1:** Modify date formatting for loyalty signup date. | ||
- **0.6.0:** Adds `risk.status` endpoint to retrieve a fraud assessment status. | ||
@@ -659,0 +660,0 @@ - **0.5.0:** Adds `payments.auth.cancel` endpoint to cancel a payment authorization. |
109913
2594
702
3
+ Addedmoment@^2.20.1
+ Addedmoment@2.30.1(transitive)
Updatedrequest@^2.83.0
Updatedxml-js@^1.6.1