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 +4 -4
- data/CHANGELOG.md +14 -0
- data/chargebee.gemspec +2 -2
- data/lib/chargebee.rb +1 -1
- data/lib/chargebee/models/customer.rb +4 -0
- 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: a2919475fb97b3af714d25bced27f698cf480478
|
4
|
+
data.tar.gz: 629070356e2f21eb0ec0a09ec4340f208c0e27b1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
8
|
-
s.date = '2015-
|
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
@@ -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.
|
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-
|
12
|
+
date: 2015-05-02 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: json_pure
|