Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/usps issue77 #75

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

StephenPAdams
Copy link
Contributor

I mistakenly called this feature issue77. This is actually in reference to #74.

This now allows a parameter called requireUniformMailServices (lovely name, right?) to be passed to the USPS providers (both domestic and international). If true, any mail services that aren't present in each returned package are excluded. If anything is excluded, a new field on the Shipment class called InfoMessages (which will have a list of InfoMessages) will populate with a message of all the excluded rates. In the future, the InfoMessages field can be leveraged for information like this...so you'll see a ShippingProvider and Message associated to each InfoMessage. :)

Finally, a "RatesExcluded" field will populate true on Shipment. This was used for unit testing on the USPS Domestic class, but more-so so that if rates are excluded...the consumer of the SDK can give a different message if they'd like to the user.

Merging changes from upstream
…form across packages)

In situations where mail services aren't available on package 1 but are
on package 2...we'll now exclude these if the requireUniformMailServices
parameter is set to true on the USPS Domestic and International
providers.
@StephenPAdams
Copy link
Contributor Author

Hey @kylewest wanted to see if you can take a look into merging this. I've been using it in production for the last ~2 months without issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant