https://t.me/RX1948
Server : Apache
System : Linux iad1-shared-b8-43 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
User : dh_edsupp ( 6597262)
PHP Version : 8.2.26
Disable Function : NONE
Directory :  /lib/python3/dist-packages/boto/mws/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python3/dist-packages/boto/mws/__pycache__/connection.cpython-310.pyc
o

�S�a���@sddlZddlZddlZddlZddlmZddlmZddl	Z
ddlZ
ddlm
Z
ddlmZmZmZmZdgZdddd	d
ddd
dddddd�
Zdd�ZdZiZdd�Zdd�Zdd�Zd/dd�Zd d!�Zd"d#�Zd$d%�Zd&d'�Zd(d)�Z d*d+�Z!d,d-�Z"Gd.d�de�Z#dS)0�N)�AWSQueryConnection)�BotoServerError)�
XmlHandler)�filter�map�six�encodebytes�
MWSConnection)z
2009-01-01�Merchant�/)z
2013-09-01�SellerIdz/Orders/2013-09-01)z
2011-10-01rz/Products/2011-10-01)z
2011-07-01rz/Sellers/2011-07-01)�
2010-10-01rz&/FulfillmentInboundShipment/2010-10-01)r
rz'/FulfillmentOutboundShipment/2010-10-01)r
rz /FulfillmentInventory/2010-10-01)z
2013-04-01rz/Recommendations/2013-04-01)�
2014-03-01rz/CustomerInformation/2014-03-01)rrz/CartInformation/2014-03-01)z
2013-07-01rz/Subscriptions/2013-07-01)z
2013-01-01rz/OffAmazonPayments/2013-01-01)
�Feeds�Reports�Orders�Products�Sellers�Inbound�Outbound�	Inventory�Recommendations�CustomerInfo�CartInfo�
Subscriptions�OffAmazonPaymentscCstt�|������S�N)r�hashlib�md5�digest�strip)�c�r"�5/usr/lib/python3/dist-packages/boto/mws/connection.py�<lambda>9�r$)�action�response�section�quota�restore�versioncCs(tD]}t||t||d��q||_|Sr)�decorated_attrs�setattr�getattr�__wrapped__)�func�to�attrr"r"r#�add_attrs_from?sr3c��fdd�}|S)Nc�0��fdd�}d��jd����|_t�|d�S)Ncs�dd��D�D]2\}}||vr9|d||rdpd}tt||��D]}|||||t|d�<q#|�|�q�|g|�Ri|��S)NcSsg|]}|�d��qS)�.)�split��.0�fr"r"r#�
<listcomp>Kr%zHstructured_lists.<locals>.decorator.<locals>.wrapper.<locals>.<listcomp>r6��)�range�len�str�pop)�self�args�kw�key�acc�newkey�i��fieldsr0r"r#�wrapperJs
�z4structured_lists.<locals>.decorator.<locals>.wrapperz{0}
Lists: {1}�, �r1��format�__doc__�joinr3�r0rK�rJ�r0r#�	decoratorHs
�z#structured_lists.<locals>.decoratorr"�rJrUr"rSr#�structured_listsFs
rWcr4)Ncs*��fdd�}d��j��|_t�|d�S)Ncsht�fdd��dfD��rd��j��}t|�������d<��d�t�d�d��d<�|i���S)Ncsg|]}|�v�qSr"r"r8�rDr"r#r;]szAhttp_body.<locals>.decorator.<locals>.wrapper.<locals>.<listcomp>�content_typezB{0} requires {1} and content_type arguments for building HTTP body�body)�Content-Type�Content-MD5�headers)�anyrOr&�KeyErrorrA�content_md5�rCrD�message)�fieldr0rXr#rK\s
�

�z-http_body.<locals>.decorator.<locals>.wrapperz{0}
Required HTTP Body: {1}rM)rOrPr3rR�rcrTr#rUZs

�zhttp_body.<locals>.decoratorr")rcrUr"rdr#�	http_bodyXsreFcCs�t|tjjj�rt|j|||d�dSt|tjj	�r5|D]}|�
d�r$qt||||d||d�qdSt|tj�rA|||<dSt|tjj
�rit|�D]\}}|rTdpUdt|d�}t|||||d�qLdSt|t�rxt|���||<dS|||<dS)N��members�_r6z.member.r=)�
isinstance�boto�mwsr'�ResponseElement�destructure_object�__dict__�collections�abc�Mapping�
startswithr�string_types�Iterable�	enumerater@�bool�lower)�value�into�prefixrg�name�index�element�suffixr"r"r#rmms,
����
rmc���fdd�}|S)Ncs2���fdd�}d��jd����|_t�|d�S)NcsH��dd�}t�fdd���D]
}t��|��||d�q�|i���S)NrgFcs|�vSrr")rHrXr"r#r$�szHstructured_objects.<locals>.decorator.<locals>.wrapper.<locals>.<lambda>rf)�getrrmrA)rCrDrgrc)rJr0�kwargsrXr#rK�sz6structured_objects.<locals>.decorator.<locals>.wrapperzJ{0}
Element|Iter|Map: {1}
(ResponseElement or anything iterable/dict-like)rLrMrNrR�rJr�rTr#rU�s
�z%structured_objects.<locals>.decoratorr")rJr�rUr"r�r#�structured_objects�sr�cr4)Nc�>��fdd�}d�dd��D��}d��j|�|_t�|d�S)NcsZ�fdd�}dttt|����kr&d�dd��D��}d��j|�}t|���|i���S)Nc�t�fdd�|D��S)Nc3��|]}|�vVqdSrr"�r9rErXr"r#�	<genexpr>���zRrequires.<locals>.decorator.<locals>.requires.<locals>.<lambda>.<locals>.<genexpr>��all��grouprXr"r#r$�r%z?requires.<locals>.decorator.<locals>.requires.<locals>.<lambda>r=� OR cS�g|]}d�|��qS��+�rQ�r9�gr"r"r#r;�r%zArequires.<locals>.decorator.<locals>.requires.<locals>.<listcomp>z{0} requires {1} argument(s)�r?�listrrQrOr&r_�rCrD�hasgrouprb�r0�groupsrXr#�requires��
�z-requires.<locals>.decorator.<locals>.requiresr�cSr�r�r�r�r"r"r#r;�r%z/requires.<locals>.decorator.<locals>.<listcomp>z{0}
Required: {1}rM�rQrOrPr3)r0r�rb�r�rTr#rU���zrequires.<locals>.decoratorr"�r�rUr"r�r#r���r�cr4)Ncr�)NcsZ�fdd�}ttt|����dvr&d�dd��D��}d��j|�}t|���|i���S)Ncr�)Nc3r�rr"r�rXr"r#r��r�zRexclusive.<locals>.decorator.<locals>.wrapper.<locals>.<lambda>.<locals>.<genexpr>r�r�rXr"r#r$�r%z?exclusive.<locals>.decorator.<locals>.wrapper.<locals>.<lambda>)rr=r�cSr�r�r�r�r"r"r#r;�r%zAexclusive.<locals>.decorator.<locals>.wrapper.<locals>.<listcomp>z{0} requires either {1}r�r�r�rXr#rK�r�z-exclusive.<locals>.decorator.<locals>.wrapperr�cSr�r�r�r�r"r"r#r;�r%z0exclusive.<locals>.decorator.<locals>.<listcomp>z{0}
Either: {1}rMr��r0rKrbr�rTr#rU�r�zexclusive.<locals>.decoratorr"r�r"r�r#�	exclusive�r�r�cr)NcsB���fdd�}d�dd��D��}d��j�|�|_t�|d�S)Ncsd�fdd����vr+t�fdd��D��s+d�dd��D��}d��j�|�}t|���|i���S)	Ncr�)Nc3r�rr"r�rXr"r#r��r�zRdependent.<locals>.decorator.<locals>.wrapper.<locals>.<lambda>.<locals>.<genexpr>r�r�rXr"r#r$�r%z?dependent.<locals>.decorator.<locals>.wrapper.<locals>.<lambda>c3s�|]}�|�VqdSrr"r�)r�r"r#r��r�z@dependent.<locals>.decorator.<locals>.wrapper.<locals>.<genexpr>r�cSr�r�r�r�r"r"r#r;�r%zAdependent.<locals>.decorator.<locals>.wrapper.<locals>.<listcomp>z{0} argument {1} requires {2})r^rQrOr&r_ra)rcr0r�)r�rDr#rK�s�z-dependent.<locals>.decorator.<locals>.wrapperr�cSr�r�r�r�r"r"r#r;�r%z0dependent.<locals>.decorator.<locals>.<listcomp>z{0}
{1} requires: {2}rMr�r��rcr�rTr#rU�s�zdependent.<locals>.decoratorr")rcr�rUr"r�r#�	dependent�sr�cr4)Ncr5)Ncs@t�fdd��D��sd��jd����}t|���|i���S)Nc3r�rr"�r9rHrXr"r#r��r�zHrequires_some_of.<locals>.decorator.<locals>.requires.<locals>.<genexpr>z,{0} requires at least one of {1} argument(s)rL)r^rOr&rQr_rarIrXr#r��s�z5requires_some_of.<locals>.decorator.<locals>.requiresz{0}
Some Required: {1}rLrMrN)r0r�rSrTr#rU�s
�z#requires_some_of.<locals>.decoratorr"rVr"rSr#�requires_some_of�sr�cr4)Ncr5)Ncs:�fdd��D�D]}t�|����|<q	�|i���S)Ncs g|]}t��|�t�r|�qSr")rir�rvr8rXr"r#r;�s zIboolean_arguments.<locals>.decorator.<locals>.wrapper.<locals>.<listcomp>)r@rw)rCrDrcrIrXr#rK�sz5boolean_arguments.<locals>.decorator.<locals>.wrapperz{0}
Booleans: {1}rLrMrNrRrSrTr#rU�s
�z$boolean_arguments.<locals>.decoratorr"rVr"rSr#�boolean_arguments�s	r�cs t|�t|�f��fdd�	}|S)Ncs�t�\���d��pttj�j�d�����������fdd�}tD]}t||t	��
|��q$d������j�|_�jt
�<|S)Nr<rhcs||��t|�d��|�durd�����}t|���|d<�|d<|j�|d�}t���d�}�|||g|�Ri|��S)Nz?{0} requires {1} argument. Set the MWSConnection.{2} attribute?�Action�Version)�
connection)�pathr)r*)�
setdefaultr.rOr_�_response_factory�dict)rBrCrDrbr'�request��	accesskeyr&r0r�r)r*r+r"r#rK�s
�z.api_action.<locals>.decorator.<locals>.wrapperz3MWS {0}/{1} API call; quota={2} restore={3:.2f}
{4})�api_version_pathrQrr@�
capitalize�__name__r7r,r-�localsr�rOrP�api_call_map)r0r)r*rKr2��apir(r�r#rU�s
��
zapi_action.<locals>.decorator)�int�float)r(r)r*r�rUr"r�r#�
api_action�sr�c
sPeZdZejjjZejjjZ�fdd�Z	dd�Z
dd�Zdd�Z�dPdd�Z
d
d�Zdd�Zdd�Zdd�Zedg�ed�ed�ed�eddd��dQdd������Zeddd �edd!d"�d#d$���Zed%g�edd&d&�d'd(���Zedd �edd!d"�d)d*���Zedd�edd!d"�d+d,���Zed-g�eddd.�d/d0���Zd1d2�Zed3g�ed�ed4�ed5dd.�d6d7�����Zed8d9d:�ed5d!d"�d;d<���Zed%g�ed5d&d&�d=d>���Z ed9d:�ed5d!d"�d?d@���Z!ed5d!d"�dAdB��Z"edC�ed8d9�ed5d!d.�dDdE����Z#ed%g�ed5d&d&�dFdG���Z$edC�ed9�ed5d!d"�dHdI����Z%edJg�ed5dd.�dKdL���Z&ed3dMg�ed5d!d"�dNdO���Z'ed9�ed5d!d"�dPdQ���Z(ed%g�ed5d&d&�dRdS���Z)ed9�ed5d!d"�dTdU���Z*edVg�edC�edW�ed5d!d"�dXdY�����Z+edZd[g�e,dZd[�ed\d]d^�d_d`����Z-egda��e,dbdc�ed\d]d^�ddde����Z.edfg�e,dbdc�ed\d]d^�dgdh����Z/e0didj�edkdl�ed\d]d^�dmdn����Z1ed%g�ed\d]d^�dodp���Z2edfgdqdrg�ed\d]d^�dsdt���Z3ed%g�ed\d]d^�dudv���Z4ed\dwdxdy�dzd{��Z5ed|gd}g�ed~�edd]d^�d�d�����Z6ed%g�edd]d^�d�d����Z7eddwdxdy�d�d���Z8ed�g�ed�d]d^�d�d����Z9ed�d�g�e,d�d��ed�d]d^�d�d�����Z:egd���e,d�d��ed�d]d^�d�d�����Z;ed�g�ed�d]d^�d�d����Z<ed�d]d^�d�d���Z=ed%g�ed�d]d^�d�d����Z>ed�g�ed�d]d^�d�d����Z?ed�dwdxdy�d�d���Z@ed�gdqg�ed�g�eAd�gdqg�eBd�d�g�eAdqgd�gd�g�eBdrdqg�eAd�gdrg�e,d�d�d��ed�d�d�d��ed�d�d.�d�d������������ZCed%g�ed�d�d.�d�d����ZDed�g�ed��ed�d�d.�d�d�����ZEed�g�ed�d]dw�d�d����ZFed%g�ed�d]dw�d�d����ZGed�dwdxdy�d�d���ZHed�d�g�ed�d�d��d�d����ZIed�d�g�ed��ed�d�d��d�d�����ZJegd¢�edÃed�d�d��d�dń���ZKed�d�g�edǃed�d�d!dȃd�dʄ���ZLed�d�g�ed��ed�d�d!d˃d�d̈́���ZMed�d�g�edǃed�d�d�dσd�dф���ZNed�d�g�ed��ed�d�d�d҃d�dԄ���ZOed�d�g�ed�d�d�dփd�d؄��ZPed�d�g�ed�d�d�dڃd�d܄��ZQed�dwdxdy�d�dބ�ZRed�d�g�edǃed�d�d!d߃d�d����ZSed�d�g�ed��ed�d�d!d�d�d����ZTed�dd.�d�d��ZUed%g�ed�dd.�d�d���ZVed�g�ed�d�dw�d�d���ZWed�g�ed�ed�d�dw�d�d����ZXed%g�ed�d�dw�d�d���ZYed�dwdxdy�d�d��ZZed�dd��d�d���Z[ed%g�ed�d�d��d�d����Z\ed�g�ed��ed�dd��d�d�����Z]ed�dwdxdy��d�d��Z^e�dg�e�ddd���d�d���Z_ed%g�e�dd�d���d�d���Z`e�dg�e�d	�e�ddd���d
�d����Zae�ddwdxdy��d�d
��Zbed��dg�e,�d�d�d�e�d�dd^��d�d����Zced��dg�e,�d�d�d�e�d�dd^��d�d����Zded�g�e�d�dd^��d�d���Zeed��dg�e,�d�d�d�e�d�dd^��d�d����Zfed��dg�e,�d�d�d�e�d�dd^��d�d����Zgeg�d��e,�d�d�d�e�d�dd^��d�d ����Zheg�d��e,�d�d�d�e�d�dd^��d!�d"����Zied�g�e�d�dd^��d#�d$���Zjed��dg�e,�d�d�d�e�d�dd^��d%�d&����Zke�ddwdxdy��d'�d(��Zle�d)�d*g�e,�d*�e�d+d!�d,��d-�d.����Zme�d)g�e�d+d�dw��d/�d0���Zne�d)g�e�d+d!�d,��d1�d2���Zoe�d)g�e�d+d!�d,��d3�d4���Zpe�d)g�e�d+d!�d,��d5�d6���Zqeg�d7��e,�d8�e�d+d!�d,��d9�d:����Zre�d;g�e�d+d�dw��d<�d=���Zseg�d>��e,�d?�e�d+d!�d,��d@�dA����Zte�dBg�e�d+d�dw��dC�dD���Zue�d;g�e�d+d!�d,��dE�dF���Zveg�dG��e,�dH�e�d+d!�d,��dI�dJ����Zwe�dKg�e�d+d�dw��dL�dM���Zxe�d+dwdxdy��dN�dO��Zy�ZzS(Rr	csz|�dd�|�dd�|_|�dd�p|�d�|_|�dd�p!|j|_|j|�dg�fi|��}tt|�j	|i|��dS)N�hostzmws.amazonservices.com�sandboxFr
r�factory_scopes)
r�rA�
_sandboxedr�r
r�_setup_factories�superr	�__init__)rBrCrD��	__class__r"r#r�szMWSConnection.__init__cKsttjj|jftjj|jfd���D]&\}\}}||vr't|d||�|��q||g}t|d|||d��q|S)N)�response_factory�response_error_factoryrh)�scopes)	rjrkr'�ResponseFactory�	exception�ResponseErrorFactory�itemsr-rA)rB�extrascopesrD�factory�scope�Defaultr�r"r"r#r�s��
zMWSConnection._setup_factoriescCs.|js|S|�d�}|dd7<d�|�S)Nr����_Sandbox)r�r7rQ)rBr��splatr"r"r#�_sandboxify"s


zMWSConnection._sandboxifycCsdgS)Nrkr")rBr"r"r#�_required_auth_capability)sz'MWSConnection._required_auth_capabilityr<Nc
Cs(|pi}|�|d�}|jd|d||||jd�}z	|j|dd�}Wnty7}z
|�|j|j|j��d}~ww|�	�}t
j�|�|sUt
j�
d|�|�|j|j|��|jdkrwt
j�
d|j|jf�t
j�
d	|�|�|j|j|��|�d
�}	|	dur�t|�|	ks�J�|�d�}
|�||
|�S)zyMake a POST request, optionally with a content body,
           and return the response, optionally as raw text.
        r��POSTN)�data�paramsr]r�)�override_num_retrieszNull body %s��z%s %sz%sr\r[)r��build_base_http_requestr��_mexer�_response_error_factory�status�reasonrZ�readrj�log�debug�error�	getheaderr`�_parse_response)rBr�r��parserrZr]r�r'�bsr�contenttyper"r"r#�
_post_request,s<����
�

zMWSConnection._post_requestcCs*|�d�s|St||�}tj�||�|S)Nztext/xml)rrr�xml�sax�parseString)rBr�r�rZ�handlerr"r"r#r�Js


zMWSConnection._parse_responsecCs2d|vr
t�|d�p|}|tvrt|t|�SdS)z�Return the MWS API method referred to in the argument.
           The named method can be in CamelCase or underlined_lower_case.
           This is the complement to MWSConnection.any_call.action
        rhN)�string�capwordsr�r.)rBr{r&r"r"r#�
method_forQszMWSConnection.method_forcOs0|�|�}|sJd�|���|�||i|���S)z�Pass a call name as the first argument and a generator
           is returned for the initial response and any continuation
           call responses made using the NextToken.
        zNo call named "{0}")r�rO�
iter_response)rB�callrCrD�methodr"r"r#�	iter_call[s
zMWSConnection.iter_callccs\�|V|�|jd�}|r(|jjdkr,||jjd�}|V|r*|jjdksdSdSdSdS)z�Pass a call's response as the initial argument and a
           generator is returned for the initial response and any
           continuation call responses made using the NextToken.
        �ByNextToken�true)�	NextTokenN)r��_action�_result�HasNextr�)rBr'�morer"r"r#r�ds� �zMWSConnection.iter_response�FeedType�PurgeAndReplace�FeedContentzMarketplaceIdList.Idr��xcKs|pi}|j|||||d�S)z5Uploads a feed for processing by Amazon MWS.
        )rZr]�r�)rBr�r'r]rZrDr"r"r#�submit_feedos�zMWSConnection.submit_feedzFeedSubmissionIdList.IdzFeedTypeList.TypezFeedProcessingStatusList.Status�
�-cK�|�|||�S)z]Returns a list of all feed submissions submitted in the
           previous 90 days.
        r�rBr�r'rDr"r"r#�get_feed_submission_list{�z&MWSConnection.get_feed_submission_listr�rcKr)zJReturns a list of feed submissions using the NextToken parameter.
        rrr"r"r#�&get_feed_submission_list_by_next_token��z4MWSConnection.get_feed_submission_list_by_next_tokencKr)zHReturns a count of the feeds submitted in the previous 90 days.
        rrr"r"r#�get_feed_submission_count�r
z'MWSConnection.get_feed_submission_countcKr)zxCancels one or more feed submissions and returns a
           count of the feed submissions that were canceled.
        rrr"r"r#�cancel_feed_submissions��z%MWSConnection.cancel_feed_submissions�FeedSubmissionId�<cKr)z,Returns the feed processing report.
        rrr"r"r#�get_feed_submission_result�r
z(MWSConnection.get_feed_submission_resultcKs.d�ttjt����}d�|jj|�}t	|��)z8Instruct the user on how to get service status.
        rLzTUse {0}.get_(section)_service_status(), where (section) is one of the following: {1})
rQrr@rwr��keysrOr�r��AttributeError)rBrD�sectionsrbr"r"r#�get_service_status�s
�z MWSConnection.get_service_status�
ReportTypezReportOptions=ShowSalesChannelrcKr)zHCreates a report request and submits the request to Amazon MWS.
        rrr"r"r#�request_report�rzMWSConnection.request_reportzReportRequestIdList.IdzReportTypeList.Typez!ReportProcessingStatusList.StatuscKr)zoReturns a list of report requests that you can use to get the
           ReportRequestId for a report.
        rrr"r"r#�get_report_request_list�rz%MWSConnection.get_report_request_listcKr)a
Returns a list of report requests using the NextToken,
           which was supplied by a previous request to either
           GetReportRequestListByNextToken or GetReportRequestList, where
           the value of HasNext was true in that previous request.
        rrr"r"r#�%get_report_request_list_by_next_token��z3MWSConnection.get_report_request_list_by_next_tokencKr)zmReturns a count of report requests that have been submitted
           to Amazon MWS for processing.
        rrr"r"r#�get_report_request_count�rz&MWSConnection.get_report_request_countcKr)z�Cancel one or more report requests, returning the count of the
           canceled report requests and the report request information.
        rrr"r"r#�cancel_report_requests�r
z$MWSConnection.cancel_report_requests�AcknowledgedcKr)zxReturns a list of reports that were created in the previous
           90 days that match the query parameters.
        rrr"r"r#�get_report_list�rzMWSConnection.get_report_listcKr)z�Returns a list of reports using the NextToken, which
           was supplied by a previous request to either
           GetReportListByNextToken or GetReportList, where the
           value of HasNext was true in the previous call.
        rrr"r"r#�get_report_list_by_next_token�rz+MWSConnection.get_report_list_by_next_tokencKr)z�Returns a count of the reports, created in the previous 90 days,
           with a status of _DONE_ and that are available for download.
        rrr"r"r#�get_report_count�rzMWSConnection.get_report_count�ReportIdcKr)z*Returns the contents of a report.
        rrr"r"r#�
get_report�r
zMWSConnection.get_report�SchedulecKr)zgCreates, updates, or deletes a report request schedule for
           a specified report type.
        rrr"r"r#�manage_report_schedule�r
z$MWSConnection.manage_report_schedulecKr)z|Returns a list of order report requests that are scheduled
           to be submitted to Amazon MWS for processing.
        rrr"r"r#�get_report_schedule_listr
z&MWSConnection.get_report_schedule_listcKr)aReturns a list of report requests using the NextToken,
           which was supplied by a previous request to either
           GetReportScheduleListByNextToken or GetReportScheduleList,
           where the value of HasNext was true in that previous request.
        rrr"r"r#�&get_report_schedule_list_by_next_token	rz4MWSConnection.get_report_schedule_list_by_next_tokencKr)znReturns a count of order report requests that are scheduled
           to be submitted to Amazon MWS.
        rrr"r"r#�get_report_schedule_countr
z'MWSConnection.get_report_schedule_count�ReportIdListzReportIdList.IdcKr)z@Updates the acknowledged status of one or more reports.
        rrr"r"r#�update_report_acknowledgementsrz,MWSConnection.update_report_acknowledgements�ShipFromAddress�InboundShipmentPlanRequestItemsr�g�?cKr)zHReturns the information required to create an inbound shipment.
        rrr"r"r#�create_inbound_shipment_plan$r
z*MWSConnection.create_inbound_shipment_plan)�
ShipmentId�InboundShipmentHeader�InboundShipmentItemsr.r/cKr)z%Creates an inbound shipment.
        rrr"r"r#�create_inbound_shipment,r
z%MWSConnection.create_inbound_shipmentr-cKr)z�Updates an existing inbound shipment.  Amazon documentation
           is ambiguous as to whether the InboundShipmentHeader and
           InboundShipmentItems arguments are required.
        rrr"r"r#�update_inbound_shipment4rz%MWSConnection.update_inbound_shipment�ShipmentIdList�ShipmentStatusListzShipmentIdList.IdzShipmentStatusList.StatuscKr)z[Returns a list of inbound shipments based on criteria that
           you specify.
        rrr"r"r#�list_inbound_shipments>rz$MWSConnection.list_inbound_shipmentscKr)z]Returns the next page of inbound shipments using the NextToken
           parameter.
        rrr"r"r#�$list_inbound_shipments_by_next_tokenGr
z2MWSConnection.list_inbound_shipments_by_next_token�LastUpdatedAfter�LastUpdatedBeforecKr)z�Returns a list of items in a specified inbound shipment, or a
           list of items that were updated within a specified time frame.
        rrr"r"r#�list_inbound_shipment_itemsOr
z)MWSConnection.list_inbound_shipment_itemscKr�zbReturns the next page of inbound shipment items using the
           NextToken parameter.
        rrr"r"r#�)list_inbound_shipment_items_by_next_tokenWr
z7MWSConnection.list_inbound_shipment_items_by_next_token�i,�GetServiceStatuscKr)zcReturns the operational status of the Fulfillment Inbound
           Shipment API section.
        rrr"r"r#�get_inbound_service_status_r
z(MWSConnection.get_inbound_service_status�
SellerSkus�QueryStartDateTimezSellerSkus.memberrcKr)zWReturns information about the availability of a seller's
           inventory.
        rrr"r"r#�list_inventory_supplyfrz#MWSConnection.list_inventory_supplycKr)z�Returns the next page of information about the availability
           of a seller's inventory using the NextToken parameter.
        rrr"r"r#�#list_inventory_supply_by_next_tokenor
z1MWSConnection.list_inventory_supply_by_next_tokencKr)z\Returns the operational status of the Fulfillment Inventory
           API section.
        rrr"r"r#�get_inventory_service_statuswr
z*MWSConnection.get_inventory_service_status�
PackageNumberrcKr)z�Returns delivery tracking information for a package in
           an outbound shipment for a Multi-Channel Fulfillment order.
        rrr"r"r#�get_package_tracking_details~r
z*MWSConnection.get_package_tracking_details�Address�ItemscKr)zReturns a list of fulfillment order previews based on items
           and shipping speed categories that you specify.
        rrr"r"r#�get_fulfillment_preview�rz%MWSConnection.get_fulfillment_preview)�SellerFulfillmentOrderId�DisplayableOrderId�ShippingSpeedCategory�DisplayableOrderDateTime�DestinationAddress�DisplayableOrderCommentrFrLcKr)ziRequests that Amazon ship items from the seller's inventory
           to a destination address.
        rrr"r"r#�create_fulfillment_order�s
z&MWSConnection.create_fulfillment_orderrHcKr)z^Returns a fulfillment order based on a specified
           SellerFulfillmentOrderId.
        rrr"r"r#�get_fulfillment_order�r
z#MWSConnection.get_fulfillment_ordercKr)z{Returns a list of fulfillment orders fulfilled after (or
           at) a specified date or by fulfillment method.
        rrr"r"r#�list_all_fulfillment_orders�r
z)MWSConnection.list_all_fulfillment_orderscKrr9rrr"r"r#�)list_all_fulfillment_orders_by_next_token�r
z7MWSConnection.list_all_fulfillment_orders_by_next_tokencKr)zbRequests that Amazon stop attempting to fulfill an existing
           fulfillment order.
        rrr"r"r#�cancel_fulfillment_order�r
z&MWSConnection.cancel_fulfillment_ordercKr)z[Returns the operational status of the Fulfillment Outbound
           API section.
        rrr"r"r#�get_outbound_service_status�r
z)MWSConnection.get_outbound_service_status�CreatedAfter�
MarketplaceId�
CreatedBefore�
BuyerEmail�
SellerOrderId�
OrderTotal�ShippingAddress�PaymentExecutionDetailzMarketplaceId.IdzOrderStatus.StatuszFulfillmentChannel.ChannelzPaymentMethod.r�csvtd�}|�dg�|�dg�d���D] \}�||vr3t�fdd�|D��r3d�d���|�}t|��q|�|||�S)	zeReturns a list of orders created or updated during a time
           frame that you specify.
        )zFulfillmentChannel.Channel.1zOrderStatus.Status.1zPaymentMethod.1r6r7rXrW)rWrXc3r�rr"r���dontr"r#r��r�z,MWSConnection.list_orders.<locals>.<genexpr>z%Don't include {0} when specifying {1}z or )�set�unionr�r^rOrQ�AssertionErrorr�)rBr�r'rD�toggle�dorbr"r]r#�list_orders�s

�
���zMWSConnection.list_orderscKr)z�Returns the next page of orders using the NextToken value
           that was returned by your previous request to either
           ListOrders or ListOrdersByNextToken.
        rrr"r"r#�list_orders_by_next_token�rz'MWSConnection.list_orders_by_next_token�
AmazonOrderIdzAmazonOrderId.IdcKr)zBReturns an order for each AmazonOrderId that you specify.
        rrr"r"r#�	get_order�r
zMWSConnection.get_ordercKr)zYReturns order item information for an AmazonOrderId that
           you specify.
        rrr"r"r#�list_order_items�r
zMWSConnection.list_order_itemscKr)z�Returns the next page of order items using the NextToken
           value that was returned by your previous request to either
           ListOrderItems or ListOrderItemsByNextToken.
        rrr"r"r#�list_order_items_by_next_token�rz,MWSConnection.list_order_items_by_next_tokencKr)zBReturns the operational status of the Orders API section.
        rrr"r"r#�get_orders_service_status�z'MWSConnection.get_orders_service_status�Queryr�cKr)z�Returns a list of products and their attributes, ordered
           by relevancy, based on a search query that you specify.
        rrr"r"r#�list_matching_productsr
z$MWSConnection.list_matching_products�ASINListz
ASINList.ASINcKr)zuReturns a list of products and their attributes, based on
           a list of ASIN values that you specify.
        rrr"r"r#�get_matching_productrz"MWSConnection.get_matching_product)rU�IdType�IdListz	IdList.IdcKr)zuReturns a list of products and their attributes, based on
           a list of Product IDs that you specify.
        rrr"r"r#�get_matching_product_for_idrz)MWSConnection.get_matching_product_for_id�
SellerSKUListzSellerSKUList.SellerSKU�GetCompetitivePricingForSKUcKr)z�Returns the current competitive pricing of a product,
           based on the SellerSKUs and MarketplaceId that you specify.
        rrr"r"r#�get_competitive_pricing_for_sku rz-MWSConnection.get_competitive_pricing_for_sku�GetCompetitivePricingForASINcKr)z�Returns the current competitive pricing of a product,
           based on the ASINs and MarketplaceId that you specify.
        rrr"r"r#� get_competitive_pricing_for_asin)rz.MWSConnection.get_competitive_pricing_for_asin��GetLowestOfferListingsForSKUcKr)ztReturns the lowest price offer listings for a specific
           product by item condition and SellerSKUs.
        rrr"r"r#�!get_lowest_offer_listings_for_sku2rz/MWSConnection.get_lowest_offer_listings_for_sku�GetLowestOfferListingsForASINcKr)zoReturns the lowest price offer listings for a specific
           product by item condition and ASINs.
        rrr"r"r#�"get_lowest_offer_listings_for_asin;rz0MWSConnection.get_lowest_offer_listings_for_asin�	SellerSKU�GetProductCategoriesForSKUcKr)zDReturns the product categories that a SellerSKU belongs to.
        rrr"r"r#�get_product_categories_for_skuDr
z,MWSConnection.get_product_categories_for_sku�ASIN�GetProductCategoriesForASINcKr)z@Returns the product categories that an ASIN belongs to.
        rrr"r"r#�get_product_categories_for_asinKr
z-MWSConnection.get_product_categories_for_asincKr)zDReturns the operational status of the Products API section.
        rrr"r"r#�get_products_service_statusRrkz)MWSConnection.get_products_service_status�GetMyPriceForSKUcKr)zUReturns pricing information for your own offer listings, based on SellerSKU.
        rrr"r"r#�get_my_price_for_skuXr
z"MWSConnection.get_my_price_for_sku�GetMyPriceForASINcKr)zPReturns pricing information for your own offer listings, based on ASIN.
        rrr"r"r#�get_my_price_for_asin`r
z#MWSConnection.get_my_price_for_asinrcKr)z�Returns a list of marketplaces that the seller submitting
           the request can sell in, and a list of participations that
           include seller-specific information in that marketplace.
        rrr"r"r#�list_marketplace_participationshr
z-MWSConnection.list_marketplace_participationscKr)z�Returns the next page of marketplaces and participations
           using the NextToken value that was returned by your
           previous request to either ListMarketplaceParticipations
           or ListMarketplaceParticipationsByNextToken.
        rrr"r"r#�-list_marketplace_participations_by_next_tokenps	z;MWSConnection.list_marketplace_participations_by_next_tokenrcKr)z�Checks whether there are active recommendations for each category
           for the given marketplace, and if there are, returns the time when
           recommendations were last updated for each category.
        rrr"r"r#�)get_last_updated_time_for_recommendations{rz7MWSConnection.get_last_updated_time_for_recommendationszCategoryQueryList.CategoryQuerycKr)z�Returns your active recommendations for a specific category or for
           all categories for a specific marketplace.
        rrr"r"r#�list_recommendations�rz"MWSConnection.list_recommendationscKr)z[Returns the next page of recommendations using the NextToken
           parameter.
        rrr"r"r#�"list_recommendations_by_next_token�r
z0MWSConnection.list_recommendations_by_next_tokencKr)zKReturns the operational status of the Recommendations API section.
        rrr"r"r#�"get_recommendations_service_status�rkz0MWSConnection.get_recommendations_service_statusr�cKr�zbReturns a list of customer accounts based on search criteria that
           you specify.
        rrr"r"r#�list_customers�r
zMWSConnection.list_customers�2�cKr)zJReturns the next page of customers using the NextToken parameter.
        rrr"r"r#�list_customers_by_next_token�r
z*MWSConnection.list_customers_by_next_token�CustomerIdListzCustomerIdList.CustomerIdcKrr�rrr"r"r#�get_customers_for_customer_id�rz+MWSConnection.get_customers_for_customer_idcKr)z[Returns the operational status of the Customer Information API
           section.
        rrr"r"r#�get_customerinfo_service_status�r
z-MWSConnection.get_customerinfo_service_status�DateRangeStartrcKr)z�Returns a list of shopping carts in your Webstore that were last
           updated during the time range that you specify.
        rrr"r"r#�
list_carts�r
zMWSConnection.list_cartscKr)zZReturns the next page of shopping carts using the NextToken
           parameter.
        rrr"r"r#�list_carts_by_next_token�r
z&MWSConnection.list_carts_by_next_token�
CartIdListzCartIdList.CartIdcKr)zLReturns shopping carts based on the CartId values that you specify.
        rrr"r"r#�	get_carts�r
zMWSConnection.get_cartscKr)zLReturns the operational status of the Cart Information API section.
        rrr"r"r#�get_cartinfo_service_status�rkz)MWSConnection.get_cartinfo_service_status�DestinationTrfr�cKr)zMSpecifies a new destination where you want to receive notifications.
        rrr"r"r#�register_destination�r
z"MWSConnection.register_destinationcKr)z]Removes an existing destination from the list of registered
           destinations.
        rrr"r"r#�deregister_destination�rz$MWSConnection.deregister_destinationcKr)zALists all current destinations that you have registered.
        rrr"r"r#�list_registered_destinations�r
z*MWSConnection.list_registered_destinationscKr)z>Sends a test notification to an existing destination.
        rrr"r"r#�%send_test_notification_to_destination�r
z3MWSConnection.send_test_notification_to_destination�SubscriptioncKr)zcCreates a new subscription for the specified notification type
           and destination.
        rrr"r"r#�create_subscription�rz!MWSConnection.create_subscription)rU�NotificationTyper�cKr)z^Gets the subscription for the specified notification type and
           destination.
        rrr"r"r#�get_subscriptionrzMWSConnection.get_subscriptioncKr)zaDeletes the subscription for the specified notification type and
           destination.
        rrr"r"r#�delete_subscription
rz!MWSConnection.delete_subscriptioncKr)z:Returns a list of all your current subscriptions.
        rrr"r"r#�list_subscriptionsr
z MWSConnection.list_subscriptionscKr)zaUpdates the subscription for the specified notification type and
           destination.
        rrr"r"r#�update_subscriptionrz!MWSConnection.update_subscriptioncKr)zIReturns the operational status of the Subscriptions API section.
        rrr"r"r#� get_subscriptions_service_status#rkz.MWSConnection.get_subscriptions_service_status�AmazonOrderReferenceId�OrderReferenceAttributesrr=cKr)ziSets order reference details such as the order total and a
           description for the order.
        rrr"r"r#�set_order_reference_details)rz)MWSConnection.set_order_reference_detailscKr)z[Returns details about the Order Reference object and its current
           state.
        rrr"r"r#�get_order_reference_details2r
z)MWSConnection.get_order_reference_detailscKr)z�Confirms that the order reference is free of constraints and all
           required information has been set on the order reference.
        rrr"r"r#�confirm_order_reference:r
z%MWSConnection.confirm_order_referencecKr)zwCancel an order reference; all authorizations associated with
           this order reference are also closed.
        rrr"r"r#�cancel_order_referenceBr
z$MWSConnection.cancel_order_referencecKr)z�Confirms that an order reference has been fulfilled (fully
           or partially) and that you do not expect to create any new
           authorizations on this order reference.
        rrr"r"r#�close_order_referenceJrz#MWSConnection.close_order_reference)r��AuthorizationReferenceId�AuthorizationAmountr�cKr)zlReserves a specified amount against the payment method(s) stored in
           the order reference.
        rrr"r"r#�	authorizeSrzMWSConnection.authorize�AmazonAuthorizationIdcKr)zxReturns the status of a particular authorization and the total
           amount captured on the authorization.
        rrr"r"r#�get_authorization_details]r
z'MWSConnection.get_authorization_details)r��CaptureReferenceId�
CaptureAmountr�cKr)z>Captures funds from an authorized payment instrument.
        rrr"r"r#�captureer
zMWSConnection.capture�AmazonCaptureIdcKr)zlReturns the status of a particular capture and the total amount
           refunded on the capture.
        rrr"r"r#�get_capture_detailsmr
z!MWSConnection.get_capture_detailscKr)z!Closes an authorization.
        rrr"r"r#�close_authorizationur
z!MWSConnection.close_authorization)r��RefundReferenceId�RefundAmountr�cKr)z.Refunds a previously captured amount.
        rrr"r"r#�refund|r
zMWSConnection.refund�AmazonRefundIdcKr)z3Returns the status of a particular refund.
        rrr"r"r#�get_refund_details�r
z MWSConnection.get_refund_detailscKr)zZReturns the operational status of the Off-Amazon Payments API
           section.
        rrr"r"r#�$get_offamazonpayments_service_status�r
z2MWSConnection.get_offamazonpayments_service_status)r<N)Nr<){r��
__module__�__qualname__rjrkr'r�r�r�r�r�r�r�r�r�r�r�r�r�r�rerWr�rrr	rrrrrrrrrrrrr!r#r$r%r&r(r�r,r0r1r�r4r5r8r:r=r@rArBrDrGrNrOrPrQrRrSr�r�rdrergrhrirjrnrprsrvrxr{r}r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r��
__classcell__r"r"r�r#r	s�


	
�




	
�

�






































��























	

















)F)$�xml.saxr�rr�ro�boto.connectionr�boto.exceptionr�boto.mws.exceptionrj�boto.mws.response�boto.handlerr�boto.compatrrrr�__all__r�r`r,r�r3rWrermr�r�r�r�r�r�r�r	r"r"r"r#�<module>sP�


https://t.me/RX1948 - 2025