chargebee 2.2.3 → 2.2.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +23 -0
- data/chargebee.gemspec +2 -2
- data/lib/chargebee.rb +1 -1
- data/lib/chargebee/models/subscription.rb +5 -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: 6f7ae75d70010aff50f2853bbafc987005467d4f
|
4
|
+
data.tar.gz: 8c52c3d2aedc20d5bb7f7d47dab738804ac5f17f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fc3c92e881fe357dc99455be99b06f18bdc337568d518623744459d60b02236a5eb9629dcb5198f7dbb6ffc9dc18a8c0b7267e0db2293011ccac42456ebec68f
|
7
|
+
data.tar.gz: b2d7523d56463337beaa91f89082011053de2eeffea8b0c3e8c4dcfd6257501fffd929ee79af27cca4e30e26caca28b33fba09bb1a5c7fcbb931020c3ef682a7
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,26 @@
|
|
1
|
+
###v2.2.4 (2017-01-30)
|
2
|
+
* * *
|
3
|
+
|
4
|
+
** APIs updated**:
|
5
|
+
A new reason code 'Subscription cancellation' has been added to the Credit note resource.
|
6
|
+
See : https://apidocs.chargebee.com/docs/api/credit_notes#credit_note_attributes
|
7
|
+
|
8
|
+
A attribute 'has_advance_charges' has been added to the Invoice resource and the input filter parameter 'has_advance_charges' has been added to List Invoice API.
|
9
|
+
See : https://apidocs.chargebee.com/docs/api/invoices#invoice_attributes
|
10
|
+
|
11
|
+
A new attribute 'next_billing_at' has been added to the Subscription resource.
|
12
|
+
See : https://apidocs.chargebee.com/docs/api/subscriptions#subscription_attributes
|
13
|
+
|
14
|
+
The input parameters 'terms_to_charge', 'reactivate', 'reactivate_from' have been added to Update a Subscription, Update a subscription estimate and Checkout existing hosted page APIs.
|
15
|
+
See : https://apidocs.chargebee.com/docs/api/subscriptions#update_a_subscription
|
16
|
+
|
17
|
+
The input parameter 'reactivate_from' has been added to Reactivate a subscription API.
|
18
|
+
See : https://apidocs.chargebee.com/docs/api/subscriptions#reactivate_a_subscription
|
19
|
+
|
20
|
+
** APIs added**:
|
21
|
+
A new endpoint 'Charge Future Renewals' has been added to the Subscription API.
|
22
|
+
https://apidocs.chargebee.com/docs/api/subscriptions#charge_future_renewals
|
23
|
+
|
1
24
|
###v2.2.3 (2017-01-27)
|
2
25
|
* * *
|
3
26
|
|
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.2.
|
8
|
-
s.date = '2017-01-
|
7
|
+
s.version = '2.2.4'
|
8
|
+
s.date = '2017-01-30'
|
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
@@ -15,7 +15,7 @@ module ChargeBee
|
|
15
15
|
|
16
16
|
attr_accessor :id, :customer_id, :currency_code, :plan_id, :plan_quantity, :plan_unit_price,
|
17
17
|
:setup_fee, :billing_period, :billing_period_unit, :plan_free_quantity, :status, :start_date,
|
18
|
-
:trial_start, :trial_end, :current_term_start, :current_term_end, :remaining_billing_cycles,
|
18
|
+
:trial_start, :trial_end, :current_term_start, :current_term_end, :next_billing_at, :remaining_billing_cycles,
|
19
19
|
:po_number, :created_at, :started_at, :activated_at, :cancelled_at, :cancel_reason, :affiliate_token,
|
20
20
|
:created_from_ip, :resource_version, :updated_at, :has_scheduled_changes, :due_invoices_count,
|
21
21
|
:due_since, :total_dues, :mrr, :exchange_rate, :base_currency_code, :addons, :coupon, :coupons,
|
@@ -84,6 +84,10 @@ module ChargeBee
|
|
84
84
|
Request.send('post', uri_path("subscriptions",id.to_s,"charge_addon_at_term_end"), params, env, headers)
|
85
85
|
end
|
86
86
|
|
87
|
+
def self.charge_future_renewals(id, params={}, env=nil, headers={})
|
88
|
+
Request.send('post', uri_path("subscriptions",id.to_s,"charge_future_renewals"), params, env, headers)
|
89
|
+
end
|
90
|
+
|
87
91
|
def self.import_subscription(params, env=nil, headers={})
|
88
92
|
Request.send('post', uri_path("subscriptions","import_subscription"), params, env, headers)
|
89
93
|
end
|
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.2.
|
4
|
+
version: 2.2.4
|
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: 2017-01-
|
12
|
+
date: 2017-01-30 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: json_pure
|