chargebee 2.4.8 → 2.4.9

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: 45f53caffadbf0d3d557f0f36f784f9df341d92f
4
- data.tar.gz: 6043e404cf65fb35b2434fad3da50b2445ad0e20
3
+ metadata.gz: d57e7161d3f1974b8465bf952f622f8f46872153
4
+ data.tar.gz: 626b5b1771aeb1a5f49827c2e7fe53a3df040626
5
5
  SHA512:
6
- metadata.gz: fa3b183d878e440d9d6ae0af82cc18d19af80090699f25f1204720c6eda891fa1ba6fc0f82174456f70609054dbd034777e8e0da407320b6c88c39394775cf45
7
- data.tar.gz: 6d40faae8a7e72611e1e892daf76e94aac7442a2cce4e66872953adfea1270a1baf2261b1e4cbbf15c919aa37ea898383f5a65197f50937f16b13b55436f8cd6
6
+ metadata.gz: c4432ba5b6614ee09353ee3d0d1ced80139850a7569218014f678cddee68004675adaf4418cb3cc9c35888cfaf2211be765d56413c8bd5689e723539be13368d
7
+ data.tar.gz: b9e4b470c000edb0b44dd7b5fd00b260cee9e7c7a1bc7b63bcb828c0ccee929f203760a2ec5e855b7f997f7550efa405001968c066346da7da383383c90f3c2f
@@ -1,3 +1,15 @@
1
+ ### v2.4.9 (2018-04-27)
2
+ * * *
3
+
4
+ New resource 'Virtual Bank Account' has been added.
5
+ See : https://apidocs.chargebee.com/docs/api/virtual_bank_accounts
6
+
7
+ New event types virtual_bank_account_added, virtual_bank_account_updated and virtual_bank_account_deleted has been added.
8
+ See : https://apidocs.chargebee.com/docs/api/events#event_types
9
+
10
+ The payment method ach_credit has been added.
11
+ See : https://apidocs.chargebee.com/docs/api/transactions#transaction_attributes
12
+
1
13
  ### v2.4.8 (2018-03-29)
2
14
  * * *
3
15
 
@@ -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.4.8'
8
- s.date = '2018-03-29'
7
+ s.version = '2.4.9'
8
+ s.date = '2018-04-27'
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."
@@ -67,6 +67,7 @@ Gem::Specification.new do |s|
67
67
  lib/chargebee/models/time_machine.rb
68
68
  lib/chargebee/models/transaction.rb
69
69
  lib/chargebee/models/unbilled_charge.rb
70
+ lib/chargebee/models/virtual_bank_account.rb
70
71
  lib/chargebee/request.rb
71
72
  lib/chargebee/rest.rb
72
73
  lib/chargebee/result.rb
@@ -37,10 +37,11 @@ require File.dirname(__FILE__) + '/chargebee/models/payment_source'
37
37
  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
+ require File.dirname(__FILE__) + '/chargebee/models/virtual_bank_account.rb'
40
41
 
41
42
  module ChargeBee
42
43
 
43
- VERSION = '2.4.8'
44
+ VERSION = '2.4.9'
44
45
 
45
46
  @@default_env = nil
46
47
  @@verify_ca_certs = true
@@ -0,0 +1,27 @@
1
+ module ChargeBee
2
+ class VirtualBankAccount < Model
3
+
4
+ attr_accessor :id, :customer_id, :email, :bank_name, :account_number, :routing_number, :swift_code,
5
+ :gateway, :gateway_account_id, :reference_id, :deleted
6
+
7
+ # OPERATIONS
8
+ #-----------
9
+
10
+ def self.create_using_permanent_token(params, env=nil, headers={})
11
+ Request.send('post', uri_path("virtual_bank_accounts","create_using_permanent_token"), params, env, headers)
12
+ end
13
+
14
+ def self.create(params, env=nil, headers={})
15
+ Request.send('post', uri_path("virtual_bank_accounts"), params, env, headers)
16
+ end
17
+
18
+ def self.retrieve(id, env=nil, headers={})
19
+ Request.send('get', uri_path("virtual_bank_accounts",id.to_s), {}, env, headers)
20
+ end
21
+
22
+ def self.list(params={}, env=nil, headers={})
23
+ Request.send_list_request('get', uri_path("virtual_bank_accounts"), params, env, headers)
24
+ end
25
+
26
+ end # ~VirtualBankAccount
27
+ end # ~ChargeBee
@@ -28,6 +28,11 @@ module ChargeBee
28
28
  return third_party_payment_method;
29
29
  end
30
30
 
31
+ def virtual_bank_account()
32
+ virtual_bank_account = get(:virtual_bank_account, VirtualBankAccount);
33
+ return virtual_bank_account;
34
+ end
35
+
31
36
  def card()
32
37
  card = get(:card, Card);
33
38
  return card;
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.4.8
4
+ version: 2.4.9
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-03-29 00:00:00.000000000 Z
12
+ date: 2018-04-27 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: json_pure
@@ -122,6 +122,7 @@ files:
122
122
  - lib/chargebee/models/time_machine.rb
123
123
  - lib/chargebee/models/transaction.rb
124
124
  - lib/chargebee/models/unbilled_charge.rb
125
+ - lib/chargebee/models/virtual_bank_account.rb
125
126
  - lib/chargebee/request.rb
126
127
  - lib/chargebee/rest.rb
127
128
  - lib/chargebee/result.rb