chargebee 1.2.2 → 1.2.3
Sign up to get free protection for your applications and to get access to all the features.
- data/chargebee.gemspec +2 -2
- data/lib/chargebee.rb +1 -1
- data/lib/chargebee/models/subscription.rb +4 -0
- metadata +2 -2
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.2.
|
8
|
-
s.date = '2013-
|
7
|
+
s.version = '1.2.3'
|
8
|
+
s.date = '2013-07-10'
|
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
@@ -20,6 +20,10 @@ module ChargeBee
|
|
20
20
|
Request.send('post', "/subscriptions", params, env)
|
21
21
|
end
|
22
22
|
|
23
|
+
def self.create_for_customer(id, params, env=nil)
|
24
|
+
Request.send('post', "/customers/#{id.to_s}/subscriptions", params, env)
|
25
|
+
end
|
26
|
+
|
23
27
|
def self.list(params={}, env=nil)
|
24
28
|
Request.send('get', "/subscriptions", params, env)
|
25
29
|
end
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: chargebee
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 1.2.
|
5
|
+
version: 1.2.3
|
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: 2013-
|
14
|
+
date: 2013-07-10 00:00:00 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: json_pure
|