accepton 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +9 -0
- data/lib/accepton/api/querying.rb +20 -0
- data/lib/accepton/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 71d2ad4d0b4dde6147bdd1cdbb4336c8856c1327
|
4
|
+
data.tar.gz: 1a2ace303f366f42e37296e860614f6fcb8f56ad
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8d5d12748a51aa3187839bcb989f77a3967b10a19f5e8aaf2b4962e4719ff9159703ada26a864db09d5b5aba48c47d5d213612c94a1df1587dae8739c73eeefe
|
7
|
+
data.tar.gz: 851ae6bb5e9e85249c044ea5436949ee2f04b1d6d9cfaebfd35f092f6ee563f77a916599e95a8cdf4c3ac7311f6fc7564de5b8f8069cd587ac833a80735192f2
|
data/CHANGELOG.md
CHANGED
@@ -6,8 +6,17 @@ scheme are considered to be bugs.
|
|
6
6
|
|
7
7
|
[semver]: http://semver.org/spec/v2.0.0.html
|
8
8
|
|
9
|
+
## [0.2.0][0.2.0] - 2015-09-18
|
10
|
+
|
11
|
+
### Added
|
12
|
+
|
13
|
+
- Added support for querying lists of promo codes.
|
14
|
+
|
9
15
|
## 0.1.0 - 2015-07-20
|
10
16
|
|
11
17
|
### Added
|
12
18
|
|
13
19
|
- Initial version.
|
20
|
+
|
21
|
+
[0.2.0]: https://github.com/accepton/accepton-ruby/compare/v0.1.0...v0.2.0
|
22
|
+
[unreleased]: https://github.com/accepton/accepton-ruby/compare/v0.2.0...HEAD
|
@@ -50,6 +50,26 @@ module AcceptOn
|
|
50
50
|
perform_get_with_object("/v1/promo_codes/#{name}", {}, AcceptOn::PromoCode)
|
51
51
|
end
|
52
52
|
|
53
|
+
# Retrieves a page of promo codes from AcceptOn
|
54
|
+
#
|
55
|
+
# @api public
|
56
|
+
#
|
57
|
+
# @example Retrieves the most recently created promo codes on the account
|
58
|
+
# client.promo_codes
|
59
|
+
#
|
60
|
+
# @param args [Hash] A hash of query parameters
|
61
|
+
# @option args [String] :order The order to sort by (asc or desc).
|
62
|
+
# @option args [String] :order_by The field to order by (e.g. created_at).
|
63
|
+
# @option args [Integer] :page The page number to retrieve.
|
64
|
+
# @option args [Integer] :per_page The size of the page to retrieve (max: 100).
|
65
|
+
# @option args [String, Symbol] :promo_type The type of promo code to filter by.
|
66
|
+
#
|
67
|
+
# @raise [AcceptOn::Error] If an API error happens
|
68
|
+
# @return [Array<AcceptOn::PromoCode>] The retrieved promo codes
|
69
|
+
def promo_codes(args = {})
|
70
|
+
perform_get_with_objects('/v1/promo_codes', args, AcceptOn::PromoCode)
|
71
|
+
end
|
72
|
+
|
53
73
|
# Retrieves a transaction token from the API
|
54
74
|
#
|
55
75
|
# @api public
|
data/lib/accepton/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: accepton
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- AcceptOn
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-09-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: hashie
|