chargebee 2.0.1 → 2.0.2

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
  SHA1:
3
- metadata.gz: b11816f041213793a3f92fe930cdbbffd76f1cfc
4
- data.tar.gz: 07e71df52d17b6504f8f37a89a216e2b7d728b41
3
+ metadata.gz: 03b981e967df2845afe5a4012f7bd25a19735b64
4
+ data.tar.gz: ec73acf89d1558036cb5c7d3b4419898b409a10f
5
5
  SHA512:
6
- metadata.gz: 4312b97926c4ac31442c7829c6b23b0c35e35d03144b7cb91c3177bb1b4177069a4b8a93716d8e07bc1377f53b3953c74edec82263deecefd9238fca3cf06687
7
- data.tar.gz: 7f283ba2cd0bad812cdeb896dfbcf2b9252f6f34259f8fa1fb8994bf6b13f97c11c1b10bad4c83a2fb42a39591ab136d5575ec0bd212af88adf5f27190f0d583
6
+ metadata.gz: ca9a30a8fd1812b57af85f7c89343e5964d16deb9155a9721e8ef9a73250bab9f4ef929b51e055affb7e2f1e2c6f255e34346a665a9cb4c3a9436b764bb99523
7
+ data.tar.gz: 4915512947310028191ea516a37b8869767c533709ba550a10706eb9c7a71374d64d7c761b6166011645c826080eecc93b26d148372b6ea471a8d8a31a4ba698
@@ -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
 
@@ -1,7 +1,7 @@
1
1
  = Chargebee Ruby Client Library - API V2
2
2
 
3
- {<img src="https://img.shields.io/gem/dtv/chargebee.svg?maxAge=2592000"/>}[https://travis-ci.org/rdoc/rdoc]
4
- {<img src="https://img.shields.io/gem/v/chargebee.svg?maxAge=2592000"/>}[https://travis-ci.org/rdoc/rdoc]
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
 
@@ -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.1'
8
- s.date = '2016-04-30'
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."
@@ -32,7 +32,7 @@ require File.dirname(__FILE__) + '/chargebee/models/download'
32
32
 
33
33
  module ChargeBee
34
34
 
35
- VERSION = '2.0.1'
35
+ VERSION = '2.0.2'
36
36
 
37
37
  @@default_env = nil
38
38
  @@verify_ca_certs = true
@@ -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.1
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-04-30 00:00:00.000000000 Z
12
+ date: 2016-05-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: json_pure