peddler 4.1.1 → 4.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -12,26 +12,23 @@ module Peddler
12
12
  module APIs
13
13
  # The Selling Partner API for Finances
14
14
  #
15
- # The Selling Partner API for Finances provides financial information relevant to a seller's business. You can
16
- # obtain financial events for a given order or date range without having to wait until a statement period closes.
15
+ # The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You
16
+ # can obtain financial events for a given order or date range without having to wait until a statement period
17
+ # closes.
17
18
  class Finances20240619 < API
18
- # Returns transactions for the given parameters. Orders from the last 48 hours might not be included in financial
19
- # events.
19
+ # Returns transactions for the given parameters. It may take up to 48 hours for transactions to appear in your
20
+ # transaction events.
20
21
  #
21
22
  # @note This operation can make a static sandbox call.
22
- # @param posted_after [String] The response includes financial events posted after (or on) this date. This date
23
- # must be in [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) date-time format. The date-time
24
- # must be more than two minutes before the time of the request.
25
- # @param posted_before [String] The response includes financial events posted before (but not on) this date. This
26
- # date must be in [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) date-time format. The
27
- # date-time must be later than `PostedAfter` and more than two minutes before the request was submitted. If
28
- # `PostedAfter` and `PostedBefore` are more than 180 days apart, the response is empty. **Default:** Two minutes
29
- # before the time of the request.
30
- # @param marketplace_id [String] The ID of the marketplace from which you want to retrieve transactions.
31
- # @param next_token [String] The response includes `nextToken` when the number of results exceeds the specified
32
- # `pageSize` value. To get the next page of results, call the operation with this token and include the same
33
- # arguments as the call that produced the token. To get a complete list, call this operation until `nextToken`
34
- # is null. Note that this operation can return empty pages.
23
+ # @param posted_after [String] A date used for selecting transactions posted after (or at) a specified time. The
24
+ # date-time must be no later than two minutes before the request was submitted, in ISO 8601 date time format.
25
+ # @param posted_before [String] A date used for selecting transactions posted before (but not at) a specified
26
+ # time. The date-time must be later than PostedAfter and no later than two minutes before the request was
27
+ # submitted, in ISO 8601 date time format. If PostedAfter and PostedBefore are more than 180 days apart, no
28
+ # transactions are returned. You must specify the PostedAfter parameter if you specify the PostedBefore
29
+ # parameter. Default: Now minus two minutes.
30
+ # @param marketplace_id [String] A string token used to select Marketplace ID.
31
+ # @param next_token [String] A string token returned in the response of your previous request.
35
32
  # @param rate_limit [Float] Requests per second
36
33
  # @return [Peddler::Response] The API response
37
34
  def list_transactions(posted_after, posted_before: nil, marketplace_id: nil, next_token: nil, rate_limit: 0.5)
@@ -10,7 +10,7 @@ module Peddler
10
10
  end
11
11
 
12
12
  module APIs
13
- # Fulfillment Inbound v2024-03-20
13
+ # The Selling Partner API for FBA inbound operations.
14
14
  #
15
15
  # The Selling Partner API for Fulfillment By Amazon (FBA) Inbound. The FBA Inbound API enables building inbound
16
16
  # workflows to create, manage, and send shipments into Amazon's fulfillment network. The API has interoperability
@@ -542,7 +542,8 @@ module Peddler
542
542
  meter(rate_limit).get(path, params:)
543
543
  end
544
544
 
545
- # Cancels a self-ship appointment slot against a shipment.
545
+ # Cancels a self-ship appointment slot against a shipment. Only available in the following
546
+ # [marketplaces](https://developer-docs.amazon.com/sp-api/docs/marketplace-ids): MX, BR, EG, SA, AE, IN.
546
547
  #
547
548
  # @note This operation can make a static sandbox call.
548
549
  # @param inbound_plan_id [String] Identifier of an inbound plan.
@@ -556,7 +557,9 @@ module Peddler
556
557
  meter(rate_limit).put(path, body:)
557
558
  end
558
559
 
559
- # Retrieves a list of available self-ship appointment slots used to drop off a shipment at a warehouse.
560
+ # Retrieves a list of available self-ship appointment slots used to drop off a shipment at a warehouse. Only
561
+ # available in the following [marketplaces](https://developer-docs.amazon.com/sp-api/docs/marketplace-ids): MX,
562
+ # BR, EG, SA, AE, IN.
560
563
  #
561
564
  # @note This operation can make a static sandbox call.
562
565
  # @param inbound_plan_id [String] Identifier of an inbound plan.
@@ -579,7 +582,8 @@ module Peddler
579
582
  meter(rate_limit).get(path, params:)
580
583
  end
581
584
 
582
- # Initiates the process of generating the appointment slots list.
585
+ # Initiates the process of generating the appointment slots list. Only available in the following
586
+ # [marketplaces](https://developer-docs.amazon.com/sp-api/docs/marketplace-ids): MX, BR, EG, SA, AE, IN.
583
587
  #
584
588
  # @note This operation can make a static sandbox call.
585
589
  # @param inbound_plan_id [String] Identifier of an inbound plan.
@@ -593,7 +597,8 @@ module Peddler
593
597
  meter(rate_limit).post(path, body:)
594
598
  end
595
599
 
596
- # Confirms or reschedules a self-ship appointment slot against a shipment.
600
+ # Confirms or reschedules a self-ship appointment slot against a shipment. Only available in the following
601
+ # [marketplaces](https://developer-docs.amazon.com/sp-api/docs/marketplace-ids): MX, BR, EG, SA, AE, IN.
597
602
  #
598
603
  # @note This operation can make a static sandbox call.
599
604
  # @param inbound_plan_id [String] Identifier of an inbound plan.
@@ -15,92 +15,6 @@ module Peddler
15
15
  # The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound
16
16
  # shipments of inventory to Amazon's fulfillment network.
17
17
  class FulfillmentInboundV0 < API
18
- # Returns one or more inbound shipment plans, which provide the information you need to create one or more inbound
19
- # shipments for a set of items that you specify. Multiple inbound shipment plans might be required so that items
20
- # can be optimally placed in Amazon's fulfillment network—for example, positioning inventory closer to the
21
- # customer. Alternatively, two inbound shipment plans might be created with the same Amazon fulfillment center
22
- # destination if the two shipment plans require different processing—for example, items that require labels must
23
- # be shipped separately from stickerless, commingled inventory.
24
- #
25
- # @note This operation can make a static sandbox call.
26
- # @param body [Hash] The request schema for the CreateInboundShipmentPlanRequest operation.
27
- # @param rate_limit [Float] Requests per second
28
- # @return [Peddler::Response] The API response
29
- def create_inbound_shipment_plan(body, rate_limit: 2.0)
30
- path = "/fba/inbound/v0/plans"
31
-
32
- meter(rate_limit).post(path, body:)
33
- end
34
-
35
- # Returns a new inbound shipment based on the specified shipmentId that was returned by the
36
- # createInboundShipmentPlan operation.
37
- #
38
- # @note This operation can make a static sandbox call.
39
- # @param body [Hash] The request schema for the InboundShipmentRequest operation.
40
- # @param shipment_id [String] A shipment identifier originally returned by the createInboundShipmentPlan
41
- # operation.
42
- # @param rate_limit [Float] Requests per second
43
- # @return [Peddler::Response] The API response
44
- def create_inbound_shipment(body, shipment_id, rate_limit: 2.0)
45
- path = "/fba/inbound/v0/shipments/#{shipment_id}"
46
-
47
- meter(rate_limit).post(path, body:)
48
- end
49
-
50
- # Updates or removes items from the inbound shipment identified by the specified shipment identifier. Adding new
51
- # items is not supported.
52
- #
53
- # @note This operation can make a static sandbox call.
54
- # @param body [Hash] The request schema for the InboundShipmentRequest operation.
55
- # @param shipment_id [String] A shipment identifier originally returned by the createInboundShipmentPlan
56
- # operation.
57
- # @param rate_limit [Float] Requests per second
58
- # @return [Peddler::Response] The API response
59
- def update_inbound_shipment(body, shipment_id, rate_limit: 2.0)
60
- path = "/fba/inbound/v0/shipments/#{shipment_id}"
61
-
62
- meter(rate_limit).put(path, body:)
63
- end
64
-
65
- # Returns pre-order information, including dates, that a seller needs before confirming a shipment for pre-order.
66
- #
67
- # @note This operation can make a static sandbox call.
68
- # @param shipment_id [String] A shipment identifier originally returned by the createInboundShipmentPlan
69
- # operation.
70
- # @param marketplace_id [String] A marketplace identifier. Specifies the marketplace the shipment is tied to.
71
- # @param rate_limit [Float] Requests per second
72
- # @return [Peddler::Response] The API response
73
- def get_preorder_info(shipment_id, marketplace_id, rate_limit: 2.0)
74
- path = "/fba/inbound/v0/shipments/#{shipment_id}/preorder"
75
- params = {
76
- "MarketplaceId" => marketplace_id,
77
- }.compact
78
-
79
- meter(rate_limit).get(path, params:)
80
- end
81
-
82
- # Returns information needed to confirm a shipment for pre-order. Call this operation after calling the
83
- # getPreorderInfo operation to get the NeedByDate value and other pre-order information about the shipment.
84
- #
85
- # @note This operation can make a static sandbox call.
86
- # @param shipment_id [String] A shipment identifier originally returned by the createInboundShipmentPlan
87
- # operation.
88
- # @param need_by_date [String] Date that the shipment must arrive at the Amazon fulfillment center to avoid
89
- # delivery promise breaks for pre-ordered items. Must be in YYYY-MM-DD format. The response to the
90
- # getPreorderInfo operation returns this value.
91
- # @param marketplace_id [String] A marketplace identifier. Specifies the marketplace the shipment is tied to.
92
- # @param rate_limit [Float] Requests per second
93
- # @return [Peddler::Response] The API response
94
- def confirm_preorder(shipment_id, need_by_date, marketplace_id, rate_limit: 2.0)
95
- path = "/fba/inbound/v0/shipments/#{shipment_id}/preorder/confirm"
96
- params = {
97
- "NeedByDate" => need_by_date,
98
- "MarketplaceId" => marketplace_id,
99
- }.compact
100
-
101
- meter(rate_limit).put(path, params:)
102
- end
103
-
104
18
  # Returns labeling requirements and item preparation instructions to help prepare items for shipment to Amazon's
105
19
  # fulfillment network.
106
20
  #
@@ -132,87 +46,6 @@ module Peddler
132
46
  meter(rate_limit).get(path, params:)
133
47
  end
134
48
 
135
- # Returns current transportation information about an inbound shipment.
136
- #
137
- # @note This operation can make a static sandbox call.
138
- # @param shipment_id [String] A shipment identifier originally returned by the createInboundShipmentPlan
139
- # operation.
140
- # @param rate_limit [Float] Requests per second
141
- # @return [Peddler::Response] The API response
142
- def get_transport_details(shipment_id, rate_limit: 2.0)
143
- path = "/fba/inbound/v0/shipments/#{shipment_id}/transport"
144
-
145
- meter(rate_limit).get(path)
146
- end
147
-
148
- # Sends transportation information to Amazon about an inbound shipment.
149
- #
150
- # @note This operation can make a static sandbox call.
151
- # @param shipment_id [String] A shipment identifier originally returned by the createInboundShipmentPlan
152
- # operation.
153
- # @param body [Hash] The request schema for the PutTransportDetailsRequest operation.
154
- # @param rate_limit [Float] Requests per second
155
- # @return [Peddler::Response] The API response
156
- def put_transport_details(shipment_id, body, rate_limit: 2.0)
157
- path = "/fba/inbound/v0/shipments/#{shipment_id}/transport"
158
-
159
- meter(rate_limit).put(path, body:)
160
- end
161
-
162
- # Cancels a previously-confirmed request to ship an inbound shipment using an Amazon-partnered carrier. To be
163
- # successful, you must call this operation before the VoidDeadline date that is returned by the
164
- # getTransportDetails operation. Important: The VoidDeadline date is 24 hours after you confirm a Small Parcel
165
- # shipment transportation request or one hour after you confirm a Less Than Truckload/Full Truckload (LTL/FTL)
166
- # shipment transportation request. After the void deadline passes, your account will be charged for the shipping
167
- # cost.
168
- #
169
- # @note This operation can make a static sandbox call.
170
- # @param shipment_id [String] A shipment identifier originally returned by the createInboundShipmentPlan
171
- # operation.
172
- # @param rate_limit [Float] Requests per second
173
- # @return [Peddler::Response] The API response
174
- def void_transport(shipment_id, rate_limit: 2.0)
175
- path = "/fba/inbound/v0/shipments/#{shipment_id}/transport/void"
176
-
177
- meter(rate_limit).post(path)
178
- end
179
-
180
- # Initiates the process of estimating the shipping cost for an inbound shipment by an Amazon-partnered carrier.
181
- # Prior to calling the estimateTransport operation, you must call the putTransportDetails operation to provide
182
- # Amazon with the transportation information for the inbound shipment.
183
- #
184
- # @note This operation can make a static sandbox call.
185
- # @param shipment_id [String] A shipment identifier originally returned by the createInboundShipmentPlan
186
- # operation.
187
- # @param rate_limit [Float] Requests per second
188
- # @return [Peddler::Response] The API response
189
- def estimate_transport(shipment_id, rate_limit: 2.0)
190
- path = "/fba/inbound/v0/shipments/#{shipment_id}/transport/estimate"
191
-
192
- meter(rate_limit).post(path)
193
- end
194
-
195
- # Confirms that the seller accepts the Amazon-partnered shipping estimate, agrees to allow Amazon to charge their
196
- # account for the shipping cost, and requests that the Amazon-partnered carrier ship the inbound shipment. Prior
197
- # to calling the confirmTransport operation, you should call the getTransportDetails operation to get the
198
- # Amazon-partnered shipping estimate. Important: After confirming the transportation request, if the seller
199
- # decides that they do not want the Amazon-partnered carrier to ship the inbound shipment, you can call the
200
- # voidTransport operation to cancel the transportation request. Note that for a Small Parcel shipment, the seller
201
- # has 24 hours after confirming a transportation request to void the transportation request. For a Less Than
202
- # Truckload/Full Truckload (LTL/FTL) shipment, the seller has one hour after confirming a transportation request
203
- # to void it. After the grace period has expired the seller's account will be charged for the shipping cost.
204
- #
205
- # @note This operation can make a static sandbox call.
206
- # @param shipment_id [String] A shipment identifier originally returned by the createInboundShipmentPlan
207
- # operation.
208
- # @param rate_limit [Float] Requests per second
209
- # @return [Peddler::Response] The API response
210
- def confirm_transport(shipment_id, rate_limit: 2.0)
211
- path = "/fba/inbound/v0/shipments/#{shipment_id}/transport/confirm"
212
-
213
- meter(rate_limit).post(path)
214
- end
215
-
216
49
  # Returns package/pallet labels for faster and more accurate shipment processing at the Amazon fulfillment center.
217
50
  #
218
51
  # @note This operation can make a static sandbox call.
@@ -312,11 +145,10 @@ module Peddler
312
145
  #
313
146
  # @note This operation can make a static sandbox call.
314
147
  # @param shipment_id [String] A shipment identifier used for selecting items in a specific inbound shipment.
315
- # @param marketplace_id [String] A marketplace identifier. Specifies the marketplace where the product would be
316
- # stored.
148
+ # @param marketplace_id [String] Deprecated. Do not use.
317
149
  # @param rate_limit [Float] Requests per second
318
150
  # @return [Peddler::Response] The API response
319
- def get_shipment_items_by_shipment_id(shipment_id, marketplace_id, rate_limit: 2.0)
151
+ def get_shipment_items_by_shipment_id(shipment_id, marketplace_id: nil, rate_limit: 2.0)
320
152
  path = "/fba/inbound/v0/shipments/#{shipment_id}/items"
321
153
  params = {
322
154
  "MarketplaceId" => marketplace_id,
@@ -10,7 +10,7 @@ module Peddler
10
10
  end
11
11
 
12
12
  module APIs
13
- # Listings Items v2021-08-01
13
+ # Selling Partner API for Listings Items
14
14
  #
15
15
  # The Selling Partner API for Listings Items (Listings Items API) provides programmatic access to selling partner
16
16
  # listings on Amazon. Use this API in collaboration with the Selling Partner API for Product Type Definitions, which
@@ -69,10 +69,7 @@ module Peddler
69
69
  end
70
70
 
71
71
  # Partially update (patch) a listings item for a selling partner. Only top-level listings item attributes can be
72
- # patched. Patching nested attributes is not supported. **Note:** This operation has a throttling rate of one
73
- # request per second when `mode` is `VALIDATION_PREVIEW`. **Note:** The parameters associated with this operation
74
- # may contain special characters that must be encoded to successfully call the API. To avoid errors with SKUs when
75
- # encoding URLs, refer to [URL Encoding](https://developer-docs.amazon.com/sp-api/docs/url-encoding).
72
+ # patched. Patching nested attributes is not supported.
76
73
  #
77
74
  # @note This operation can make a static sandbox call.
78
75
  # @param seller_id [String] A selling partner identifier, such as a merchant account or vendor code.
@@ -131,6 +128,81 @@ module Peddler
131
128
 
132
129
  meter(rate_limit).put(path, body:, params:)
133
130
  end
131
+
132
+ # Search for and return a list of selling partner listings items and their respective details.
133
+ #
134
+ # @note This operation can make a static sandbox call.
135
+ # @param seller_id [String] A selling partner identifier, such as a merchant account or vendor code.
136
+ # @param marketplace_ids [Array<String>] A comma-delimited list of Amazon marketplace identifiers for the request.
137
+ # @param issue_locale [String] A locale that is used to localize issues. When not provided, the default language
138
+ # code of the first marketplace is used. Examples: "en_US", "fr_CA", "fr_FR". When a localization is not
139
+ # available in the specified locale, localized messages default to "en_US".
140
+ # @param included_data [Array<String>] A comma-delimited list of datasets that you want to include in the
141
+ # response. Default: `summaries`.
142
+ # @param identifiers [Array<String>] A comma-delimited list of product identifiers that you can use to search for
143
+ # listings items. **Note**: 1. This is required when you specify `identifiersType`. 2. You cannot use
144
+ # 'identifiers' if you specify `variationParentSku` or `packageHierarchySku`.
145
+ # @param identifiers_type [String] A type of product identifiers that you can use to search for listings items.
146
+ # **Note**: This is required when `identifiers` is provided.
147
+ # @param variation_parent_sku [String] Filters results to include listing items that are variation children of the
148
+ # specified SKU. **Note**: You cannot use `variationParentSku` if you include `identifiers` or
149
+ # `packageHierarchySku` in your request.
150
+ # @param package_hierarchy_sku [String] Filter results to include listing items that contain or are contained by
151
+ # the specified SKU. **Note**: You cannot use `packageHierarchySku` if you include `identifiers` or
152
+ # `variationParentSku` in your request.
153
+ # @param created_after [String] A date-time that is used to filter listing items. The response includes listings
154
+ # items that were created at or after this time. Values are in [ISO
155
+ # 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) date-time format.
156
+ # @param created_before [String] A date-time that is used to filter listing items. The response includes listings
157
+ # items that were created at or before this time. Values are in [ISO
158
+ # 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) date-time format.
159
+ # @param last_updated_after [String] A date-time that is used to filter listing items. The response includes
160
+ # listings items that were last updated at or after this time. Values are in [ISO
161
+ # 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) date-time format.
162
+ # @param last_updated_before [String] A date-time that is used to filter listing items. The response includes
163
+ # listings items that were last updated at or before this time. Values are in [ISO
164
+ # 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) date-time format.
165
+ # @param with_issue_severity [Array<String>] Filter results to include only listing items that have issues that
166
+ # match one or more of the specified severity levels.
167
+ # @param with_status [Array<String>] Filter results to include only listing items that have the specified status.
168
+ # @param without_status [Array<String>] Filter results to include only listing items that don't contain the
169
+ # specified statuses.
170
+ # @param sort_by [String] An attribute by which to sort the returned listing items.
171
+ # @param sort_order [String] The order in which to sort the result items.
172
+ # @param page_size [Integer] The number of results that you want to include on each page.
173
+ # @param page_token [String] A token that you can use to fetch a specific page when there are multiple pages of
174
+ # results.
175
+ # @param rate_limit [Float] Requests per second
176
+ # @return [Peddler::Response] The API response
177
+ def search_listings_items(seller_id, marketplace_ids, issue_locale: nil, included_data: ["summaries"],
178
+ identifiers: nil, identifiers_type: nil, variation_parent_sku: nil, package_hierarchy_sku: nil,
179
+ created_after: nil, created_before: nil, last_updated_after: nil, last_updated_before: nil,
180
+ with_issue_severity: nil, with_status: nil, without_status: nil, sort_by: "lastUpdatedDate", sort_order: "DESC",
181
+ page_size: 10, page_token: nil, rate_limit: 5.0)
182
+ path = "/listings/2021-08-01/items/#{seller_id}"
183
+ params = {
184
+ "marketplaceIds" => marketplace_ids,
185
+ "issueLocale" => issue_locale,
186
+ "includedData" => included_data,
187
+ "identifiers" => identifiers,
188
+ "identifiersType" => identifiers_type,
189
+ "variationParentSku" => variation_parent_sku,
190
+ "packageHierarchySku" => package_hierarchy_sku,
191
+ "createdAfter" => created_after,
192
+ "createdBefore" => created_before,
193
+ "lastUpdatedAfter" => last_updated_after,
194
+ "lastUpdatedBefore" => last_updated_before,
195
+ "withIssueSeverity" => with_issue_severity,
196
+ "withStatus" => with_status,
197
+ "withoutStatus" => without_status,
198
+ "sortBy" => sort_by,
199
+ "sortOrder" => sort_order,
200
+ "pageSize" => page_size,
201
+ "pageToken" => page_token,
202
+ }.compact
203
+
204
+ meter(rate_limit).get(path, params:)
205
+ end
134
206
  end
135
207
  end
136
208
  end
@@ -24,8 +24,8 @@ module Peddler
24
24
  # @note This operation can make a static sandbox call.
25
25
  # @param amazon_order_id [String] An Amazon order identifier. This specifies the order for which you want a list
26
26
  # of available message types.
27
- # @param marketplace_ids [Array<String>] A marketplace identifier. This specifies the marketplace in which the
28
- # order was placed. Only one marketplace can be specified.
27
+ # @param marketplace_ids [Array<String>] A marketplace identifier. This identifies the marketplace in which the
28
+ # order was placed. You can only specify one marketplace.
29
29
  # @param rate_limit [Float] Requests per second
30
30
  # @return [Peddler::Response] The API response
31
31
  def get_messaging_actions_for_order(amazon_order_id, marketplace_ids, rate_limit: 1.0)
@@ -41,11 +41,11 @@ module Peddler
41
41
  # initials, etc.
42
42
  #
43
43
  # @note This operation can make a static sandbox call.
44
- # @param amazon_order_id [String] An Amazon order identifier. This specifies the order for which a message is
44
+ # @param amazon_order_id [String] An Amazon order identifier. This identifies the order for which a message is
45
45
  # sent.
46
- # @param marketplace_ids [Array<String>] A marketplace identifier. This specifies the marketplace in which the
47
- # order was placed. Only one marketplace can be specified.
48
- # @param body [Hash]
46
+ # @param marketplace_ids [Array<String>] A marketplace identifier. This identifies the marketplace in which the
47
+ # order was placed. You can only specify one marketplace.
48
+ # @param body [Hash] This contains the message body for a message.
49
49
  # @param rate_limit [Float] Requests per second
50
50
  # @return [Peddler::Response] The API response
51
51
  def confirm_customization_details(amazon_order_id, marketplace_ids, body, rate_limit: 1.0)
@@ -60,11 +60,11 @@ module Peddler
60
60
  # Sends a message to a buyer to arrange a delivery or to confirm contact information for making a delivery.
61
61
  #
62
62
  # @note This operation can make a static sandbox call.
63
- # @param amazon_order_id [String] An Amazon order identifier. This specifies the order for which a message is
63
+ # @param amazon_order_id [String] An Amazon order identifier. This identifies the order for which a message is
64
64
  # sent.
65
- # @param marketplace_ids [Array<String>] A marketplace identifier. This specifies the marketplace in which the
66
- # order was placed. Only one marketplace can be specified.
67
- # @param body [Hash]
65
+ # @param marketplace_ids [Array<String>] A marketplace identifier. This identifies the marketplace in which the
66
+ # order was placed. You can only specify one marketplace.
67
+ # @param body [Hash] This contains the message body for a message.
68
68
  # @param rate_limit [Float] Requests per second
69
69
  # @return [Peddler::Response] The API response
70
70
  def create_confirm_delivery_details(amazon_order_id, marketplace_ids, body, rate_limit: 1.0)
@@ -80,11 +80,11 @@ module Peddler
80
80
  # This message should only be used to deliver documents that are required by law.
81
81
  #
82
82
  # @note This operation can make a static sandbox call.
83
- # @param amazon_order_id [String] An Amazon order identifier. This specifies the order for which a message is
83
+ # @param amazon_order_id [String] An Amazon order identifier. This identifies the order for which a message is
84
84
  # sent.
85
- # @param marketplace_ids [Array<String>] A marketplace identifier. This specifies the marketplace in which the
86
- # order was placed. Only one marketplace can be specified.
87
- # @param body [Hash]
85
+ # @param marketplace_ids [Array<String>] A marketplace identifier. This identifies the marketplace in which the
86
+ # order was placed. You can only specify one marketplace.
87
+ # @param body [Hash] This contains the message body for a message.
88
88
  # @param rate_limit [Float] Requests per second
89
89
  # @return [Peddler::Response] The API response
90
90
  def create_legal_disclosure(amazon_order_id, marketplace_ids, body, rate_limit: 1.0)
@@ -100,10 +100,10 @@ module Peddler
100
100
  # sent after the seller has resolved the buyer's problem.
101
101
  #
102
102
  # @note This operation can make a static sandbox call.
103
- # @param amazon_order_id [String] An Amazon order identifier. This specifies the order for which a message is
103
+ # @param amazon_order_id [String] An Amazon order identifier. This identifies the order for which a message is
104
104
  # sent.
105
- # @param marketplace_ids [Array<String>] A marketplace identifier. This specifies the marketplace in which the
106
- # order was placed. Only one marketplace can be specified.
105
+ # @param marketplace_ids [Array<String>] A marketplace identifier. This identifies the marketplace in which the
106
+ # order was placed. You can only specify one marketplace.
107
107
  # @param rate_limit [Float] Requests per second
108
108
  # @return [Peddler::Response] The API response
109
109
  def create_negative_feedback_removal(amazon_order_id, marketplace_ids, rate_limit: 1.0)
@@ -118,11 +118,11 @@ module Peddler
118
118
  # Sends a message to ask a buyer an order-related question prior to shipping their order.
119
119
  #
120
120
  # @note This operation can make a static sandbox call.
121
- # @param amazon_order_id [String] An Amazon order identifier. This specifies the order for which a message is
121
+ # @param amazon_order_id [String] An Amazon order identifier. This identifies the order for which a message is
122
122
  # sent.
123
- # @param marketplace_ids [Array<String>] A marketplace identifier. This specifies the marketplace in which the
124
- # order was placed. Only one marketplace can be specified.
125
- # @param body [Hash]
123
+ # @param marketplace_ids [Array<String>] A marketplace identifier. This identifies the marketplace in which the
124
+ # order was placed. You can only specify one marketplace.
125
+ # @param body [Hash] This contains the message body for a message.
126
126
  # @param rate_limit [Float] Requests per second
127
127
  # @return [Peddler::Response] The API response
128
128
  def create_confirm_order_details(amazon_order_id, marketplace_ids, body, rate_limit: 1.0)
@@ -138,11 +138,11 @@ module Peddler
138
138
  # service call.
139
139
  #
140
140
  # @note This operation can make a static sandbox call.
141
- # @param amazon_order_id [String] An Amazon order identifier. This specifies the order for which a message is
141
+ # @param amazon_order_id [String] An Amazon order identifier. This identifies the order for which a message is
142
142
  # sent.
143
- # @param marketplace_ids [Array<String>] A marketplace identifier. This specifies the marketplace in which the
144
- # order was placed. Only one marketplace can be specified.
145
- # @param body [Hash]
143
+ # @param marketplace_ids [Array<String>] A marketplace identifier. This identifies the marketplace in which the
144
+ # order was placed. You can only specify one marketplace.
145
+ # @param body [Hash] This contains the message body for a message.
146
146
  # @param rate_limit [Float] Requests per second
147
147
  # @return [Peddler::Response] The API response
148
148
  def create_confirm_service_details(amazon_order_id, marketplace_ids, body, rate_limit: 1.0)
@@ -158,11 +158,11 @@ module Peddler
158
158
  # Amazon Motors sellers.
159
159
  #
160
160
  # @note This operation can make a static sandbox call.
161
- # @param amazon_order_id [String] An Amazon order identifier. This specifies the order for which a message is
161
+ # @param amazon_order_id [String] An Amazon order identifier. This identifies the order for which a message is
162
162
  # sent.
163
- # @param marketplace_ids [Array<String>] A marketplace identifier. This specifies the marketplace in which the
164
- # order was placed. Only one marketplace can be specified.
165
- # @param body [Hash]
163
+ # @param marketplace_ids [Array<String>] A marketplace identifier. This identifies the marketplace in which the
164
+ # order was placed. You can only specify one marketplace.
165
+ # @param body [Hash] This contains the message body for a message.
166
166
  # @param rate_limit [Float] Requests per second
167
167
  # @return [Peddler::Response] The API response
168
168
  def create_amazon_motors(amazon_order_id, marketplace_ids, body, rate_limit: 1.0)
@@ -177,11 +177,11 @@ module Peddler
177
177
  # Sends a message to a buyer to provide details about warranty information on a purchase in their order.
178
178
  #
179
179
  # @note This operation can make a static sandbox call.
180
- # @param amazon_order_id [String] An Amazon order identifier. This specifies the order for which a message is
180
+ # @param amazon_order_id [String] An Amazon order identifier. This identifies the order for which a message is
181
181
  # sent.
182
- # @param marketplace_ids [Array<String>] A marketplace identifier. This specifies the marketplace in which the
183
- # order was placed. Only one marketplace can be specified.
184
- # @param body [Hash]
182
+ # @param marketplace_ids [Array<String>] A marketplace identifier. This identifies the marketplace in which the
183
+ # order was placed. You can only specify one marketplace.
184
+ # @param body [Hash] This contains the message body for a message.
185
185
  # @param rate_limit [Float] Requests per second
186
186
  # @return [Peddler::Response] The API response
187
187
  def create_warranty(amazon_order_id, marketplace_ids, body, rate_limit: 1.0)
@@ -196,10 +196,10 @@ module Peddler
196
196
  # Returns a response containing attributes related to an order. This includes buyer preferences.
197
197
  #
198
198
  # @note This operation can make a static sandbox call.
199
- # @param amazon_order_id [String] An Amazon order identifier. This specifies the order for which a message is
199
+ # @param amazon_order_id [String] An Amazon order identifier. This identifies the order for which a message is
200
200
  # sent.
201
- # @param marketplace_ids [Array<String>] A marketplace identifier. This specifies the marketplace in which the
202
- # order was placed. Only one marketplace can be specified.
201
+ # @param marketplace_ids [Array<String>] A marketplace identifier. This identifies the marketplace in which the
202
+ # order was placed. You can only specify one marketplace.
203
203
  # @param rate_limit [Float] Requests per second
204
204
  # @return [Peddler::Response] The API response
205
205
  def get_attributes(amazon_order_id, marketplace_ids, rate_limit: 1.0)
@@ -211,14 +211,15 @@ module Peddler
211
211
  meter(rate_limit).get(path, params:)
212
212
  end
213
213
 
214
- # Sends a message to a buyer to share a digital access key needed to utilize digital content in their order.
214
+ # Sends a buyer a message to share a digital access key that is required to utilize digital content in their
215
+ # order.
215
216
  #
216
217
  # @note This operation can make a static sandbox call.
217
- # @param amazon_order_id [String] An Amazon order identifier. This specifies the order for which a message is
218
+ # @param amazon_order_id [String] An Amazon order identifier. This identifies the order for which a message is
218
219
  # sent.
219
- # @param marketplace_ids [Array<String>] A marketplace identifier. This specifies the marketplace in which the
220
- # order was placed. Only one marketplace can be specified.
221
- # @param body [Hash]
220
+ # @param marketplace_ids [Array<String>] A marketplace identifier. This identifies the marketplace in which the
221
+ # order was placed. You can only specify one marketplace.
222
+ # @param body [Hash] This contains the message body for a message.
222
223
  # @param rate_limit [Float] Requests per second
223
224
  # @return [Peddler::Response] The API response
224
225
  def create_digital_access_key(amazon_order_id, marketplace_ids, body, rate_limit: 1.0)
@@ -234,11 +235,11 @@ module Peddler
234
235
  # order.
235
236
  #
236
237
  # @note This operation can make a static sandbox call.
237
- # @param amazon_order_id [String] An Amazon order identifier. This specifies the order for which a message is
238
+ # @param amazon_order_id [String] An Amazon order identifier. This identifies the order for which a message is
238
239
  # sent.
239
- # @param marketplace_ids [Array<String>] A marketplace identifier. This specifies the marketplace in which the
240
- # order was placed. Only one marketplace can be specified.
241
- # @param body [Hash]
240
+ # @param marketplace_ids [Array<String>] A marketplace identifier. This identifies the marketplace in which the
241
+ # order was placed. You can only specify one marketplace.
242
+ # @param body [Hash] This contains the message body for a message.
242
243
  # @param rate_limit [Float] Requests per second
243
244
  # @return [Peddler::Response] The API response
244
245
  def create_unexpected_problem(amazon_order_id, marketplace_ids, body, rate_limit: 1.0)
@@ -253,11 +254,11 @@ module Peddler
253
254
  # Sends a message providing the buyer an invoice
254
255
  #
255
256
  # @note This operation can make a static sandbox call.
256
- # @param amazon_order_id [String] An Amazon order identifier. This specifies the order for which a message is
257
+ # @param amazon_order_id [String] An Amazon order identifier. This identifies the order for which a message is
257
258
  # sent.
258
- # @param marketplace_ids [Array<String>] A marketplace identifier. This specifies the marketplace in which the
259
- # order was placed. Only one marketplace can be specified.
260
- # @param body [Hash]
259
+ # @param marketplace_ids [Array<String>] A marketplace identifier. This identifies the marketplace in which the
260
+ # order was placed. You can only specify one marketplace.
261
+ # @param body [Hash] This contains the message body for a message.
261
262
  # @return [Peddler::Response] The API response
262
263
  def send_invoice(amazon_order_id, marketplace_ids, body)
263
264
  path = "/messaging/v1/orders/#{amazon_order_id}/messages/invoice"
@@ -10,7 +10,7 @@ module Peddler
10
10
  end
11
11
 
12
12
  module APIs
13
- # Orders v0
13
+ # Selling Partner API for Orders
14
14
  #
15
15
  # Use the Orders Selling Partner API to programmatically retrieve order information. With this API, you can develop
16
16
  # fast, flexible, and custom applications to manage order synchronization, perform order research, and create
@@ -135,7 +135,7 @@ module Peddler
135
135
  # Returns the lowest priced offers for a batch of items based on ASIN.
136
136
  #
137
137
  # @note This operation can make a static sandbox call.
138
- # @param get_item_offers_batch_request_body [Hash]
138
+ # @param get_item_offers_batch_request_body [Hash] The request associated with the `getItemOffersBatch` API call.
139
139
  # @param rate_limit [Float] Requests per second
140
140
  # @return [Peddler::Response] The API response
141
141
  def get_item_offers_batch(get_item_offers_batch_request_body, rate_limit: 0.1)
@@ -148,7 +148,8 @@ module Peddler
148
148
  # Returns the lowest priced offers for a batch of listings by SKU.
149
149
  #
150
150
  # @note This operation can make a static sandbox call.
151
- # @param get_listing_offers_batch_request_body [Hash]
151
+ # @param get_listing_offers_batch_request_body [Hash] The request associated with the `getListingOffersBatch` API
152
+ # call.
152
153
  # @param rate_limit [Float] Requests per second
153
154
  # @return [Peddler::Response] The API response
154
155
  def get_listing_offers_batch(get_listing_offers_batch_request_body, rate_limit: 0.5)
@@ -10,7 +10,7 @@ module Peddler
10
10
  end
11
11
 
12
12
  module APIs
13
- # Report v2021-06-30
13
+ # Selling Partner API for Reports
14
14
  #
15
15
  # The Selling Partner API for Reports lets you retrieve and manage a variety of reports that can help selling
16
16
  # partners manage their businesses.