stripe 5.47.0 → 5.50.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: b214442a5d4e98a82fb5f1566e55969c0af85298f3bde7cfe77c8fdd3c34f59e
4
- data.tar.gz: 8b402f5fa893793576f4d2ae830476ed626850cc3a44e201d3e5f23d5e4069ad
3
+ metadata.gz: fce0f5c23e8da3e798135433067340f179ef446af78e0369a08dce4bb4decbf6
4
+ data.tar.gz: 4def88cada3eaa50f3ffa26cdbdfbd4e1046218f6a274ba4aa86ddc17ec77374
5
5
  SHA512:
6
- metadata.gz: c25f86d87cae70a56a406a50651a923e652e1db189fd987ba37b3d6081658c25d142285c7f969fc8d3ce80a86c54dc628a356fc3d17d8354bfa7884c4abea0f8
7
- data.tar.gz: 5591798e38bd9b2e59fd8357b377842f281353832eb450580488393a311e7a62d882feeddcb58bbdda3363691a871d3c091801b2734367f17534a4629321a767
6
+ metadata.gz: 56b9783c1e29d3d814362123bebdcf4bc4cc47f4a4c69f4c4fc5cf39c41e6c70e7c09280c4761ae350164efcdee11292e970695f81b2160fb1def046464b6586
7
+ data.tar.gz: 3a36f7f199efd52d77de56a8d7c04be6318f4d994522036b3991e10c0f27f78f2c4c9d848e95b1411dd73fbcefe359beebc38f8a2159a060e7943a4ac952fa9d
data/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # Changelog
2
2
 
3
+ ## 5.50.0 - 2022-04-13
4
+ * [#1045](https://github.com/stripe/stripe-ruby/pull/1045) API Updates
5
+ * Add support for `increment_authorization` method on resource `PaymentIntent`
6
+
7
+ ## 5.49.0 - 2022-04-08
8
+ * [#1043](https://github.com/stripe/stripe-ruby/pull/1043) API Updates
9
+ * Add support for `apply_customer_balance` method on resource `PaymentIntent`
10
+
11
+ ## 5.48.0 - 2022-03-30
12
+ * [#1041](https://github.com/stripe/stripe-ruby/pull/1041) API Updates
13
+ * Add support for `cancel_action`, `process_payment_intent`, `process_setup_intent`, and `set_reader_display` methods on resource `Terminal.Reader`
14
+
3
15
  ## 5.47.0 - 2022-03-29
4
16
  * [#1040](https://github.com/stripe/stripe-ruby/pull/1040) API Updates
5
17
  * Add support for Search API
data/Makefile ADDED
@@ -0,0 +1,7 @@
1
+ .PHONY: update-version codegen-format
2
+ update-version:
3
+ @echo "$(VERSION)" > VERSION
4
+ @perl -pi -e 's|VERSION = "[.\d]+"|VERSION = "$(VERSION)"|' lib/stripe/version.rb
5
+
6
+ codegen-format:
7
+ bundle exec rubocop -o /dev/null --auto-correct
data/VERSION CHANGED
@@ -1 +1 @@
1
- 5.47.0
1
+ 5.50.0
@@ -10,11 +10,22 @@ 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
17
+ custom_method :increment_authorization, http_verb: :post
16
18
  custom_method :verify_microdeposits, http_verb: :post
17
19
 
20
+ def apply_customer_balance(params = {}, opts = {})
21
+ request_stripe_object(
22
+ method: :post,
23
+ path: resource_url + "/apply_customer_balance",
24
+ params: params,
25
+ opts: opts
26
+ )
27
+ end
28
+
18
29
  def cancel(params = {}, opts = {})
19
30
  request_stripe_object(
20
31
  method: :post,
@@ -42,6 +53,15 @@ module Stripe
42
53
  )
43
54
  end
44
55
 
56
+ def increment_authorization(params = {}, opts = {})
57
+ request_stripe_object(
58
+ method: :post,
59
+ path: resource_url + "/increment_authorization",
60
+ params: params,
61
+ opts: opts
62
+ )
63
+ end
64
+
45
65
  def verify_microdeposits(params = {}, opts = {})
46
66
  request_stripe_object(
47
67
  method: :post,
@@ -10,6 +10,66 @@ module Stripe
10
10
  include Stripe::APIOperations::Save
11
11
 
12
12
  OBJECT_NAME = "terminal.reader"
13
+
14
+ custom_method :cancel_action, http_verb: :post
15
+ custom_method :process_payment_intent, http_verb: :post
16
+ custom_method :process_setup_intent, http_verb: :post
17
+ custom_method :set_reader_display, http_verb: :post
18
+
19
+ def cancel_action(params = {}, opts = {})
20
+ request_stripe_object(
21
+ method: :post,
22
+ path: resource_url + "/cancel_action",
23
+ params: params,
24
+ opts: opts
25
+ )
26
+ end
27
+
28
+ def process_payment_intent(params = {}, opts = {})
29
+ request_stripe_object(
30
+ method: :post,
31
+ path: resource_url + "/process_payment_intent",
32
+ params: params,
33
+ opts: opts
34
+ )
35
+ end
36
+
37
+ def process_setup_intent(params = {}, opts = {})
38
+ request_stripe_object(
39
+ method: :post,
40
+ path: resource_url + "/process_setup_intent",
41
+ params: params,
42
+ opts: opts
43
+ )
44
+ end
45
+
46
+ def set_reader_display(params = {}, opts = {})
47
+ request_stripe_object(
48
+ method: :post,
49
+ path: resource_url + "/set_reader_display",
50
+ params: params,
51
+ opts: opts
52
+ )
53
+ end
54
+
55
+ def test_helpers
56
+ TestHelpers.new(self)
57
+ end
58
+
59
+ class TestHelpers < APIResourceTestHelpers
60
+ RESOURCE_CLASS = Reader
61
+
62
+ custom_method :present_payment_method, http_verb: :post
63
+
64
+ def present_payment_method(params = {}, opts = {})
65
+ @resource.request_stripe_object(
66
+ method: :post,
67
+ path: resource_url + "/present_payment_method",
68
+ params: params,
69
+ opts: opts
70
+ )
71
+ end
72
+ end
13
73
  end
14
74
  end
15
75
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Stripe
4
- VERSION = "5.47.0"
4
+ VERSION = "5.50.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.47.0
4
+ version: 5.50.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-29 00:00:00.000000000 Z
11
+ date: 2022-04-13 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.
@@ -24,6 +24,7 @@ files:
24
24
  - Gemfile
25
25
  - History.txt
26
26
  - LICENSE
27
+ - Makefile
27
28
  - README.md
28
29
  - Rakefile
29
30
  - VERSION