From 9825e5714ba9eadbfa64464ee3c615220808441e Mon Sep 17 00:00:00 2001 From: Shawn Miller Date: Tue, 10 Sep 2019 16:44:29 -0500 Subject: [PATCH] Add known Pitney Bowes status codes [ '000 - "In Transit"', '079 - {}', '131 - "Destination processing"', '138 - "Origin Processing"', '139 - "Destination processing"', '141 - "Origin Processing"', '143 - "Destination processing"', '144 - "Destination processing"', '145 - "Destination processing"', '146 - "Out for Delivery"', '159 - "Destination processing"', '202 - {}', '248 - "Origin Processing"', '249 - "Destination processing"', '333 - "Destination processing"', '334 - "Destination processing"', '335 - "Destination processing"', '336 - "Out for Delivery"', '371 - "Origin Processing"', '375 - "Origin Processing"', '376 - "Destination processing"', '377 - "Origin Processing"', '378 - "Destination processing"', '396 - "Destination processing"', '401 - "Origin Processing"', '403 - "Destination processing"', '404 - "Destination processing"', '406 - "Out for Delivery"', '436 - "Destination processing"', '437 - "Destination processing"', '438 - "Origin Processing"', '439 - "Destination processing"', '463 - "Destination processing"', '464 - "Destination processing"', '466 - "Out for Delivery"', '516 - "Out for Delivery"', '517 - "Delivered"', '538 - "Out for Delivery"', '865 - "In Transit"', '869 - "In Transit"', '870 - "Out for Delivery"', '872 - "Out for Delivery"', '873 - "In Transit"', '874 - "In Transit"', '876 - "In Transit"', '878 - "In Transit"', '999 - "Exception"' ] --- carriers/pitneyBowes.js | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/carriers/pitneyBowes.js b/carriers/pitneyBowes.js index 3b59324..11fc975 100644 --- a/carriers/pitneyBowes.js +++ b/carriers/pitneyBowes.js @@ -6,10 +6,10 @@ const PitneyBowesClient = require('pitney-bowes'); const CITY_BLACKLIST = /DISTRIBUTION CENTER|INTERNATIONAL DISTRIBUTION CENTER|NETWORK DISTRIBUTION CENTER/ig; // These tracking status codes indicate the shipment was delivered -const DELIVERED_TRACKING_STATUS_CODES = ['01', 'DEL']; +const DELIVERED_TRACKING_STATUS_CODES = ['01', '517', 'DEL']; // These tracking status codes indicate the shipment was shipped (shows movement beyond a shipping label being created) -const SHIPPED_TRACKING_STATUS_CODES = ['02', '07', '10', '14', '30', '336', '401', '403', '81', '82', 'AD', 'IPS', 'OF', 'OFD', 'PC', 'SS']; +const SHIPPED_TRACKING_STATUS_CODES = ['000', '02', '07', '10', '131', '138', '139', '14', '141', '143', '144', '145', '146', '159', '248', '249', '30', '333', '334', '335', '336', '371', '375', '376', '377', '378', '396', '401', '403', '404', '406', '436', '437', '438', '439', '463', '464', '466', '516', '538', '81', '82', '865', '869', '870', '872', '873', '874', '876', '878', 'AD', 'IPS', 'OF', 'OFD', 'PC', 'SS']; const geography = require('../util/geography'); diff --git a/package.json b/package.json index a794ca2..4ec5ac9 100644 --- a/package.json +++ b/package.json @@ -38,5 +38,5 @@ "type": "git", "url": "https://github.com/mediocre/bloodhound.git" }, - "version": "1.1.3" + "version": "1.1.4" }