node-radial
Advanced tools
Comparing version 0.4.9 to 0.4.10
@@ -123,6 +123,7 @@ /* LIB */ | ||
// TELEPHONE | ||
if (customer.telephone) { | ||
customerData.Telephone = {}; | ||
if (customer.telephone.number) customerData.Telephone.Number = { | ||
_text: customer.telephone.number | ||
if (customer.telephone && customer.telephone.number) { | ||
customerData.Telephone = { | ||
Number: { | ||
_text: customer.telephone.number | ||
} | ||
}; | ||
@@ -135,3 +136,3 @@ if (customer.telephone.location) customerData.Telephone.TelephoneLocation = { | ||
// ADDRESS | ||
if (customer.address) { | ||
if (customer.address && customer.address.id) { | ||
customerData.Address = { | ||
@@ -518,3 +519,3 @@ _attributes: { | ||
// PAYMENT ADDRESS | ||
if (orderOptions.payment.address) { | ||
if (orderOptions.payment.address && orderOptions.payment.address.id) { | ||
var addressData = { | ||
@@ -564,3 +565,3 @@ _attributes: { | ||
// PAYMENT TELEPHONE | ||
if (orderOptions.payment.telephone) { | ||
if (orderOptions.payment.telephone && orderOptions.payment.telephone.number) { | ||
var telephoneData = { | ||
@@ -567,0 +568,0 @@ Number: { |
{ | ||
"name": "node-radial", | ||
"version": "0.4.9", | ||
"version": "0.4.10", | ||
"description": "NodeJS SDK for the Radial APIs", | ||
@@ -5,0 +5,0 @@ "main": "radial.js", |
@@ -619,2 +619,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.4.10:** Improve checks for optional fields like Address and Telephone on fraud assessment. | ||
- **0.4.9:** Add functionality to use `SolutionType` field in PayPal SetExpress. | ||
@@ -621,0 +622,0 @@ - **0.4.8:** Debug logs for settlement submission. |
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
102205
2398
660