chargebee 2.3.0 → 2.3.1

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: 13d7c1a912ee6d79d25a8ddc0cd1e34eadad2e61
4
- data.tar.gz: 08536cf91a6a436f2e58d926d9866d53b811cde4
3
+ metadata.gz: 40718463b1b3f990d9e92f2c8c2e23d0fb3f8dff
4
+ data.tar.gz: 5862b5ce054e1e4fb78ee689bf0d0bfd5b56756c
5
5
  SHA512:
6
- metadata.gz: 4558b0b625cb514110cffe92a152d5bdc44b2676921889e4d9acb8f63fd5a0112adcaa8d0a10ab0ba25fd71fca78c84992c76dea56cb1d48a2a35673c94aba8d
7
- data.tar.gz: 056c476e494dd6b832984b35d822ec89b931e12580cc8062f1f434df6f4d9b9dc5b0fdba61615850f0a1e09e0e7a3b487cec4fb2ca7b3dfc043ab5a49b3ac7d9
6
+ metadata.gz: f3cdd1383b12cc6c4ceedaf65f5b635733b1db36dbd6b564dd32481081a90843f31dc1d4a3d80ebd8c71030691547f853b1c45d1008a46029faba259a1a2a2fb
7
+ data.tar.gz: 516e88b13f16b2e936f25f67645834f0e8f34024d06c18663e95f11cfaafce95db433b20d01fd513f92ed009e4f53881651df809ae50211376a1c16131f28861
data/CHANGELOG.md CHANGED
@@ -1,3 +1,31 @@
1
+ ### v2.3.1 (2017-07-21)
2
+ * * *
3
+
4
+ ** APIs added**:
5
+
6
+ The new endpoint 'Change Billing Date' has been added to Customer resource.
7
+ See : https://apidocs.chargebee.com/docs/api/customers#change_billing_date
8
+
9
+ The new endpoints 'Upcoming invoices estimate' and 'Subscription change term end estimate' have been added to Estimate API.
10
+ See : https://apidocs.chargebee.com/docs/api/estimates#upcoming_invoices_estimate
11
+
12
+ ** APIs updated**:
13
+
14
+ The attributes 'billing_date', 'billing_date_mode', 'billing_day_of_week', 'billing_day_of_week_mode', 'unbilled_charges' have been added to the Customer resource.
15
+ See : https://apidocs.chargebee.com/docs/api/customers#customer_attributes
16
+
17
+ The event types 'unbilled_charges_created', 'unbilled_charges_voided', 'unbilled_charges_deleted' and 'unbilled_charges_invoiced' have been added.
18
+ See : https://apidocs.chargebee.com/docs/api/events#event_types
19
+
20
+ The parameter 'billing_alignment_mode' has been added to Create a subscription, Create a subscription for customer, Update a customer, Reactivate a subscription, Create subscription estimate, Create subscription for customer estimate, Update a subscription estimate, Checkout new subscription and Checkout existing subscription API.
21
+ See : https://apidocs.chargebee.com/docs/api/subscriptions#create_a_subscription
22
+
23
+ The parameters 'line_item_date_from' and 'line_item_date_to' have been added to Add Charge API.
24
+ See : https://apidocs.chargebee.com/docs/api/invoices#add_charge_item_to_pending_invoice
25
+
26
+ The parameters 'prorate' and 'invoice_immediately' have been added Change term end API.
27
+ See : https://apidocs.chargebee.com/docs/api/subscriptions#change_term_end
28
+
1
29
  ### v2.3.0 (2017-07-06)
2
30
  * * *
3
31
 
data/chargebee.gemspec CHANGED
@@ -4,8 +4,8 @@ Gem::Specification.new do |s|
4
4
  s.rubygems_version = '1.3.5'
5
5
  s.required_ruby_version = '>= 1.9.3'
6
6
  s.name = 'chargebee'
7
- s.version = '2.3.0'
8
- s.date = '2017-07-06'
7
+ s.version = '2.3.1'
8
+ s.date = '2017-07-21'
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
@@ -37,7 +37,7 @@ require File.dirname(__FILE__) + '/chargebee/models/unbilled_charge'
37
37
 
38
38
  module ChargeBee
39
39
 
40
- VERSION = '2.3.0'
40
+ VERSION = '2.3.1'
41
41
 
42
42
  @@default_env = nil
43
43
  @@verify_ca_certs = true
@@ -19,9 +19,10 @@ module ChargeBee
19
19
 
20
20
  attr_accessor :id, :first_name, :last_name, :email, :phone, :company, :vat_number, :auto_collection,
21
21
  :net_term_days, :allow_direct_debit, :created_at, :created_from_ip, :taxability, :entity_code,
22
- :exempt_number, :resource_version, :updated_at, :locale, :consolidated_invoicing, :card_status,
23
- :fraud_flag, :primary_payment_source_id, :backup_payment_source_id, :billing_address, :referral_urls,
24
- :contacts, :payment_method, :invoice_notes, :preferred_currency_code, :promotional_credits,
22
+ :exempt_number, :resource_version, :updated_at, :locale, :consolidated_invoicing, :billing_date,
23
+ :billing_date_mode, :billing_day_of_week, :billing_day_of_week_mode, :card_status, :fraud_flag,
24
+ :primary_payment_source_id, :backup_payment_source_id, :billing_address, :referral_urls, :contacts,
25
+ :payment_method, :invoice_notes, :preferred_currency_code, :promotional_credits, :unbilled_charges,
25
26
  :refundable_credits, :excess_payments, :meta_data, :deleted
26
27
 
27
28
  # OPERATIONS
@@ -91,5 +92,9 @@ module ChargeBee
91
92
  Request.send('post', uri_path("customers","move"), params, env, headers)
92
93
  end
93
94
 
95
+ def self.change_billing_date(id, params={}, env=nil, headers={})
96
+ Request.send('post', uri_path("customers",id.to_s,"change_billing_date"), params, env, headers)
97
+ end
98
+
94
99
  end # ~Customer
95
100
  end # ~ChargeBee
@@ -23,5 +23,13 @@ module ChargeBee
23
23
  Request.send('get', uri_path("subscriptions",id.to_s,"renewal_estimate"), params, env, headers)
24
24
  end
25
25
 
26
+ def self.upcoming_invoices_estimate(id, env=nil, headers={})
27
+ Request.send('get', uri_path("customers",id.to_s,"upcoming_invoices_estimate"), {}, env, headers)
28
+ end
29
+
30
+ def self.change_term_end(id, params={}, env=nil, headers={})
31
+ Request.send('post', uri_path("subscriptions",id.to_s,"change_term_end_estimate"), params, env, headers)
32
+ end
33
+
26
34
  end # ~Estimate
27
35
  end # ~ChargeBee
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.3.0
4
+ version: 2.3.1
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-07-06 00:00:00.000000000 Z
12
+ date: 2017-07-21 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: json_pure