chargebee 1.5.5 → 1.5.6

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: 327bf86d39bb933f78bc55bc86ced58b4ff71611
4
- data.tar.gz: 2b234fd3f6599d2f261eddac2af25f70cc7751bd
3
+ metadata.gz: a2919475fb97b3af714d25bced27f698cf480478
4
+ data.tar.gz: 629070356e2f21eb0ec0a09ec4340f208c0e27b1
5
5
  SHA512:
6
- metadata.gz: b3d2f2bb79e2d98264508ec90a968927093dc703cd22d66062bd20343665d1d1cce3afa4a425846c4887c10cca76bb6de2b4edc6fee514a5d4c8200b9fefd06b
7
- data.tar.gz: 48662c5fd6fea112b81b9f3dffd90bdd67668f8f69054f2b34c8c95e2ad08a7071fc84878474cefe80282f2d47b98b1847cc1f1ebef8a56c8a12e4ebfd9f6e68
6
+ metadata.gz: 7f24dac0bc1d91be492d378cd9c1aa143902090c0aa5e1663a3679ca431401e597274ea6ab5bfad1d6111c8c28afebd32ceeebdad68cdab903055b5a17eaec7b
7
+ data.tar.gz: 2c1235faf42366ece82cf624685637bb4210a08e2f9a0aabbccb9672757e570f9642173a746b9cf36c8be33696fbe3e72941605b615686ff378f05081355c2a5
data/CHANGELOG.md CHANGED
@@ -1,3 +1,17 @@
1
+ ### v1.5.6 (2015-05-02)
2
+ * * *
3
+
4
+ ** APIs added**:
5
+
6
+ A new api endpoint for "Update payment method for a customer" is added. This allows you to support PayPal Express Checkout via our API. See https://apidocs.chargebee.com/docs/api/customers#update_payment_method_for_a_customer.
7
+
8
+ A new api endpoint for "Collect payment for an invoice" is added. This allows you to manually collect the payment(if a payment method is present for the customer) for an invoice in "payment_due" or "not_paid" state. See https://apidocs.chargebee.com/docs/api/invoices#collect_payment_for_an_invoice.
9
+
10
+ ** APIs updated**:
11
+
12
+ Support for PayPal Express Checkout while calling "Create a subscription", "Update a subscription" and "Create a customer" APIs. These APIs now accept details about the payment method(payment_method) that is being associated with the customer.
13
+
14
+
1
15
  ### v1.5.5 (2015-04-14)
2
16
  * * *
3
17
 
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.5'
8
- s.date = '2015-04-14'
7
+ s.version = '1.5.6'
8
+ s.date = '2015-05-02'
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.5'
31
+ VERSION = '1.5.6'
32
32
 
33
33
  @@default_env = nil
34
34
  @@verify_ca_certs = true
@@ -31,6 +31,10 @@ module ChargeBee
31
31
  Request.send('post', uri_path("customers",id.to_s), params, env)
32
32
  end
33
33
 
34
+ def self.update_payment_method(id, params, env=nil)
35
+ Request.send('post', uri_path("customers",id.to_s,"update_payment_method"), params, env)
36
+ end
37
+
34
38
  def self.update_billing_info(id, params={}, env=nil)
35
39
  Request.send('post', uri_path("customers",id.to_s,"update_billing_info"), params, env)
36
40
  end
@@ -84,6 +84,10 @@ module ChargeBee
84
84
  Request.send('post', uri_path("invoices",id.to_s,"collect"), {}, env)
85
85
  end
86
86
 
87
+ def self.collect_payment(id, env=nil)
88
+ Request.send('post', uri_path("invoices",id.to_s,"collect_payment"), {}, env)
89
+ end
90
+
87
91
  def self.refund(id, params={}, env=nil)
88
92
  Request.send('post', uri_path("invoices",id.to_s,"refund"), params, env)
89
93
  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.5
4
+ version: 1.5.6
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-04-14 00:00:00.000000000 Z
12
+ date: 2015-05-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: json_pure