chargebee 2.0.5 → 2.0.6
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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -1
- data/chargebee.gemspec +2 -2
- data/lib/chargebee.rb +1 -1
- data/lib/chargebee/models/estimate.rb +2 -1
- data/lib/chargebee/result.rb +3 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f882c7132cc02b9df01f2e861f7d2b538e8582cf
|
4
|
+
data.tar.gz: 3e3227b6bbcc434d6c55fd7e6076f0958dc8ec3c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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.
|
8
|
-
s.date = '2016-
|
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
@@ -1,7 +1,8 @@
|
|
1
1
|
module ChargeBee
|
2
2
|
class Estimate < Model
|
3
3
|
|
4
|
-
attr_accessor :created_at, :subscription_estimate, :invoice_estimate, :
|
4
|
+
attr_accessor :created_at, :subscription_estimate, :invoice_estimate, :next_invoice_estimate,
|
5
|
+
:credit_note_estimates
|
5
6
|
|
6
7
|
# OPERATIONS
|
7
8
|
#-----------
|
data/lib/chargebee/result.rb
CHANGED
@@ -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.
|
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-
|
12
|
+
date: 2016-06-16 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: json_pure
|