chargebee 1.1.5 → 1.1.6
Sign up to get free protection for your applications and to get access to all the features.
- data/chargebee.gemspec +3 -2
- data/lib/chargebee.rb +1 -1
- data/lib/chargebee/models/estimate.rb +31 -0
- metadata +3 -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.1.
|
8
|
-
s.date = '2013-02-
|
7
|
+
s.version = '1.1.6'
|
8
|
+
s.date = '2013-02-14'
|
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."
|
@@ -42,6 +42,7 @@ Gem::Specification.new do |s|
|
|
42
42
|
lib/chargebee/models/card.rb
|
43
43
|
lib/chargebee/models/coupon.rb
|
44
44
|
lib/chargebee/models/customer.rb
|
45
|
+
lib/chargebee/models/estimate.rb
|
45
46
|
lib/chargebee/models/event.rb
|
46
47
|
lib/chargebee/models/hosted_page.rb
|
47
48
|
lib/chargebee/models/invoice.rb
|
data/lib/chargebee.rb
CHANGED
@@ -0,0 +1,31 @@
|
|
1
|
+
module ChargeBee
|
2
|
+
class Estimate < Model
|
3
|
+
|
4
|
+
class LineItem < Model
|
5
|
+
attr_accessor :date_from, :date_to, :unit_amount, :quantity, :tax, :amount, :description
|
6
|
+
end
|
7
|
+
|
8
|
+
class Discount < Model
|
9
|
+
attr_accessor :amount, :description
|
10
|
+
end
|
11
|
+
|
12
|
+
class Tax < Model
|
13
|
+
attr_accessor :amount, :description
|
14
|
+
end
|
15
|
+
|
16
|
+
attr_accessor :created_at, :recurring, :subscription_id, :subscription_status, :term_ends_at,
|
17
|
+
:collect_now, :amount, :sub_total, :line_items, :discounts, :taxes
|
18
|
+
|
19
|
+
# OPERATIONS
|
20
|
+
#-----------
|
21
|
+
|
22
|
+
def self.create_subscription(params, env=nil)
|
23
|
+
Request.send('post', "/estimates/create_subscription", params, env)
|
24
|
+
end
|
25
|
+
|
26
|
+
def self.update_subscription(params, env=nil)
|
27
|
+
Request.send('post', "/estimates/update_subscription", params, env)
|
28
|
+
end
|
29
|
+
|
30
|
+
end # ~Estimate
|
31
|
+
end # ~ChargeBee
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: chargebee
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 1.1.
|
5
|
+
version: 1.1.6
|
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-02-
|
14
|
+
date: 2013-02-14 00:00:00 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: json_pure
|
@@ -83,6 +83,7 @@ files:
|
|
83
83
|
- lib/chargebee/models/card.rb
|
84
84
|
- lib/chargebee/models/coupon.rb
|
85
85
|
- lib/chargebee/models/customer.rb
|
86
|
+
- lib/chargebee/models/estimate.rb
|
86
87
|
- lib/chargebee/models/event.rb
|
87
88
|
- lib/chargebee/models/hosted_page.rb
|
88
89
|
- lib/chargebee/models/invoice.rb
|