o Sa@sddlZddlZddlZddlZddlmZddlmZddl Z ddl Z ddl m Z ddlmZmZmZmZdgZdddd d d d d dddddd ZddZdZiZddZddZddZd/ddZd d!Zd"d#Zd$d%Zd&d'Zd(d)Z d*d+Z!d,d-Z"Gd.ddeZ#dS)0N)AWSQueryConnection)BotoServerError) XmlHandler)filtermapsix encodebytes MWSConnection)z 2009-01-01Merchant/)z 2013-09-01SellerIdz/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) FeedsReportsOrdersProductsSellersInboundOutbound InventoryRecommendations CustomerInfoCartInfo SubscriptionsOffAmazonPaymentscCstt|SN)rhashlibmd5digeststrip)cr"5/usr/lib/python3/dist-packages/boto/mws/connection.py9r$)actionresponsesectionquotarestoreversioncCs(tD] }t||t||dq||_|Sr)decorated_attrssetattrgetattr __wrapped__)functoattrr"r"r#add_attrs_from?sr3cfdd}|S)Nc0fdd}djd|_t|dS)NcsddDD]2\}}||vr9|d||rdpd}tt||D]}|||||t|d<q#||q|g|Ri|S)NcSsg|]}|dqS).)split.0fr"r"r# Kr%zHstructured_lists..decorator..wrapper..r6)rangelenstrpop)selfargskwkeyaccnewkeyifieldsr0r"r#wrapperJs z4structured_lists..decorator..wrapperz{0} Lists: {1}, r1format__doc__joinr3r0rKrJr0r# decoratorHs  z#structured_lists..decoratorr"rJrUr"rSr#structured_listsFs  rWcr4)Ncs*fdd}dj|_t|dS)NcshtfdddfDrdj}t|d<dtddd<|iS)Ncsg|]}|vqSr"r"r8rDr"r#r;]szAhttp_body..decorator..wrapper.. content_typezB{0} requires {1} and content_type arguments for building HTTP bodybody) Content-Type Content-MD5headers)anyrOr&KeyErrorrA content_md5rCrDmessage)fieldr0rXr#rK\s   z-http_body..decorator..wrapperz{0} Required HTTP Body: {1}rM)rOrPr3rRrcrTr#rUZs   zhttp_body..decoratorr")rcrUr"rdr# http_bodyXs reFcCst|tjjjrt|j|||ddSt|tjj r5|D]}| dr$qt||||d||dqdSt|t j rA|||<dSt|tjj rit|D]\}}|rTdpUdt|d}t|||||dqLdSt|trxt|||<dS|||<dS)Nmembers_r6z.member.r=) isinstancebotomwsr'ResponseElementdestructure_object__dict__ collectionsabcMapping startswithr string_typesIterable enumerater@boollower)valueintoprefixrgnameindexelementsuffixr"r"r#rmms,      rmcfdd}|S)Ncs2fdd}djd|_t|dS)NcsHdd}tfddD] }t|||dq|iS)NrgFcs|vSrr")rHrXr"r#r$szHstructured_objects..decorator..wrapper..rf)getrrmrA)rCrDrgrc)rJr0kwargsrXr#rKs z6structured_objects..decorator..wrapperzJ{0} Element|Iter|Map: {1} (ResponseElement or anything iterable/dict-like)rLrMrNrRrJrrTr#rUs  z%structured_objects..decoratorr")rJrrUr"rr#structured_objectss rcr4)Nc>fdd}dddD}dj||_t|dS)NcsZfdd}dttt|kr&dddD}dj|}t||iS)Nctfdd|DS)Nc3|]}|vVqdSrr"r9rErXr"r# zRrequires..decorator..requires....allgrouprXr"r#r$r%z?requires..decorator..requires..r= OR cSg|]}d|qS+rQr9gr"r"r#r;r%zArequires..decorator..requires..z{0} requires {1} argument(s)r?listrrQrOr&r_rCrDhasgrouprbr0groupsrXr#requires  z-requires..decorator..requiresrcSrrrrr"r"r#r;r%z/requires..decorator..z{0} Required: {1}rMrQrOrPr3)r0rrbrrTr#rU  zrequires..decoratorr"rrUr"rr#r rcr4)Ncr)NcsZfdd}ttt|dvr&dddD}dj|}t||iS)Ncr)Nc3rrr"rrXr"r#rrzRexclusive..decorator..wrapper....rrrXr"r#r$r%z?exclusive..decorator..wrapper..)rr=rcSrrrrr"r"r#r;r%zAexclusive..decorator..wrapper..z{0} requires either {1}rrrrXr#rKrz-exclusive..decorator..wrapperrcSrrrrr"r"r#r;r%z0exclusive..decorator..z{0} Either: {1}rMrr0rKrbrrTr#rUrzexclusive..decoratorr"rr"rr# exclusiverrcr)NcsBfdd}dddD}dj||_t|dS)Ncsdfddvr+tfddDs+dddD}dj|}t||iS) Ncr)Nc3rrr"rrXr"r#rrzRdependent..decorator..wrapper....rrrXr"r#r$r%z?dependent..decorator..wrapper..c3s|]}|VqdSrr"r)rr"r#rrz@dependent..decorator..wrapper..rcSrrrrr"r"r#r;r%zAdependent..decorator..wrapper..z{0} argument {1} requires {2})r^rQrOr&r_ra)rcr0r)rrDr#rKs  z-dependent..decorator..wrapperrcSrrrrr"r"r#r;r%z0dependent..decorator..z{0} {1} requires: {2}rMrrrcrrTr#rUs zdependent..decoratorr")rcrrUr"rr# dependentsrcr4)Ncr5)Ncs@tfddDsdjd}t||iS)Nc3rrr"r9rHrXr"r#rrzHrequires_some_of..decorator..requires..z,{0} requires at least one of {1} argument(s)rL)r^rOr&rQr_rarIrXr#rs z5requires_some_of..decorator..requiresz{0} Some Required: {1}rLrMrN)r0rrSrTr#rUs  z#requires_some_of..decoratorr"rVr"rSr#requires_some_ofs  rcr4)Ncr5)Ncs:fddDD] }t||<q |iS)Ncs g|] }t|tr|qSr")rirrvr8rXr"r#r;s zIboolean_arguments..decorator..wrapper..)r@rw)rCrDrcrIrXr#rKsz5boolean_arguments..decorator..wrapperz{0} Booleans: {1}rLrMrNrRrSrTr#rUs  z$boolean_arguments..decoratorr"rVr"rSr#boolean_argumentss  rcs t|t|ffdd }|S)Ncst\dpttjjdfdd}tD] }t||t |q$d j |_ jt <|S)Nr<rhcs||t|d|durd}t||d<|d<|j|d}td}|||g|Ri|S)Nz?{0} requires {1} argument. Set the MWSConnection.{2} attribute?ActionVersion) connection)pathr)r*) setdefaultr.rOr__response_factorydict)rBrCrDrbr'request accesskeyr&r0rr)r*r+r"r#rKs  z.api_action..decorator..wrapperz3MWS {0}/{1} API call; quota={2} restore={3:.2f} {4})api_version_pathrQrr@ capitalize__name__r7r,r-localsrrOrP api_call_map)r0r)r*rKr2apir(rr#rUs   zapi_action..decorator)intfloat)r(r)r*rrUr"rr# api_actionsrc sPeZdZejjjZejjjZfddZ ddZ ddZ ddZ dPd d Z d dZddZddZddZedgededededdddQddZeddd edd!d"d#d$Zed%gedd&d&d'd(Zedd edd!d"d)d*Zeddedd!d"d+d,Zed-geddd.d/d0Zd1d2Zed3geded4ed5dd.d6d7Zed8d9d:ed5d!d"d;d<Zed%ged5d&d&d=d>Z ed9d:ed5d!d"d?d@Z!ed5d!d"dAdBZ"edCed8d9ed5d!d.dDdEZ#ed%ged5d&d&dFdGZ$edCed9ed5d!d"dHdIZ%edJged5dd.dKdLZ&ed3dMged5d!d"dNdOZ'ed9ed5d!d"dPdQZ(ed%ged5d&d&dRdSZ)ed9ed5d!d"dTdUZ*edVgedCedWed5d!d"dXdYZ+edZd[ge,dZd[ed\d]d^d_d`Z-egdae,dbdced\d]d^dddeZ.edfge,dbdced\d]d^dgdhZ/e0didjedkdled\d]d^dmdnZ1ed%ged\d]d^dodpZ2edfgdqdrged\d]d^dsdtZ3ed%ged\d]d^dudvZ4ed\dwdxdydzd{Z5ed|gd}ged~edd]d^ddZ6ed%gedd]d^ddZ7eddwdxdyddZ8edgedd]d^ddZ9eddge,ddedd]d^ddZ:egde,ddedd]d^ddZ;edgedd]d^ddZedgedd]d^ddZ?eddwdxdyddZ@edgdqgedgeAdgdqgeBddgeAdqgdgdgeBdrdqgeAdgdrge,dddeddddeddd.ddZCed%geddd.ddZDedgededdd.ddZEedgedd]dwddZFed%gedd]dwddZGeddwdxdyddZHeddgedddddZIeddgededddddZJegd¢edÃedddddńZKeddgedǃeddd!dȃddʄZLeddgededdd!d˃dd̈́ZMeddgedǃeddddσddфZNeddgededddd҃ddԄZOeddgeddddփdd؄ZPeddgeddddڃdd܄ZQeddwdxdyddބZReddgedǃeddd!d߃ddZSeddgededdd!dddZTeddd.ddZUed%geddd.ddZVedgedddwddZWedgededddwddZXed%gedddwddZYeddwdxdyddZZedddddZ[ed%gedddddZ\edgededddddZ]eddwdxdyddZ^edgedddddZ_ed%gedddddZ`edged edddd d Zaeddwdxdyd d Zbeddge,dddeddd^ddZceddge,dddeddd^ddZdedgeddd^ddZeeddge,dddeddd^ddZfeddge,dddeddd^ddZgegde,dddeddd^dd Zhegde,dddeddd^d!d"Ziedgeddd^d#d$Zjeddge,dddeddd^d%d&Zkeddwdxdyd'd(Zled)d*ge,d*ed+d!d,d-d.Zmed)ged+ddwd/d0Zned)ged+d!d,d1d2Zoed)ged+d!d,d3d4Zped)ged+d!d,d5d6Zqegd7e,d8ed+d!d,d9d:Zred;ged+ddwd<d=Zsegd>e,d?ed+d!d,d@dAZtedBged+ddwdCdDZued;ged+d!d,dEdFZvegdGe,dHed+d!d,dIdJZwedKged+ddwdLdMZxed+dwdxdydNdOZyZzS(Rr csz|dd|dd|_|ddp|d|_|ddp!|j|_|j|dgfi|}tt|j |i|dS)Nhostzmws.amazonservices.comsandboxFr r factory_scopes) rrA _sandboxedrr r _setup_factoriessuperr __init__)rBrCrD __class__r"r#r s zMWSConnection.__init__cKsttjj|jftjj|jfdD]&\}\}}||vr't|d|||q||g}t|d|||dq|S)N)response_factoryresponse_error_factoryrh)scopes) rjrkr'ResponseFactory exceptionResponseErrorFactoryitemsr-rA)rB extrascopesrDfactoryscopeDefaultrr"r"r#rs   zMWSConnection._setup_factoriescCs.|js|S|d}|dd7<d|S)Nr _Sandbox)rr7rQ)rBrsplatr"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|jd}~ww| }t j ||sUt j d|||j|j||jdkrwt j d|j|jft j d |||j|j||d } | durt|| ksJ|d } ||| |S) zyMake a POST request, optionally with a content body, and return the response, optionally as raw text. rPOSTN)dataparamsr]r)override_num_retriesz Null body %sz%s %sz%sr\r[)rbuild_base_http_requestr_mexer_response_error_factorystatusreasonrZreadrjlogdebugerror getheaderr`_parse_response) rBrrparserrZr]rr'bsr contenttyper"r"r# _post_request,s<     zMWSConnection._post_requestcCs*|ds|St||}tj|||S)Nztext/xml)rrrxmlsax parseString)rBrrrZhandlerr"r"r#rJs  zMWSConnection._parse_responsecCs2d|vr t|dp |}|tvrt|t|SdS)zReturn 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)stringcapwordsrr.)rBr{r&r"r"r# method_forQszMWSConnection.method_forcOs0||}|sJd||||i|S)zPass 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}")rrO iter_response)rBcallrCrDmethodr"r"r# iter_call[s zMWSConnection.iter_callccs\|V||jd}|r(|jjdkr,||jjd}|V|r*|jjdksdSdSdSdS)zPass 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. ByNextTokentrue) NextTokenN)r_action_resultHasNextr)rBr'morer"r"r#rds zMWSConnection.iter_responseFeedTypePurgeAndReplace FeedContentzMarketplaceIdList.IdrxcKs|pi}|j|||||dS)z5Uploads a feed for processing by Amazon MWS. )rZr]r)rBrr'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. rrBrr'rDr"r"r#get_feed_submission_list{z&MWSConnection.get_feed_submission_listrrcKr)zJReturns a list of feed submissions using the NextToken parameter. rrr"r"r#&get_feed_submission_list_by_next_tokenz4MWSConnection.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_countr 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_submissionsz%MWSConnection.cancel_feed_submissionsFeedSubmissionId<cKr)z,Returns the feed processing report. rrr"r"r#get_feed_submission_resultr z(MWSConnection.get_feed_submission_resultcKs.dttjt}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@rwrkeysrOrrAttributeError)rBrDsectionsrbr"r"r#get_service_statuss  z MWSConnection.get_service_status ReportTypezReportOptions=ShowSalesChannelrcKr)zHCreates a report request and submits the request to Amazon MWS. rrr"r"r#request_reportrzMWSConnection.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_listrz%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_tokenz3MWSConnection.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_countrz&MWSConnection.get_report_request_countcKr)zCancel one or more report requests, returning the count of the canceled report requests and the report request information. rrr"r"r#cancel_report_requestsr 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_listrzMWSConnection.get_report_listcKr)zReturns 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_tokenrz+MWSConnection.get_report_list_by_next_tokencKr)zReturns 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_countrzMWSConnection.get_report_countReportIdcKr)z*Returns the contents of a report. rrr"r"r# get_reportr zMWSConnection.get_reportSchedulecKr)zgCreates, updates, or deletes a report request schedule for a specified report type. rrr"r"r#manage_report_scheduler 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_acknowledgementsShipFromAddressInboundShipmentPlanRequestItemsrg?cKr)zHReturns the information required to create an inbound shipment. rrr"r"r#create_inbound_shipment_plan$r z*MWSConnection.create_inbound_shipment_plan) ShipmentIdInboundShipmentHeaderInboundShipmentItemsr.r/cKr)z%Creates an inbound shipment. rrr"r"r#create_inbound_shipment,r z%MWSConnection.create_inbound_shipmentr-cKr)zUpdates 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_shipmentShipmentIdListShipmentStatusListzShipmentIdList.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_tokenLastUpdatedAfterLastUpdatedBeforecKr)zReturns 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_itemscKrzbReturns 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_tokeni,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 SellerSkusQueryStartDateTimezSellerSkus.memberrcKr)zWReturns information about the availability of a seller's inventory. rrr"r"r#list_inventory_supplyfrz#MWSConnection.list_inventory_supplycKr)zReturns 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)zReturns 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_detailsAddressItemscKr)zReturns a list of fulfillment order previews based on items and shipping speed categories that you specify. rrr"r"r#get_fulfillment_previewrz%MWSConnection.get_fulfillment_preview)SellerFulfillmentOrderIdDisplayableOrderIdShippingSpeedCategoryDisplayableOrderDateTimeDestinationAddressDisplayableOrderCommentrFrLcKr)ziRequests that Amazon ship items from the seller's inventory to a destination address. rrr"r"r#create_fulfillment_orders z&MWSConnection.create_fulfillment_orderrHcKr)z^Returns a fulfillment order based on a specified SellerFulfillmentOrderId. rrr"r"r#get_fulfillment_orderr 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_ordersr z)MWSConnection.list_all_fulfillment_orderscKrr9rrr"r"r#)list_all_fulfillment_orders_by_next_tokenr z7MWSConnection.list_all_fulfillment_orders_by_next_tokencKr)zbRequests that Amazon stop attempting to fulfill an existing fulfillment order. rrr"r"r#cancel_fulfillment_orderr z&MWSConnection.cancel_fulfillment_ordercKr)z[Returns the operational status of the Fulfillment Outbound API section. rrr"r"r#get_outbound_service_statusr z)MWSConnection.get_outbound_service_status CreatedAfter MarketplaceId CreatedBefore BuyerEmail SellerOrderId OrderTotalShippingAddressPaymentExecutionDetailzMarketplaceId.IdzOrderStatus.StatuszFulfillmentChannel.ChannelzPaymentMethod.rc svtd}|dg|dgdD] \}||vr3tfdd|Dr3dd|}t|q||||S) zeReturns a list of orders created or updated during a time frame that you specify. )zFulfillmentChannel.Channel.1zOrderStatus.Status.1zPaymentMethod.1r6r7rXrW)rWrXc3rrr"rdontr"r#rrz,MWSConnection.list_orders..z%Don't include {0} when specifying {1}z or )setunionrr^rOrQAssertionErrorr)rBrr'rDtoggledorbr"r]r# list_orderss   zMWSConnection.list_orderscKr)zReturns 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_tokenrz'MWSConnection.list_orders_by_next_token AmazonOrderIdzAmazonOrderId.IdcKr)zBReturns an order for each AmazonOrderId that you specify. rrr"r"r# get_orderr zMWSConnection.get_ordercKr)zYReturns order item information for an AmazonOrderId that you specify. rrr"r"r#list_order_itemsr zMWSConnection.list_order_itemscKr)zReturns 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_tokenrz,MWSConnection.list_order_items_by_next_tokencKr)zBReturns the operational status of the Orders API section. rrr"r"r#get_orders_service_statusz'MWSConnection.get_orders_service_statusQueryrcKr)zReturns 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_productsASINListz 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)rUIdTypeIdListz 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.SellerSKUGetCompetitivePricingForSKUcKr)zReturns 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_skuGetCompetitivePricingForASINcKr)zReturns 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_asinGetLowestOfferListingsForSKUcKr)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_skuGetLowestOfferListingsForASINcKr)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 SellerSKUGetProductCategoriesForSKUcKr)zDReturns the product categories that a SellerSKU belongs to. rrr"r"r#get_product_categories_for_skuDr z,MWSConnection.get_product_categories_for_skuASINGetProductCategoriesForASINcKr)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_statusGetMyPriceForSKUcKr)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_skuGetMyPriceForASINcKr)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)zReturns 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)zReturns 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)zChecks 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)zReturns your active recommendations for a specific category or for all categories for a specific marketplace. rrr"r"r#list_recommendationsrz"MWSConnection.list_recommendationscKr)z[Returns the next page of recommendations using the NextToken parameter. rrr"r"r#"list_recommendations_by_next_tokenr z0MWSConnection.list_recommendations_by_next_tokencKr)zKReturns the operational status of the Recommendations API section. rrr"r"r#"get_recommendations_service_statusrkz0MWSConnection.get_recommendations_service_statusr cKrzbReturns a list of customer accounts based on search criteria that you specify. rrr"r"r#list_customersr zMWSConnection.list_customers2cKr)zJReturns the next page of customers using the NextToken parameter. rrr"r"r#list_customers_by_next_tokenr z*MWSConnection.list_customers_by_next_tokenCustomerIdListzCustomerIdList.CustomerIdcKrrrrr"r"r#get_customers_for_customer_idrz+MWSConnection.get_customers_for_customer_idcKr)z[Returns the operational status of the Customer Information API section. rrr"r"r#get_customerinfo_service_statusr z-MWSConnection.get_customerinfo_service_statusDateRangeStartrcKr)zReturns a list of shopping carts in your Webstore that were last updated during the time range that you specify. rrr"r"r# list_cartsr zMWSConnection.list_cartscKr)zZReturns the next page of shopping carts using the NextToken parameter. rrr"r"r#list_carts_by_next_tokenr z&MWSConnection.list_carts_by_next_token CartIdListzCartIdList.CartIdcKr)zLReturns shopping carts based on the CartId values that you specify. rrr"r"r# get_cartsr zMWSConnection.get_cartscKr)zLReturns the operational status of the Cart Information API section. rrr"r"r#get_cartinfo_service_statusrkz)MWSConnection.get_cartinfo_service_status DestinationTrfrcKr)zMSpecifies a new destination where you want to receive notifications. rrr"r"r#register_destinationr z"MWSConnection.register_destinationcKr)z]Removes an existing destination from the list of registered destinations. rrr"r"r#deregister_destinationrz$MWSConnection.deregister_destinationcKr)zALists all current destinations that you have registered. rrr"r"r#list_registered_destinationsr z*MWSConnection.list_registered_destinationscKr)z>Sends a test notification to an existing destination. rrr"r"r#%send_test_notification_to_destinationr z3MWSConnection.send_test_notification_to_destination SubscriptioncKr)zcCreates a new subscription for the specified notification type and destination. rrr"r"r#create_subscriptionrz!MWSConnection.create_subscription)rUNotificationTypercKr)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_statusAmazonOrderReferenceIdOrderReferenceAttributesrr=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)zConfirms 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)zConfirms 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)rAuthorizationReferenceIdAuthorizationAmountrcKr)zlReserves a specified amount against the payment method(s) stored in the order reference. rrr"r"r# authorizeSrzMWSConnection.authorizeAmazonAuthorizationIdcKr)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)rCaptureReferenceId CaptureAmountrcKr)z>Captures funds from an authorized payment instrument. rrr"r"r#captureer zMWSConnection.captureAmazonCaptureIdcKr)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)rRefundReferenceId RefundAmountrcKr)z.Refunds a previously captured amount. rrr"r"r#refund|r zMWSConnection.refundAmazonRefundIdcKr)z3Returns the status of a particular refund. rrr"r"r#get_refund_detailsr z MWSConnection.get_refund_detailscKr)zZReturns the operational status of the Off-Amazon Payments API section. rrr"r"r#$get_offamazonpayments_service_statusr z2MWSConnection.get_offamazonpayments_service_status)r<N)Nr<){r __module__ __qualname__rjrkr'rrrrrrrrrrrrrrrerWrrrr r r rrrrrrrrrrr!r#r$r%r&r(rr,r0r1rr4r5r8r:r=r@rArBrDrGrNrOrPrQrRrSrrrdrergrhrirjrnrprsrvrxr{r}rrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr __classcell__r"r"rr#r s                                                                                                                                                                      )F)$xml.saxrrrroboto.connectionrboto.exceptionrboto.mws.exceptionrjboto.mws.response boto.handlerr boto.compatrrrr__all__rr`r,rr3rWrermrrrrrrrr r"r"r"r#sP