chargebee 1.2.1 → 1.2.2
Sign up to get free protection for your applications and to get access to all the features.
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.2'
|
8
|
+
s.date = '2013-06-20'
|
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
data/lib/chargebee/model.rb
CHANGED
@@ -35,6 +35,11 @@ module ChargeBee
|
|
35
35
|
end
|
36
36
|
end
|
37
37
|
|
38
|
+
def method_missing(m, *args, &block)
|
39
|
+
puts "There's no method called #{m} #{args} here -- please try again."
|
40
|
+
puts @values
|
41
|
+
end
|
42
|
+
|
38
43
|
def self.construct(values, sub_types = {})
|
39
44
|
if(values != nil)
|
40
45
|
obj = self.new(values, sub_types)
|
@@ -3,7 +3,7 @@ module ChargeBee
|
|
3
3
|
|
4
4
|
attr_accessor :id, :name, :invoice_name, :discount_type, :discount_percentage, :discount_amount,
|
5
5
|
:discount_quantity, :duration_type, :duration_month, :max_redemptions, :status, :redemptions,
|
6
|
-
:apply_discount_on, :created_at, :archived_at, :valid_till
|
6
|
+
:apply_discount_on, :apply_on, :created_at, :archived_at, :valid_till
|
7
7
|
|
8
8
|
# OPERATIONS
|
9
9
|
#-----------
|
@@ -35,6 +35,11 @@ module ChargeBee
|
|
35
35
|
end
|
36
36
|
end
|
37
37
|
|
38
|
+
def method_missing(m, *args, &block)
|
39
|
+
puts "There's no method called #{m} #{args} here -- please try again."
|
40
|
+
puts @values
|
41
|
+
end
|
42
|
+
|
38
43
|
def self.construct(values, sub_types = {})
|
39
44
|
if(values != nil)
|
40
45
|
obj = self.new(values, sub_types)
|
@@ -32,6 +32,10 @@ module ChargeBee
|
|
32
32
|
Request.send('post', "/subscriptions/#{id.to_s}", params, env)
|
33
33
|
end
|
34
34
|
|
35
|
+
def self.change_term_end(id, params, env=nil)
|
36
|
+
Request.send('post', "/subscriptions/#{id.to_s}/change_term_end", params, env)
|
37
|
+
end
|
38
|
+
|
35
39
|
def self.cancel(id, params={}, env=nil)
|
36
40
|
Request.send('post', "/subscriptions/#{id.to_s}/cancel", params, env)
|
37
41
|
end
|
@@ -2,7 +2,7 @@ module ChargeBee
|
|
2
2
|
class Transaction < Model
|
3
3
|
|
4
4
|
attr_accessor :id, :subscription_id, :payment_method, :gateway, :description, :type, :date,
|
5
|
-
:amount, :id_at_gateway, :error_code, :error_text, :voided_at, :
|
5
|
+
:amount, :id_at_gateway, :status, :error_code, :error_text, :voided_at, :masked_card_number,
|
6
6
|
:refunded_txn_id
|
7
7
|
|
8
8
|
# OPERATIONS
|
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.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: 2013-
|
14
|
+
date: 2013-06-20 00:00:00 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: json_pure
|