chargebee 2.6.8 → 2.6.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: e72845bfae886cfae200f19c93d6274a3d4b3715
4
- data.tar.gz: 0e763b87a880276de62533dc2f52b120284e5a66
3
+ metadata.gz: b8e05624c6552aa867fb277c32c361f8ada1e0d9
4
+ data.tar.gz: c80be17904301417d2116033c37b55910322f3d9
5
5
  SHA512:
6
- metadata.gz: f391854b80eb235c4b6bbddc8fd8eee332bfd5d27708bc02823d6f7114ebcb3a92cf48315493e675f9032971484bc59b9d61a937c6fac578d6d41b87e61e8a37
7
- data.tar.gz: eb7f75bdfc5bedf18af1aed1b43779255750693624f2be449a18b6477dbe951c94e4484213cf79523aa8185d648f02aaa60465cecb085ded8d8a412305d27629
6
+ metadata.gz: f3f468f3c1a005b2a54e0accb38a361d4c25d1629d853356a51b8b450186d5c181dc33053a7b91ca20efd92fb4bb2a372b0faf776b9c943f598462580ae2eb8f
7
+ data.tar.gz: 64086e385bcba69a8595edad0bb0572712a67e5af89acdbf43f14108e905d0e77621a91c561329e3bdf93ee780c0360bb867a60214855bfad6ddbd22f503c756
@@ -1,3 +1,10 @@
1
+ ### v2.6.9 (2019-08-14)
2
+ * * *
3
+
4
+ * New resource payment_intent has been added.
5
+ * New input parameter 'id' in payment_intent sub-param has been added in create_a_customer, collect_payment_for_customer, create_using_payment_intent, create_a_subscription, create_subscription_for_customer and update_a_subscription .
6
+ * New event_types PAYMENT_INTENT_CREATED and PAYMENT_INTENT_UPDATED have been added.
7
+
1
8
  ### v2.6.8 (2019-08-07)
2
9
  * * *
3
10
 
@@ -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.6.8'
8
- s.date = '2019-08-07'
7
+ s.version = '2.6.9'
8
+ s.date = '2019-08-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."
@@ -60,6 +60,7 @@ Gem::Specification.new do |s|
60
60
  lib/chargebee/models/invoice_estimate.rb
61
61
  lib/chargebee/models/model.rb
62
62
  lib/chargebee/models/order.rb
63
+ lib/chargebee/models/payment_intent.rb
63
64
  lib/chargebee/models/payment_source.rb
64
65
  lib/chargebee/models/plan.rb
65
66
  lib/chargebee/models/portal_session.rb
@@ -42,10 +42,12 @@ require File.dirname(__FILE__) + '/chargebee/models/export'
42
42
  require File.dirname(__FILE__) + '/chargebee/models/gift'
43
43
  require File.dirname(__FILE__) + '/chargebee/models/quote'
44
44
  require File.dirname(__FILE__) + '/chargebee/models/contact.rb'
45
+ require File.dirname(__FILE__) + '/chargebee/models/hierarchy.rb'
46
+ require File.dirname(__FILE__) + '/chargebee/models/payment_intent.rb'
45
47
 
46
48
  module ChargeBee
47
49
 
48
- VERSION = '2.6.8'
50
+ VERSION = '2.6.9'
49
51
 
50
52
  @@default_env = nil
51
53
  @@verify_ca_certs = true
@@ -0,0 +1,27 @@
1
+ module ChargeBee
2
+ class PaymentIntent < Model
3
+
4
+ class PaymentAttempt < Model
5
+ attr_accessor :id, :status, :id_at_gateway, :error_code, :error_text, :created_at, :modified_at
6
+ end
7
+
8
+ attr_accessor :id, :status, :amount, :gateway_account_id, :expires_at, :reference_id, :created_at,
9
+ :modified_at, :customer_id, :gateway, :active_payment_attempt
10
+
11
+ # OPERATIONS
12
+ #-----------
13
+
14
+ def self.create(params, env=nil, headers={})
15
+ Request.send('post', uri_path("payment_intents"), params, env, headers)
16
+ end
17
+
18
+ def self.update(id, params={}, env=nil, headers={})
19
+ Request.send('post', uri_path("payment_intents",id.to_s), params, env, headers)
20
+ end
21
+
22
+ def self.retrieve(id, env=nil, headers={})
23
+ Request.send('get', uri_path("payment_intents",id.to_s), {}, env, headers)
24
+ end
25
+
26
+ end # ~PaymentIntent
27
+ end # ~ChargeBee
@@ -198,6 +198,12 @@ module ChargeBee
198
198
  return export;
199
199
  end
200
200
 
201
+ def payment_intent()
202
+ payment_intent = get(:payment_intent, PaymentIntent,
203
+ {:payment_attempt => PaymentIntent::PaymentAttempt});
204
+ return payment_intent;
205
+ end
206
+
201
207
 
202
208
  def unbilled_charges()
203
209
  unbilled_charges = get_list(:unbilled_charges, UnbilledCharge,
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.6.8
4
+ version: 2.6.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: 2019-08-07 00:00:00.000000000 Z
12
+ date: 2019-08-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: json_pure
@@ -115,6 +115,7 @@ files:
115
115
  - lib/chargebee/models/invoice_estimate.rb
116
116
  - lib/chargebee/models/model.rb
117
117
  - lib/chargebee/models/order.rb
118
+ - lib/chargebee/models/payment_intent.rb
118
119
  - lib/chargebee/models/payment_source.rb
119
120
  - lib/chargebee/models/plan.rb
120
121
  - lib/chargebee/models/portal_session.rb