chargebee 1.3.1 → 1.3.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.
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ### v1.3.2 (2014-01-26)
2
+ * * *
3
+ Support for creating plans & addons on the fly via API.
4
+
1
5
  ### v1.3.1 (2014-01-16)
2
6
  * * *
3
7
  * Adding object that represent comments resource. Now comments can be added to the entities - Subscription, Invoice, Transaction, Plan, Addon & Coupon.
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 = '1.3.1'
8
- s.date = '2014-01-16'
7
+ s.version = '1.3.2'
8
+ s.date = '2014-01-26'
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
@@ -25,7 +25,7 @@ require File.dirname(__FILE__) + '/chargebee/models/comment'
25
25
 
26
26
  module ChargeBee
27
27
 
28
- VERSION = '1.3.1'
28
+ VERSION = '1.3.2'
29
29
 
30
30
  @@default_env = nil
31
31
  @@verify_ca_certs = true
@@ -7,6 +7,10 @@ module ChargeBee
7
7
  # OPERATIONS
8
8
  #-----------
9
9
 
10
+ def self.create(params, env=nil)
11
+ Request.send('post', "/addons", params, env)
12
+ end
13
+
10
14
  def self.list(params={}, env=nil)
11
15
  Request.send('get', "/addons", params, env)
12
16
  end
@@ -7,6 +7,10 @@ module ChargeBee
7
7
  # OPERATIONS
8
8
  #-----------
9
9
 
10
+ def self.create(params, env=nil)
11
+ Request.send('post', "/plans", params, env)
12
+ end
13
+
10
14
  def self.list(params={}, env=nil)
11
15
  Request.send('get', "/plans", params, env)
12
16
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: chargebee
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 1.3.1
5
+ version: 1.3.2
6
6
  platform: ruby
7
7
  authors:
8
8
  - Rajaraman S
@@ -11,7 +11,7 @@ autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
13
 
14
- date: 2014-01-16 00:00:00 Z
14
+ date: 2014-01-26 00:00:00 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: json_pure