Skip to content

Commit 689dff9

Browse files
committed
Regenerate code
Mostly updates to documentation, some changes to rate limits, plus one removed method I spotted in ListingsItems
1 parent 771da29 commit 689dff9

21 files changed

Lines changed: 108 additions & 156 deletions

lib/peddler/apis/catalog_items_2022_04_01.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ def catalog_items_2022_04_01(...)
1010
end
1111

1212
module APIs
13-
# Selling Partner API for Catalog Items
13+
# Catalog Items v2022-04-01
1414
#
1515
# The Selling Partner API for Catalog Items provides programmatic access to information about items in the Amazon
1616
# catalog. For more information, refer to the

lib/peddler/apis/easy_ship_2022_03_23.rb

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -96,20 +96,19 @@ def update_scheduled_packages(update_scheduled_packages_request: nil, rate_limit
9696
meter(rate_limit).patch(path, body:)
9797
end
9898

99-
# This operation automatically schedules a time slot for all the `amazonOrderId`s given as input, generating the
100-
# associated shipping labels, along with other compliance documents according to the marketplace (refer to the
101-
# {https://developer-docs.amazon.com/sp-api/docs/easyship-api-v2022-03-23-use-case-guide#marketplace-support-table
102-
# marketplace document support table}). Developers calling this operation may optionally assign a `packageDetails`
103-
# object, allowing them to input a preferred time slot for each order in ther request. In this case, Amazon will
104-
# try to schedule the respective packages using their optional settings. On the other hand, *i.e.*, if the time
105-
# slot is not provided, Amazon will then pick the earliest time slot possible. Regarding the shipping label's file
106-
# format, external developers are able to choose between PDF or ZPL, and Amazon will create the label accordingly.
107-
# This operation returns an array composed of the scheduled packages, and a short-lived URL pointing to a zip file
108-
# containing the generated shipping labels and the other documents enabled for your marketplace. If at least an
109-
# order couldn't be scheduled, then Amazon adds the `rejectedOrders` list into the response, which contains an
110-
# entry for each order we couldn't process. Each entry is composed of an error message describing the reason of
111-
# the failure, so that sellers can take action. The table below displays the supported request and burst maximum
112-
# rates:
99+
# This operation automatically schedules a time slot for all specified `amazonOrderId` values and generates the
100+
# associated shipping labels and compliance documents based on the marketplace. For more information, refer to the
101+
# [marketplace support
102+
# table](https://developer-docs.amazon.com/sp-api/docs/easyship-api-v2022-03-23-use-case-guide#marketplace-support-table).
103+
# You can optionally assign a `packageDetails` object to input a preferred time slot for each order in your
104+
# request. In such cases, Amazon schedules the respective packages using the specified optional settings. If you
105+
# don't specify a time slot, Amazon assigns the earliest available time slot. You can choose PDF or ZPL for your
106+
# shipping label's file format and Amazon creates the label accordingly. This operation returns an array that
107+
# contains the scheduled packages, and a temporary URL that you can use to access a ZIP file. The ZIP file
108+
# includes the generated shipping labels and any other documents that are required for your marketplace. If an
109+
# order can't be scheduled, Amazon adds the `rejectedOrders` list in the response. The response contains an entry
110+
# for each order that could not be processed. Each entry contains an error message that describes the reason for
111+
# the failure. The following table contains the supported request and burst maximum rates:
113112
#
114113
# @note This operation can make a static sandbox call.
115114
# @param create_scheduled_packages_request [Hash] The request schema for the `createScheduledPackageBulk`

lib/peddler/apis/feeds_2021_06_30.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ def feeds_2021_06_30(...)
1111
end
1212

1313
module APIs
14-
# Selling Partner API for Feeds
14+
# Feeds v2021-06-30
1515
#
1616
# The Selling Partner API for Feeds lets you upload data to Amazon on behalf of a selling partner.
1717
class Feeds20210630 < API

lib/peddler/apis/finances_v0.rb

Lines changed: 41 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -12,29 +12,26 @@ def finances_v0(...)
1212
module APIs
1313
# Selling Partner API for Finances
1414
#
15-
# The Selling Partner API for Finances provides financial information that is relevant to a seller's business. You
15+
# The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You
1616
# can obtain financial events for a given order, financial event group, or date range without having to wait until a
1717
# statement period closes. You can also obtain financial event groups for a given date range.
1818
class FinancesV0 < API
19-
# Returns financial event groups for a given date range. Orders from the last 48 hours might not be included in
19+
# Returns financial event groups for a given date range. It may take up to 48 hours for orders to appear in your
2020
# financial events.
2121
#
2222
# @note This operation can make a static sandbox call.
23-
# @param max_results_per_page [Integer] The maximum number of results per page. If the response exceeds the
24-
# maximum number of transactions or 10 MB, the response is `InvalidInput`.
25-
# @param financial_event_group_started_before [String] A date that selects financial event groups that opened
26-
# before (but not at) a specified date and time, in [ISO
27-
# 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) format. The date-time must be after
28-
# `FinancialEventGroupStartedAfter` and more than two minutes before the time of request. If
29-
# `FinancialEventGroupStartedAfter` and `FinancialEventGroupStartedBefore` are more than 180 days apart, no
23+
# @param max_results_per_page [Integer] The maximum number of results to return per page. If the response exceeds
24+
# the maximum number of transactions or 10 MB, the API responds with 'InvalidInput'.
25+
# @param financial_event_group_started_before [String] A date used for selecting financial event groups that
26+
# opened before (but not at) a specified date and time, in [ISO
27+
# 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) format. The date-time must be later than
28+
# FinancialEventGroupStartedAfter and no later than two minutes before the request was submitted. If
29+
# FinancialEventGroupStartedAfter and FinancialEventGroupStartedBefore are more than 180 days apart, no
3030
# financial event groups are returned.
31-
# @param financial_event_group_started_after [String] A date that selects financial event groups that opened after
32-
# (or at) a specified date and time, in [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601)
33-
# format. The date-time must be more than two minutes before you submit the request.
34-
# @param next_token [String] The response includes `nextToken` when the number of results exceeds the specified
35-
# `pageSize` value. To get the next page of results, call the operation with this token and include the same
36-
# arguments as the call that produced the token. To get a complete list, call this operation until `nextToken`
37-
# is null. Note that this operation can return empty pages.
31+
# @param financial_event_group_started_after [String] A date used for selecting financial event groups that opened
32+
# after (or at) a specified date and time, in [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601)
33+
# format. The date-time must be no later than two minutes before the request was submitted.
34+
# @param next_token [String] A string token returned in the response of your previous request.
3835
# @param rate_limit [Float] Requests per second
3936
# @return [Peddler::Response] The API response
4037
def list_financial_event_groups(max_results_per_page: 10, financial_event_group_started_before: nil,
@@ -50,27 +47,24 @@ def list_financial_event_groups(max_results_per_page: 10, financial_event_group_
5047
meter(rate_limit).get(path, params:)
5148
end
5249

53-
# Returns all financial events for the specified financial event group. Orders from the last 48 hours might not be
54-
# included in financial events. **Note:** This operation only retrieves a group's data for the past two years. A
55-
# request for data spanning more than two years produces an empty response.
50+
# Returns all financial events for the specified financial event group. It may take up to 48 hours for orders to
51+
# appear in your financial events. **Note:** This operation will only retrieve group's data for the past two
52+
# years. If a request is submitted for data spanning more than two years, an empty response is returned.
5653
#
5754
# @note This operation can make a static sandbox call.
5855
# @param max_results_per_page [Integer] The maximum number of results to return per page. If the response exceeds
59-
# the maximum number of transactions or 10 MB, the response is `InvalidInput`.
60-
# @param posted_after [String] The response includes financial events posted after (or on) this date. This date
61-
# must be in [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) date-time format. The date-time
62-
# must be more than two minutes before the time of the request.
63-
# @param posted_before [String] The response includes financial events posted before (but not on) this date. This
64-
# date must be in [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) date-time format. The
65-
# date-time must be later than `PostedAfter` and more than two minutes before the requestd was submitted. If
66-
# `PostedAfter` and `PostedBefore` are more than 180 days apart, the response is empty. If you include the
67-
# `PostedBefore` parameter in your request, you must also specify the `PostedAfter` parameter. **Default:** Two
68-
# minutes before the time of the request.
56+
# the maximum number of transactions or 10 MB, the API responds with 'InvalidInput'.
57+
# @param posted_after [String] A date used for selecting financial events posted after (or at) a specified time.
58+
# The date-time **must** be more than two minutes before the time of the request, in [ISO
59+
# 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) date time format.
60+
# @param posted_before [String] A date used for selecting financial events posted before (but not at) a specified
61+
# time. The date-time must be later than `PostedAfter` and no later than two minutes before the request was
62+
# submitted, in [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) date time format. If
63+
# `PostedAfter` and `PostedBefore` are more than 180 days apart, no financial events are returned. You must
64+
# specify the `PostedAfter` parameter if you specify the `PostedBefore` parameter. Default: Now minus two
65+
# minutes.
6966
# @param event_group_id [String] The identifier of the financial event group to which the events belong.
70-
# @param next_token [String] The response includes `nextToken` when the number of results exceeds the specified
71-
# `pageSize` value. To get the next page of results, call the operation with this token and include the same
72-
# arguments as the call that produced the token. To get a complete list, call this operation until `nextToken`
73-
# is null. Note that this operation can return empty pages.
67+
# @param next_token [String] A string token returned in the response of your previous request.
7468
# @param rate_limit [Float] Requests per second
7569
# @return [Peddler::Response] The API response
7670
def list_financial_events_by_group_id(event_group_id, max_results_per_page: 100, posted_after: nil,
@@ -86,17 +80,14 @@ def list_financial_events_by_group_id(event_group_id, max_results_per_page: 100,
8680
meter(rate_limit).get(path, params:)
8781
end
8882

89-
# Returns all financial events for the specified order. Orders from the last 48 hours might not be included in
83+
# Returns all financial events for the specified order. It may take up to 48 hours for orders to appear in your
9084
# financial events.
9185
#
9286
# @note This operation can make a static sandbox call.
9387
# @param order_id [String] An Amazon-defined order identifier, in 3-7-7 format.
9488
# @param max_results_per_page [Integer] The maximum number of results to return per page. If the response exceeds
95-
# the maximum number of transactions or 10 MB, the response is `InvalidInput`.
96-
# @param next_token [String] The response includes `nextToken` when the number of results exceeds the specified
97-
# `pageSize` value. To get the next page of results, call the operation with this token and include the same
98-
# arguments as the call that produced the token. To get a complete list, call this operation until `nextToken`
99-
# is null. Note that this operation can return empty pages.
89+
# the maximum number of transactions or 10 MB, the API responds with 'InvalidInput'.
90+
# @param next_token [String] A string token returned in the response of your previous request.
10091
# @param rate_limit [Float] Requests per second
10192
# @return [Peddler::Response] The API response
10293
def list_financial_events_by_order_id(order_id, max_results_per_page: 100, next_token: nil, rate_limit: 0.5)
@@ -109,26 +100,22 @@ def list_financial_events_by_order_id(order_id, max_results_per_page: 100, next_
109100
meter(rate_limit).get(path, params:)
110101
end
111102

112-
# Returns financial events for the specified data range. Orders from the last 48 hours might not be included in
103+
# Returns financial events for the specified data range. It may take up to 48 hours for orders to appear in your
113104
# financial events. **Note:** in `ListFinancialEvents`, deferred events don't show up in responses until in they
114105
# are released.
115106
#
116107
# @note This operation can make a static sandbox call.
117108
# @param max_results_per_page [Integer] The maximum number of results to return per page. If the response exceeds
118-
# the maximum number of transactions or 10 MB, the response is `InvalidInput`.
119-
# @param posted_after [String] The response includes financial events posted after (or on) this date. This date
120-
# must be in [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) date-time format. The date-time
121-
# must be more than two minutes before the time of the request.
122-
# @param posted_before [String] The response includes financial events posted before (but not on) this date. This
123-
# date must be in [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) date-time format. The
124-
# date-time must be later than `PostedAfter` and more than two minutes before the request was submitted. If
125-
# `PostedAfter` and `PostedBefore` are more than 180 days apart, the response is empty. If you include the
126-
# `PostedBefore` parameter in your request, you must also specify the `PostedAfter` parameter. **Default:** Two
127-
# minutes before the time of the request.
128-
# @param next_token [String] The response includes `nextToken` when the number of results exceeds the specified
129-
# `pageSize` value. To get the next page of results, call the operation with this token and include the same
130-
# arguments as the call that produced the token. To get a complete list, call this operation until `nextToken`
131-
# is null. Note that this operation can return empty pages.
109+
# the maximum number of transactions or 10 MB, the API responds with 'InvalidInput'.
110+
# @param posted_after [String] A date used for selecting financial events posted after (or at) a specified time.
111+
# The date-time must be no later than two minutes before the request was submitted, in [ISO
112+
# 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) date time format.
113+
# @param posted_before [String] A date used for selecting financial events posted before (but not at) a specified
114+
# time. The date-time must be later than PostedAfter and no later than two minutes before the request was
115+
# submitted, in [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) date time format. If
116+
# PostedAfter and PostedBefore are more than 180 days apart, no financial events are returned. You must specify
117+
# the PostedAfter parameter if you specify the PostedBefore parameter. Default: Now minus two minutes.
118+
# @param next_token [String] A string token returned in the response of your previous request.
132119
# @param rate_limit [Float] Requests per second
133120
# @return [Peddler::Response] The API response
134121
def list_financial_events(max_results_per_page: 100, posted_after: nil, posted_before: nil, next_token: nil,

lib/peddler/apis/fulfillment_inbound_2024_03_20.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ def fulfillment_inbound_2024_03_20(...)
1010
end
1111

1212
module APIs
13-
# The Selling Partner API for FBA inbound operations.
13+
# Fulfillment Inbound v2024-03-20
1414
#
1515
# The Selling Partner API for Fulfillment By Amazon (FBA) Inbound. The FBA Inbound API enables building inbound
1616
# workflows to create, manage, and send shipments into Amazon's fulfillment network. The API has interoperability

lib/peddler/apis/listings_items_2021_08_01.rb

Lines changed: 1 addition & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ def listings_items_2021_08_01(...)
1010
end
1111

1212
module APIs
13-
# Selling Partner API for Listings Items
13+
# Listings Items v2021-08-01
1414
#
1515
# The Selling Partner API for Listings Items (Listings Items API) provides programmatic access to selling partner
1616
# listings on Amazon. Use this API in collaboration with the Selling Partner API for Product Type Definitions, which
@@ -131,40 +131,6 @@ def put_listings_item(seller_id, sku, marketplace_ids, body, included_data: ["is
131131

132132
meter(rate_limit).put(path, body:, params:)
133133
end
134-
135-
# Search for and return list of listings items and respective details for a selling partner.
136-
#
137-
# @note This operation can make a static sandbox call.
138-
# @param seller_id [String] A selling partner identifier, such as a merchant account or vendor code.
139-
# @param marketplace_ids [Array<String>] A comma-delimited list of Amazon marketplace identifiers for the request.
140-
# @param identifiers [Array<String>] A comma-delimited list of product identifiers to search for listings items
141-
# by. **Note**: 1. Required when `identifiersType` is provided.
142-
# @param identifiers_type [String] Type of product identifiers to search for listings items by. **Note**: 1.
143-
# Required when `identifiers` is provided.
144-
# @param page_size [Integer] Number of results to be returned per page.
145-
# @param page_token [String] A token to fetch a certain page when there are multiple pages worth of results.
146-
# @param included_data [Array<String>] A comma-delimited list of data sets to include in the response. Default:
147-
# summaries.
148-
# @param issue_locale [String] A locale for localization of issues. When not provided, the default language code
149-
# of the first marketplace is used. Examples: "en_US", "fr_CA", "fr_FR". Localized messages default to "en_US"
150-
# when a localization is not available in the specified locale.
151-
# @param rate_limit [Float] Requests per second
152-
# @return [Peddler::Response] The API response
153-
def search_listings_items(seller_id, marketplace_ids, identifiers: nil, identifiers_type: nil, page_size: 10,
154-
page_token: nil, included_data: ["summaries"], issue_locale: nil, rate_limit: 5.0)
155-
path = "/listings/2021-08-01/items/#{seller_id}"
156-
params = {
157-
"marketplaceIds" => marketplace_ids,
158-
"identifiers" => identifiers,
159-
"identifiersType" => identifiers_type,
160-
"pageSize" => page_size,
161-
"pageToken" => page_token,
162-
"includedData" => included_data,
163-
"issueLocale" => issue_locale,
164-
}.compact
165-
166-
meter(rate_limit).get(path, params:)
167-
end
168134
end
169135
end
170136
end

0 commit comments

Comments
 (0)