Skip to content

Commit 7ec648a

Browse files
Merge pull request #9 from pazguille/feature-coupons
Added Coupons resource.
2 parents f77ce4a + fc03f43 commit 7ec648a

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,3 +73,4 @@ These are the operations available for each resource:
7373
|Queue | x | x | x | | x | x |
7474
|Refunds | x | x | x | | | |
7575
|Promotions | x | | x | | | |
76+
|Coupons | x | x | x | x | | |

lib/mango/resources.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,8 @@ class Promotions < Resource
3838
public_class_method :retrieve, :list
3939
end
4040

41+
class Coupons < Resource
42+
public_class_method :create, :retrieve, :list, :update
43+
end
44+
4145
end

mango-ruby.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Gem::Specification.new do |s|
44
s.name = "mango-ruby"
5-
s.version = "0.0.4"
5+
s.version = "0.0.5"
66
s.summary = "Ruby wrapper for Mango API"
77
s.description = "API to interact with Mango\nhttps://getmango.com/"
88
s.authors = ["Mango development team", "Joaquín Vicente"]

0 commit comments

Comments
 (0)