chargebee 1.5.8 → 1.5.9

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: 2f0f8cd7939c5361ac5b9c3d6cf535e4538b3928
4
- data.tar.gz: 993959abfb46234b004a5cb957b9b13e8b05c04e
3
+ metadata.gz: a6321eb60474bf13bf4898f36ce11f42a3745a0a
4
+ data.tar.gz: d08ac1f64d7549538ae1e855197572e1a44ede2d
5
5
  SHA512:
6
- metadata.gz: 69bbdf8d7e56ef74b94bdd546cbc9cd6c1434cd1c2da27ff2ccf0359fd46bd2404709e595a72c6df524c8ae421be92839c68b0e8bfe789c42189a9fffeacafae
7
- data.tar.gz: c3a425336af5697f74e77ebe6d3ccff9898adacb5cee57bed81d8771ef0011b8699bbb472dea5dcbe69270c267f83bb7dee7923a493b0bff6006844146ff5a6b
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'
8
- s.date = '2015-06-18'
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
@@ -28,7 +28,7 @@ require File.dirname(__FILE__) + '/chargebee/models/download'
28
28
 
29
29
  module ChargeBee
30
30
 
31
- VERSION = '1.5.8'
31
+ VERSION = '1.5.9'
32
32
 
33
33
  @@default_env = nil
34
34
  @@verify_ca_certs = true
@@ -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.8
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-06-18 00:00:00.000000000 Z
12
+ date: 2015-07-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: json_pure