Update feeds.py#166
Conversation
added FeedOptions to submit_feed
Codecov Report
@@ Coverage Diff @@
## develop #166 +/- ##
===========================================
- Coverage 76.25% 76.15% -0.10%
===========================================
Files 19 19
Lines 998 994 -4
Branches 95 92 -3
===========================================
- Hits 761 757 -4
Misses 232 232
Partials 5 5
Continue to review full report at Codecov.
|
|
Are you seeing something different on your end? Edit: I see this relates to Can we do a bit of verification on the keys in the |
|
bump Some changes will be made to the As for this pull, I dug into the C# client library a bit to confirm how Amazon uses the feed_options = "metadata:shippingid=283845474;metadata:totalAmount=3.25;metadata:totalvatamount = 1.23;metadata:invoicenumber = INT-3431-XJE3;metadata:documenttype=CreditNote;metadata:transactionid=amzn:crow:429491192ksjfhe39s"
# formatted for readability:
feed_options = (
"metadata:shippingid=283845474;"
"metadata:totalAmount=3.25;"
"metadata:totalvatamount = 1.23;"
"metadata:invoicenumber = INT-3431-XJE3;"
"metadata:documenttype=CreditNote;"
"metadata:transactionid=amzn:crow:429491192ksjfhe39s"
)The PDF says the following about these key-value pairs:
That all said, I can accept this PR as-is, but I would like for the We can keep what's here and expect the input as a string, then add the ability to accept a dict optionally later ( |
GriceTurrble
left a comment
There was a problem hiding this comment.
This has been sitting idle for some time, so going to accept as-is. However, I will add an enhancement that accepts a dict argument and then processes that dict into the appropriate string value (per comments made on this PR).
* 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
added FeedOptions to submit_feed