Added OutboundShipments.create_fulfillment_order#95
Added OutboundShipments.create_fulfillment_order#95GriceTurrble merged 3 commits intopython-amazon-mws:developfrom
Conversation
|
Initial changes look good so far. :) I'd like to restrict the scope of this PR to the As a starting point, refer to the methods in Ideally, these data structures can be codified as separate classes within That all is optional, of course. We can make due with request methods that work and tests to cover them. :) |
|
That makes sense! I (randomly) picked |
Perhaps, but given the different keys available between
Very little. There is a ReportType enumeration available that simply defines the names of different reports, as defined here (MWS docs). My suggestion here to write classes for these data types has me thinking I'll write one or more for InboundShipments sometime soon (after I finally get around to approving the other active PR we have (sorry, folks!)). |
|
The idea to reuse parse_item_args would be to pass in an object and a key_config (set at the object level). This is kind of already done with Address and InboundShipmentItem something along the lines of: and then could even create the base dict from the obj Anyway, I obviously will follow your lead on this -- this just stood out to me as refactor-able in my ~30 mins of looking at the code :) Once you have classes for datatypes on InboundShipments I will follow that as an example try to do the same for OutboundShipments |
|
That is definitely workable. All that would need doing at that point is defining the key configs for specific data types, which are essentially constants at the api module level. |
|
Ok cool. Do those type of changes belong on a separate PR? Should I fill in the other methods for OutboundShipments on this one? |
This is continuation of python-amazon-mws#95
GriceTurrble
left a comment
There was a problem hiding this comment.
Been sitting here for some time, and I see no reason why we've held off for this long. We'll bring this into the develop version and build on it later as needed.
* upstream/develop: Add Feeds utility to convert dict FeedOptions to string (python-amazon-mws#181) Ensure correct decoding of bytes (python-amazon-mws#168) Compatibility fix (python-amazon-mws#124) Implement a couple of function for the OutboundShipments API. (python-amazon-mws#96) Added OutboundShipments.create_fulfillment_order (python-amazon-mws#95) added UpdateReportAcknowledgements (python-amazon-mws#101) Update feeds.py (python-amazon-mws#166) added easyship api support for indian marketplace (python-amazon-mws#169) Moving Slack link up, removing gitter chat link add all current marketplaces and alphabetize by country code (python-amazon-mws#155) Updated slack invite link Slack invite link (python-amazon-mws#152) Slack invite link fix clean_params (python-amazon-mws#106) add in NL marketplace information Fix flake8 warnings Update develop branch CI + package metadata include mws.apis in setup.py Fix bug: Remove trailing comma
Starting with a small PR in order to make sure things are on the right track, can work to fill in some of the other methods for OutboundShipments if needed.