chargebee 2.3.9 → 2.4.0

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: 7c471f2dbe1622f0800aecc1cdd5bf694d1d3df6
4
- data.tar.gz: 78596ac7b41f5495ba431c3cdf8c220d4deea8d2
3
+ metadata.gz: 9db3200b540a1474a92bd91f908b4e2ef32d1c96
4
+ data.tar.gz: 9634b99e26ef82102f0ebc34f1bc1972a9dacd5a
5
5
  SHA512:
6
- metadata.gz: e4bf66110ed5b96786a587e7ce4d5a9dc3e4883cb76d53cf9877c2087f81f2f0a2c948109a21dd3efc652dc57f09504d6bfd7bed59321588a4641279f3fc6409
7
- data.tar.gz: 2f7e6c3c8ec76e8976f609ecc79104d98ffff72aa7eb31147eed60f0523a35768ebce94cfd3e5fadb0e10acc4b0ff0bca1f3c9d4208aab9a841b8af04eaaaec0
6
+ metadata.gz: 0dcb0d25c5ce8cb0b36600d2403b2fc98dd78fafd4124e5d4a243badf41a957e4ea1dc171370205ffed306d7703b748424e3426d73ca1915abb358f314004f35
7
+ data.tar.gz: 7a354690e7f684545997ca8981903f743973b0fb87042ea3b1765d454aa6a41da92c0535c3adf450e5f721caee0fb42bdaeae438958b9ea9c5e5fb412097f15b
@@ -1,3 +1,15 @@
1
+ ### v2.4.0 (2017-09-22)
2
+ * * *
3
+
4
+ ** APIs added**:
5
+
6
+ New endpoint 'Collect payment for a customer' has been added as a restricted and deprecated API.
7
+
8
+ ** APIs updated**:
9
+
10
+ The attribute 'amount_to_collect' would be added to Invoice resource.
11
+ See : https://apidocs.chargebee.com/docs/api/invoices#invoice_attributes
12
+
1
13
  ### v2.3.9 (2017-09-15)
2
14
  * * *
3
15
 
@@ -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.9'
8
- s.date = '2017-09-15'
7
+ s.version = '2.4.0'
8
+ s.date = '2017-09-22'
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."
@@ -38,7 +38,7 @@ require File.dirname(__FILE__) + '/chargebee/models/time_machine'
38
38
 
39
39
  module ChargeBee
40
40
 
41
- VERSION = '2.3.9'
41
+ VERSION = '2.4.0'
42
42
 
43
43
  @@default_env = nil
44
44
  @@verify_ca_certs = true
@@ -84,6 +84,10 @@ module ChargeBee
84
84
  Request.send('post', uri_path("customers",id.to_s,"record_excess_payment"), params, env, headers)
85
85
  end
86
86
 
87
+ def self.collect_payment(id, params={}, env=nil, headers={})
88
+ Request.send('post', uri_path("customers",id.to_s,"collect_payment"), params, env, headers)
89
+ end
90
+
87
91
  def self.delete(id, params={}, env=nil, headers={})
88
92
  Request.send('post', uri_path("customers",id.to_s,"delete"), params, env, headers)
89
93
  end
@@ -57,9 +57,9 @@ module ChargeBee
57
57
  :price_type, :date, :due_date, :net_term_days, :currency_code, :total, :amount_paid, :amount_adjusted,
58
58
  :write_off_amount, :credits_applied, :amount_due, :paid_at, :dunning_status, :next_retry_at,
59
59
  :voided_at, :resource_version, :updated_at, :sub_total, :tax, :first_invoice, :has_advance_charges,
60
- :line_items, :discounts, :line_item_discounts, :taxes, :line_item_taxes, :linked_payments, :applied_credits,
61
- :adjustment_credit_notes, :issued_credit_notes, :linked_orders, :notes, :shipping_address, :billing_address,
62
- :deleted
60
+ :amount_to_collect, :line_items, :discounts, :line_item_discounts, :taxes, :line_item_taxes,
61
+ :linked_payments, :applied_credits, :adjustment_credit_notes, :issued_credit_notes, :linked_orders,
62
+ :notes, :shipping_address, :billing_address, :deleted
63
63
 
64
64
  # OPERATIONS
65
65
  #-----------
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.9
4
+ version: 2.4.0
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-09-15 00:00:00.000000000 Z
12
+ date: 2017-09-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: json_pure