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

Include event type codes for FedEx tracking events#325

Merged
jonathankwok merged 2 commits intomasterfrom
fedex-event-type-codes
Nov 11, 2015
Merged

Include event type codes for FedEx tracking events#325
jonathankwok merged 2 commits intomasterfrom
fedex-event-type-codes

Conversation

@jonathankwok
Copy link
Copy Markdown
Contributor

Problem

ShipmentEvents for FedEx weren't initialized with their <EventType>s. This results in no status code being associated with a ShipmentEvent.

Solution

Save the <EventType> , much like we do with USPS ShipmentEvents.

Review: @mdking @lucasuyezu @cyprusad

@kmcphillips
Copy link
Copy Markdown
Contributor

👍 other than red CI

@jonathankwok
Copy link
Copy Markdown
Contributor Author

@kmcphillips Appears that all the fails are related to this change?

My guess is there was some kind of an API change?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are you passing description twice?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It was that, or pass nil. USPS opted to add description twice so I went with that.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh I see. 👍

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, it's always been using description for name, I just went ahead and passed description for message as well instead of passing in nil.

@jonathankwok
Copy link
Copy Markdown
Contributor Author

After some digging, I've found out that the customer number added in #313 is for contract shipping (see: Test values for contract shipping, rating and returns. The customer number is for contract-shipping, which requires a contract number and a request built for contract-shipping.

Our canada_post_pws.rb uses the non-contracted shipment endpoint, so the credentials provided (and used in Travis) won't work for the failing tests. The only solution I have for now is to go back to the previous behaviour where we skipped those specific failing tests. We'll need different creds if we want those tests to pass - I have no idea how @dangerdogz was able to get them to pass on #313.

@kmcphillips
Copy link
Copy Markdown
Contributor

Thanks for the digging @jonathankwok. I'm fine with skip since you have made a good case for it.

jonathankwok pushed a commit that referenced this pull request Nov 11, 2015
Include event type codes for FedEx tracking events
@jonathankwok jonathankwok merged commit ede8cf0 into master Nov 11, 2015
@jonathankwok jonathankwok deleted the fedex-event-type-codes branch November 11, 2015 21:33
maartenvg pushed a commit that referenced this pull request Nov 9, 2017
Include event type codes for FedEx tracking events
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