dooca_commerce 1.0.3 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/dooca_commerce.rb +12 -0
- 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: 69ac8fe0db3c29bd4dd00306455b950acb6fdd4d9e904c7c15c70dd9d25609ce
|
4
|
+
data.tar.gz: 2a71165d41f191332a2135496711c758e9b3df6011b504d22c00d162549141e3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a7320cb8afa53bc1b9b268a98f9e5c583cc9743151af3fb36f2f1c589e222cf8e2fbf52998e960634f6e63ff49b8e72b6555b7cd58017316c99896123fff8ea5
|
7
|
+
data.tar.gz: 837449914984dfe36ed627e2ea3a790204550341a0847472cf5b7560b57d0e7c0e34ea92ff27e59fa85130621a345cfcf8eb63e3104051f370be410143c05ca9
|
data/lib/dooca_commerce.rb
CHANGED
@@ -46,6 +46,18 @@ class DoocaCommerce
|
|
46
46
|
handler.new(response).parse!
|
47
47
|
end
|
48
48
|
|
49
|
+
def fetch_orders(query = {})
|
50
|
+
response = connection.get("/orders", query)
|
51
|
+
|
52
|
+
handler.new(response).parse!
|
53
|
+
end
|
54
|
+
|
55
|
+
def fetch_order(order_id:)
|
56
|
+
response = connection.get("/orders/#{order_id}")
|
57
|
+
|
58
|
+
handler.new(response).parse!
|
59
|
+
end
|
60
|
+
|
49
61
|
def fetch_colors(query = {})
|
50
62
|
response = connection.get("/colors", query)
|
51
63
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dooca_commerce
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Luciano Cesar Cordeiro
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-01-
|
11
|
+
date: 2022-01-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|