muffin_man 2.4.6 → 2.4.8

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 819132411595a13de678f8dbbea39e22f4b6cfcf33416d33a8344361e5d3ae2c
4
- data.tar.gz: 2b6c39ddf3d80cd0628d5d072471aa89bb7f8d45a62aaf442ac7ff897b0ffc6a
3
+ metadata.gz: 2f074702a508a2a37e3fa5da93518288415d5e0201dbb2d2a5ca635385e109ac
4
+ data.tar.gz: 5bb970ccb190c94d8aa6127a86bcda564253bef263ab76ebf6d1685eb53eb556
5
5
  SHA512:
6
- metadata.gz: ebcc4f00ba63f750a2a35fe4c698df7890264c436787e454e1496408e0ee4d79400d90cad9f90d41d4ade4ab5aa8e5e2e1dbee058816d429be3ba48b83440512
7
- data.tar.gz: 5f9da08eb4f8a0d403ef50ab7ff22e96445e3a32dd91d3325039a5983c1da40239172677323d27e7c6bbef3e1e23b1e241f4729a13299a44d6e87b74ff8a8be4
6
+ metadata.gz: df8188be5ad13d9007abe6a5ea93942d77f663c256d7c1a4a3baac3539cd6ea98936d14409643abc14fc15569102eae7a328703aa6ba449ef37c2db3d511b657
7
+ data.tar.gz: 9225837cba3b50eaaa422c61d14d571eaf0cc25e3ad8f9bb045194ad000ca607e2f41eb9d0b60df77ef7cd7d98777c2aa8cda7af6180caa336d063fde8cb20d2
data/.gitignore CHANGED
@@ -6,6 +6,7 @@
6
6
  /pkg/
7
7
  /spec/reports/
8
8
  /tmp/
9
+ /.vscode/
9
10
 
10
11
  # rspec failure tracking
11
12
  .rspec_status
data/CHANGELOG.md CHANGED
@@ -1,3 +1,13 @@
1
+ # 2.4.8
2
+
3
+ - Customer Feedback v2024-06-01 [#80] (https://github.com/patterninc/muffin_man/pull/80)
4
+ - Finances v2024-06-19 list_transactions [#81](https://github.com/patterninc/muffin_man/pull/81)
5
+ - FulFillment Inbound v2024-03-20 [#82](https://github.com/patterninc/muffin_man/pull/82)
6
+
7
+ # 2.4.7
8
+
9
+ - Correct request type for cancel_inbound_plan
10
+
1
11
  # 2.4.6 [#79](https://github.com/patterninc/muffin_man/pull/79)
2
12
 
3
13
  - Support for FulfillmentInbound delivery window options and listInboundPlanBoxes [#79](https://github.com/patterninc/muffin_man/pull/79)
data/README.md CHANGED
@@ -6,6 +6,7 @@ MuffinMan is a ruby interface to the Amazon Selling Partner API. For more inform
6
6
 
7
7
  As of now, this gem only supports portions of the following APIs with more to come:
8
8
 
9
+ - `Customer Feedback Insights API v2024-06-01 (BETA)`
9
10
  - `Amazon Warehousing and Distribution API v2024-05-09`
10
11
  - `Catalog Items API v2022-04-01`
11
12
  - `Data Kiosk API v2023-11-15`
@@ -0,0 +1,75 @@
1
+ # frozen_string_literal: true
2
+
3
+ module MuffinMan
4
+ module CustomerFeedback
5
+ class V20240601 < SpApiClient
6
+ CUSTOMER_FEEDBACK_PATH = "/customerFeedback/2024-06-01"
7
+
8
+ def get_item_review_topics(asin, sort_type, marketplace_id, params = {})
9
+ @local_var_path = "#{CUSTOMER_FEEDBACK_PATH}/items/#{asin}/reviews/topics"
10
+ @query_params = {
11
+ "marketplaceId" => marketplace_id,
12
+ "sortBy" => sort_type
13
+ }.merge(params)
14
+ @request_type = "GET"
15
+ call_api
16
+ end
17
+
18
+ def get_item_review_trends(asin, marketplace_id, params = {})
19
+ @local_var_path = "#{CUSTOMER_FEEDBACK_PATH}/items/#{asin}/reviews/trends"
20
+ @query_params = {
21
+ "marketplaceId" => marketplace_id
22
+ }.merge(params)
23
+ @request_type = "GET"
24
+ call_api
25
+ end
26
+
27
+ def get_browse_node(asin, marketplace_id, params = {})
28
+ @local_var_path = "#{CUSTOMER_FEEDBACK_PATH}/items/#{asin}/browseNode"
29
+ @query_params = {
30
+ "marketplaceId" => marketplace_id
31
+ }.merge(params)
32
+ @request_type = "GET"
33
+ call_api
34
+ end
35
+
36
+ def get_browse_node_review_topics(browse_node, sort_type, marketplace_id, params = {})
37
+ @local_var_path = "#{CUSTOMER_FEEDBACK_PATH}/browseNodes/#{browse_node}/reviews/topics"
38
+ @query_params = {
39
+ "marketplaceId" => marketplace_id,
40
+ "sortBy" => sort_type
41
+ }.merge(params)
42
+ @request_type = "GET"
43
+ call_api
44
+ end
45
+
46
+ def get_browse_node_review_trends(browse_node, marketplace_id, params = {})
47
+ @local_var_path = "#{CUSTOMER_FEEDBACK_PATH}/browseNodes/#{browse_node}/reviews/trends"
48
+ @query_params = {
49
+ "marketplaceId" => marketplace_id
50
+ }.merge(params)
51
+ @request_type = "GET"
52
+ call_api
53
+ end
54
+
55
+ def get_browse_node_return_topics(browse_node, sort_type, marketplace_id, params = {})
56
+ @local_var_path = "#{CUSTOMER_FEEDBACK_PATH}/browseNodes/#{browse_node}/returns/topics"
57
+ @query_params = {
58
+ "marketplaceId" => marketplace_id,
59
+ "sortBy" => sort_type
60
+ }.merge(params)
61
+ @request_type = "GET"
62
+ call_api
63
+ end
64
+
65
+ def get_browse_node_return_trends(browse_node, marketplace_id, params = {})
66
+ @local_var_path = "#{CUSTOMER_FEEDBACK_PATH}/browseNodes/#{browse_node}/returns/trends"
67
+ @query_params = {
68
+ "marketplaceId" => marketplace_id
69
+ }.merge(params)
70
+ @request_type = "GET"
71
+ call_api
72
+ end
73
+ end
74
+ end
75
+ end
@@ -0,0 +1,19 @@
1
+ # frozen_string_literal: true
2
+
3
+ module MuffinMan
4
+ module Finances
5
+ class V20240619 < SpApiClient
6
+ def list_transactions(posted_after:, posted_before: nil, marketplace_id: nil, next_token: nil)
7
+ @local_var_path = "/finances/2024-06-19/transactions"
8
+ @query_params = {
9
+ "postedAfter" => posted_after
10
+ }
11
+ @query_params["PostedBefore"] = posted_before unless posted_before.nil?
12
+ @query_params["marketplaceId"] = marketplace_id unless marketplace_id.nil?
13
+ @query_params["nextToken"] = next_token unless next_token.nil?
14
+ @request_type = "GET"
15
+ call_api
16
+ end
17
+ end
18
+ end
19
+ end
@@ -129,7 +129,7 @@ module MuffinMan
129
129
 
130
130
  def cancel_inbound_plan(inbound_plan_id)
131
131
  @local_var_path = "#{INBOUND_PATH}/inboundPlans/#{inbound_plan_id}/cancellation"
132
- @request_type = "POST"
132
+ @request_type = "PUT"
133
133
  call_api
134
134
  end
135
135
 
@@ -295,6 +295,13 @@ module MuffinMan
295
295
  @request_type = "GET"
296
296
  call_api
297
297
  end
298
+
299
+ def update_shipment_tracking_details(inbound_plan_id, shipment_id, body)
300
+ @local_var_path = "#{INBOUND_PATH}/inboundPlans/#{inbound_plan_id}/shipments/#{shipment_id}/trackingDetails"
301
+ @request_body = body
302
+ @request_type = "PUT"
303
+ call_api
304
+ end
298
305
  end
299
306
  end
300
307
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module MuffinMan
4
- VERSION = "2.4.6"
4
+ VERSION = "2.4.8"
5
5
  end
data/lib/muffin_man.rb CHANGED
@@ -8,6 +8,7 @@ require "muffin_man/catalog_items/v20201201"
8
8
  require "muffin_man/catalog_items/v20220401"
9
9
  require "muffin_man/data_kiosk/v20231115"
10
10
  require "muffin_man/finances/v0"
11
+ require "muffin_man/finances/v20240619"
11
12
  require "muffin_man/product_fees/v0"
12
13
  require "muffin_man/authorization/v1"
13
14
  require "muffin_man/tokens/v20210301"
@@ -34,6 +35,7 @@ require "muffin_man/vendor_invoices/v1"
34
35
  require "muffin_man/vendor_orders/v1"
35
36
  require "muffin_man/vendor_shipments/v1"
36
37
  require "muffin_man/vendor_transaction_status/v1"
38
+ require "muffin_man/customer_feedback/v20240601"
37
39
 
38
40
  module MuffinMan
39
41
  class Error < StandardError; end
metadata CHANGED
@@ -1,16 +1,16 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: muffin_man
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.4.6
4
+ version: 2.4.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gavin
8
8
  - Jason
9
9
  - Nate
10
- autorequire:
10
+ autorequire:
11
11
  bindir: exe
12
12
  cert_chain: []
13
- date: 2024-10-25 00:00:00.000000000 Z
13
+ date: 2024-11-11 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rspec
@@ -130,7 +130,7 @@ dependencies:
130
130
  - - ">="
131
131
  - !ruby/object:Gem::Version
132
132
  version: '0'
133
- description:
133
+ description:
134
134
  email:
135
135
  - gavin@pattern.com
136
136
  - jason@pattern.com
@@ -158,11 +158,13 @@ files:
158
158
  - lib/muffin_man/catalog_items/base_api.rb
159
159
  - lib/muffin_man/catalog_items/v20201201.rb
160
160
  - lib/muffin_man/catalog_items/v20220401.rb
161
+ - lib/muffin_man/customer_feedback/v20240601.rb
161
162
  - lib/muffin_man/data_kiosk/v20231115.rb
162
163
  - lib/muffin_man/enable_logger.rb
163
164
  - lib/muffin_man/fba_inventory/v1.rb
164
165
  - lib/muffin_man/feeds/v20210630.rb
165
166
  - lib/muffin_man/finances/v0.rb
167
+ - lib/muffin_man/finances/v20240619.rb
166
168
  - lib/muffin_man/fulfillment_inbound/v0.rb
167
169
  - lib/muffin_man/fulfillment_inbound/v1.rb
168
170
  - lib/muffin_man/fulfillment_inbound/v20240320.rb
@@ -205,7 +207,7 @@ homepage: https://github.com/patterninc/muffin_man
205
207
  licenses:
206
208
  - MIT
207
209
  metadata: {}
208
- post_install_message:
210
+ post_install_message:
209
211
  rdoc_options: []
210
212
  require_paths:
211
213
  - lib
@@ -220,8 +222,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
220
222
  - !ruby/object:Gem::Version
221
223
  version: '0'
222
224
  requirements: []
223
- rubygems_version: 3.1.6
224
- signing_key:
225
+ rubygems_version: 3.0.3.1
226
+ signing_key:
225
227
  specification_version: 4
226
228
  summary: Amazon Selling Partner API client
227
229
  test_files: []