muffin_man 2.0.2 → 2.0.4
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 +4 -4
- data/CHANGELOG.md +8 -0
- data/Gemfile +2 -2
- data/README.md +1 -0
- data/lib/muffin_man/listings/v20210801.rb +28 -0
- data/lib/muffin_man/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1bdce44048eea80b8f73e98fe08af9e1c0932c072d10549df80d5eba17103e64
|
|
4
|
+
data.tar.gz: a71db4cbc2d3e5f65aa42110b771338e4d4d5c85bd5ecb8f31d6aad1f4dc4635
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: fcfd338790a4015f73cbca32bf23851c5562f5ac41aa150ac12f2cdeeaeba046ad623a90de12fde8a99a0e15d95b6ce265b51519f915da28701b2b23b0195baa
|
|
7
|
+
data.tar.gz: 03de48e4dc33360117d6a0e03e8fcf4b6270159c55b178bdac670323992dede36cd14d56e845f925470555ffae36f469e5e61a3c7e865a8d7fece71b0e87b235
|
data/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
# 2.0.4 [#52](https://github.com/patterninc/muffin_man/pull/52)
|
|
2
|
+
|
|
3
|
+
- Support for deleteListingsItem
|
|
4
|
+
|
|
5
|
+
# 2.0.3 [#50](https://github.com/patterninc/muffin_man/pull/50)
|
|
6
|
+
|
|
7
|
+
- Support for putListingsItem
|
|
8
|
+
|
|
1
9
|
# 2.0.2 [#49](https://github.com/patterninc/muffin_man/pull/49)
|
|
2
10
|
|
|
3
11
|
- Better error handling for unauthorized errors when getting LWA tokens
|
data/Gemfile
CHANGED
data/README.md
CHANGED
|
@@ -19,6 +19,34 @@ module MuffinMan
|
|
|
19
19
|
@request_type = "GET"
|
|
20
20
|
call_api
|
|
21
21
|
end
|
|
22
|
+
|
|
23
|
+
def put_listings_item(seller_id, sku, marketplace_ids, product_type, attributes, issue_locale: nil,
|
|
24
|
+
requirements: nil)
|
|
25
|
+
@local_var_path = "/listings/2021-08-01/items/#{seller_id}/#{sku}"
|
|
26
|
+
@marketplace_ids = marketplace_ids.is_a?(Array) ? marketplace_ids : [marketplace_ids]
|
|
27
|
+
@query_params = {
|
|
28
|
+
"marketplaceIds" => @marketplace_ids.join(",")
|
|
29
|
+
}
|
|
30
|
+
@query_params["issueLocale"] = issue_locale if issue_locale
|
|
31
|
+
@request_body = {
|
|
32
|
+
"productType" => product_type,
|
|
33
|
+
"attributes" => attributes
|
|
34
|
+
}
|
|
35
|
+
@request_body["requirements"] = requirements if requirements
|
|
36
|
+
@request_type = "PUT"
|
|
37
|
+
call_api
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
def delete_listings_item(seller_id, sku, marketplace_ids, issue_locale: nil)
|
|
41
|
+
@local_var_path = "/listings/2021-08-01/items/#{seller_id}/#{sku}"
|
|
42
|
+
@marketplace_ids = marketplace_ids.is_a?(Array) ? marketplace_ids : [marketplace_ids]
|
|
43
|
+
@query_params = {
|
|
44
|
+
"marketplaceIds" => @marketplace_ids.join(",")
|
|
45
|
+
}
|
|
46
|
+
@query_params["issueLocale"] = issue_locale if issue_locale
|
|
47
|
+
@request_type = "DELETE"
|
|
48
|
+
call_api
|
|
49
|
+
end
|
|
22
50
|
end
|
|
23
51
|
end
|
|
24
52
|
end
|
data/lib/muffin_man/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: muffin_man
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.0.
|
|
4
|
+
version: 2.0.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Gavin
|
|
@@ -10,7 +10,7 @@ authors:
|
|
|
10
10
|
autorequire:
|
|
11
11
|
bindir: exe
|
|
12
12
|
cert_chain: []
|
|
13
|
-
date: 2023-
|
|
13
|
+
date: 2023-06-21 00:00:00.000000000 Z
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
name: rspec
|