node-radial
Advanced tools
Comparing version 0.2.1 to 0.2.2
@@ -394,17 +394,19 @@ /* LIB */ | ||
var externalRiskScores = []; | ||
orderOptions.externalRiskResults.forEach(function (external) { | ||
var riskData = {}; | ||
if (orderOptions.externalRiskResults) { | ||
orderOptions.externalRiskResults.forEach(function (external) { | ||
var riskData = {}; | ||
if (external.score) riskData.Score = { | ||
_text: external.score.toString() | ||
}; | ||
if (external.code) riskData.Code = { | ||
_text: external.code | ||
}; | ||
if (external.source) riskData.Source = { | ||
_text: external.source | ||
}; | ||
if (external.score) riskData.Score = { | ||
_text: external.score.toString() | ||
}; | ||
if (external.code) riskData.Code = { | ||
_text: external.code | ||
}; | ||
if (external.source) riskData.Source = { | ||
_text: external.source | ||
}; | ||
externalRiskScores.push(riskData); | ||
}); | ||
externalRiskScores.push(riskData); | ||
}); | ||
} | ||
@@ -598,3 +600,4 @@ if (externalRiskScores.length) requestOrder.ExternalRiskResults.ExternalRiskResult = | ||
}, | ||
_text: orderOptions.payment.amount.toFixed(2) | ||
_text: orderOptions.payment.amount ? orderOptions.payment.amount.toFixed(2) : orderOptions.payment.amountAfterTax | ||
.toFixed(2) | ||
}; | ||
@@ -648,7 +651,7 @@ | ||
assessmentRequest.ServerInfo.TZOffset = { | ||
_text: serverInfoOptions.tzOffset | ||
_text: serverInfoOptions.tzOffset.toString() | ||
}; | ||
if (serverInfoOptions.tzOffsetRaw) { | ||
assessmentRequest.ServerInfo.TZOffsetRaw = { | ||
_text: serverInfoOptions.tzOffsetRaw | ||
_text: serverInfoOptions.tzOffsetRaw.toString() | ||
}; | ||
@@ -655,0 +658,0 @@ } |
{ | ||
"name": "node-radial", | ||
"version": "0.2.1", | ||
"version": "0.2.2", | ||
"description": "NodeJS SDK for the Radial APIs", | ||
@@ -5,0 +5,0 @@ "main": "radial.js", |
@@ -455,2 +455,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.2.2:** Fixes to risk assessment handling of external risk results, payment amount, and server timezone offset. | ||
- **0.2.1:** Fixes to risk assessment XML request and API response. | ||
@@ -457,0 +458,0 @@ - **0.2.0:** Allows you to set up multiple stores in configuration. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
78251
1832
472