node-radial
Advanced tools
Comparing version 0.3.10 to 0.4.0
@@ -18,2 +18,3 @@ /* LIB */ | ||
Risk.assess = require('./assess'); | ||
Risk.confirm = require('./confirm'); | ||
@@ -20,0 +21,0 @@ /* NPM EXPORT */ |
{ | ||
"name": "node-radial", | ||
"version": "0.3.10", | ||
"version": "0.4.0", | ||
"description": "NodeJS SDK for the Radial APIs", | ||
@@ -5,0 +5,0 @@ "main": "radial.js", |
@@ -507,2 +507,41 @@ [![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] | ||
### Order Confirmation | ||
After you receive a fraud decision, send Radial an order confirmation to let them know how the order was handled (e.g. shipped, cancelled, etc). | ||
<https://docs.ptf.radial.com/Content/Topics/risk/risk-order-confirmation.htm> | ||
``` | ||
RADIAL.risk.confirm({ | ||
orderId: '123-456', | ||
statusDate: new Date(), | ||
confirmationType: 'SHIPMENT', | ||
orderStatus: 'SHIPPED', | ||
orderStatusReason: '', | ||
lineDetails: [{ | ||
SKU: '', | ||
quantity: 2, | ||
itemStatus: 'SHIPPED', | ||
trackingNumber: '', | ||
shippingVendorCode: 'UPS', | ||
deliveryMethod: 'STANDARD', | ||
shipScheduledDate: new Date(), | ||
shipActualDate: new Date() | ||
}], | ||
customAttributes: { | ||
attributeOneName: attributeOneValue, | ||
attributeTwoName: attributeTwoValue | ||
} | ||
}, function (err, response) { | ||
/* | ||
response = { | ||
orderId: '123-456', | ||
storeCode: '', | ||
createTimestamp: new Date(), | ||
orderConfirmationAcknowledgement: true | ||
}; | ||
*/ | ||
}); | ||
``` | ||
## Webhooks | ||
@@ -578,2 +617,3 @@ | ||
- **0.4.0:** Add Risk Order Confirmation endpoint. | ||
- **0.3.10:** Parsing fix for payment settlement status list. | ||
@@ -580,0 +620,0 @@ - **0.3.9:** Fix for stupid auto-formatter error. |
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
101205
25
2371
647