chargebee 2.5.0 → 2.5.2

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: 9e0307f938f1d9368af767566c7e94bd1daae4e5
4
- data.tar.gz: 0c11b0bc75baaacd1916d165ee4007f6b422b9f8
3
+ metadata.gz: 24c6b6706aa4b352d3a41672c70f3c441bfc154a
4
+ data.tar.gz: 768274c600cf3ee8a37eeacab319031048f36dc2
5
5
  SHA512:
6
- metadata.gz: 2ba92f992c6761308dfb3a968c48b342a009ad6580bf6511a93e4c36fe731bc2c95a41df3998ff21e4e8423e923193f3f3411eefa171c58eb394883a25623f84
7
- data.tar.gz: 728d6fbbe6430026e16db62bada318bee43975795908910eadbdff5784a53c69ff47e435e95e38cd49b6b71e0e0b4d6597da8affa378a5d2cfb4be2b1f67a1d2
6
+ metadata.gz: c952854c476480bb0f1b9ed3503ba9455c30967b191831cf2220d09c09dfb015f42cd9a8a8a23bacfcd4202ef107631aee789171eccb95d4478a019fb659ef74
7
+ data.tar.gz: 885d4f67c6187c07737cefef2c506c94b642d45c5ed179deaa5f76a29c53758a8ec9e9e2584b729645f652666945f3deb41b11a8f9964f74a532a7aaab30e839
@@ -1,3 +1,9 @@
1
+ ### v2.5.1 (2018-05-14)
2
+ * * *
3
+
4
+ New endpoint 'List contacts for a customer' has been added to Customer resource.
5
+ See : https://apidocs.chargebee.com/docs/api/customers#list_of_contacts_for_a_customer
6
+
1
7
  ### v2.5.0 (2018-05-03)
2
8
  * * *
3
9
 
@@ -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.0'
8
- s.date = '2018-05-03'
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
@@ -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.0'
45
+ VERSION = '2.5.2'
45
46
 
46
47
  @@default_env = nil
47
48
  @@verify_ca_certs = true
@@ -0,0 +1,11 @@
1
+ module ChargeBee
2
+ class Contact < Model
3
+
4
+ attr_accessor :id, :first_name, :last_name, :email, :phone, :label, :enabled, :send_account_email,
5
+ :send_billing_email
6
+
7
+ # OPERATIONS
8
+ #-----------
9
+
10
+ end # ~Contact
11
+ end # ~ChargeBee
@@ -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
@@ -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.0
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-03 00:00:00.000000000 Z
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