cordial 0.1.11 → 0.1.12

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9089db5704b706616ddb2dbb61d3bf9c39ab1d1d913a65010e106392922129fd
4
- data.tar.gz: 302c5bd555e14a08724574e49e6b56d50841b3f5fcb1f5d2aa1fa84e44b676fe
3
+ metadata.gz: abc91b0ced583d2e4807f083d21c969f8c8047f12eeda2bd1a6c73a0cc493a63
4
+ data.tar.gz: 72964cb60ef7cf3724cb25470b52f94aec62ca88b53489f4a7510533458c3399
5
5
  SHA512:
6
- metadata.gz: 3ef85ffef892870a0ca98c312b87f3ab353c17f3921f6a8ae15f62382e00f8c21fa27ba6eb1cf29b84b3b639c41bf5daedbfec286dd7b8c8ccffab4332c3f79a
7
- data.tar.gz: 78d3a5ab621cc4674aba5e9b6e927da3a97c2af047ac94b6d6fc3664c237e19eaf9419e897cf2a0e163d9d1fdc4bc462465b05e180dfed05a6de8045902a05c5
6
+ metadata.gz: 961e52a54f0bb6e78fe3006923284c457933d6c5c84953d898652b3fea614b02c33257dd557d09801065c1ed9383966b757e85434d774e583ba399c11c6d6264
7
+ data.tar.gz: 8b8ca74ffa9e88e1561863c1514b93c1b782c5f2a810ec1b7c581e4a6f67bf522083434908da25df3f57bea7ecb2d119366d2103fa0d3446d5a4eb0caa932672
data/History.md CHANGED
@@ -1,3 +1,15 @@
1
+
2
+ v0.1.12 / 2018-10-04
3
+ ==================
4
+
5
+ * Add optional query to Order#index
6
+ * Add support for orders index
7
+
8
+ v0.1.11 / 2018-10-04
9
+ ==================
10
+
11
+ * Add models
12
+
1
13
  v0.1.10 / 2018-09-07
2
14
  ====================
3
15
 
@@ -52,5 +52,20 @@ module Cordial
52
52
  order = Cordial::Order.new(options)
53
53
  client.post('/orders', body: order.to_json)
54
54
  end
55
+
56
+ # List orders in Cordial
57
+ def self.index(options = {})
58
+ client.get(
59
+ '/orders',
60
+ query: {
61
+ 'fields': options[:fields],
62
+ 'cID': options[:cID],
63
+ 'email': options[:email],
64
+ 'purchaseDate': options[:purchaseDate],
65
+ 'page': options[:page],
66
+ 'per_page': options[:per_page]
67
+ }.compact
68
+ )
69
+ end
55
70
  end
56
71
  end
@@ -1,3 +1,3 @@
1
1
  module Cordial
2
- VERSION = '0.1.11'.freeze
2
+ VERSION = '0.1.12'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cordial
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.11
4
+ version: 0.1.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Hood
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-09-11 00:00:00.000000000 Z
11
+ date: 2018-10-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty