desc
stringlengths
3
26.7k
decl
stringlengths
11
7.89k
bodies
stringlengths
8
553k
'Delete a SimpleDB domain. .. caution:: This will delete the domain and all items within the domain. :type domain_or_name: string or :class:`boto.sdb.domain.Domain` object. :param domain_or_name: Either the name of a domain or a Domain object :rtype: bool :return: True if successful'
def delete_domain(self, domain_or_name):
(domain, domain_name) = self.get_domain_and_name(domain_or_name) params = {'DomainName': domain_name} return self.get_status('DeleteDomain', params)
'Get the Metadata for a SimpleDB domain. :type domain_or_name: string or :class:`boto.sdb.domain.Domain` object. :param domain_or_name: Either the name of a domain or a Domain object :rtype: :class:`boto.sdb.domain.DomainMetaData` object :return: The newly created domain metadata object'
def domain_metadata(self, domain_or_name):
(domain, domain_name) = self.get_domain_and_name(domain_or_name) params = {'DomainName': domain_name} d = self.get_object('DomainMetadata', params, DomainMetaData) d.domain = domain return d
'Store attributes for a given item in a domain. :type domain_or_name: string or :class:`boto.sdb.domain.Domain` object. :param domain_or_name: Either the name of a domain or a Domain object :type item_name: string :param item_name: The name of the item whose attributes are being stored. :type attribute_names: dict or d...
def put_attributes(self, domain_or_name, item_name, attributes, replace=True, expected_value=None):
(domain, domain_name) = self.get_domain_and_name(domain_or_name) params = {'DomainName': domain_name, 'ItemName': item_name} self._build_name_value_list(params, attributes, replace) if expected_value: self._build_expected_value(params, expected_value) return self.get_status('PutAttributes', ...
'Store attributes for multiple items in a domain. :type domain_or_name: string or :class:`boto.sdb.domain.Domain` object. :param domain_or_name: Either the name of a domain or a Domain object :type items: dict or dict-like object :param items: A dictionary-like object. The keys of the dictionary are the item names and...
def batch_put_attributes(self, domain_or_name, items, replace=True):
(domain, domain_name) = self.get_domain_and_name(domain_or_name) params = {'DomainName': domain_name} self._build_batch_list(params, items, replace) return self.get_status('BatchPutAttributes', params, verb='POST')
'Retrieve attributes for a given item in a domain. :type domain_or_name: string or :class:`boto.sdb.domain.Domain` object. :param domain_or_name: Either the name of a domain or a Domain object :type item_name: string :param item_name: The name of the item whose attributes are being retrieved. :type attribute_names: str...
def get_attributes(self, domain_or_name, item_name, attribute_names=None, consistent_read=False, item=None):
(domain, domain_name) = self.get_domain_and_name(domain_or_name) params = {'DomainName': domain_name, 'ItemName': item_name} if consistent_read: params['ConsistentRead'] = 'true' if attribute_names: if (not isinstance(attribute_names, list)): attribute_names = [attribute_name...
'Delete attributes from a given item in a domain. :type domain_or_name: string or :class:`boto.sdb.domain.Domain` object. :param domain_or_name: Either the name of a domain or a Domain object :type item_name: string :param item_name: The name of the item whose attributes are being deleted. :type attributes: dict, list ...
def delete_attributes(self, domain_or_name, item_name, attr_names=None, expected_value=None):
(domain, domain_name) = self.get_domain_and_name(domain_or_name) params = {'DomainName': domain_name, 'ItemName': item_name} if attr_names: if isinstance(attr_names, list): self._build_name_list(params, attr_names) elif (isinstance(attr_names, dict) or isinstance(attr_names, self...
'Delete multiple items in a domain. :type domain_or_name: string or :class:`boto.sdb.domain.Domain` object. :param domain_or_name: Either the name of a domain or a Domain object :type items: dict or dict-like object :param items: A dictionary-like object. The keys of the dictionary are the item names and the values ar...
def batch_delete_attributes(self, domain_or_name, items):
(domain, domain_name) = self.get_domain_and_name(domain_or_name) params = {'DomainName': domain_name} self._build_batch_list(params, items, False) return self.get_status('BatchDeleteAttributes', params, verb='POST')
'Returns a set of Attributes for item names within domain_name that match the query. The query must be expressed in using the SELECT style syntax rather than the original SimpleDB query language. Even though the select request does not require a domain object, a domain object must be passed into this method so the Ite...
def select(self, domain_or_name, query='', next_token=None, consistent_read=False):
(domain, domain_name) = self.get_domain_and_name(domain_or_name) params = {'SelectExpression': query} if consistent_read: params['ConsistentRead'] = 'true' if next_token: params['NextToken'] = next_token try: return self.get_list('Select', params, [('Item', self.item_cls)], p...
'Constructor. Args: host: The hostname the connection was made to. cert: The SSL certificate (as a dictionary) the host returned.'
def __init__(self, host, cert, reason):
http_client.HTTPException.__init__(self) self.host = host self.cert = cert self.reason = reason
'Constructor. Args: host: The hostname. Can be in \'host:port\' form. port: The port. Defaults to 443. key_file: A file containing the client\'s private key cert_file: A file containing the client\'s certificates ca_certs: A file contianing a set of concatenated certificate authority certs for validating the server aga...
def __init__(self, host, port=default_port, key_file=None, cert_file=None, ca_certs=None, strict=None, **kwargs):
if six.PY2: kwargs['strict'] = strict http_client.HTTPConnection.__init__(self, host=host, port=port, **kwargs) self.key_file = key_file self.cert_file = cert_file self.ca_certs = ca_certs
'Connect to a host on a given (SSL) port.'
def connect(self):
if hasattr(self, 'timeout'): sock = socket.create_connection((self.host, self.port), self.timeout) else: sock = socket.create_connection((self.host, self.port)) msg = 'wrapping ssl socket; ' if self.ca_certs: msg += ('CA certificate file=%s' % self.ca_certs) el...
'Make a POST request, optionally with a content body, and return the response, optionally as raw text.'
def _post_request(self, request, params, parser, body='', headers=None):
headers = (headers or {}) path = self._sandboxify(request['path']) request = self.build_base_http_request('POST', path, None, data=body, params=params, headers=headers, host=self.host) try: response = self._mexe(request, override_num_retries=None) except BotoServerError as bs: raise ...
'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'
def method_for(self, name):
action = ((('_' in name) and string.capwords(name, '_')) or name) if (action in api_call_map): return getattr(self, api_call_map[action]) return None
'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.'
def iter_call(self, call, *args, **kw):
method = self.method_for(call) assert method, 'No call named "{0}"'.format(call) return self.iter_response(method(*args, **kw))
'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.'
def iter_response(self, response):
(yield response) more = self.method_for((response._action + 'ByNextToken')) while (more and (response._result.HasNext == 'true')): response = more(NextToken=response._result.NextToken) (yield response)
'Uploads a feed for processing by Amazon MWS.'
@requires(['FeedType']) @boolean_arguments('PurgeAndReplace') @http_body('FeedContent') @structured_lists('MarketplaceIdList.Id') @api_action('Feeds', 15, 120) def submit_feed(self, request, response, headers=None, body='', **kw):
headers = (headers or {}) return self._post_request(request, kw, response, body=body, headers=headers)
'Returns a list of all feed submissions submitted in the previous 90 days.'
@structured_lists('FeedSubmissionIdList.Id', 'FeedTypeList.Type', 'FeedProcessingStatusList.Status') @api_action('Feeds', 10, 45) def get_feed_submission_list(self, request, response, **kw):
return self._post_request(request, kw, response)
'Returns a list of feed submissions using the NextToken parameter.'
@requires(['NextToken']) @api_action('Feeds', 0, 0) def get_feed_submission_list_by_next_token(self, request, response, **kw):
return self._post_request(request, kw, response)
'Returns a count of the feeds submitted in the previous 90 days.'
@structured_lists('FeedTypeList.Type', 'FeedProcessingStatusList.Status') @api_action('Feeds', 10, 45) def get_feed_submission_count(self, request, response, **kw):
return self._post_request(request, kw, response)
'Cancels one or more feed submissions and returns a count of the feed submissions that were canceled.'
@structured_lists('FeedSubmissionIdList.Id', 'FeedTypeList.Type') @api_action('Feeds', 10, 45) def cancel_feed_submissions(self, request, response, **kw):
return self._post_request(request, kw, response)
'Returns the feed processing report.'
@requires(['FeedSubmissionId']) @api_action('Feeds', 15, 60) def get_feed_submission_result(self, request, response, **kw):
return self._post_request(request, kw, response)
'Instruct the user on how to get service status.'
def get_service_status(self, **kw):
sections = ', '.join(map(str.lower, api_version_path.keys())) message = 'Use {0}.get_(section)_service_status(), where (section) is one of the following: {1}'.format(self.__class__.__name__, sections) raise AttributeError(message)
'Creates a report request and submits the request to Amazon MWS.'
@requires(['ReportType']) @structured_lists('MarketplaceIdList.Id') @boolean_arguments('ReportOptions=ShowSalesChannel') @api_action('Reports', 15, 60) def request_report(self, request, response, **kw):
return self._post_request(request, kw, response)
'Returns a list of report requests that you can use to get the ReportRequestId for a report.'
@structured_lists('ReportRequestIdList.Id', 'ReportTypeList.Type', 'ReportProcessingStatusList.Status') @api_action('Reports', 10, 45) def get_report_request_list(self, request, response, **kw):
return self._post_request(request, kw, response)
'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.'
@requires(['NextToken']) @api_action('Reports', 0, 0) def get_report_request_list_by_next_token(self, request, response, **kw):
return self._post_request(request, kw, response)
'Returns a count of report requests that have been submitted to Amazon MWS for processing.'
@structured_lists('ReportTypeList.Type', 'ReportProcessingStatusList.Status') @api_action('Reports', 10, 45) def get_report_request_count(self, request, response, **kw):
return self._post_request(request, kw, response)
'Cancel one or more report requests, returning the count of the canceled report requests and the report request information.'
@api_action('Reports', 10, 45) def cancel_report_requests(self, request, response, **kw):
return self._post_request(request, kw, response)
'Returns a list of reports that were created in the previous 90 days that match the query parameters.'
@boolean_arguments('Acknowledged') @structured_lists('ReportRequestIdList.Id', 'ReportTypeList.Type') @api_action('Reports', 10, 60) def get_report_list(self, request, response, **kw):
return self._post_request(request, kw, response)
'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.'
@requires(['NextToken']) @api_action('Reports', 0, 0) def get_report_list_by_next_token(self, request, response, **kw):
return self._post_request(request, kw, response)
'Returns a count of the reports, created in the previous 90 days, with a status of _DONE_ and that are available for download.'
@boolean_arguments('Acknowledged') @structured_lists('ReportTypeList.Type') @api_action('Reports', 10, 45) def get_report_count(self, request, response, **kw):
return self._post_request(request, kw, response)
'Returns the contents of a report.'
@requires(['ReportId']) @api_action('Reports', 15, 60) def get_report(self, request, response, **kw):
return self._post_request(request, kw, response)
'Creates, updates, or deletes a report request schedule for a specified report type.'
@requires(['ReportType', 'Schedule']) @api_action('Reports', 10, 45) def manage_report_schedule(self, request, response, **kw):
return self._post_request(request, kw, response)
'Returns a list of order report requests that are scheduled to be submitted to Amazon MWS for processing.'
@structured_lists('ReportTypeList.Type') @api_action('Reports', 10, 45) def get_report_schedule_list(self, request, response, **kw):
return self._post_request(request, kw, response)
'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.'
@requires(['NextToken']) @api_action('Reports', 0, 0) def get_report_schedule_list_by_next_token(self, request, response, **kw):
return self._post_request(request, kw, response)
'Returns a count of order report requests that are scheduled to be submitted to Amazon MWS.'
@structured_lists('ReportTypeList.Type') @api_action('Reports', 10, 45) def get_report_schedule_count(self, request, response, **kw):
return self._post_request(request, kw, response)
'Updates the acknowledged status of one or more reports.'
@requires(['ReportIdList']) @boolean_arguments('Acknowledged') @structured_lists('ReportIdList.Id') @api_action('Reports', 10, 45) def update_report_acknowledgements(self, request, response, **kw):
return self._post_request(request, kw, response)
'Returns the information required to create an inbound shipment.'
@requires(['ShipFromAddress', 'InboundShipmentPlanRequestItems']) @structured_objects('ShipFromAddress', 'InboundShipmentPlanRequestItems') @api_action('Inbound', 30, 0.5) def create_inbound_shipment_plan(self, request, response, **kw):
return self._post_request(request, kw, response)
'Creates an inbound shipment.'
@requires(['ShipmentId', 'InboundShipmentHeader', 'InboundShipmentItems']) @structured_objects('InboundShipmentHeader', 'InboundShipmentItems') @api_action('Inbound', 30, 0.5) def create_inbound_shipment(self, request, response, **kw):
return self._post_request(request, kw, response)
'Updates an existing inbound shipment. Amazon documentation is ambiguous as to whether the InboundShipmentHeader and InboundShipmentItems arguments are required.'
@requires(['ShipmentId']) @structured_objects('InboundShipmentHeader', 'InboundShipmentItems') @api_action('Inbound', 30, 0.5) def update_inbound_shipment(self, request, response, **kw):
return self._post_request(request, kw, response)
'Returns a list of inbound shipments based on criteria that you specify.'
@requires_some_of('ShipmentIdList', 'ShipmentStatusList') @structured_lists('ShipmentIdList.Id', 'ShipmentStatusList.Status') @api_action('Inbound', 30, 0.5) def list_inbound_shipments(self, request, response, **kw):
return self._post_request(request, kw, response)
'Returns the next page of inbound shipments using the NextToken parameter.'
@requires(['NextToken']) @api_action('Inbound', 30, 0.5) def list_inbound_shipments_by_next_token(self, request, response, **kw):
return self._post_request(request, kw, response)
'Returns a list of items in a specified inbound shipment, or a list of items that were updated within a specified time frame.'
@requires(['ShipmentId'], ['LastUpdatedAfter', 'LastUpdatedBefore']) @api_action('Inbound', 30, 0.5) def list_inbound_shipment_items(self, request, response, **kw):
return self._post_request(request, kw, response)
'Returns the next page of inbound shipment items using the NextToken parameter.'
@requires(['NextToken']) @api_action('Inbound', 30, 0.5) def list_inbound_shipment_items_by_next_token(self, request, response, **kw):
return self._post_request(request, kw, response)
'Returns the operational status of the Fulfillment Inbound Shipment API section.'
@api_action('Inbound', 2, 300, 'GetServiceStatus') def get_inbound_service_status(self, request, response, **kw):
return self._post_request(request, kw, response)
'Returns information about the availability of a seller\'s inventory.'
@requires(['SellerSkus'], ['QueryStartDateTime']) @structured_lists('SellerSkus.member') @api_action('Inventory', 30, 0.5) def list_inventory_supply(self, request, response, **kw):
return self._post_request(request, kw, response)
'Returns the next page of information about the availability of a seller\'s inventory using the NextToken parameter.'
@requires(['NextToken']) @api_action('Inventory', 30, 0.5) def list_inventory_supply_by_next_token(self, request, response, **kw):
return self._post_request(request, kw, response)
'Returns the operational status of the Fulfillment Inventory API section.'
@api_action('Inventory', 2, 300, 'GetServiceStatus') def get_inventory_service_status(self, request, response, **kw):
return self._post_request(request, kw, response)
'Returns delivery tracking information for a package in an outbound shipment for a Multi-Channel Fulfillment order.'
@requires(['PackageNumber']) @api_action('Outbound', 30, 0.5) def get_package_tracking_details(self, request, response, **kw):
return self._post_request(request, kw, response)
'Returns a list of fulfillment order previews based on items and shipping speed categories that you specify.'
@requires(['Address', 'Items']) @structured_objects('Address', 'Items') @api_action('Outbound', 30, 0.5) def get_fulfillment_preview(self, request, response, **kw):
return self._post_request(request, kw, response)
'Requests that Amazon ship items from the seller\'s inventory to a destination address.'
@requires(['SellerFulfillmentOrderId', 'DisplayableOrderId', 'ShippingSpeedCategory', 'DisplayableOrderDateTime', 'DestinationAddress', 'DisplayableOrderComment', 'Items']) @structured_objects('DestinationAddress', 'Items') @api_action('Outbound', 30, 0.5) def create_fulfillment_order(self, request, response, **kw):
return self._post_request(request, kw, response)
'Returns a fulfillment order based on a specified SellerFulfillmentOrderId.'
@requires(['SellerFulfillmentOrderId']) @api_action('Outbound', 30, 0.5) def get_fulfillment_order(self, request, response, **kw):
return self._post_request(request, kw, response)
'Returns a list of fulfillment orders fulfilled after (or at) a specified date or by fulfillment method.'
@api_action('Outbound', 30, 0.5) def list_all_fulfillment_orders(self, request, response, **kw):
return self._post_request(request, kw, response)
'Returns the next page of inbound shipment items using the NextToken parameter.'
@requires(['NextToken']) @api_action('Outbound', 30, 0.5) def list_all_fulfillment_orders_by_next_token(self, request, response, **kw):
return self._post_request(request, kw, response)
'Requests that Amazon stop attempting to fulfill an existing fulfillment order.'
@requires(['SellerFulfillmentOrderId']) @api_action('Outbound', 30, 0.5) def cancel_fulfillment_order(self, request, response, **kw):
return self._post_request(request, kw, response)
'Returns the operational status of the Fulfillment Outbound API section.'
@api_action('Outbound', 2, 300, 'GetServiceStatus') def get_outbound_service_status(self, request, response, **kw):
return self._post_request(request, kw, response)
'Returns a list of orders created or updated during a time frame that you specify.'
@requires(['CreatedAfter'], ['LastUpdatedAfter']) @requires(['MarketplaceId']) @exclusive(['CreatedAfter'], ['LastUpdatedAfter']) @dependent('CreatedBefore', ['CreatedAfter']) @exclusive(['LastUpdatedAfter'], ['BuyerEmail'], ['SellerOrderId']) @dependent('LastUpdatedBefore', ['LastUpdatedAfter']) @exclusive(['CreatedAf...
toggle = set(('FulfillmentChannel.Channel.1', 'OrderStatus.Status.1', 'PaymentMethod.1', 'LastUpdatedAfter', 'LastUpdatedBefore')) for (do, dont) in {'BuyerEmail': toggle.union(['SellerOrderId']), 'SellerOrderId': toggle.union(['BuyerEmail'])}.items(): if ((do in kw) and any(((i in dont) for i in kw))):...
'Returns the next page of orders using the NextToken value that was returned by your previous request to either ListOrders or ListOrdersByNextToken.'
@requires(['NextToken']) @api_action('Orders', 6, 60) def list_orders_by_next_token(self, request, response, **kw):
return self._post_request(request, kw, response)
'Returns an order for each AmazonOrderId that you specify.'
@requires(['AmazonOrderId']) @structured_lists('AmazonOrderId.Id') @api_action('Orders', 6, 60) def get_order(self, request, response, **kw):
return self._post_request(request, kw, response)
'Returns order item information for an AmazonOrderId that you specify.'
@requires(['AmazonOrderId']) @api_action('Orders', 30, 2) def list_order_items(self, request, response, **kw):
return self._post_request(request, kw, response)
'Returns the next page of order items using the NextToken value that was returned by your previous request to either ListOrderItems or ListOrderItemsByNextToken.'
@requires(['NextToken']) @api_action('Orders', 30, 2) def list_order_items_by_next_token(self, request, response, **kw):
return self._post_request(request, kw, response)
'Returns the operational status of the Orders API section.'
@api_action('Orders', 2, 300, 'GetServiceStatus') def get_orders_service_status(self, request, response, **kw):
return self._post_request(request, kw, response)
'Returns a list of products and their attributes, ordered by relevancy, based on a search query that you specify.'
@requires(['MarketplaceId', 'Query']) @api_action('Products', 20, 20) def list_matching_products(self, request, response, **kw):
return self._post_request(request, kw, response)
'Returns a list of products and their attributes, based on a list of ASIN values that you specify.'
@requires(['MarketplaceId', 'ASINList']) @structured_lists('ASINList.ASIN') @api_action('Products', 20, 20) def get_matching_product(self, request, response, **kw):
return self._post_request(request, kw, response)
'Returns a list of products and their attributes, based on a list of Product IDs that you specify.'
@requires(['MarketplaceId', 'IdType', 'IdList']) @structured_lists('IdList.Id') @api_action('Products', 20, 20) def get_matching_product_for_id(self, request, response, **kw):
return self._post_request(request, kw, response)
'Returns the current competitive pricing of a product, based on the SellerSKUs and MarketplaceId that you specify.'
@requires(['MarketplaceId', 'SellerSKUList']) @structured_lists('SellerSKUList.SellerSKU') @api_action('Products', 20, 10, 'GetCompetitivePricingForSKU') def get_competitive_pricing_for_sku(self, request, response, **kw):
return self._post_request(request, kw, response)
'Returns the current competitive pricing of a product, based on the ASINs and MarketplaceId that you specify.'
@requires(['MarketplaceId', 'ASINList']) @structured_lists('ASINList.ASIN') @api_action('Products', 20, 10, 'GetCompetitivePricingForASIN') def get_competitive_pricing_for_asin(self, request, response, **kw):
return self._post_request(request, kw, response)
'Returns the lowest price offer listings for a specific product by item condition and SellerSKUs.'
@requires(['MarketplaceId', 'SellerSKUList']) @structured_lists('SellerSKUList.SellerSKU') @api_action('Products', 20, 5, 'GetLowestOfferListingsForSKU') def get_lowest_offer_listings_for_sku(self, request, response, **kw):
return self._post_request(request, kw, response)
'Returns the lowest price offer listings for a specific product by item condition and ASINs.'
@requires(['MarketplaceId', 'ASINList']) @structured_lists('ASINList.ASIN') @api_action('Products', 20, 5, 'GetLowestOfferListingsForASIN') def get_lowest_offer_listings_for_asin(self, request, response, **kw):
return self._post_request(request, kw, response)
'Returns the product categories that a SellerSKU belongs to.'
@requires(['MarketplaceId', 'SellerSKU']) @api_action('Products', 20, 20, 'GetProductCategoriesForSKU') def get_product_categories_for_sku(self, request, response, **kw):
return self._post_request(request, kw, response)
'Returns the product categories that an ASIN belongs to.'
@requires(['MarketplaceId', 'ASIN']) @api_action('Products', 20, 20, 'GetProductCategoriesForASIN') def get_product_categories_for_asin(self, request, response, **kw):
return self._post_request(request, kw, response)
'Returns the operational status of the Products API section.'
@api_action('Products', 2, 300, 'GetServiceStatus') def get_products_service_status(self, request, response, **kw):
return self._post_request(request, kw, response)
'Returns pricing information for your own offer listings, based on SellerSKU.'
@requires(['MarketplaceId', 'SellerSKUList']) @structured_lists('SellerSKUList.SellerSKU') @api_action('Products', 20, 10, 'GetMyPriceForSKU') def get_my_price_for_sku(self, request, response, **kw):
return self._post_request(request, kw, response)
'Returns pricing information for your own offer listings, based on ASIN.'
@requires(['MarketplaceId', 'ASINList']) @structured_lists('ASINList.ASIN') @api_action('Products', 20, 10, 'GetMyPriceForASIN') def get_my_price_for_asin(self, request, response, **kw):
return self._post_request(request, kw, response)
'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.'
@api_action('Sellers', 15, 60) def list_marketplace_participations(self, request, response, **kw):
return self._post_request(request, kw, response)
'Returns the next page of marketplaces and participations using the NextToken value that was returned by your previous request to either ListMarketplaceParticipations or ListMarketplaceParticipationsByNextToken.'
@requires(['NextToken']) @api_action('Sellers', 15, 60) def list_marketplace_participations_by_next_token(self, request, response, **kw):
return self._post_request(request, kw, response)
'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.'
@requires(['MarketplaceId']) @api_action('Recommendations', 5, 2) def get_last_updated_time_for_recommendations(self, request, response, **kw):
return self._post_request(request, kw, response)
'Returns your active recommendations for a specific category or for all categories for a specific marketplace.'
@requires(['MarketplaceId']) @structured_lists('CategoryQueryList.CategoryQuery') @api_action('Recommendations', 5, 2) def list_recommendations(self, request, response, **kw):
return self._post_request(request, kw, response)
'Returns the next page of recommendations using the NextToken parameter.'
@requires(['NextToken']) @api_action('Recommendations', 5, 2) def list_recommendations_by_next_token(self, request, response, **kw):
return self._post_request(request, kw, response)
'Returns the operational status of the Recommendations API section.'
@api_action('Recommendations', 2, 300, 'GetServiceStatus') def get_recommendations_service_status(self, request, response, **kw):
return self._post_request(request, kw, response)
'Returns a list of customer accounts based on search criteria that you specify.'
@api_action('CustomerInfo', 15, 12) def list_customers(self, request, response, **kw):
return self._post_request(request, kw, response)
'Returns the next page of customers using the NextToken parameter.'
@requires(['NextToken']) @api_action('CustomerInfo', 50, 3) def list_customers_by_next_token(self, request, response, **kw):
return self._post_request(request, kw, response)
'Returns a list of customer accounts based on search criteria that you specify.'
@requires(['CustomerIdList']) @structured_lists('CustomerIdList.CustomerId') @api_action('CustomerInfo', 15, 12) def get_customers_for_customer_id(self, request, response, **kw):
return self._post_request(request, kw, response)
'Returns the operational status of the Customer Information API section.'
@api_action('CustomerInfo', 2, 300, 'GetServiceStatus') def get_customerinfo_service_status(self, request, response, **kw):
return self._post_request(request, kw, response)
'Returns a list of shopping carts in your Webstore that were last updated during the time range that you specify.'
@requires(['DateRangeStart']) @api_action('CartInfo', 15, 12) def list_carts(self, request, response, **kw):
return self._post_request(request, kw, response)
'Returns the next page of shopping carts using the NextToken parameter.'
@requires(['NextToken']) @api_action('CartInfo', 50, 3) def list_carts_by_next_token(self, request, response, **kw):
return self._post_request(request, kw, response)
'Returns shopping carts based on the CartId values that you specify.'
@requires(['CartIdList']) @structured_lists('CartIdList.CartId') @api_action('CartInfo', 15, 12) def get_carts(self, request, response, **kw):
return self._post_request(request, kw, response)
'Returns the operational status of the Cart Information API section.'
@api_action('CartInfo', 2, 300, 'GetServiceStatus') def get_cartinfo_service_status(self, request, response, **kw):
return self._post_request(request, kw, response)
'Specifies a new destination where you want to receive notifications.'
@requires(['MarketplaceId', 'Destination']) @structured_objects('Destination', members=True) @api_action('Subscriptions', 25, 0.5) def register_destination(self, request, response, **kw):
return self._post_request(request, kw, response)
'Removes an existing destination from the list of registered destinations.'
@requires(['MarketplaceId', 'Destination']) @structured_objects('Destination', members=True) @api_action('Subscriptions', 25, 0.5) def deregister_destination(self, request, response, **kw):
return self._post_request(request, kw, response)
'Lists all current destinations that you have registered.'
@requires(['MarketplaceId']) @api_action('Subscriptions', 25, 0.5) def list_registered_destinations(self, request, response, **kw):
return self._post_request(request, kw, response)
'Sends a test notification to an existing destination.'
@requires(['MarketplaceId', 'Destination']) @structured_objects('Destination', members=True) @api_action('Subscriptions', 25, 0.5) def send_test_notification_to_destination(self, request, response, **kw):
return self._post_request(request, kw, response)
'Creates a new subscription for the specified notification type and destination.'
@requires(['MarketplaceId', 'Subscription']) @structured_objects('Subscription', members=True) @api_action('Subscriptions', 25, 0.5) def create_subscription(self, request, response, **kw):
return self._post_request(request, kw, response)
'Gets the subscription for the specified notification type and destination.'
@requires(['MarketplaceId', 'NotificationType', 'Destination']) @structured_objects('Destination', members=True) @api_action('Subscriptions', 25, 0.5) def get_subscription(self, request, response, **kw):
return self._post_request(request, kw, response)
'Deletes the subscription for the specified notification type and destination.'
@requires(['MarketplaceId', 'NotificationType', 'Destination']) @structured_objects('Destination', members=True) @api_action('Subscriptions', 25, 0.5) def delete_subscription(self, request, response, **kw):
return self._post_request(request, kw, response)
'Returns a list of all your current subscriptions.'
@requires(['MarketplaceId']) @api_action('Subscriptions', 25, 0.5) def list_subscriptions(self, request, response, **kw):
return self._post_request(request, kw, response)
'Updates the subscription for the specified notification type and destination.'
@requires(['MarketplaceId', 'Subscription']) @structured_objects('Subscription', members=True) @api_action('Subscriptions', 25, 0.5) def update_subscription(self, request, response, **kw):
return self._post_request(request, kw, response)
'Returns the operational status of the Subscriptions API section.'
@api_action('Subscriptions', 2, 300, 'GetServiceStatus') def get_subscriptions_service_status(self, request, response, **kw):
return self._post_request(request, kw, response)
'Sets order reference details such as the order total and a description for the order.'
@requires(['AmazonOrderReferenceId', 'OrderReferenceAttributes']) @structured_objects('OrderReferenceAttributes') @api_action('OffAmazonPayments', 10, 1) def set_order_reference_details(self, request, response, **kw):
return self._post_request(request, kw, response)
'Returns details about the Order Reference object and its current state.'
@requires(['AmazonOrderReferenceId']) @api_action('OffAmazonPayments', 20, 2) def get_order_reference_details(self, request, response, **kw):
return self._post_request(request, kw, response)
'Confirms that the order reference is free of constraints and all required information has been set on the order reference.'
@requires(['AmazonOrderReferenceId']) @api_action('OffAmazonPayments', 10, 1) def confirm_order_reference(self, request, response, **kw):
return self._post_request(request, kw, response)