chargebee 1.6.1 → 1.6.2

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: 0f1a9bc744202ae2c3a0bd267ae3089a2682de37
4
- data.tar.gz: 6d4c6853ed835e467e4a9fd58d740d08ae9e8daa
3
+ metadata.gz: a4cd41db97067c52168df4e4828412f59d85855c
4
+ data.tar.gz: 9f5522335e9070133b2c54828c08477d1b702095
5
5
  SHA512:
6
- metadata.gz: e5b3beed82df8f9a578123199222fccde14dec0d63331c7f014794bf0f62f75067f6db84d6410a1736a21aba28f870a5ed8895c94910ff56c629ed3909502745
7
- data.tar.gz: a6182b2dd4251a770bda8f8535531eaf3a9c80490c0a0ff0729edb93290af9342d42cc85cf5ea7cff07eac47fe222ca8056f52243515642d62c0137a79d1b3ed
6
+ metadata.gz: 499155b7ea8a2a7ebe2ade5bcc8154eb5fd2370e0023435da02e666eee559dd5b92e1fb5713670772f26fda6458f279d8b3d0bce7b864f9683f04b57fb9a5482
7
+ data.tar.gz: f001c2f4e77fb83bbf24b7b0c2a836eda5182941fba88f08a720ce6c7feebf81d787006308a9127ca9caeaf5b78162b8b12ecf9b98db2f51fe067fcd1f777632
data/CHANGELOG.md CHANGED
@@ -1,3 +1,18 @@
1
+ ### v1.6.2 (2015-09-07)
2
+ * * *
3
+
4
+ ** APIs updated**:
5
+
6
+ The attribute for "user" is returned as part of Event resource.
7
+ See : https://apidocs.chargebee.com/docs/api/events#event_attributes
8
+
9
+ Support for multiple webhooks. The attribute "webhooks" contains list of Webhook subresource is returned as part of Event API.
10
+ See : https://apidocs.chargebee.com/docs/api/events#event_attributes
11
+
12
+ ** APIs deprecated**:
13
+
14
+ Attributes "webhook_status" & "webhook_failure_reason" of event resource has been deprecated.
15
+
1
16
  ### v1.6.1 (2015-08-25)
2
17
  * * *
3
18
 
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 = '1.6.1'
8
- s.date = '2015-08-25'
7
+ s.version = '1.6.2'
8
+ s.date = '2015-09-07'
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
@@ -28,7 +28,7 @@ require File.dirname(__FILE__) + '/chargebee/models/download'
28
28
 
29
29
  module ChargeBee
30
30
 
31
- VERSION = '1.6.1'
31
+ VERSION = '1.6.2'
32
32
 
33
33
  @@default_env = nil
34
34
  @@verify_ca_certs = true
@@ -1,7 +1,12 @@
1
1
  module ChargeBee
2
2
  class Event < Model
3
3
 
4
- attr_accessor :id, :occurred_at, :source, :webhook_status, :webhook_failure_reason, :event_type
4
+ class Webhook < Model
5
+ attr_accessor :id, :webhook_status
6
+ end
7
+
8
+ attr_accessor :id, :occurred_at, :source, :user, :webhook_status, :webhook_failure_reason, :webhooks,
9
+ :event_type
5
10
 
6
11
  class Content < Result
7
12
  end
@@ -63,7 +63,8 @@ module ChargeBee
63
63
  end
64
64
 
65
65
  def event()
66
- get(:event, Event);
66
+ get(:event, Event,
67
+ {:webhooks => Event::Webhook});
67
68
  end
68
69
 
69
70
  def comment()
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: 1.6.1
4
+ version: 1.6.2
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: 2015-08-25 00:00:00.000000000 Z
12
+ date: 2015-09-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: json_pure