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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/dooca_commerce.rb +12 -0
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cf1c826816b46f397e0b43fb5022589c99a321375c281d8bde9242404a12e108
4
- data.tar.gz: 45f33a1578c46546b90d60b633ea0eade64419fb475e50a7b1c09109b71c57b8
3
+ metadata.gz: 69ac8fe0db3c29bd4dd00306455b950acb6fdd4d9e904c7c15c70dd9d25609ce
4
+ data.tar.gz: 2a71165d41f191332a2135496711c758e9b3df6011b504d22c00d162549141e3
5
5
  SHA512:
6
- metadata.gz: 702025e5c85b16a57c56a7daaaf72e3d377cbd982807170f51e92419408b2c2a173e589a40a1aef2052e06d634e7b8fd6494eb6956774b14466ddf71a6ce49d5
7
- data.tar.gz: e1931a6d934435f63a7d0abb684a6dff6bab53c7b1b0dc19570e3fdbf6ff8848be7630544d1e6278089f52582def00188433bae8f6cbf701fc1777901b5dc0de
6
+ metadata.gz: a7320cb8afa53bc1b9b268a98f9e5c583cc9743151af3fb36f2f1c589e222cf8e2fbf52998e960634f6e63ff49b8e72b6555b7cd58017316c99896123fff8ea5
7
+ data.tar.gz: 837449914984dfe36ed627e2ea3a790204550341a0847472cf5b7560b57d0e7c0e34ea92ff27e59fa85130621a345cfcf8eb63e3104051f370be410143c05ca9
@@ -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.3
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-14 00:00:00.000000000 Z
11
+ date: 2022-01-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday