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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4a00e14e5014979dd01bf2ee04f9c4d17324e114d958e2e58c8ae5aca08ba3ee
4
- data.tar.gz: addcf65c934bd34e31237a68701ec8c57ce6197f82d375f0a06a3b25ccbd4e96
3
+ metadata.gz: 25295ad501a96a7e2fb1010f78219287616d32a13f7715fa4dcb9c3d28983c26
4
+ data.tar.gz: 0c14f0e10ed9c2ed6118cd2c255bfdce7081e1bef36adbe85e70f9a99e71db23
5
5
  SHA512:
6
- metadata.gz: 253f87e80225c84cb256cbce9994c6b582b3386f510e8be1cda377c2490058340459ccdc933b6b883ba3d5ad2ad0ba9650aa0068d61e78940719ac783ebb51d7
7
- data.tar.gz: e6c6b6cab061673142fdb50f41c71aa31f99c20854f7d0f748995dfa9e623a6b3e6d9b40681ed42c3b519c103e698d7667fa874ced3df25fb373505e4a9ec240
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
- v1126
1
+ v1154
data/VERSION CHANGED
@@ -1 +1 @@
1
- 12.3.0
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Stripe
4
- VERSION = "12.3.0"
4
+ VERSION = "12.4.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: 12.3.0
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-18 00:00:00.000000000 Z
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.