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 +4 -4
- data/lib/stripe/stripe_object.rb +22 -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: b692dd9cad2d2905aa4c2d5f982b23f020c8b37e5e4db35d899c1f16af00c3f6
|
|
4
|
+
data.tar.gz: 56cb9cc6662e0111bf6fed01a47f772536487b0e6e8eb3a97fc0beabaa3a597f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a2436ede2912ff59c9250d8e18af8cc8f8c52a4e18aa6883818922d7e6eb2353e7941527ba55e992dd73192f282ad386cf942f5d150dee91229edd42b4648295
|
|
7
|
+
data.tar.gz: bab156eee1d401b79ebdd7d746fdaee283a8f73a88fbc15de4b9a86b214c10f88e3ea7d3d532259a3bd8f266ba3f1cfadd9aed5fe44c6472791389c2c74fdf81
|
data/lib/stripe/stripe_object.rb
CHANGED
|
@@ -171,7 +171,19 @@ module Stripe
|
|
|
171
171
|
end
|
|
172
172
|
|
|
173
173
|
def [](key)
|
|
174
|
-
|
|
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.
|
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: 18.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-
|
|
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.
|