chargebee 1.5.8 → 1.5.9
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 +4 -4
- data/CHANGELOG.md +21 -0
- data/chargebee.gemspec +2 -2
- data/lib/chargebee.rb +1 -1
- data/lib/chargebee/models/customer.rb +1 -1
- data/lib/chargebee/models/invoice.rb +4 -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: a6321eb60474bf13bf4898f36ce11f42a3745a0a
|
4
|
+
data.tar.gz: d08ac1f64d7549538ae1e855197572e1a44ede2d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cade10d64a97a56d917c6e0a7fac92e40977a9275bd3b4f861fcdaf7e3753dc0d87609317a0cc56f7dcebcedbc4747fd70b72ee6c70e42171a23d8ced8ee3038
|
7
|
+
data.tar.gz: 50a625bbd787180b19107af22feac15481c4d3a78e21f7264ec6f9e876c13deb9db2ab1a45c66c507bc36c75627d192356d0ee6eac09f831a84f8d0b3fe76f3d
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,24 @@
|
|
1
|
+
### v1.5.9 (2015-07-09)
|
2
|
+
* * *
|
3
|
+
|
4
|
+
** APIs added**:
|
5
|
+
|
6
|
+
New api endpoint to Record Offline Refund for an invoice is added. See : https://apidocs.chargebee.com/docs/api/invoices#record_refund_for_an_invoice
|
7
|
+
|
8
|
+
** APIs updated**:
|
9
|
+
|
10
|
+
Support to update payment method stored in gateway vault. Now, update payment method for a customer, create customer, create & update subscription method APIs accept the "gateway" parameter for Payment Method resource along with reference_id. See "Card Payments" section here : https://apidocs.chargebee.com/docs/api/customers#update_payment_method_for_a_customer
|
11
|
+
|
12
|
+
The attribute for "gateway" name is returned as part of Payment Method sub-resource for a customer resource. See : https://apidocs.chargebee.com/docs/api/customers#customer_attributes
|
13
|
+
|
14
|
+
A new source type "migration" is returned as part of "source" attribute of event resource. See : https://apidocs.chargebee.com/docs/api/events#event_attributes
|
15
|
+
|
16
|
+
A new discount type "account_credits" is added as part of "type" attribute of discounts sub-resource for estimate resource.
|
17
|
+
|
18
|
+
** APIs deprecated**:
|
19
|
+
|
20
|
+
Attributes "description" & "void_description" of transaction resource has been deprecated.
|
21
|
+
|
1
22
|
### v1.5.8 (2015-06-18)
|
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
|
|
6
6
|
s.name = 'chargebee'
|
7
|
-
s.version = '1.5.
|
8
|
-
s.date = '2015-
|
7
|
+
s.version = '1.5.9'
|
8
|
+
s.date = '2015-07-10'
|
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
@@ -6,7 +6,7 @@ module ChargeBee
|
|
6
6
|
end
|
7
7
|
|
8
8
|
class PaymentMethod < Model
|
9
|
-
attr_accessor :type, :status, :reference_id
|
9
|
+
attr_accessor :type, :gateway, :status, :reference_id
|
10
10
|
end
|
11
11
|
|
12
12
|
attr_accessor :id, :first_name, :last_name, :email, :phone, :company, :vat_number, :auto_collection,
|
@@ -92,6 +92,10 @@ module ChargeBee
|
|
92
92
|
Request.send('post', uri_path("invoices",id.to_s,"refund"), params, env, headers)
|
93
93
|
end
|
94
94
|
|
95
|
+
def self.record_refund(id, params, env=nil, headers={})
|
96
|
+
Request.send('post', uri_path("invoices",id.to_s,"record_refund"), params, env, headers)
|
97
|
+
end
|
98
|
+
|
95
99
|
def self.void_invoice(id, params={}, env=nil, headers={})
|
96
100
|
Request.send('post', uri_path("invoices",id.to_s,"void"), params, env, headers)
|
97
101
|
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: 1.5.
|
4
|
+
version: 1.5.9
|
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-
|
12
|
+
date: 2015-07-10 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: json_pure
|