chargebee 2.3.4 → 2.3.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +11 -0
- data/chargebee.gemspec +2 -2
- data/lib/chargebee.rb +1 -1
- data/lib/chargebee/models/credit_note.rb +8 -0
- data/lib/chargebee/models/invoice.rb +16 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b6a44a19c5b629c69e82e64e119b6a2149346932
|
4
|
+
data.tar.gz: 0f8182a246d89e0bb6f6b415ca2b6064622df58f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 679cb07a7b13425570a2feb8c2bf27838cd425d37d5bca22fc5baccfc1202272847ad5d7b4778fb941d62d051c16ea3c42587ff6c79392ad6e34fa7746d7c26a
|
7
|
+
data.tar.gz: ad488436d9143741d1e45dce55ae3fdf564f1a9af02ed5ab1d531a70fc43b074b5a938c5b52abb80bd8b2b1666241fd9f24eefb6cbe0c025458c3c5171f51ec7
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,14 @@
|
|
1
|
+
### v2.3.5 (2017-08-28)
|
2
|
+
* * *
|
3
|
+
|
4
|
+
** APIs added**:
|
5
|
+
|
6
|
+
The endpoints Void a credit note and Delete a credit note would be added to the Credit notes resource.
|
7
|
+
See : https://apidocs.chargebee.com/docs/api/credit_notes
|
8
|
+
|
9
|
+
The endpoints Apply payments for an invoice, Apply credits for an invoice, Remove payment from an invoice and Remove credit note from an invoice would be added to the Invoice resource.w
|
10
|
+
See : https://apidocs.chargebee.com/docs/api/invoices
|
11
|
+
|
1
12
|
### v2.3.4 (2017-08-16)
|
2
13
|
* * *
|
3
14
|
|
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.
|
8
|
-
s.date = '2017-08-
|
7
|
+
s.version = '2.3.5'
|
8
|
+
s.date = '2017-08-28'
|
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
@@ -49,6 +49,10 @@ module ChargeBee
|
|
49
49
|
Request.send('post', uri_path("credit_notes",id.to_s,"pdf"), {}, env, headers)
|
50
50
|
end
|
51
51
|
|
52
|
+
def self.void_credit_note(id, params={}, env=nil, headers={})
|
53
|
+
Request.send('post', uri_path("credit_notes",id.to_s,"void"), params, env, headers)
|
54
|
+
end
|
55
|
+
|
52
56
|
def self.list(params={}, env=nil, headers={})
|
53
57
|
Request.send_list_request('get', uri_path("credit_notes"), params, env, headers)
|
54
58
|
end
|
@@ -57,5 +61,9 @@ module ChargeBee
|
|
57
61
|
Request.send('get', uri_path("customers",id.to_s,"credit_notes"), params, env, headers)
|
58
62
|
end
|
59
63
|
|
64
|
+
def self.delete(id, params={}, env=nil, headers={})
|
65
|
+
Request.send('post', uri_path("credit_notes",id.to_s,"delete"), params, env, headers)
|
66
|
+
end
|
67
|
+
|
60
68
|
end # ~CreditNote
|
61
69
|
end # ~ChargeBee
|
@@ -84,6 +84,14 @@ module ChargeBee
|
|
84
84
|
Request.send('post', uri_path("invoices","import_invoice"), params, env, headers)
|
85
85
|
end
|
86
86
|
|
87
|
+
def self.apply_payments(id, params={}, env=nil, headers={})
|
88
|
+
Request.send('post', uri_path("invoices",id.to_s,"apply_payments"), params, env, headers)
|
89
|
+
end
|
90
|
+
|
91
|
+
def self.apply_credits(id, params={}, env=nil, headers={})
|
92
|
+
Request.send('post', uri_path("invoices",id.to_s,"apply_credits"), params, env, headers)
|
93
|
+
end
|
94
|
+
|
87
95
|
def self.list(params={}, env=nil, headers={})
|
88
96
|
Request.send_list_request('get', uri_path("invoices"), params, env, headers)
|
89
97
|
end
|
@@ -132,6 +140,14 @@ module ChargeBee
|
|
132
140
|
Request.send('post', uri_path("invoices",id.to_s,"record_refund"), params, env, headers)
|
133
141
|
end
|
134
142
|
|
143
|
+
def self.remove_payment(id, params, env=nil, headers={})
|
144
|
+
Request.send('post', uri_path("invoices",id.to_s,"remove_payment"), params, env, headers)
|
145
|
+
end
|
146
|
+
|
147
|
+
def self.remove_credit_note(id, params, env=nil, headers={})
|
148
|
+
Request.send('post', uri_path("invoices",id.to_s,"remove_credit_note"), params, env, headers)
|
149
|
+
end
|
150
|
+
|
135
151
|
def self.void_invoice(id, params={}, env=nil, headers={})
|
136
152
|
Request.send('post', uri_path("invoices",id.to_s,"void"), params, env, headers)
|
137
153
|
end
|
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.
|
4
|
+
version: 2.3.5
|
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-08-
|
12
|
+
date: 2017-08-28 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: json_pure
|