Skip to content

Commit

Permalink
Regenerate code
Browse files Browse the repository at this point in the history
  • Loading branch information
hakanensari committed Oct 3, 2024
1 parent d6730a4 commit 0f1e2e4
Show file tree
Hide file tree
Showing 51 changed files with 1,229 additions and 1,293 deletions.
39 changes: 19 additions & 20 deletions lib/peddler/api/amazon_warehousing_and_distribution_2024_05_09.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ class AmazonWarehousingAndDistribution20240509 < API
# Retrieves an AWD inbound shipment.
#
# @note This operation can make a static sandbox call.
# @param [String] shipment_id ID for the shipment. A shipment contains the cases being inbounded.
# @param [String] sku_quantities If equal to `SHOW`, the response includes the shipment SKU quantity details.
# @param shipment_id [String] ID for the shipment. A shipment contains the cases being inbounded.
# @param sku_quantities [String] If equal to `SHOW`, the response includes the shipment SKU quantity details.
# Defaults to `HIDE`, in which case the response does not contain SKU quantities
# @param [Float] rate_limit Requests per second
# @param rate_limit [Float] Requests per second
# @return [Hash] The API response
def get_inbound_shipment(shipment_id, sku_quantities: nil, rate_limit: 2.0)
path = "/awd/2024-05-09/inboundShipments/#{shipment_id}"
Expand All @@ -36,21 +36,20 @@ def get_inbound_shipment(shipment_id, sku_quantities: nil, rate_limit: 2.0)
# optional filters.
#
# @note This operation can make a static sandbox call.
# @param [String] sort_by Field to sort results by. By default, the response will be sorted by UPDATED_AT.
# @param [String] sort_order Sort the response in ASCENDING or DESCENDING order. By default, the response will be
# @param sort_by [String] Field to sort results by. By default, the response will be sorted by UPDATED_AT.
# @param sort_order [String] Sort the response in ASCENDING or DESCENDING order. By default, the response will be
# sorted in DESCENDING order.
# @param [String] shipment_status Filter by inbound shipment status.
# @param [String] updated_after List the inbound shipments that were updated after a certain time (inclusive). The
# date must be in [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) format.
# @param [String] updated_before List the inbound shipments that were updated before a certain time (inclusive).
# The date must be in [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) format.
# @param [Integer] max_results Maximum number of results to return.
# @param [String] next_token Token to retrieve the next set of paginated results.
# @param [Float] rate_limit Requests per second
# @param shipment_status [String] Filter by inbound shipment status.
# @param updated_after [String] List the inbound shipments that were updated after a certain time (inclusive). The
# date must be in {ISO 8601 https://developer-docs.amazon.com/sp-api/docs/iso-8601} format.
# @param updated_before [String] List the inbound shipments that were updated before a certain time (inclusive).
# The date must be in {ISO 8601 https://developer-docs.amazon.com/sp-api/docs/iso-8601} format.
# @param max_results [Integer] Maximum number of results to return.
# @param next_token [String] Token to retrieve the next set of paginated results.
# @param rate_limit [Float] Requests per second
# @return [Hash] The API response
def list_inbound_shipments(sort_by: nil, sort_order: nil, shipment_status: nil, updated_after: nil,
updated_before: nil, max_results: 25, next_token: nil, rate_limit: 1.0)

path = "/awd/2024-05-09/inboundShipments"
params = {
"sortBy" => sort_by,
Expand All @@ -68,13 +67,13 @@ def list_inbound_shipments(sort_by: nil, sort_order: nil, shipment_status: nil,
# Lists AWD inventory associated with a merchant with the ability to apply optional filters.
#
# @note This operation can make a static sandbox call.
# @param [String] sku Filter by seller or merchant SKU for the item.
# @param [String] sort_order Sort the response in `ASCENDING` or `DESCENDING` order.
# @param [String] details Set to `SHOW` to return summaries with additional inventory details. Defaults to `HIDE,`
# @param sku [String] Filter by seller or merchant SKU for the item.
# @param sort_order [String] Sort the response in `ASCENDING` or `DESCENDING` order.
# @param details [String] Set to `SHOW` to return summaries with additional inventory details. Defaults to `HIDE,`
# which returns only inventory summary totals.
# @param [String] next_token Token to retrieve the next set of paginated results.
# @param [Integer] max_results Maximum number of results to return.
# @param [Float] rate_limit Requests per second
# @param next_token [String] Token to retrieve the next set of paginated results.
# @param max_results [Integer] Maximum number of results to return.
# @param rate_limit [Float] Requests per second
# @return [Hash] The API response
def list_inventory(sku: nil, sort_order: nil, details: nil, next_token: nil, max_results: 25, rate_limit: 2.0)
path = "/awd/2024-05-09/inventory"
Expand Down
76 changes: 38 additions & 38 deletions lib/peddler/api/aplus_content_2020_11_01.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ class AplusContent20201101 < API
# metadata of the A+ Content documents. Call the getContentDocument operation to get the actual contents of the A+
# Content documents.
#
# @param [String] marketplace_id The identifier for the marketplace where the A+ Content is published.
# @param [String] page_token A page token from the nextPageToken response element returned by your previous call
# @param marketplace_id [String] The identifier for the marketplace where the A+ Content is published.
# @param page_token [String] A page token from the nextPageToken response element returned by your previous call
# to this operation. nextPageToken is returned when the results of a call exceed the page size. To get the next
# page of results, call the operation and include pageToken as the only parameter. Specifying pageToken with any
# other parameter will cause the request to fail. When no nextPageToken value is returned there are no more
# pages to return. A pageToken value is not usable across different operations.
# @param [Float] rate_limit Requests per second
# @param rate_limit [Float] Requests per second
# @return [Hash] The API response
def search_content_documents(marketplace_id, page_token: nil, rate_limit: 10.0)
cannot_sandbox!
Expand All @@ -43,9 +43,9 @@ def search_content_documents(marketplace_id, page_token: nil, rate_limit: 10.0)

# Creates a new A+ Content document.
#
# @param [String] marketplace_id The identifier for the marketplace where the A+ Content is published.
# @param [Hash] post_content_document_request The content document request details.
# @param [Float] rate_limit Requests per second
# @param marketplace_id [String] The identifier for the marketplace where the A+ Content is published.
# @param post_content_document_request [Hash] The content document request details.
# @param rate_limit [Float] Requests per second
# @return [Hash] The API response
def create_content_document(marketplace_id, post_content_document_request, rate_limit: 10.0)
cannot_sandbox!
Expand All @@ -61,12 +61,12 @@ def create_content_document(marketplace_id, post_content_document_request, rate_

# Returns an A+ Content document, if available.
#
# @param [String] content_reference_key The unique reference key for the A+ Content document. A content reference
# @param content_reference_key [String] The unique reference key for the A+ Content document. A content reference
# key cannot form a permalink and may change in the future. A content reference key is not guaranteed to match
# any A+ Content identifier.
# @param [String] marketplace_id The identifier for the marketplace where the A+ Content is published.
# @param [Array<String>] included_data_set The set of A+ Content data types to include in the response.
# @param [Float] rate_limit Requests per second
# @param marketplace_id [String] The identifier for the marketplace where the A+ Content is published.
# @param included_data_set [Array<String>] The set of A+ Content data types to include in the response.
# @param rate_limit [Float] Requests per second
# @return [Hash] The API response
def get_content_document(content_reference_key, marketplace_id, included_data_set, rate_limit: 10.0)
cannot_sandbox!
Expand All @@ -82,12 +82,12 @@ def get_content_document(content_reference_key, marketplace_id, included_data_se

# Updates an existing A+ Content document.
#
# @param [String] content_reference_key The unique reference key for the A+ Content document. A content reference
# @param content_reference_key [String] The unique reference key for the A+ Content document. A content reference
# key cannot form a permalink and may change in the future. A content reference key is not guaranteed to match
# any A+ Content identifier.
# @param [String] marketplace_id The identifier for the marketplace where the A+ Content is published.
# @param [Hash] post_content_document_request The content document request details.
# @param [Float] rate_limit Requests per second
# @param marketplace_id [String] The identifier for the marketplace where the A+ Content is published.
# @param post_content_document_request [Hash] The content document request details.
# @param rate_limit [Float] Requests per second
# @return [Hash] The API response
def update_content_document(content_reference_key, marketplace_id, post_content_document_request,
rate_limit: 10.0)
Expand All @@ -105,19 +105,19 @@ def update_content_document(content_reference_key, marketplace_id, post_content_
# Returns a list of ASINs related to the specified A+ Content document, if available. If you do not include the
# asinSet parameter, the operation returns all ASINs related to the content document.
#
# @param [String] content_reference_key The unique reference key for the A+ Content document. A content reference
# @param content_reference_key [String] The unique reference key for the A+ Content document. A content reference
# key cannot form a permalink and may change in the future. A content reference key is not guaranteed to match
# any A+ Content identifier.
# @param [String] marketplace_id The identifier for the marketplace where the A+ Content is published.
# @param [Array<String>] included_data_set The set of A+ Content data types to include in the response. If you do
# @param marketplace_id [String] The identifier for the marketplace where the A+ Content is published.
# @param included_data_set [Array<String>] The set of A+ Content data types to include in the response. If you do
# not include this parameter, the operation returns the related ASINs without metadata.
# @param [Array<String>] asin_set The set of ASINs.
# @param [String] page_token A page token from the nextPageToken response element returned by your previous call
# @param asin_set [Array<String>] The set of ASINs.
# @param page_token [String] A page token from the nextPageToken response element returned by your previous call
# to this operation. nextPageToken is returned when the results of a call exceed the page size. To get the next
# page of results, call the operation and include pageToken as the only parameter. Specifying pageToken with any
# other parameter will cause the request to fail. When no nextPageToken value is returned there are no more
# pages to return. A pageToken value is not usable across different operations.
# @param [Float] rate_limit Requests per second
# @param rate_limit [Float] Requests per second
# @return [Hash] The API response
def list_content_document_asin_relations(content_reference_key, marketplace_id, included_data_set: nil,
asin_set: nil, page_token: nil, rate_limit: 10.0)
Expand All @@ -138,12 +138,12 @@ def list_content_document_asin_relations(content_reference_key, marketplace_id,
# depending on the current set of related ASINs. Removing an ASIN has the side effect of suspending the content
# document from that ASIN.
#
# @param [String] content_reference_key The unique reference key for the A+ Content document. A content reference
# @param content_reference_key [String] The unique reference key for the A+ Content document. A content reference
# key cannot form a permalink and may change in the future. A content reference key is not guaranteed to match
# any A+ content identifier.
# @param [String] marketplace_id The identifier for the marketplace where the A+ Content is published.
# @param [Hash] post_content_document_asin_relations_request The content document ASIN relations request details.
# @param [Float] rate_limit Requests per second
# @param marketplace_id [String] The identifier for the marketplace where the A+ Content is published.
# @param post_content_document_asin_relations_request [Hash] The content document ASIN relations request details.
# @param rate_limit [Float] Requests per second
# @return [Hash] The API response
def post_content_document_asin_relations(content_reference_key, marketplace_id,
post_content_document_asin_relations_request, rate_limit: 10.0)
Expand All @@ -160,10 +160,10 @@ def post_content_document_asin_relations(content_reference_key, marketplace_id,

# Checks if the A+ Content document is valid for use on a set of ASINs.
#
# @param [String] marketplace_id The identifier for the marketplace where the A+ Content is published.
# @param [Array<String>] asin_set The set of ASINs.
# @param [Hash] post_content_document_request The content document request details.
# @param [Float] rate_limit Requests per second
# @param marketplace_id [String] The identifier for the marketplace where the A+ Content is published.
# @param asin_set [Array<String>] The set of ASINs.
# @param post_content_document_request [Hash] The content document request details.
# @param rate_limit [Float] Requests per second
# @return [Hash] The API response
def validate_content_document_asin_relations(marketplace_id, post_content_document_request, asin_set: nil,
rate_limit: 10.0)
Expand All @@ -181,14 +181,14 @@ def validate_content_document_asin_relations(marketplace_id, post_content_docume

# Searches for A+ Content publishing records, if available.
#
# @param [String] marketplace_id The identifier for the marketplace where the A+ Content is published.
# @param [String] asin The Amazon Standard Identification Number (ASIN).
# @param [String] page_token A page token from the nextPageToken response element returned by your previous call
# @param marketplace_id [String] The identifier for the marketplace where the A+ Content is published.
# @param asin [String] The Amazon Standard Identification Number (ASIN).
# @param page_token [String] A page token from the nextPageToken response element returned by your previous call
# to this operation. nextPageToken is returned when the results of a call exceed the page size. To get the next
# page of results, call the operation and include pageToken as the only parameter. Specifying pageToken with any
# other parameter will cause the request to fail. When no nextPageToken value is returned there are no more
# pages to return. A pageToken value is not usable across different operations.
# @param [Float] rate_limit Requests per second
# @param rate_limit [Float] Requests per second
# @return [Hash] The API response
def search_content_publish_records(marketplace_id, asin, page_token: nil, rate_limit: 10.0)
cannot_sandbox!
Expand All @@ -205,11 +205,11 @@ def search_content_publish_records(marketplace_id, asin, page_token: nil, rate_l

# Submits an A+ Content document for review, approval, and publishing.
#
# @param [String] content_reference_key The unique reference key for the A+ Content document. A content reference
# @param content_reference_key [String] The unique reference key for the A+ Content document. A content reference
# key cannot form a permalink and may change in the future. A content reference key is not guaranteed to match
# any A+ content identifier.
# @param [String] marketplace_id The identifier for the marketplace where the A+ Content is published.
# @param [Float] rate_limit Requests per second
# @param marketplace_id [String] The identifier for the marketplace where the A+ Content is published.
# @param rate_limit [Float] Requests per second
# @return [Hash] The API response
def post_content_document_approval_submission(content_reference_key, marketplace_id, rate_limit: 10.0)
cannot_sandbox!
Expand All @@ -225,11 +225,11 @@ def post_content_document_approval_submission(content_reference_key, marketplace
# Submits a request to suspend visible A+ Content. This neither deletes the content document nor the ASIN
# relations.
#
# @param [String] content_reference_key The unique reference key for the A+ Content document. A content reference
# @param content_reference_key [String] The unique reference key for the A+ Content document. A content reference
# key cannot form a permalink and may change in the future. A content reference key is not guaranteed to match
# any A+ content identifier.
# @param [String] marketplace_id The identifier for the marketplace where the A+ Content is published.
# @param [Float] rate_limit Requests per second
# @param marketplace_id [String] The identifier for the marketplace where the A+ Content is published.
# @param rate_limit [Float] Requests per second
# @return [Hash] The API response
def post_content_document_suspend_submission(content_reference_key, marketplace_id, rate_limit: 10.0)
cannot_sandbox!
Expand Down
2 changes: 1 addition & 1 deletion lib/peddler/api/application_management_2023_11_30.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class ApplicationManagement20231130 < API
# client
# secret](https://developer-docs.amazon.com/sp-api/v0/docs/application-management-api-v2023-11-30-use-case-guide#tutorial-rotate-your-applications-client-secret).
#
# @param [Float] rate_limit Requests per second
# @param rate_limit [Float] Requests per second
# @return [Hash] The API response
def rotate_application_client_secret(rate_limit: 0.0167)
cannot_sandbox!
Expand Down
Loading

0 comments on commit 0f1e2e4

Please sign in to comment.