chargebee 1.5.8 → 1.6.0

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: 2f0f8cd7939c5361ac5b9c3d6cf535e4538b3928
4
- data.tar.gz: 993959abfb46234b004a5cb957b9b13e8b05c04e
3
+ metadata.gz: 3ea8b0c2b9dc8e9df25b457bb58cfdf0fba93328
4
+ data.tar.gz: 6553f9b49e3fd73075e693e0e59b1fa4011548a1
5
5
  SHA512:
6
- metadata.gz: 69bbdf8d7e56ef74b94bdd546cbc9cd6c1434cd1c2da27ff2ccf0359fd46bd2404709e595a72c6df524c8ae421be92839c68b0e8bfe789c42189a9fffeacafae
7
- data.tar.gz: c3a425336af5697f74e77ebe6d3ccff9898adacb5cee57bed81d8771ef0011b8699bbb472dea5dcbe69270c267f83bb7dee7923a493b0bff6006844146ff5a6b
6
+ metadata.gz: c81245e4704574b77e6349f0bba7dea9c71e3eda900ee667180541cdd704503aff563c238e3912f36a052ecb1e910a49926210acab905db440a1cf590759461a
7
+ data.tar.gz: b0696eeb706120e3249aae8c0b6bef5d9f0b7b98bdc39b66769c8f47ae36924851273e7b24538cdc330345f209695ed4a831f600bc48b7daa0c6ce4e616a26c2
data/CHANGELOG.md CHANGED
@@ -1,3 +1,36 @@
1
+ ### v1.6.0 (2015-07-20)
2
+ * * *
3
+
4
+ ** APIs added**:
5
+
6
+ New api endpoint to Stop Dunning for "Payment Due" invoices is added. See : https://apidocs.chargebee.com/docs/api/invoices#stop_dunning_for_invoice
7
+
8
+ ** APIs updated**:
9
+
10
+ The attribute for "dunning_status" is returned as part of Invoice resource.
11
+ See : https://apidocs.chargebee.com/docs/api/invoices#invoice_attributes
12
+
13
+ ### v1.5.9 (2015-07-09)
14
+ * * *
15
+
16
+ ** APIs added**:
17
+
18
+ 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
19
+
20
+ ** APIs updated**:
21
+
22
+ 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
23
+
24
+ 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
25
+
26
+ 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
27
+
28
+ A new discount type "account_credits" is added as part of "type" attribute of discounts sub-resource for estimate resource.
29
+
30
+ ** APIs deprecated**:
31
+
32
+ Attributes "description" & "void_description" of transaction resource has been deprecated.
33
+
1
34
  ### v1.5.8 (2015-06-18)
2
35
  * * *
3
36
 
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.6.0'
8
+ s.date = '2015-07-20'
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."
@@ -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,
@@ -34,8 +34,9 @@ module ChargeBee
34
34
  end
35
35
 
36
36
  attr_accessor :id, :po_number, :customer_id, :subscription_id, :recurring, :status, :vat_number,
37
- :start_date, :end_date, :amount, :amount_due, :paid_on, :next_retry, :sub_total, :tax, :line_items,
38
- :discounts, :taxes, :linked_transactions, :linked_orders, :notes, :shipping_address, :billing_address
37
+ :start_date, :end_date, :amount, :amount_due, :paid_on, :dunning_status, :next_retry, :sub_total,
38
+ :tax, :line_items, :discounts, :taxes, :linked_transactions, :linked_orders, :notes, :shipping_address,
39
+ :billing_address
39
40
 
40
41
  # OPERATIONS
41
42
  #-----------
@@ -52,6 +53,10 @@ module ChargeBee
52
53
  Request.send('post', uri_path("invoices","charge_addon"), params, env, headers)
53
54
  end
54
55
 
56
+ def self.stop_dunning(id, env=nil, headers={})
57
+ Request.send('post', uri_path("invoices",id.to_s,"stop_dunning"), {}, env, headers)
58
+ end
59
+
55
60
  def self.list(params={}, env=nil, headers={})
56
61
  Request.send('get', uri_path("invoices"), params, env, headers)
57
62
  end
@@ -92,6 +97,10 @@ module ChargeBee
92
97
  Request.send('post', uri_path("invoices",id.to_s,"refund"), params, env, headers)
93
98
  end
94
99
 
100
+ def self.record_refund(id, params, env=nil, headers={})
101
+ Request.send('post', uri_path("invoices",id.to_s,"record_refund"), params, env, headers)
102
+ end
103
+
95
104
  def self.void_invoice(id, params={}, env=nil, headers={})
96
105
  Request.send('post', uri_path("invoices",id.to_s,"void"), params, env, headers)
97
106
  end
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.6.0'
32
32
 
33
33
  @@default_env = nil
34
34
  @@verify_ca_certs = true
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.6.0
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-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: json_pure