stripe 5.47.0 → 5.50.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +12 -0
- data/Makefile +7 -0
- data/VERSION +1 -1
- data/lib/stripe/resources/payment_intent.rb +20 -0
- data/lib/stripe/resources/terminal/reader.rb +60 -0
- data/lib/stripe/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fce0f5c23e8da3e798135433067340f179ef446af78e0369a08dce4bb4decbf6
|
4
|
+
data.tar.gz: 4def88cada3eaa50f3ffa26cdbdfbd4e1046218f6a274ba4aa86ddc17ec77374
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
5.
|
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
|
data/lib/stripe/version.rb
CHANGED
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.
|
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-
|
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
|