chargebee 1.3.3 → 1.3.4

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/CHANGELOG.md CHANGED
@@ -1,3 +1,13 @@
1
+ ### v1.3.4 (2014-02-12)
2
+ * * *
3
+ * New resource Download added to expose the URLs from which you can download resources like invoice PDFs.
4
+
5
+ * Update card hosted page now support pass_thru_parameter like the checkout pages.
6
+
7
+ * Support for downloading invoice as PDF.
8
+
9
+ * Transaction resource now exposes the void description for transactions that are voided.
10
+
1
11
  ### v1.3.3 (2014-02-02)
2
12
  * * *
3
13
  Support for refund invoice and transaction.
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.3.3'
8
- s.date = '2014-02-02'
7
+ s.version = '1.3.4'
8
+ s.date = '2014-02-12'
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."
@@ -44,6 +44,7 @@ Gem::Specification.new do |s|
44
44
  lib/chargebee/models/coupon.rb
45
45
  lib/chargebee/models/coupon_code.rb
46
46
  lib/chargebee/models/customer.rb
47
+ lib/chargebee/models/download.rb
47
48
  lib/chargebee/models/estimate.rb
48
49
  lib/chargebee/models/event.rb
49
50
  lib/chargebee/models/hosted_page.rb
data/lib/chargebee.rb CHANGED
@@ -25,7 +25,7 @@ require File.dirname(__FILE__) + '/chargebee/models/comment'
25
25
 
26
26
  module ChargeBee
27
27
 
28
- VERSION = '1.3.3'
28
+ VERSION = '1.3.4'
29
29
 
30
30
  @@default_env = nil
31
31
  @@verify_ca_certs = true
@@ -0,0 +1,10 @@
1
+ module ChargeBee
2
+ class Download < Model
3
+
4
+ attr_accessor :download_url, :valid_till
5
+
6
+ # OPERATIONS
7
+ #-----------
8
+
9
+ end # ~Download
10
+ end # ~ChargeBee
@@ -47,6 +47,10 @@ module ChargeBee
47
47
  Request.send('post', "/invoices/#{id.to_s}/add_addon_charge", params, env)
48
48
  end
49
49
 
50
+ def self.pdf(id, env=nil)
51
+ Request.send('post', "/invoices/#{id.to_s}/pdf", {}, env)
52
+ end
53
+
50
54
  def self.collect(id, env=nil)
51
55
  Request.send('post', "/invoices/#{id.to_s}/collect", {}, env)
52
56
  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, :status, :error_code, :error_text, :voided_at, :masked_card_number,
5
+ :amount, :id_at_gateway, :status, :error_code, :error_text, :voided_at, :void_description, :masked_card_number,
6
6
  :refunded_txn_id
7
7
 
8
8
  # OPERATIONS
@@ -65,6 +65,10 @@ module ChargeBee
65
65
  get(:comment, Comment);
66
66
  end
67
67
 
68
+ def download()
69
+ get(:download, Download);
70
+ end
71
+
68
72
 
69
73
  def to_s(*args)
70
74
  JSON.pretty_generate(@response)
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: chargebee
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 1.3.3
5
+ version: 1.3.4
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-02-02 00:00:00 Z
14
+ date: 2014-02-12 00:00:00 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: json_pure
@@ -85,6 +85,7 @@ files:
85
85
  - lib/chargebee/models/coupon.rb
86
86
  - lib/chargebee/models/coupon_code.rb
87
87
  - lib/chargebee/models/customer.rb
88
+ - lib/chargebee/models/download.rb
88
89
  - lib/chargebee/models/estimate.rb
89
90
  - lib/chargebee/models/event.rb
90
91
  - lib/chargebee/models/hosted_page.rb