chargebee 1.4.1 → 1.4.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,13 @@
1
+ ### v1.4.2 (2014-06-19)
2
+ * * *
3
+ APIs added:
4
+ * Retrieve invoices for a customer. See https://apidocs.chargebee.com/docs/api/invoices?lang=ruby#list_invoices_for_a_customer.
5
+ * Retrieve transactions for a customer. See https://apidocs.chargebee.com/docs/api/transactions?lang=ruby#list_transactions_for_a_customer.
6
+
7
+ APIs updated:
8
+ * Now, a customer(without subscription) can be charged(Create invoice for Charge) for one time charges. See https://apidocs.chargebee.com/docs/api/invoices?lang=ruby#create_invoice_for_charge.
9
+ * Now, a customer(without subscription) can be charged for one time addons(Create invoice for Addon). See https://apidocs.chargebee.com/docs/api/invoices?lang=ruby#create_invoice_for_addon.
10
+
1
11
  ### v1.4.1 (2014-05-28)
2
12
  * * *
3
13
  New API to support Single Sign-on (SSO) to access the customer portal, if you already have your own authentication for your website. See https://apidocs.chargebee.com/docs/api/portal_sessions?lang=ruby.
@@ -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.4.1'
8
- s.date = '2014-05-28'
7
+ s.version = '1.4.2'
8
+ s.date = '2014-06-19'
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."
@@ -27,7 +27,7 @@ require File.dirname(__FILE__) + '/chargebee/models/download'
27
27
 
28
28
  module ChargeBee
29
29
 
30
- VERSION = '1.4.1'
30
+ VERSION = '1.4.2'
31
31
 
32
32
  @@default_env = nil
33
33
  @@verify_ca_certs = true
@@ -36,14 +36,14 @@ module ChargeBee
36
36
  Request.send('get', uri_path("invoices"), params, env)
37
37
  end
38
38
 
39
- def self.invoices_for_subscription(id, params={}, env=nil)
40
- Request.send('get', uri_path("subscriptions",id.to_s,"invoices"), params, env)
41
- end
42
-
43
39
  def self.invoices_for_customer(id, params={}, env=nil)
44
40
  Request.send('get', uri_path("customers",id.to_s,"invoices"), params, env)
45
41
  end
46
42
 
43
+ def self.invoices_for_subscription(id, params={}, env=nil)
44
+ Request.send('get', uri_path("subscriptions",id.to_s,"invoices"), params, env)
45
+ end
46
+
47
47
  def self.retrieve(id, env=nil)
48
48
  Request.send('get', uri_path("invoices",id.to_s), {}, env)
49
49
  end
@@ -5,9 +5,9 @@ module ChargeBee
5
5
  attr_accessor :invoice_id, :applied_amount, :invoice_date, :invoice_amount
6
6
  end
7
7
 
8
- attr_accessor :id, :subscription_id, :payment_method, :reference_number, :gateway, :description,
9
- :type, :date, :amount, :id_at_gateway, :status, :error_code, :error_text, :voided_at, :void_description,
10
- :masked_card_number, :refunded_txn_id, :linked_invoices
8
+ attr_accessor :id, :customer_id, :subscription_id, :payment_method, :reference_number, :gateway,
9
+ :description, :type, :date, :amount, :id_at_gateway, :status, :error_code, :error_text, :voided_at,
10
+ :void_description, :masked_card_number, :refunded_txn_id, :linked_invoices
11
11
 
12
12
  # OPERATIONS
13
13
  #-----------
@@ -16,6 +16,10 @@ module ChargeBee
16
16
  Request.send('get', uri_path("transactions"), params, env)
17
17
  end
18
18
 
19
+ def self.transactions_for_customer(id, params={}, env=nil)
20
+ Request.send('get', uri_path("customers",id.to_s,"transactions"), params, env)
21
+ end
22
+
19
23
  def self.transactions_for_subscription(id, params={}, env=nil)
20
24
  Request.send('get', uri_path("subscriptions",id.to_s,"transactions"), params, env)
21
25
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: chargebee
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 1.4.1
5
+ version: 1.4.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-05-28 00:00:00 Z
14
+ date: 2014-06-19 00:00:00 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: json_pure