chargebee 2.0.9 → 2.1.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: 27285e7041f4500cf1f7de4b143204e74f6bdd26
4
- data.tar.gz: 5c4066aa3535aff304d2153900b8434289d4e794
3
+ metadata.gz: 1cf60e7dcf7ac9c9113454bc674e89ee3334388e
4
+ data.tar.gz: 0e3918e3d996e075cc4d715b440195209fe042eb
5
5
  SHA512:
6
- metadata.gz: 16a40435a4cd0ba8b4d7a57da4946071e8ca10cd339f64e38bcb4e44eea53bcf9c29315778807340ce85cc1169620053c8277e9439f0871ba191e899101ea2e7
7
- data.tar.gz: 1e28dca48c77c35caa809eca4d1c612c0a04afe07ecf248f67debccfc68942bea048313769a959bf0d9788ce7c88630be21ee7e0d5e2b915d32dcd36ffde5c66
6
+ metadata.gz: 19771914635bab6d30ee61485a19230f2773b4d36fd4bf9d96642cd604b06d2b8e98981d64e94873fc44fee7e2bfc14d246235d54e403bdeff5ef74520259876
7
+ data.tar.gz: 31d8115314524ab444dafd443fef2d76732c0a12674b82580215ea8bd503f89acaf0707fe6e1d03fe3a20f6ab7de6816b07c79ae6a56dac91224fb79b88bd97d
@@ -1,3 +1,9 @@
1
+ ###v2.1.0 (2016-07-18)
2
+ * * *
3
+ ** APIs added**:
4
+ A new endpoint to remove coupons associated with the subscription is added. See : https://apidocs.chargebee.com/docs/api/subscriptions#remove_coupons
5
+ A new endpoint to record excess payments for a customer is added. See : https://apidocs.chargebee.com/docs/api/customers#record_an_excess_payment_for_a_customer
6
+
1
7
  ###v2.0.9 (2016-07-06)
2
8
  * * *
3
9
  ** APIs added**:
@@ -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.9'
8
- s.date = '2016-07-06'
7
+ s.version = '2.1.0'
8
+ s.date = '2016-07-18'
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."
@@ -33,7 +33,7 @@ require File.dirname(__FILE__) + '/chargebee/models/download'
33
33
 
34
34
  module ChargeBee
35
35
 
36
- VERSION = '2.0.9'
36
+ VERSION = '2.1.0'
37
37
 
38
38
  @@default_env = nil
39
39
  @@verify_ca_certs = true
Binary file
@@ -69,6 +69,10 @@ module ChargeBee
69
69
  Request.send('post', uri_path("customers",id.to_s,"set_promotional_credits"), params, env, headers)
70
70
  end
71
71
 
72
+ def self.record_excess_payment(id, params, env=nil, headers={})
73
+ Request.send('post', uri_path("customers",id.to_s,"record_excess_payment"), params, env, headers)
74
+ end
75
+
72
76
  def self.delete(id, params={}, env=nil, headers={})
73
77
  Request.send('post', uri_path("customers",id.to_s,"delete"), params, env, headers)
74
78
  end
@@ -54,6 +54,10 @@ module ChargeBee
54
54
  Request.send('post', uri_path("subscriptions",id.to_s,"remove_scheduled_cancellation"), params, env, headers)
55
55
  end
56
56
 
57
+ def self.remove_coupons(id, params={}, env=nil, headers={})
58
+ Request.send('post', uri_path("subscriptions",id.to_s,"remove_coupons"), params, env, headers)
59
+ end
60
+
57
61
  def self.update(id, params={}, env=nil, headers={})
58
62
  Request.send('post', uri_path("subscriptions",id.to_s), params, env, headers)
59
63
  end
@@ -4,7 +4,7 @@ require 'json'
4
4
  module ChargeBee
5
5
  module Rest
6
6
 
7
- def self.request(method, url, env, params=nil, headers)
7
+ def self.request(method, url, env, params=nil, headers={})
8
8
  raise Error.new('No environment configured.') unless env
9
9
  api_key = env.api_key
10
10
 
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.9
4
+ version: 2.1.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: 2016-07-06 00:00:00.000000000 Z
12
+ date: 2016-07-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: json_pure