stripe 18.0.0 → 18.0.1

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: bc4a3ec9733880f1b17674fcd617b95ac56ae798a28cbc0e4aa74bfd807e9ac5
4
- data.tar.gz: 5fd3f96ca04166ee83d217dfadff3a6e1098f3f0b828c353ba153614abf5ca0a
3
+ metadata.gz: b692dd9cad2d2905aa4c2d5f982b23f020c8b37e5e4db35d899c1f16af00c3f6
4
+ data.tar.gz: 56cb9cc6662e0111bf6fed01a47f772536487b0e6e8eb3a97fc0beabaa3a597f
5
5
  SHA512:
6
- metadata.gz: a85f8acf978dfb7433601431f6784e2e5dfa4f025291bc696326f57b1fd4450a0532c358ea05d8d62891baca92f87519b8963b5dba3cbde7d7ebc8a5a16c1ce5
7
- data.tar.gz: 5066f169e7cfcdfbe8ee048217a78d995a9750ed82dc80eda52d33c911a1f525c47dac34c4ae153414a20a0eda345970394a0298158e56f6cbb1c90a0ecbae56
6
+ metadata.gz: a2436ede2912ff59c9250d8e18af8cc8f8c52a4e18aa6883818922d7e6eb2353e7941527ba55e992dd73192f282ad386cf942f5d150dee91229edd42b4648295
7
+ data.tar.gz: bab156eee1d401b79ebdd7d746fdaee283a8f73a88fbc15de4b9a86b214c10f88e3ea7d3d532259a3bd8f266ba3f1cfadd9aed5fe44c6472791389c2c74fdf81
@@ -171,7 +171,19 @@ module Stripe
171
171
  end
172
172
 
173
173
  def [](key)
174
- @values[key.to_sym]
174
+ key_sym = key.to_sym
175
+ return @values[key_sym] if @values.key?(key_sym)
176
+
177
+ # super specific one-off case to help users debug this property disappearing
178
+ # see also: https://go/j/DEVSDK-2835
179
+ if is_a?(Invoice) && key_sym == :payment_intent
180
+ raise KeyError,
181
+ "The 'payment_intent' attribute is no longer available on Invoice objects. " \
182
+ "See the docs for more details: https://docs.stripe.com/changelog/basil/2025-03-31/" \
183
+ "add-support-for-multiple-partial-payments-on-invoices#why-is-this-a-breaking-change"
184
+ end
185
+
186
+ nil
175
187
  end
176
188
 
177
189
  def []=(key, value)
@@ -432,6 +444,15 @@ module Stripe
432
444
  begin
433
445
  super
434
446
  rescue NoMethodError => e
447
+ # super specific one-off case to help users debug this property disappearing
448
+ # see also: https://go/j/DEVSDK-2835
449
+ if is_a?(Invoice) && name == :payment_intent
450
+ raise NoMethodError,
451
+ "The 'payment_intent' attribute is no longer available on Invoice objects. " \
452
+ "See the docs for more details: https://docs.stripe.com/changelog/basil/2025-03-31/" \
453
+ "add-support-for-multiple-partial-payments-on-invoices#why-is-this-a-breaking-change"
454
+ end
455
+
435
456
  # If we notice the accessed name of our set of transient values we can
436
457
  # give the user a slightly more helpful error message. If not, just
437
458
  # raise right away.
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Stripe
4
- VERSION = "18.0.0"
4
+ VERSION = "18.0.1"
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: 18.0.0
4
+ version: 18.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stripe
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2025-11-18 00:00:00.000000000 Z
11
+ date: 2025-11-22 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.