-
-
Notifications
You must be signed in to change notification settings - Fork 240
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
minor changes to fulfillment, fixed bug in sales
- Loading branch information
1 parent
743d057
commit f5f8b21
Showing
17 changed files
with
93 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,3 +7,4 @@ default: | |
aws_secret_key: '' | ||
aws_access_key: '' | ||
role_arn: '' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?xml version='1.0' encoding='utf-8'?> | ||
<AmazonEnvelope> | ||
<Header> | ||
<DocumentVersion>1.01</DocumentVersion> | ||
<MerchantIdentifier>A3BBIE4Z8LJZXC</MerchantIdentifier> | ||
</Header> | ||
<MessageType>CartonContentsRequest</MessageType> | ||
<Message> | ||
<MessageID>1</MessageID> | ||
<CartonContentsRequest> | ||
<ShipmentId>FBA16076TQX6</ShipmentId> | ||
<NumCartons>1</NumCartons> | ||
<Carton> | ||
<CartonId>MICHITEST</CartonId> | ||
<Item> | ||
<SKU>2027</SKU> | ||
<QuantityShipped>2</QuantityShipped> | ||
<QuantityInCase>2</QuantityInCase> | ||
<ExpirationDate>2022-12-12</ExpirationDate> | ||
</Item> | ||
</Carton> | ||
</CartonContentsRequest> | ||
</Message> | ||
</AmazonEnvelope> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import urllib.parse | ||
|
||
from sp_api.base import Client, sp_endpoint, fill_query_params, ApiResponse | ||
|
||
|
||
class Messaging(Client): | ||
""" | ||
""" | ||
|
||
@sp_endpoint('/messaging/v1/orders/{}') | ||
def get_messaging_actions_for_order(self, order_id: str, **kwargs) -> ApiResponse: | ||
""" | ||
get_messaging_actions_for_order(self, order_id: str, **kwargs) -> ApiResponse | ||
Returns a specified item and its attributes. | ||
Args: | ||
order_id: | ||
key marketplaceIds: str | ||
**kwargs: | ||
Returns: | ||
ApiResponse: | ||
""" | ||
kwargs.update({'marketplaceIds': kwargs.get('marketplaceIds', None) or self.marketplace_id}) | ||
return self._request(fill_query_params(kwargs.pop('path'), order_id), params=kwargs) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
from sp_api.api.messaging.messaging import Messaging | ||
from sp_api.base import Marketplaces | ||
|
||
|
||
# def test_get_msg(): | ||
# res = Messaging().get_messaging_actions_for_order("123-1234567-1234567") | ||
# print(res) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters