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

node-radial

Package Overview
Dependencies
Maintainers
1
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-radial - npm Package Compare versions

Comparing version 0.3.10 to 0.4.0

lib/risk/confirm.js

1

lib/risk/index.js

@@ -18,2 +18,3 @@ /* LIB */

Risk.assess = require('./assess');
Risk.confirm = require('./confirm');

@@ -20,0 +21,0 @@ /* NPM EXPORT */

2

package.json
{
"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.

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