Skip to content
This repository has been archived by the owner on Jun 13, 2018. It is now read-only.

Use multiple attempted delivery codes for USPS tracking #361

Merged
merged 1 commit into from
Apr 26, 2016

Conversation

jonathankwok
Copy link
Contributor

@jonathankwok jonathankwok commented Apr 26, 2016

About

There are multiple possible attempted_delivery codes - see page 335 of this, or look at this screenshot:

image

There are multiple codes for "Notice Left"/Attempted Delivery - rather than just use code 55, use all of the ones in the appendix. Code H0 came from me finding responses manually through a database of tracking codes, seems to also be Attempted Delivery (unsurprisingly not documented).

Changes

Add an array of known ATTEMPTED_DELIVERY_CODES and check for inclusion when saving the attempted_delivery_date.

This fixes part of the red build, which doesn't actually depend on this fix - it was just an outdated tracking number. The other half is fixed by #362

Review: @kmcphillips @RichardBlair @mdking @MalazAlamir

@RichardBlair
Copy link
Contributor

🐑 🇮🇹

@MalazAlamir
Copy link
Contributor

🚢

@jonathankwok jonathankwok force-pushed the better-detect-usps-attempted-delivery branch from 6da2c78 to 21f2c50 Compare April 26, 2016 21:09
@jonathankwok jonathankwok merged commit 18334c2 into master Apr 26, 2016
@jonathankwok jonathankwok deleted the better-detect-usps-attempted-delivery branch April 26, 2016 21:47
@mdking
Copy link
Contributor

mdking commented Apr 27, 2016

Nice find! 👍

maartenvg pushed a commit that referenced this pull request Nov 9, 2017
…ivery

Use multiple attempted delivery codes for USPS tracking
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants