chargebee 2.4.0 → 2.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +21 -0
- data/chargebee.gemspec +3 -2
- data/lib/chargebee.rb +2 -1
- data/lib/chargebee/models/coupon_code.rb +1 -1
- data/lib/chargebee/models/coupon_set.rb +38 -0
- data/lib/chargebee/models/hosted_page.rb +8 -0
- data/lib/chargebee/models/subscription.rb +1 -1
- data/lib/chargebee/result.rb +5 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c280a92f484b70c40ebc28caaa6077287e8a71d5
|
4
|
+
data.tar.gz: e65cdadff50cadc98cd8c7908dbfca4ae78bf3b6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a03c48b90c3fad334077a4e9d30b1c8c5c2e227eec4d21791d7d8dc32d9c5a79c6ba18ff31d8461dcbb3ef3c7d3b94711d996183a4a2cd23510648912c061853
|
7
|
+
data.tar.gz: 366df2572d6ed7274847c275b0f7dcd5864dc48704e725fbea39710cb6a8208dbafa47595c3916434fed89d0119c6d6d5d0884c9669e5a8a732c49cfd078b342
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,24 @@
|
|
1
|
+
### v2.4.1 (2017-11-13)
|
2
|
+
* * *
|
3
|
+
|
4
|
+
** API changes**:
|
5
|
+
* The new resource [Coupon Set](https://apidocs.chargebee.com/docs/api/coupon_sets) has been added
|
6
|
+
|
7
|
+
* The API end point create a coupon code for a coupon has been deprecated in coupon code resource
|
8
|
+
|
9
|
+
* The attribute [coupon_set_id](https://apidocs.chargebee.com/docs/api/coupon_codes#coupon_code_coupon_set_id) has been added to Coupon Code resource
|
10
|
+
|
11
|
+
* The deprecation has been removed for [Collect payment for customer](https://apidocs.chargebee.com/docs/api/customers#collect_payment_for_customer) in customer resource
|
12
|
+
|
13
|
+
* New end point Manage payment source and Collect now has been added as deprecated API to hosted page. Please mail us at support@chargebee.com to enable
|
14
|
+
|
15
|
+
** Attributes added**:
|
16
|
+
* New attribute [remaining_billing_cycles](https://apidocs.chargebee.com/docs/api/subscriptions#subscription_addons_remaining_billing_cycles) has been added in addons under subscription resource.
|
17
|
+
|
18
|
+
|
19
|
+
** Events added**:
|
20
|
+
* New event type coupon_set_created, coupon_set_updated, coupon_set_deleted, coupon_codes_added, coupon_codes_updated, coupon_codes_deleted
|
21
|
+
|
1
22
|
### v2.4.0 (2017-09-22)
|
2
23
|
* * *
|
3
24
|
|
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.4.
|
8
|
-
s.date = '2017-
|
7
|
+
s.version = '2.4.1'
|
8
|
+
s.date = '2017-11-13'
|
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."
|
@@ -43,6 +43,7 @@ Gem::Specification.new do |s|
|
|
43
43
|
lib/chargebee/models/comment.rb
|
44
44
|
lib/chargebee/models/coupon.rb
|
45
45
|
lib/chargebee/models/coupon_code.rb
|
46
|
+
lib/chargebee/models/coupon_set.rb
|
46
47
|
lib/chargebee/models/credit_note.rb
|
47
48
|
lib/chargebee/models/credit_note_estimate.rb
|
48
49
|
lib/chargebee/models/customer.rb
|
data/lib/chargebee.rb
CHANGED
@@ -27,6 +27,7 @@ require File.dirname(__FILE__) + '/chargebee/models/plan'
|
|
27
27
|
require File.dirname(__FILE__) + '/chargebee/models/addon'
|
28
28
|
require File.dirname(__FILE__) + '/chargebee/models/coupon'
|
29
29
|
require File.dirname(__FILE__) + '/chargebee/models/coupon_code'
|
30
|
+
require File.dirname(__FILE__) + '/chargebee/models/coupon_set'
|
30
31
|
require File.dirname(__FILE__) + '/chargebee/models/comment'
|
31
32
|
require File.dirname(__FILE__) + '/chargebee/models/portal_session'
|
32
33
|
require File.dirname(__FILE__) + '/chargebee/models/download'
|
@@ -38,7 +39,7 @@ require File.dirname(__FILE__) + '/chargebee/models/time_machine'
|
|
38
39
|
|
39
40
|
module ChargeBee
|
40
41
|
|
41
|
-
VERSION = '2.4.
|
42
|
+
VERSION = '2.4.1'
|
42
43
|
|
43
44
|
@@default_env = nil
|
44
45
|
@@verify_ca_certs = true
|
@@ -0,0 +1,38 @@
|
|
1
|
+
module ChargeBee
|
2
|
+
class CouponSet < Model
|
3
|
+
|
4
|
+
attr_accessor :id, :coupon_id, :name, :total_count, :redeemed_count, :archived_count, :meta_data
|
5
|
+
|
6
|
+
# OPERATIONS
|
7
|
+
#-----------
|
8
|
+
|
9
|
+
def self.create(params, env=nil, headers={})
|
10
|
+
Request.send('post', uri_path("coupon_sets"), params, env, headers)
|
11
|
+
end
|
12
|
+
|
13
|
+
def self.add_coupon_codes(id, params={}, env=nil, headers={})
|
14
|
+
Request.send('post', uri_path("coupon_sets",id.to_s,"add_coupon_codes"), params, env, headers)
|
15
|
+
end
|
16
|
+
|
17
|
+
def self.list(params={}, env=nil, headers={})
|
18
|
+
Request.send_list_request('get', uri_path("coupon_sets"), params, env, headers)
|
19
|
+
end
|
20
|
+
|
21
|
+
def self.retrieve(id, env=nil, headers={})
|
22
|
+
Request.send('get', uri_path("coupon_sets",id.to_s), {}, env, headers)
|
23
|
+
end
|
24
|
+
|
25
|
+
def self.update(id, params={}, env=nil, headers={})
|
26
|
+
Request.send('post', uri_path("coupon_sets",id.to_s,"update"), params, env, headers)
|
27
|
+
end
|
28
|
+
|
29
|
+
def self.delete(id, env=nil, headers={})
|
30
|
+
Request.send('post', uri_path("coupon_sets",id.to_s,"delete"), {}, env, headers)
|
31
|
+
end
|
32
|
+
|
33
|
+
def self.delete_unused_coupon_codes(id, env=nil, headers={})
|
34
|
+
Request.send('post', uri_path("coupon_sets",id.to_s,"delete_unused_coupon_codes"), {}, env, headers)
|
35
|
+
end
|
36
|
+
|
37
|
+
end # ~CouponSet
|
38
|
+
end # ~ChargeBee
|
@@ -34,6 +34,14 @@ module ChargeBee
|
|
34
34
|
Request.send('post', uri_path("hosted_pages","update_payment_method"), params, env, headers)
|
35
35
|
end
|
36
36
|
|
37
|
+
def self.manage_payment_sources(params, env=nil, headers={})
|
38
|
+
Request.send('post', uri_path("hosted_pages","manage_payment_sources"), params, env, headers)
|
39
|
+
end
|
40
|
+
|
41
|
+
def self.collect_now(params, env=nil, headers={})
|
42
|
+
Request.send('post', uri_path("hosted_pages","collect_now"), params, env, headers)
|
43
|
+
end
|
44
|
+
|
37
45
|
def self.acknowledge(id, env=nil, headers={})
|
38
46
|
Request.send('post', uri_path("hosted_pages",id.to_s,"acknowledge"), {}, env, headers)
|
39
47
|
end
|
data/lib/chargebee/result.rb
CHANGED
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.4.
|
4
|
+
version: 2.4.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-
|
12
|
+
date: 2017-11-13 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: json_pure
|
@@ -98,6 +98,7 @@ files:
|
|
98
98
|
- lib/chargebee/models/comment.rb
|
99
99
|
- lib/chargebee/models/coupon.rb
|
100
100
|
- lib/chargebee/models/coupon_code.rb
|
101
|
+
- lib/chargebee/models/coupon_set.rb
|
101
102
|
- lib/chargebee/models/credit_note.rb
|
102
103
|
- lib/chargebee/models/credit_note_estimate.rb
|
103
104
|
- lib/chargebee/models/customer.rb
|