chargebee 2.0.1 → 2.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/README.rdoc +2 -2
- data/chargebee.gemspec +2 -2
- data/lib/chargebee.rb +1 -1
- data/lib/chargebee/models/coupon_code.rb +5 -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: 03b981e967df2845afe5a4012f7bd25a19735b64
|
4
|
+
data.tar.gz: ec73acf89d1558036cb5c7d3b4419898b409a10f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ca9a30a8fd1812b57af85f7c89343e5964d16deb9155a9721e8ef9a73250bab9f4ef929b51e055affb7e2f1e2c6f255e34346a665a9cb4c3a9436b764bb99523
|
7
|
+
data.tar.gz: 4915512947310028191ea516a37b8869767c533709ba550a10706eb9c7a71374d64d7c761b6166011645c826080eecc93b26d148372b6ea471a8d8a31a4ba698
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,13 @@
|
|
1
|
+
### v2.0.2 (2016-05-02)
|
2
|
+
* * *
|
3
|
+
** APIs added**:
|
4
|
+
|
5
|
+
Support to archive a coupon code. See archive Coupon code API here: https://apidocs.chargebee.com/docs/api/coupon_codes#archive_a_coupon_code
|
6
|
+
|
7
|
+
** APIs updated**:
|
8
|
+
|
9
|
+
The attribute for "status" is returned as part of Coupon Code resource. See : https://apidocs.chargebee.com/docs/api/coupon_codes#coupon_code_attributes
|
10
|
+
|
1
11
|
### v2.0.1 (2016-04-29)
|
2
12
|
* * *
|
3
13
|
|
data/README.rdoc
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
= Chargebee Ruby Client Library - API V2
|
2
2
|
|
3
|
-
{<img src="https://img.shields.io/gem/
|
4
|
-
{<img src="https://img.shields.io/gem/
|
3
|
+
{<img src="https://img.shields.io/gem/v/chargebee.svg?maxAge=2592000"/>}[https://rubygems.org/gems/chargebee]
|
4
|
+
{<img src="https://img.shields.io/gem/dtv/chargebee.svg?maxAge=2592000"/>}[https://rubygems.org/gems/chargebee]
|
5
5
|
|
6
6
|
This is the Ruby Library for integrating with Chargebee. Sign up for a Chargebee account {here}[https://www.chargebee.com].
|
7
7
|
|
data/chargebee.gemspec
CHANGED
@@ -4,8 +4,8 @@ Gem::Specification.new do |s|
|
|
4
4
|
s.rubygems_version = '1.3.5'
|
5
5
|
|
6
6
|
s.name = 'chargebee'
|
7
|
-
s.version = '2.0.
|
8
|
-
s.date = '2016-
|
7
|
+
s.version = '2.0.2'
|
8
|
+
s.date = '2016-05-02'
|
9
9
|
|
10
10
|
s.summary = "Ruby client for Chargebee API."
|
11
11
|
s.description = "Subscription Billing - Simple. Secure. Affordable. More details at www.chargebee.com."
|
data/lib/chargebee.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
module ChargeBee
|
2
2
|
class CouponCode < Model
|
3
3
|
|
4
|
-
attr_accessor :code, :coupon_id, :coupon_set_name
|
4
|
+
attr_accessor :code, :status, :coupon_id, :coupon_set_name
|
5
5
|
|
6
6
|
# OPERATIONS
|
7
7
|
#-----------
|
@@ -14,5 +14,9 @@ module ChargeBee
|
|
14
14
|
Request.send('get', uri_path("coupon_codes",id.to_s), {}, env, headers)
|
15
15
|
end
|
16
16
|
|
17
|
+
def self.archive(id, env=nil, headers={})
|
18
|
+
Request.send('post', uri_path("coupon_codes",id.to_s,"archive"), {}, env, headers)
|
19
|
+
end
|
20
|
+
|
17
21
|
end # ~CouponCode
|
18
22
|
end # ~ChargeBee
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: chargebee
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rajaraman S
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-
|
12
|
+
date: 2016-05-02 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: json_pure
|