chargebee 1.2.1 → 1.2.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/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.1'
8
- s.date = '2013-05-17'
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
@@ -24,7 +24,7 @@ require File.dirname(__FILE__) + '/chargebee/models/coupon'
24
24
 
25
25
  module ChargeBee
26
26
 
27
- VERSION = '1.2.1'
27
+ VERSION = '1.2.2'
28
28
 
29
29
  @@default_env = nil
30
30
  @@verify_ca_certs = true
@@ -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, :status, :masked_card_number,
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.1
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-05-17 00:00:00 Z
14
+ date: 2013-06-20 00:00:00 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: json_pure