stripe 12.3.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 +4 -0
- data/OPENAPI_VERSION +1 -1
- data/VERSION +1 -1
- 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,8 @@
|
|
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
|
+
|
2
6
|
## 12.3.0 - 2024-07-18
|
3
7
|
* [#1436](https://github.com/stripe/stripe-ruby/pull/1436) Fixed changelog for major release 12.0.0
|
4
8
|
* [#1435](https://github.com/stripe/stripe-ruby/pull/1435) Add deprecation warning for `APIResource.request`
|
data/OPENAPI_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
v1154
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
12.
|
1
|
+
12.4.0
|
@@ -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.
|