stripe 12.2.0 → 12.4.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 +9 -15
- data/OPENAPI_VERSION +1 -1
- data/VERSION +1 -1
- data/lib/stripe/api_operations/request.rb +4 -0
- data/lib/stripe/resources/checkout/session.rb +11 -0
- data/lib/stripe/resources/refund.rb +1 -1
- data/lib/stripe/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 25295ad501a96a7e2fb1010f78219287616d32a13f7715fa4dcb9c3d28983c26
|
4
|
+
data.tar.gz: 0c14f0e10ed9c2ed6118cd2c255bfdce7081e1bef36adbe85e70f9a99e71db23
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 87f15982e7b1d3ede1c93a5166f9f522ef2999554143fe3096810a6ffb883084421e8fafc4514c9c5501129a8f3dc83b05e5a1f6f8bd9c27e68666e13d6182d8
|
7
|
+
data.tar.gz: '03576258c4bc30bde455d71d5127bb9e40dd570a9f92dd9988ff14b8181b6cfef2e2a05512c3c7bbcc74941276b68227b152b29d3b927a89ad9e6a55a639c16c'
|
data/CHANGELOG.md
CHANGED
@@ -1,4 +1,12 @@
|
|
1
1
|
# Changelog
|
2
|
+
## 12.4.0 - 2024-07-25
|
3
|
+
* [#1437](https://github.com/stripe/stripe-ruby/pull/1437) Update generated code
|
4
|
+
* Add support for `update` method on resource `Checkout.Session`
|
5
|
+
|
6
|
+
## 12.3.0 - 2024-07-18
|
7
|
+
* [#1436](https://github.com/stripe/stripe-ruby/pull/1436) Fixed changelog for major release 12.0.0
|
8
|
+
* [#1435](https://github.com/stripe/stripe-ruby/pull/1435) Add deprecation warning for `APIResource.request`
|
9
|
+
|
2
10
|
## 12.2.0 - 2024-07-12
|
3
11
|
* [#1430](https://github.com/stripe/stripe-ruby/pull/1430) Update generated code
|
4
12
|
|
@@ -27,21 +35,7 @@
|
|
27
35
|
* [#1419](https://github.com/stripe/stripe-ruby/pull/1419)
|
28
36
|
|
29
37
|
This release changes the pinned API version to 2024-06-20. Please read the [API Upgrade Guide](https://stripe.com/docs/upgrades#2024-06-20) and carefully review the API changes before upgrading.
|
30
|
-
|
31
|
-
### ⚠️ Breaking changes
|
32
|
-
|
33
|
-
* Singleton `retrieve` method now requires `params` to be passed as the first argument. Existing calls to singleton `retrieve` method with only `opts` argument will have to be updated to account for the addition of `params` argument.
|
34
|
-
```ruby
|
35
|
-
params = { expand: ["available"] }
|
36
|
-
opts = { stripe_account: "acct_123" }
|
37
|
-
|
38
|
-
# ❌ No longer works
|
39
|
-
Stripe::Balance.retrieve(opts)
|
40
|
-
|
41
|
-
# ✅ Correct way to call retrieve method
|
42
|
-
Stripe::Balance.retrieve(params, opts)
|
43
|
-
```
|
44
|
-
|
38
|
+
|
45
39
|
### Additions
|
46
40
|
|
47
41
|
* Add support for `finalize_amount` test helper method on resource `Issuing.Authorization`
|
data/OPENAPI_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
v1154
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
12.
|
1
|
+
12.4.0
|
@@ -78,6 +78,8 @@ module Stripe
|
|
78
78
|
# place for backwards compatibility. Consider removing it on the next
|
79
79
|
# major.
|
80
80
|
alias request execute_resource_request
|
81
|
+
extend Gem::Deprecate
|
82
|
+
deprecate :request, "Stripe.raw_request", 2024, 7
|
81
83
|
|
82
84
|
private def error_on_non_string_user_opts(opts)
|
83
85
|
Util::OPTS_USER_SPECIFIED.each do |opt|
|
@@ -134,6 +136,8 @@ module Stripe
|
|
134
136
|
|
135
137
|
# See notes on `alias` above.
|
136
138
|
alias request execute_resource_request
|
139
|
+
extend Gem::Deprecate
|
140
|
+
deprecate :request, "Stripe.raw_request", 2024, 7
|
137
141
|
end
|
138
142
|
end
|
139
143
|
end
|
@@ -20,6 +20,7 @@ module Stripe
|
|
20
20
|
class Session < APIResource
|
21
21
|
extend Stripe::APIOperations::Create
|
22
22
|
extend Stripe::APIOperations::List
|
23
|
+
include Stripe::APIOperations::Save
|
23
24
|
|
24
25
|
OBJECT_NAME = "checkout.session"
|
25
26
|
def self.object_name
|
@@ -89,6 +90,16 @@ module Stripe
|
|
89
90
|
opts: opts
|
90
91
|
)
|
91
92
|
end
|
93
|
+
|
94
|
+
# Updates a Session object.
|
95
|
+
def self.update(id, params = {}, opts = {})
|
96
|
+
request_stripe_object(
|
97
|
+
method: :post,
|
98
|
+
path: format("/v1/checkout/sessions/%<id>s", { id: CGI.escape(id) }),
|
99
|
+
params: params,
|
100
|
+
opts: opts
|
101
|
+
)
|
102
|
+
end
|
92
103
|
end
|
93
104
|
end
|
94
105
|
end
|
@@ -56,7 +56,7 @@ module Stripe
|
|
56
56
|
request_stripe_object(method: :post, path: "/v1/refunds", params: params, opts: opts)
|
57
57
|
end
|
58
58
|
|
59
|
-
# Returns a list of all refunds you created. We return the refunds in sorted order, with the most recent refunds appearing first The 10 most recent refunds are always available by default on the Charge object.
|
59
|
+
# Returns a list of all refunds you created. We return the refunds in sorted order, with the most recent refunds appearing first. The 10 most recent refunds are always available by default on the Charge object.
|
60
60
|
def self.list(filters = {}, opts = {})
|
61
61
|
request_stripe_object(method: :get, path: "/v1/refunds", params: filters, opts: opts)
|
62
62
|
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: 12.
|
4
|
+
version: 12.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stripe
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-07-
|
11
|
+
date: 2024-07-25 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.
|