chargebee 2.0.5 → 2.0.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c30ccd8a64750189c31866f42029b847bfc818a9
4
- data.tar.gz: e35e308efc7411a02f392ae6c460019fad2a7131
3
+ metadata.gz: f882c7132cc02b9df01f2e861f7d2b538e8582cf
4
+ data.tar.gz: 3e3227b6bbcc434d6c55fd7e6076f0958dc8ec3c
5
5
  SHA512:
6
- metadata.gz: 8d5c53948c34a89f7cc52c0f07786d907b29fa5db22d2377a04cf43d1c50c60ee9d18fdaa825dde8d7686eea2ff78aad2f08c2ad19bdd839deb2aeaaa800a98f
7
- data.tar.gz: 3c65fdceed59e2bd3dd1273fbc5af2baf4dd3aa399006751e74823f08e0cc977554a30ad156a81556782add64935d3dcb7caab1f110aebf88eafa880bd4c89ad
6
+ metadata.gz: 0114590430a2f5c83520e8b97a72a8574f40ee7da3134a3542bade113f8a857b31d746a1cdec998923042446fecf5b1ab5ccad8c14147532dd68587362591d0d
7
+ data.tar.gz: 97ba96e4ee5cdedb0ff5bc7f300f2004ae393bb8037b7d8028772b2a43846cc6efddcef39a3fc1ed3ffafcdf4da43df365177a9e3a72ddbce0d24a8c3f81863f
data/CHANGELOG.md CHANGED
@@ -1,7 +1,14 @@
1
+ ### v2.0.6 (2016-06-16)
2
+ * * *
3
+
4
+ ** APIs updated**:
5
+ New subresource "next_invoice_estimate" is returned as part of Estimate resource.
6
+ See : https://apidocs.chargebee.com/docs/api/estimates#estimate_attributes
7
+
1
8
  ### v2.0.5 (2016-05-24)
2
9
  * * *
3
10
 
4
- #** APIs updated**:
11
+ ** APIs updated**:
5
12
 
6
13
  New attribute "currency_code" is returned as part of Credit Note resource.
7
14
  See: https://apidocs.chargebee.com/docs/api/credit_notes#credit_note_attributes
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 = '2.0.5'
8
- s.date = '2016-05-24'
7
+ s.version = '2.0.6'
8
+ s.date = '2016-06-16'
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
@@ -32,7 +32,7 @@ require File.dirname(__FILE__) + '/chargebee/models/download'
32
32
 
33
33
  module ChargeBee
34
34
 
35
- VERSION = '2.0.5'
35
+ VERSION = '2.0.6'
36
36
 
37
37
  @@default_env = nil
38
38
  @@verify_ca_certs = true
@@ -1,7 +1,8 @@
1
1
  module ChargeBee
2
2
  class Estimate < Model
3
3
 
4
- attr_accessor :created_at, :subscription_estimate, :invoice_estimate, :credit_note_estimates
4
+ attr_accessor :created_at, :subscription_estimate, :invoice_estimate, :next_invoice_estimate,
5
+ :credit_note_estimates
5
6
 
6
7
  # OPERATIONS
7
8
  #-----------
@@ -52,11 +52,13 @@ module ChargeBee
52
52
 
53
53
  def estimate()
54
54
  estimate = get(:estimate, Estimate, {},
55
- {:subscription_estimate => SubscriptionEstimate, :invoice_estimate => InvoiceEstimate, :credit_note_estimates => CreditNoteEstimate});
55
+ {:subscription_estimate => SubscriptionEstimate, :invoice_estimate => InvoiceEstimate, :next_invoice_estimate => InvoiceEstimate, :credit_note_estimates => CreditNoteEstimate});
56
56
  estimate.init_dependant(@response[:estimate], :subscription_estimate,
57
57
  {});
58
58
  estimate.init_dependant(@response[:estimate], :invoice_estimate,
59
59
  {:line_items => InvoiceEstimate::LineItem, :discounts => InvoiceEstimate::Discount, :taxes => InvoiceEstimate::Tax, :line_item_taxes => InvoiceEstimate::LineItemTax});
60
+ estimate.init_dependant(@response[:estimate], :next_invoice_estimate,
61
+ {:line_items => InvoiceEstimate::LineItem, :discounts => InvoiceEstimate::Discount, :taxes => InvoiceEstimate::Tax, :line_item_taxes => InvoiceEstimate::LineItemTax});
60
62
  estimate.init_dependant_list(@response[:estimate], :credit_note_estimates,
61
63
  {:line_items => CreditNoteEstimate::LineItem, :discounts => CreditNoteEstimate::Discount, :taxes => CreditNoteEstimate::Tax, :line_item_taxes => CreditNoteEstimate::LineItemTax});
62
64
  return estimate;
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chargebee
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.5
4
+ version: 2.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rajaraman S
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-05-24 00:00:00.000000000 Z
12
+ date: 2016-06-16 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: json_pure