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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 332721f5c73724a60a9d60d3d09f41f9e0915024
4
- data.tar.gz: ad9fb2c953d51d5d8a79c7d98039da5b6eea5f62
3
+ metadata.gz: 6f7ae75d70010aff50f2853bbafc987005467d4f
4
+ data.tar.gz: 8c52c3d2aedc20d5bb7f7d47dab738804ac5f17f
5
5
  SHA512:
6
- metadata.gz: 927fe33f10759aafab39cdaa371f86fbe5384f43ca01c1985f5377528dbff65e37052c904f22bf7a18ea04c7aa8f637076cf2c077cad37c55fa2a8a8fdf11033
7
- data.tar.gz: 293d436daae680c7815bd99da4e1d8559fa8c98bca1191c2291e4ebcebdfe5d72606707f2e62f5c442672a4072da99280975a4c9ea42aaa1954c02b727881237
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.3'
8
- s.date = '2017-01-27'
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
@@ -33,7 +33,7 @@ require File.dirname(__FILE__) + '/chargebee/models/download'
33
33
 
34
34
  module ChargeBee
35
35
 
36
- VERSION = '2.2.3'
36
+ VERSION = '2.2.4'
37
37
 
38
38
  @@default_env = nil
39
39
  @@verify_ca_certs = true
@@ -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.3
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-27 00:00:00.000000000 Z
12
+ date: 2017-01-30 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: json_pure