stripe 5.48.0 → 5.49.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9a6917084338966ae208572554d5520cda85b854b6a6d73aac0b37fe6aff6271
4
- data.tar.gz: 9ce0d94220e31287bcd84da00199d1d3cb3a6be125cf2548ddcac87c64bbc2fb
3
+ metadata.gz: 86b2523f0ba5dc9577ec83de2608e76e77d5d08cd7611c92f41a957a90a019e6
4
+ data.tar.gz: 849e0b6f2adcc0db8b496da23873d250be962ae9f4e5c3e47fc161d44e1602fd
5
5
  SHA512:
6
- metadata.gz: 4f0925e465d0e32fc68e167cfa61959d307e3a9f12f245620c55ca3c59c8851a2a057b1b0845cd39b27d496391f44b9592cd7548494716e4420badfa6a3b351f
7
- data.tar.gz: 52512c8409a883c68ef90a7d92732424487d3b2be029cc3bafa043911fa887b25a79d3b2fb243dbe7fe191beec95974696ffcb528eb0c6104d93019a0ceb92c2
6
+ metadata.gz: c75a5b1d4229f4489e5198dce6ab38f444106891e3ff42d74b68138b4a1d4258c7a1c3f827007bf74d1d525b7f9b741ba34144b85cf6366b170bf45c0255e90d
7
+ data.tar.gz: '0835cbdf3d368a81801e3171d3affb69eb94dee7ca91bc46a402506b7525f0887f1f8b1b27c97abb9db3bc14cf4bac92d9eccdb76474f9fc842a72ce4df3bea0'
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 5.49.0 - 2022-04-08
4
+ * [#1043](https://github.com/stripe/stripe-ruby/pull/1043) API Updates
5
+ * Add support for `apply_customer_balance` method on resource `PaymentIntent`
6
+
3
7
  ## 5.48.0 - 2022-03-30
4
8
  * [#1041](https://github.com/stripe/stripe-ruby/pull/1041) API Updates
5
9
  * Add support for `cancel_action`, `process_payment_intent`, `process_setup_intent`, and `set_reader_display` methods on resource `Terminal.Reader`
data/VERSION CHANGED
@@ -1 +1 @@
1
- 5.48.0
1
+ 5.49.0
@@ -10,11 +10,21 @@ module Stripe
10
10
 
11
11
  OBJECT_NAME = "payment_intent"
12
12
 
13
+ custom_method :apply_customer_balance, http_verb: :post
13
14
  custom_method :cancel, http_verb: :post
14
15
  custom_method :capture, http_verb: :post
15
16
  custom_method :confirm, http_verb: :post
16
17
  custom_method :verify_microdeposits, http_verb: :post
17
18
 
19
+ def apply_customer_balance(params = {}, opts = {})
20
+ request_stripe_object(
21
+ method: :post,
22
+ path: resource_url + "/apply_customer_balance",
23
+ params: params,
24
+ opts: opts
25
+ )
26
+ end
27
+
18
28
  def cancel(params = {}, opts = {})
19
29
  request_stripe_object(
20
30
  method: :post,
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Stripe
4
- VERSION = "5.48.0"
4
+ VERSION = "5.49.0"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stripe
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.48.0
4
+ version: 5.49.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stripe
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-03-30 00:00:00.000000000 Z
11
+ date: 2022-04-08 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Stripe is the easiest way to accept payments online. See https://stripe.com
14
14
  for details.