chargebee 2.5.0 → 2.5.2
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 +6 -0
- data/chargebee.gemspec +3 -2
- data/lib/chargebee.rb +2 -1
- data/lib/chargebee/models/contact.rb +11 -0
- data/lib/chargebee/models/customer.rb +4 -0
- data/lib/chargebee/result.rb +5 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 24c6b6706aa4b352d3a41672c70f3c441bfc154a
|
4
|
+
data.tar.gz: 768274c600cf3ee8a37eeacab319031048f36dc2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c952854c476480bb0f1b9ed3503ba9455c30967b191831cf2220d09c09dfb015f42cd9a8a8a23bacfcd4202ef107631aee789171eccb95d4478a019fb659ef74
|
7
|
+
data.tar.gz: 885d4f67c6187c07737cefef2c506c94b642d45c5ed179deaa5f76a29c53758a8ec9e9e2584b729645f652666945f3deb41b11a8f9964f74a532a7aaab30e839
|
data/CHANGELOG.md
CHANGED
data/chargebee.gemspec
CHANGED
@@ -4,8 +4,8 @@ Gem::Specification.new do |s|
|
|
4
4
|
s.rubygems_version = '1.3.5'
|
5
5
|
s.required_ruby_version = '>= 1.9.3'
|
6
6
|
s.name = 'chargebee'
|
7
|
-
s.version = '2.5.
|
8
|
-
s.date = '2018-05-
|
7
|
+
s.version = '2.5.2'
|
8
|
+
s.date = '2018-05-14'
|
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."
|
@@ -41,6 +41,7 @@ Gem::Specification.new do |s|
|
|
41
41
|
lib/chargebee/models/address.rb
|
42
42
|
lib/chargebee/models/card.rb
|
43
43
|
lib/chargebee/models/comment.rb
|
44
|
+
lib/chargebee/models/contact.rb
|
44
45
|
lib/chargebee/models/coupon.rb
|
45
46
|
lib/chargebee/models/coupon_code.rb
|
46
47
|
lib/chargebee/models/coupon_set.rb
|
data/lib/chargebee.rb
CHANGED
@@ -38,10 +38,11 @@ require File.dirname(__FILE__) + '/chargebee/models/unbilled_charge'
|
|
38
38
|
require File.dirname(__FILE__) + '/chargebee/models/time_machine'
|
39
39
|
require File.dirname(__FILE__) + '/chargebee/models/promotional_credit.rb'
|
40
40
|
require File.dirname(__FILE__) + '/chargebee/models/virtual_bank_account.rb'
|
41
|
+
require File.dirname(__FILE__) + '/chargebee/models/contact.rb'
|
41
42
|
|
42
43
|
module ChargeBee
|
43
44
|
|
44
|
-
VERSION = '2.5.
|
45
|
+
VERSION = '2.5.2'
|
45
46
|
|
46
47
|
@@default_env = nil
|
47
48
|
@@verify_ca_certs = true
|
@@ -56,6 +56,10 @@ module ChargeBee
|
|
56
56
|
Request.send('post', uri_path("customers",id.to_s,"update_billing_info"), params, env, headers)
|
57
57
|
end
|
58
58
|
|
59
|
+
def self.contacts_for_customer(id, params={}, env=nil, headers={})
|
60
|
+
Request.send('get', uri_path("customers",id.to_s,"contacts"), params, env, headers)
|
61
|
+
end
|
62
|
+
|
59
63
|
def self.assign_payment_role(id, params, env=nil, headers={})
|
60
64
|
Request.send('post', uri_path("customers",id.to_s,"assign_payment_role"), params, env, headers)
|
61
65
|
end
|
data/lib/chargebee/result.rb
CHANGED
@@ -17,6 +17,11 @@ module ChargeBee
|
|
17
17
|
return customer;
|
18
18
|
end
|
19
19
|
|
20
|
+
def contact()
|
21
|
+
contact = get(:contact, Contact);
|
22
|
+
return contact;
|
23
|
+
end
|
24
|
+
|
20
25
|
def payment_source()
|
21
26
|
payment_source = get(:payment_source, PaymentSource,
|
22
27
|
{:card => PaymentSource::Card, :bank_account => PaymentSource::BankAccount, :amazon_payment => PaymentSource::AmazonPayment, :paypal => PaymentSource::Paypal});
|
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: 2.5.
|
4
|
+
version: 2.5.2
|
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: 2018-05-
|
12
|
+
date: 2018-05-14 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: json_pure
|
@@ -96,6 +96,7 @@ files:
|
|
96
96
|
- lib/chargebee/models/address.rb
|
97
97
|
- lib/chargebee/models/card.rb
|
98
98
|
- lib/chargebee/models/comment.rb
|
99
|
+
- lib/chargebee/models/contact.rb
|
99
100
|
- lib/chargebee/models/coupon.rb
|
100
101
|
- lib/chargebee/models/coupon_code.rb
|
101
102
|
- lib/chargebee/models/coupon_set.rb
|