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

Cannot update AreCasesRequired field #184

Open
kmizzi opened this issue May 24, 2019 · 2 comments
Open

Cannot update AreCasesRequired field #184

kmizzi opened this issue May 24, 2019 · 2 comments
Labels

Comments

@kmizzi
Copy link

kmizzi commented May 24, 2019

In AmazonShipment class, the setItems method needs to be modified to consider that AreCasesRequired option must NOT be included in updates using the updateShipment method (only the createShipment method)

The reason is that AreCasesRequired field can be updated only for an empty shipment, or a shipment with all zero quantity items.

As a result, updateShipment method does not currently work and returns error:
Bad Response! 400 Bad Request: InvalidRequestException - This operation may be partially successful, please check the shipment. Reason: AreCasesRequired field can be updated only for an empty shipment, or a shipment with all zero quantity items.

@Peardian Peardian added the bug label May 28, 2019
@Peardian
Copy link
Collaborator

Thank you for bringing this to my attention. I may just remove the automatic setCases call and leave it to users to invoke the setting.

@kmizzi
Copy link
Author

kmizzi commented May 28, 2019

That would work!

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

No branches or pull requests

2 participants