Skip to content

Commit

Permalink
Add known Pitney Bowes status codes
Browse files Browse the repository at this point in the history
[
  '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"'
]
  • Loading branch information
freshlogic committed Sep 10, 2019
1 parent b9ce1ab commit 9825e57
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions carriers/pitneyBowes.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,5 @@
"type": "git",
"url": "https://github.com/mediocre/bloodhound.git"
},
"version": "1.1.3"
"version": "1.1.4"
}

0 comments on commit 9825e57

Please sign in to comment.