stripe 18.1.0.pre.alpha.3 → 18.1.0.pre.alpha.4

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.
Files changed (27) hide show
  1. checksums.yaml +4 -4
  2. data/lib/stripe/event_types.rb +20 -0
  3. data/lib/stripe/events/v2_iam_api_key_created_event.rb +20 -0
  4. data/lib/stripe/events/v2_iam_api_key_default_secret_revealed_event.rb +20 -0
  5. data/lib/stripe/events/v2_iam_api_key_expired_event.rb +20 -0
  6. data/lib/stripe/events/v2_iam_api_key_permissions_updated_event.rb +20 -0
  7. data/lib/stripe/events/v2_iam_api_key_rotated_event.rb +38 -0
  8. data/lib/stripe/events/v2_iam_api_key_updated_event.rb +20 -0
  9. data/lib/stripe/params/account_create_params.rb +4 -4
  10. data/lib/stripe/params/account_person_create_params.rb +4 -4
  11. data/lib/stripe/params/account_person_update_params.rb +4 -4
  12. data/lib/stripe/params/account_update_params.rb +4 -4
  13. data/lib/stripe/params/delegated_checkout/requested_session_create_params.rb +2 -2
  14. data/lib/stripe/params/delegated_checkout/requested_session_update_params.rb +2 -2
  15. data/lib/stripe/params/token_create_params.rb +8 -8
  16. data/lib/stripe/params/v2/core/event_list_params.rb +4 -1
  17. data/lib/stripe/params/v2/core/event_retrieve_params.rb +8 -1
  18. data/lib/stripe/resources/account_session.rb +27 -0
  19. data/lib/stripe/resources/delegated_checkout/requested_session.rb +2 -2
  20. data/lib/stripe/resources/person.rb +2 -2
  21. data/lib/stripe/resources/v2/core/event.rb +50 -1
  22. data/lib/stripe/resources/v2/money_management/received_credit.rb +16 -0
  23. data/lib/stripe/resources/v2/money_management/received_debit.rb +37 -1
  24. data/lib/stripe/resources.rb +6 -0
  25. data/lib/stripe/version.rb +1 -1
  26. data/rbi/stripe.rbi +175 -37
  27. metadata +8 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 97a1b7ee859389a766f9d5dfe163991f94adeefbb53a3bb93e1237615ae6b26e
4
- data.tar.gz: a2a1145066547ed5292d44129f2d901e9eba69d71916a6c9a3057e71ab33f1c9
3
+ metadata.gz: 79581144d5d51843e5a8c338736096c241555d9e7e82ba36a0335757556c12d2
4
+ data.tar.gz: 394b2d88eb250fb763c6a8a1d3150064aa02a0d6fff9ca3bc87525fe130bf764
5
5
  SHA512:
6
- metadata.gz: 7ee1bccb2cca1da1c49c18a8968e598c984fc6f4f7bc5cd69b2ff0a5cf324c2a3f2b9d3a571decb4dbef23d9171d9de38ec551ccd271bccce4eb9f3f9a704ff9
7
- data.tar.gz: 80d956592b1271a0a7019585e29b65882538dba037e5566eafff2ffcb6ba444eb71faac66f7d733ce86c0e4c7d8d7c96c1df24cd7b2792185adbf172cc663a03
6
+ metadata.gz: 5eb66560d7335a51d81dd7750c0ed69894d6a14502a0ffb88016682b58e14e8721697c5d9f6bcb4dfcf5204b6af81f7a50327748ab12642315708c5f4f60abdc
7
+ data.tar.gz: 282fbac131acea677a3a0fc964455c3eee64dcbd3c8f4580405880414b664990f58c7f5a3e9b3d3f0ee4a6bd85f5e7547ce9766bee29f3f2468beb6c2cc37452
@@ -145,6 +145,14 @@ module Stripe
145
145
  Events::V2CoreHealthWebhookLatencyFiringEvent,
146
146
  Events::V2CoreHealthWebhookLatencyResolvedEvent.lookup_type =>
147
147
  Events::V2CoreHealthWebhookLatencyResolvedEvent,
148
+ Events::V2IamApiKeyCreatedEvent.lookup_type => Events::V2IamApiKeyCreatedEvent,
149
+ Events::V2IamApiKeyDefaultSecretRevealedEvent.lookup_type =>
150
+ Events::V2IamApiKeyDefaultSecretRevealedEvent,
151
+ Events::V2IamApiKeyExpiredEvent.lookup_type => Events::V2IamApiKeyExpiredEvent,
152
+ Events::V2IamApiKeyPermissionsUpdatedEvent.lookup_type =>
153
+ Events::V2IamApiKeyPermissionsUpdatedEvent,
154
+ Events::V2IamApiKeyRotatedEvent.lookup_type => Events::V2IamApiKeyRotatedEvent,
155
+ Events::V2IamApiKeyUpdatedEvent.lookup_type => Events::V2IamApiKeyUpdatedEvent,
148
156
  Events::V2MoneyManagementAdjustmentCreatedEvent.lookup_type =>
149
157
  Events::V2MoneyManagementAdjustmentCreatedEvent,
150
158
  Events::V2MoneyManagementFinancialAccountCreatedEvent.lookup_type =>
@@ -415,6 +423,18 @@ module Stripe
415
423
  Events::V2CoreHealthWebhookLatencyFiringEventNotification,
416
424
  Events::V2CoreHealthWebhookLatencyResolvedEventNotification.lookup_type =>
417
425
  Events::V2CoreHealthWebhookLatencyResolvedEventNotification,
426
+ Events::V2IamApiKeyCreatedEventNotification.lookup_type =>
427
+ Events::V2IamApiKeyCreatedEventNotification,
428
+ Events::V2IamApiKeyDefaultSecretRevealedEventNotification.lookup_type =>
429
+ Events::V2IamApiKeyDefaultSecretRevealedEventNotification,
430
+ Events::V2IamApiKeyExpiredEventNotification.lookup_type =>
431
+ Events::V2IamApiKeyExpiredEventNotification,
432
+ Events::V2IamApiKeyPermissionsUpdatedEventNotification.lookup_type =>
433
+ Events::V2IamApiKeyPermissionsUpdatedEventNotification,
434
+ Events::V2IamApiKeyRotatedEventNotification.lookup_type =>
435
+ Events::V2IamApiKeyRotatedEventNotification,
436
+ Events::V2IamApiKeyUpdatedEventNotification.lookup_type =>
437
+ Events::V2IamApiKeyUpdatedEventNotification,
418
438
  Events::V2MoneyManagementAdjustmentCreatedEventNotification.lookup_type =>
419
439
  Events::V2MoneyManagementAdjustmentCreatedEventNotification,
420
440
  Events::V2MoneyManagementFinancialAccountCreatedEventNotification.lookup_type =>
@@ -0,0 +1,20 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module Events
6
+ # Occurs when an API Key is created.
7
+ class V2IamApiKeyCreatedEvent < Stripe::V2::Core::Event
8
+ def self.lookup_type
9
+ "v2.iam.api_key.created"
10
+ end
11
+ end
12
+
13
+ # Occurs when an API Key is created.
14
+ class V2IamApiKeyCreatedEventNotification < Stripe::V2::Core::EventNotification
15
+ def self.lookup_type
16
+ "v2.iam.api_key.created"
17
+ end
18
+ end
19
+ end
20
+ end
@@ -0,0 +1,20 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module Events
6
+ # Occurs when the default API Key's secret is revealed.
7
+ class V2IamApiKeyDefaultSecretRevealedEvent < Stripe::V2::Core::Event
8
+ def self.lookup_type
9
+ "v2.iam.api_key.default_secret_revealed"
10
+ end
11
+ end
12
+
13
+ # Occurs when the default API Key's secret is revealed.
14
+ class V2IamApiKeyDefaultSecretRevealedEventNotification < Stripe::V2::Core::EventNotification
15
+ def self.lookup_type
16
+ "v2.iam.api_key.default_secret_revealed"
17
+ end
18
+ end
19
+ end
20
+ end
@@ -0,0 +1,20 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module Events
6
+ # Occurs when an API Key is expired.
7
+ class V2IamApiKeyExpiredEvent < Stripe::V2::Core::Event
8
+ def self.lookup_type
9
+ "v2.iam.api_key.expired"
10
+ end
11
+ end
12
+
13
+ # Occurs when an API Key is expired.
14
+ class V2IamApiKeyExpiredEventNotification < Stripe::V2::Core::EventNotification
15
+ def self.lookup_type
16
+ "v2.iam.api_key.expired"
17
+ end
18
+ end
19
+ end
20
+ end
@@ -0,0 +1,20 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module Events
6
+ # Occurs when an API Key's permissions are updated.
7
+ class V2IamApiKeyPermissionsUpdatedEvent < Stripe::V2::Core::Event
8
+ def self.lookup_type
9
+ "v2.iam.api_key.permissions_updated"
10
+ end
11
+ end
12
+
13
+ # Occurs when an API Key's permissions are updated.
14
+ class V2IamApiKeyPermissionsUpdatedEventNotification < Stripe::V2::Core::EventNotification
15
+ def self.lookup_type
16
+ "v2.iam.api_key.permissions_updated"
17
+ end
18
+ end
19
+ end
20
+ end
@@ -0,0 +1,38 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module Events
6
+ # Occurs when an API Key is rotated.
7
+ class V2IamApiKeyRotatedEvent < Stripe::V2::Core::Event
8
+ def self.lookup_type
9
+ "v2.iam.api_key.rotated"
10
+ end
11
+
12
+ class V2IamApiKeyRotatedEventData < ::Stripe::StripeObject
13
+ # ID of the new key that was created due to rotation.
14
+ attr_reader :new_api_key
15
+
16
+ def self.inner_class_types
17
+ @inner_class_types = {}
18
+ end
19
+
20
+ def self.field_remappings
21
+ @field_remappings = {}
22
+ end
23
+ end
24
+
25
+ def self.inner_class_types
26
+ @inner_class_types = { data: V2IamApiKeyRotatedEventData }
27
+ end
28
+ attr_reader :data
29
+ end
30
+
31
+ # Occurs when an API Key is rotated.
32
+ class V2IamApiKeyRotatedEventNotification < Stripe::V2::Core::EventNotification
33
+ def self.lookup_type
34
+ "v2.iam.api_key.rotated"
35
+ end
36
+ end
37
+ end
38
+ end
@@ -0,0 +1,20 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module Events
6
+ # Occurs when an API Key is updated.
7
+ class V2IamApiKeyUpdatedEvent < Stripe::V2::Core::Event
8
+ def self.lookup_type
9
+ "v2.iam.api_key.updated"
10
+ end
11
+ end
12
+
13
+ # Occurs when an API Key is updated.
14
+ class V2IamApiKeyUpdatedEventNotification < Stripe::V2::Core::EventNotification
15
+ def self.lookup_type
16
+ "v2.iam.api_key.updated"
17
+ end
18
+ end
19
+ end
20
+ end
@@ -1872,9 +1872,9 @@ module Stripe
1872
1872
  end
1873
1873
 
1874
1874
  class SelfReportedIncome < ::Stripe::RequestParams
1875
- # Attribute for param field amount
1875
+ # The amount in the minor currency unit (for example, cents for USD).
1876
1876
  attr_accessor :amount
1877
- # Attribute for param field currency
1877
+ # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
1878
1878
  attr_accessor :currency
1879
1879
 
1880
1880
  def initialize(amount: nil, currency: nil)
@@ -1884,9 +1884,9 @@ module Stripe
1884
1884
  end
1885
1885
 
1886
1886
  class SelfReportedMonthlyHousingPayment < ::Stripe::RequestParams
1887
- # Attribute for param field amount
1887
+ # The amount in the minor currency unit (for example, cents for USD).
1888
1888
  attr_accessor :amount
1889
- # Attribute for param field currency
1889
+ # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
1890
1890
  attr_accessor :currency
1891
1891
 
1892
1892
  def initialize(amount: nil, currency: nil)
@@ -240,9 +240,9 @@ module Stripe
240
240
  end
241
241
 
242
242
  class SelfReportedIncome < ::Stripe::RequestParams
243
- # Attribute for param field amount
243
+ # The amount in the minor currency unit (for example, cents for USD).
244
244
  attr_accessor :amount
245
- # Attribute for param field currency
245
+ # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
246
246
  attr_accessor :currency
247
247
 
248
248
  def initialize(amount: nil, currency: nil)
@@ -252,9 +252,9 @@ module Stripe
252
252
  end
253
253
 
254
254
  class SelfReportedMonthlyHousingPayment < ::Stripe::RequestParams
255
- # Attribute for param field amount
255
+ # The amount in the minor currency unit (for example, cents for USD).
256
256
  attr_accessor :amount
257
- # Attribute for param field currency
257
+ # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
258
258
  attr_accessor :currency
259
259
 
260
260
  def initialize(amount: nil, currency: nil)
@@ -240,9 +240,9 @@ module Stripe
240
240
  end
241
241
 
242
242
  class SelfReportedIncome < ::Stripe::RequestParams
243
- # Attribute for param field amount
243
+ # The amount in the minor currency unit (for example, cents for USD).
244
244
  attr_accessor :amount
245
- # Attribute for param field currency
245
+ # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
246
246
  attr_accessor :currency
247
247
 
248
248
  def initialize(amount: nil, currency: nil)
@@ -252,9 +252,9 @@ module Stripe
252
252
  end
253
253
 
254
254
  class SelfReportedMonthlyHousingPayment < ::Stripe::RequestParams
255
- # Attribute for param field amount
255
+ # The amount in the minor currency unit (for example, cents for USD).
256
256
  attr_accessor :amount
257
- # Attribute for param field currency
257
+ # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
258
258
  attr_accessor :currency
259
259
 
260
260
  def initialize(amount: nil, currency: nil)
@@ -1791,9 +1791,9 @@ module Stripe
1791
1791
  end
1792
1792
 
1793
1793
  class SelfReportedIncome < ::Stripe::RequestParams
1794
- # Attribute for param field amount
1794
+ # The amount in the minor currency unit (for example, cents for USD).
1795
1795
  attr_accessor :amount
1796
- # Attribute for param field currency
1796
+ # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
1797
1797
  attr_accessor :currency
1798
1798
 
1799
1799
  def initialize(amount: nil, currency: nil)
@@ -1803,9 +1803,9 @@ module Stripe
1803
1803
  end
1804
1804
 
1805
1805
  class SelfReportedMonthlyHousingPayment < ::Stripe::RequestParams
1806
- # Attribute for param field amount
1806
+ # The amount in the minor currency unit (for example, cents for USD).
1807
1807
  attr_accessor :amount
1808
- # Attribute for param field currency
1808
+ # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
1809
1809
  attr_accessor :currency
1810
1810
 
1811
1811
  def initialize(amount: nil, currency: nil)
@@ -16,7 +16,7 @@ module Stripe
16
16
  attr_accessor :line2
17
17
  # ZIP or postal code.
18
18
  attr_accessor :postal_code
19
- # State, county, province, or region.
19
+ # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
20
20
  attr_accessor :state
21
21
 
22
22
  def initialize(
@@ -77,7 +77,7 @@ module Stripe
77
77
  attr_accessor :line2
78
78
  # ZIP or postal code.
79
79
  attr_accessor :postal_code
80
- # State, county, province, or region.
80
+ # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
81
81
  attr_accessor :state
82
82
 
83
83
  def initialize(
@@ -16,7 +16,7 @@ module Stripe
16
16
  attr_accessor :line2
17
17
  # ZIP or postal code.
18
18
  attr_accessor :postal_code
19
- # State, county, province, or region.
19
+ # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
20
20
  attr_accessor :state
21
21
 
22
22
  def initialize(
@@ -106,7 +106,7 @@ module Stripe
106
106
  attr_accessor :line2
107
107
  # ZIP or postal code.
108
108
  attr_accessor :postal_code
109
- # State, county, province, or region.
109
+ # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
110
110
  attr_accessor :state
111
111
 
112
112
  def initialize(
@@ -463,9 +463,9 @@ module Stripe
463
463
  end
464
464
 
465
465
  class SelfReportedIncome < ::Stripe::RequestParams
466
- # Attribute for param field amount
466
+ # The amount in the minor currency unit (for example, cents for USD).
467
467
  attr_accessor :amount
468
- # Attribute for param field currency
468
+ # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
469
469
  attr_accessor :currency
470
470
 
471
471
  def initialize(amount: nil, currency: nil)
@@ -475,9 +475,9 @@ module Stripe
475
475
  end
476
476
 
477
477
  class SelfReportedMonthlyHousingPayment < ::Stripe::RequestParams
478
- # Attribute for param field amount
478
+ # The amount in the minor currency unit (for example, cents for USD).
479
479
  attr_accessor :amount
480
- # Attribute for param field currency
480
+ # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
481
481
  attr_accessor :currency
482
482
 
483
483
  def initialize(amount: nil, currency: nil)
@@ -1009,9 +1009,9 @@ module Stripe
1009
1009
  end
1010
1010
 
1011
1011
  class SelfReportedIncome < ::Stripe::RequestParams
1012
- # Attribute for param field amount
1012
+ # The amount in the minor currency unit (for example, cents for USD).
1013
1013
  attr_accessor :amount
1014
- # Attribute for param field currency
1014
+ # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
1015
1015
  attr_accessor :currency
1016
1016
 
1017
1017
  def initialize(amount: nil, currency: nil)
@@ -1021,9 +1021,9 @@ module Stripe
1021
1021
  end
1022
1022
 
1023
1023
  class SelfReportedMonthlyHousingPayment < ::Stripe::RequestParams
1024
- # Attribute for param field amount
1024
+ # The amount in the minor currency unit (for example, cents for USD).
1025
1025
  attr_accessor :amount
1026
- # Attribute for param field currency
1026
+ # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
1027
1027
  attr_accessor :currency
1028
1028
 
1029
1029
  def initialize(amount: nil, currency: nil)
@@ -24,6 +24,8 @@ module Stripe
24
24
  end
25
25
  # Set of filters to query events within a range of `created` timestamps.
26
26
  attr_accessor :created
27
+ # Additional fields to include in the response.
28
+ attr_accessor :include
27
29
  # The page size.
28
30
  attr_accessor :limit
29
31
  # Primary object ID used to retrieve related events.
@@ -33,8 +35,9 @@ module Stripe
33
35
  # An array of up to 20 strings containing specific event names.
34
36
  attr_accessor :types
35
37
 
36
- def initialize(created: nil, limit: nil, object_id_: nil, types: nil)
38
+ def initialize(created: nil, include: nil, limit: nil, object_id_: nil, types: nil)
37
39
  @created = created
40
+ @include = include
38
41
  @limit = limit
39
42
  @object_id_ = object_id_
40
43
  @types = types
@@ -4,7 +4,14 @@
4
4
  module Stripe
5
5
  module V2
6
6
  module Core
7
- class EventRetrieveParams < ::Stripe::RequestParams; end
7
+ class EventRetrieveParams < ::Stripe::RequestParams
8
+ # Additional fields to include in the response.
9
+ attr_accessor :include
10
+
11
+ def initialize(include: nil)
12
+ @include = include
13
+ end
14
+ end
8
15
  end
9
16
  end
10
17
  end
@@ -183,6 +183,30 @@ module Stripe
183
183
  end
184
184
  end
185
185
 
186
+ class CheckScanning < ::Stripe::StripeObject
187
+ class Features < ::Stripe::StripeObject
188
+ def self.inner_class_types
189
+ @inner_class_types = {}
190
+ end
191
+
192
+ def self.field_remappings
193
+ @field_remappings = {}
194
+ end
195
+ end
196
+ # Whether the embedded component is enabled.
197
+ attr_reader :enabled
198
+ # Attribute for field features
199
+ attr_reader :features
200
+
201
+ def self.inner_class_types
202
+ @inner_class_types = { features: Features }
203
+ end
204
+
205
+ def self.field_remappings
206
+ @field_remappings = {}
207
+ end
208
+ end
209
+
186
210
  class DisputesList < ::Stripe::StripeObject
187
211
  class Features < ::Stripe::StripeObject
188
212
  # Whether to allow capturing and cancelling payment intents. This is `true` by default.
@@ -699,6 +723,8 @@ module Stripe
699
723
  attr_reader :tax_registrations
700
724
  # Attribute for field tax_settings
701
725
  attr_reader :tax_settings
726
+ # Configuration for the [check scanning](/connect/supported-embedded-components/check-scanning/) embedded component.
727
+ attr_reader :check_scanning
702
728
 
703
729
  def self.inner_class_types
704
730
  @inner_class_types = {
@@ -724,6 +750,7 @@ module Stripe
724
750
  payouts_list: PayoutsList,
725
751
  tax_registrations: TaxRegistrations,
726
752
  tax_settings: TaxSettings,
753
+ check_scanning: CheckScanning,
727
754
  }
728
755
  end
729
756
 
@@ -25,7 +25,7 @@ module Stripe
25
25
  attr_reader :line2
26
26
  # ZIP or postal code.
27
27
  attr_reader :postal_code
28
- # State, county, province, or region.
28
+ # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
29
29
  attr_reader :state
30
30
 
31
31
  def self.inner_class_types
@@ -195,7 +195,7 @@ module Stripe
195
195
  attr_reader :line2
196
196
  # ZIP or postal code.
197
197
  attr_reader :postal_code
198
- # State, county, province, or region.
198
+ # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
199
199
  attr_reader :state
200
200
 
201
201
  def self.inner_class_types
@@ -293,7 +293,7 @@ module Stripe
293
293
  end
294
294
 
295
295
  class SelfReportedIncome < ::Stripe::StripeObject
296
- # Amount in the minor currency unit (e.g., cents for USD)
296
+ # The amount in the minor currency unit (for example, cents for USD).
297
297
  attr_reader :amount
298
298
  # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
299
299
  attr_reader :currency
@@ -308,7 +308,7 @@ module Stripe
308
308
  end
309
309
 
310
310
  class SelfReportedMonthlyHousingPayment < ::Stripe::StripeObject
311
- # Amount in the minor currency unit (e.g., cents for USD)
311
+ # The amount in the minor currency unit (for example, cents for USD).
312
312
  attr_reader :amount
313
313
  # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
314
314
  attr_reader :currency
@@ -13,13 +13,62 @@ module Stripe
13
13
 
14
14
  class Reason < ::Stripe::StripeObject
15
15
  class Request < ::Stripe::StripeObject
16
+ class Client < ::Stripe::StripeObject
17
+ class ApiKey < ::Stripe::StripeObject
18
+ # The ID of the API key.
19
+ attr_reader :id
20
+
21
+ def self.inner_class_types
22
+ @inner_class_types = {}
23
+ end
24
+
25
+ def self.field_remappings
26
+ @field_remappings = {}
27
+ end
28
+ end
29
+
30
+ class DashboardUser < ::Stripe::StripeObject
31
+ # The email of the dashboard user.
32
+ attr_reader :email
33
+ # The IP address of the user.
34
+ attr_reader :ip_address
35
+ # The machine identifier of the user.
36
+ attr_reader :machine_identifier
37
+
38
+ def self.inner_class_types
39
+ @inner_class_types = {}
40
+ end
41
+
42
+ def self.field_remappings
43
+ @field_remappings = {}
44
+ end
45
+ end
46
+ # The type of the client.
47
+ attr_reader :type
48
+ # API key that triggered the event.
49
+ attr_reader :api_key
50
+ # Dashboard user that triggered the event.
51
+ attr_reader :dashboard_user
52
+ # Stripe action that triggered the event.
53
+ attr_reader :stripe_action
54
+
55
+ def self.inner_class_types
56
+ @inner_class_types = { api_key: ApiKey, dashboard_user: DashboardUser }
57
+ end
58
+
59
+ def self.field_remappings
60
+ @field_remappings = {}
61
+ end
62
+ end
63
+ # The client details that made the request.
64
+ attr_reader :client
16
65
  # ID of the API request that caused the event.
17
66
  attr_reader :id
18
67
  # The idempotency key transmitted during the request.
19
68
  attr_reader :idempotency_key
20
69
 
21
70
  def self.inner_class_types
22
- @inner_class_types = {}
71
+ @inner_class_types = { client: Client }
23
72
  end
24
73
 
25
74
  def self.field_remappings
@@ -210,6 +210,19 @@ module Stripe
210
210
  @field_remappings = {}
211
211
  end
212
212
  end
213
+
214
+ class StripeBalancePayment < ::Stripe::StripeObject
215
+ # Statement descriptor for the Stripe Balance Payment.
216
+ attr_reader :statement_descriptor
217
+
218
+ def self.inner_class_types
219
+ @inner_class_types = {}
220
+ end
221
+
222
+ def self.field_remappings
223
+ @field_remappings = {}
224
+ end
225
+ end
213
226
  # The amount and currency of the ReceivedCredit.
214
227
  attr_reader :amount
215
228
  # Time at which the ReceivedCredit was created.
@@ -241,6 +254,8 @@ module Stripe
241
254
  attr_reader :balance_transfer
242
255
  # This object stores details about the originating banking transaction that resulted in the ReceivedCredit. Present if `type` field value is `bank_transfer`.
243
256
  attr_reader :bank_transfer
257
+ # This object stores details about the stripe balance pay refund that resulted in the ReceivedCredit. Present if `type` field value is `stripe_balance_payment`.
258
+ attr_reader :stripe_balance_payment
244
259
 
245
260
  def self.inner_class_types
246
261
  @inner_class_types = {
@@ -250,6 +265,7 @@ module Stripe
250
265
  status_transitions: StatusTransitions,
251
266
  balance_transfer: BalanceTransfer,
252
267
  bank_transfer: BankTransfer,
268
+ stripe_balance_payment: StripeBalancePayment,
253
269
  }
254
270
  end
255
271
 
@@ -87,6 +87,21 @@ module Stripe
87
87
  end
88
88
  end
89
89
 
90
+ class BalanceTransfer < ::Stripe::StripeObject
91
+ # Open Enum. The type of balance transfer that originated the ReceivedDebit.
92
+ attr_reader :type
93
+ # The ID of the topup object that originated the ReceivedDebit.
94
+ attr_reader :topup
95
+
96
+ def self.inner_class_types
97
+ @inner_class_types = {}
98
+ end
99
+
100
+ def self.field_remappings
101
+ @field_remappings = {}
102
+ end
103
+ end
104
+
90
105
  class BankTransfer < ::Stripe::StripeObject
91
106
  class UsBankAccount < ::Stripe::StripeObject
92
107
  # The name of the bank the debit originated from.
@@ -123,6 +138,21 @@ module Stripe
123
138
  @field_remappings = {}
124
139
  end
125
140
  end
141
+
142
+ class StripeBalancePayment < ::Stripe::StripeObject
143
+ # ID of the debit agreement associated with this payment.
144
+ attr_reader :debit_agreement
145
+ # Statement descriptor for the Stripe Balance Payment.
146
+ attr_reader :statement_descriptor
147
+
148
+ def self.inner_class_types
149
+ @inner_class_types = {}
150
+ end
151
+
152
+ def self.field_remappings
153
+ @field_remappings = {}
154
+ end
155
+ end
126
156
  # Amount and currency of the ReceivedDebit.
127
157
  attr_reader :amount
128
158
  # The time at which the ReceivedDebit was created.
@@ -146,12 +176,16 @@ module Stripe
146
176
  attr_reader :status_details
147
177
  # The time at which the ReceivedDebit transitioned to a particular status.
148
178
  attr_reader :status_transitions
149
- # Open Enum. The type of the ReceivedDebit.
179
+ # Open enum, the type of the received debit.
150
180
  attr_reader :type
151
181
  # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
152
182
  attr_reader :livemode
183
+ # This object stores details about the balance transfer object that resulted in the ReceivedDebit.
184
+ attr_reader :balance_transfer
153
185
  # This object stores details about the originating banking transaction that resulted in the ReceivedDebit. Present if `type` field value is `bank_transfer`.
154
186
  attr_reader :bank_transfer
187
+ # This object stores details about the Stripe Balance Payment that resulted in the ReceivedDebit.
188
+ attr_reader :stripe_balance_payment
155
189
 
156
190
  def self.inner_class_types
157
191
  @inner_class_types = {
@@ -159,7 +193,9 @@ module Stripe
159
193
  external_amount: ExternalAmount,
160
194
  status_details: StatusDetails,
161
195
  status_transitions: StatusTransitions,
196
+ balance_transfer: BalanceTransfer,
162
197
  bank_transfer: BankTransfer,
198
+ stripe_balance_payment: StripeBalancePayment,
163
199
  }
164
200
  end
165
201
 
@@ -316,6 +316,12 @@ require "stripe/events/v2_core_health_traffic_volume_drop_firing_event"
316
316
  require "stripe/events/v2_core_health_traffic_volume_drop_resolved_event"
317
317
  require "stripe/events/v2_core_health_webhook_latency_firing_event"
318
318
  require "stripe/events/v2_core_health_webhook_latency_resolved_event"
319
+ require "stripe/events/v2_iam_api_key_created_event"
320
+ require "stripe/events/v2_iam_api_key_default_secret_revealed_event"
321
+ require "stripe/events/v2_iam_api_key_expired_event"
322
+ require "stripe/events/v2_iam_api_key_permissions_updated_event"
323
+ require "stripe/events/v2_iam_api_key_rotated_event"
324
+ require "stripe/events/v2_iam_api_key_updated_event"
319
325
  require "stripe/events/v2_money_management_adjustment_created_event"
320
326
  require "stripe/events/v2_money_management_financial_account_created_event"
321
327
  require "stripe/events/v2_money_management_financial_account_updated_event"
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Stripe
4
- VERSION = "18.1.0-alpha.3"
4
+ VERSION = "18.1.0-alpha.4"
5
5
  end
data/rbi/stripe.rbi CHANGED
@@ -3053,6 +3053,28 @@ module Stripe
3053
3053
  @field_remappings = {}
3054
3054
  end
3055
3055
  end
3056
+ class CheckScanning < ::Stripe::StripeObject
3057
+ class Features < ::Stripe::StripeObject
3058
+ def self.inner_class_types
3059
+ @inner_class_types = {}
3060
+ end
3061
+ def self.field_remappings
3062
+ @field_remappings = {}
3063
+ end
3064
+ end
3065
+ # Whether the embedded component is enabled.
3066
+ sig { returns(T::Boolean) }
3067
+ def enabled; end
3068
+ # Attribute for field features
3069
+ sig { returns(Features) }
3070
+ def features; end
3071
+ def self.inner_class_types
3072
+ @inner_class_types = {features: Features}
3073
+ end
3074
+ def self.field_remappings
3075
+ @field_remappings = {}
3076
+ end
3077
+ end
3056
3078
  class DisputesList < ::Stripe::StripeObject
3057
3079
  class Features < ::Stripe::StripeObject
3058
3080
  # Whether to allow capturing and cancelling payment intents. This is `true` by default.
@@ -3588,6 +3610,9 @@ module Stripe
3588
3610
  # Attribute for field tax_settings
3589
3611
  sig { returns(TaxSettings) }
3590
3612
  def tax_settings; end
3613
+ # Configuration for the [check scanning](/connect/supported-embedded-components/check-scanning/) embedded component.
3614
+ sig { returns(T.nilable(CheckScanning)) }
3615
+ def check_scanning; end
3591
3616
  def self.inner_class_types
3592
3617
  @inner_class_types = {
3593
3618
  account_management: AccountManagement,
@@ -3612,6 +3637,7 @@ module Stripe
3612
3637
  payouts_list: PayoutsList,
3613
3638
  tax_registrations: TaxRegistrations,
3614
3639
  tax_settings: TaxSettings,
3640
+ check_scanning: CheckScanning,
3615
3641
  }
3616
3642
  end
3617
3643
  def self.field_remappings
@@ -5556,7 +5582,7 @@ module Stripe
5556
5582
  end
5557
5583
  end
5558
5584
  class SelfReportedIncome < ::Stripe::StripeObject
5559
- # Amount in the minor currency unit (e.g., cents for USD)
5585
+ # The amount in the minor currency unit (for example, cents for USD).
5560
5586
  sig { returns(Integer) }
5561
5587
  def amount; end
5562
5588
  # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
@@ -5570,7 +5596,7 @@ module Stripe
5570
5596
  end
5571
5597
  end
5572
5598
  class SelfReportedMonthlyHousingPayment < ::Stripe::StripeObject
5573
- # Amount in the minor currency unit (e.g., cents for USD)
5599
+ # The amount in the minor currency unit (for example, cents for USD).
5574
5600
  sig { returns(Integer) }
5575
5601
  def amount; end
5576
5602
  # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
@@ -17954,7 +17980,7 @@ module Stripe
17954
17980
  # ZIP or postal code.
17955
17981
  sig { returns(T.nilable(String)) }
17956
17982
  def postal_code; end
17957
- # State, county, province, or region.
17983
+ # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
17958
17984
  sig { returns(T.nilable(String)) }
17959
17985
  def state; end
17960
17986
  def self.inner_class_types
@@ -18136,7 +18162,7 @@ module Stripe
18136
18162
  # ZIP or postal code.
18137
18163
  sig { returns(String) }
18138
18164
  def postal_code; end
18139
- # State, county, province, or region.
18165
+ # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
18140
18166
  sig { returns(String) }
18141
18167
  def state; end
18142
18168
  def self.inner_class_types
@@ -69022,6 +69048,57 @@ module Stripe
69022
69048
  class Event < APIResource
69023
69049
  class Reason < ::Stripe::StripeObject
69024
69050
  class Request < ::Stripe::StripeObject
69051
+ class Client < ::Stripe::StripeObject
69052
+ class ApiKey < ::Stripe::StripeObject
69053
+ # The ID of the API key.
69054
+ sig { returns(String) }
69055
+ def id; end
69056
+ def self.inner_class_types
69057
+ @inner_class_types = {}
69058
+ end
69059
+ def self.field_remappings
69060
+ @field_remappings = {}
69061
+ end
69062
+ end
69063
+ class DashboardUser < ::Stripe::StripeObject
69064
+ # The email of the dashboard user.
69065
+ sig { returns(String) }
69066
+ def email; end
69067
+ # The IP address of the user.
69068
+ sig { returns(String) }
69069
+ def ip_address; end
69070
+ # The machine identifier of the user.
69071
+ sig { returns(String) }
69072
+ def machine_identifier; end
69073
+ def self.inner_class_types
69074
+ @inner_class_types = {}
69075
+ end
69076
+ def self.field_remappings
69077
+ @field_remappings = {}
69078
+ end
69079
+ end
69080
+ # The type of the client.
69081
+ sig { returns(String) }
69082
+ def type; end
69083
+ # API key that triggered the event.
69084
+ sig { returns(T.nilable(ApiKey)) }
69085
+ def api_key; end
69086
+ # Dashboard user that triggered the event.
69087
+ sig { returns(T.nilable(DashboardUser)) }
69088
+ def dashboard_user; end
69089
+ # Stripe action that triggered the event.
69090
+ sig { returns(T.nilable(T::Hash[String, T.untyped])) }
69091
+ def stripe_action; end
69092
+ def self.inner_class_types
69093
+ @inner_class_types = {api_key: ApiKey, dashboard_user: DashboardUser}
69094
+ end
69095
+ def self.field_remappings
69096
+ @field_remappings = {}
69097
+ end
69098
+ end
69099
+ # The client details that made the request.
69100
+ sig { returns(T.nilable(Client)) }
69101
+ def client; end
69025
69102
  # ID of the API request that caused the event.
69026
69103
  sig { returns(String) }
69027
69104
  def id; end
@@ -69029,7 +69106,7 @@ module Stripe
69029
69106
  sig { returns(String) }
69030
69107
  def idempotency_key; end
69031
69108
  def self.inner_class_types
69032
- @inner_class_types = {}
69109
+ @inner_class_types = {client: Client}
69033
69110
  end
69034
69111
  def self.field_remappings
69035
69112
  @field_remappings = {}
@@ -71076,6 +71153,17 @@ module Stripe
71076
71153
  @field_remappings = {}
71077
71154
  end
71078
71155
  end
71156
+ class StripeBalancePayment < ::Stripe::StripeObject
71157
+ # Statement descriptor for the Stripe Balance Payment.
71158
+ sig { returns(T.nilable(String)) }
71159
+ def statement_descriptor; end
71160
+ def self.inner_class_types
71161
+ @inner_class_types = {}
71162
+ end
71163
+ def self.field_remappings
71164
+ @field_remappings = {}
71165
+ end
71166
+ end
71079
71167
  # The amount and currency of the ReceivedCredit.
71080
71168
  sig { returns(Amount) }
71081
71169
  def amount; end
@@ -71122,6 +71210,9 @@ module Stripe
71122
71210
  # This object stores details about the originating banking transaction that resulted in the ReceivedCredit. Present if `type` field value is `bank_transfer`.
71123
71211
  sig { returns(T.nilable(BankTransfer)) }
71124
71212
  def bank_transfer; end
71213
+ # This object stores details about the stripe balance pay refund that resulted in the ReceivedCredit. Present if `type` field value is `stripe_balance_payment`.
71214
+ sig { returns(T.nilable(StripeBalancePayment)) }
71215
+ def stripe_balance_payment; end
71125
71216
  end
71126
71217
  end
71127
71218
  end
@@ -71203,6 +71294,20 @@ module Stripe
71203
71294
  @field_remappings = {}
71204
71295
  end
71205
71296
  end
71297
+ class BalanceTransfer < ::Stripe::StripeObject
71298
+ # Open Enum. The type of balance transfer that originated the ReceivedDebit.
71299
+ sig { returns(String) }
71300
+ def type; end
71301
+ # The ID of the topup object that originated the ReceivedDebit.
71302
+ sig { returns(T.nilable(String)) }
71303
+ def topup; end
71304
+ def self.inner_class_types
71305
+ @inner_class_types = {}
71306
+ end
71307
+ def self.field_remappings
71308
+ @field_remappings = {}
71309
+ end
71310
+ end
71206
71311
  class BankTransfer < ::Stripe::StripeObject
71207
71312
  class UsBankAccount < ::Stripe::StripeObject
71208
71313
  # The name of the bank the debit originated from.
@@ -71243,6 +71348,20 @@ module Stripe
71243
71348
  @field_remappings = {}
71244
71349
  end
71245
71350
  end
71351
+ class StripeBalancePayment < ::Stripe::StripeObject
71352
+ # ID of the debit agreement associated with this payment.
71353
+ sig { returns(T.nilable(String)) }
71354
+ def debit_agreement; end
71355
+ # Statement descriptor for the Stripe Balance Payment.
71356
+ sig { returns(T.nilable(String)) }
71357
+ def statement_descriptor; end
71358
+ def self.inner_class_types
71359
+ @inner_class_types = {}
71360
+ end
71361
+ def self.field_remappings
71362
+ @field_remappings = {}
71363
+ end
71364
+ end
71246
71365
  # Amount and currency of the ReceivedDebit.
71247
71366
  sig { returns(Amount) }
71248
71367
  def amount; end
@@ -71277,15 +71396,21 @@ module Stripe
71277
71396
  # The time at which the ReceivedDebit transitioned to a particular status.
71278
71397
  sig { returns(T.nilable(StatusTransitions)) }
71279
71398
  def status_transitions; end
71280
- # Open Enum. The type of the ReceivedDebit.
71399
+ # Open enum, the type of the received debit.
71281
71400
  sig { returns(String) }
71282
71401
  def type; end
71283
71402
  # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
71284
71403
  sig { returns(T::Boolean) }
71285
71404
  def livemode; end
71405
+ # This object stores details about the balance transfer object that resulted in the ReceivedDebit.
71406
+ sig { returns(T.nilable(BalanceTransfer)) }
71407
+ def balance_transfer; end
71286
71408
  # This object stores details about the originating banking transaction that resulted in the ReceivedDebit. Present if `type` field value is `bank_transfer`.
71287
71409
  sig { returns(T.nilable(BankTransfer)) }
71288
71410
  def bank_transfer; end
71411
+ # This object stores details about the Stripe Balance Payment that resulted in the ReceivedDebit.
71412
+ sig { returns(T.nilable(StripeBalancePayment)) }
71413
+ def stripe_balance_payment; end
71289
71414
  end
71290
71415
  end
71291
71416
  end
@@ -83335,12 +83460,12 @@ module Stripe
83335
83460
  ); end
83336
83461
  end
83337
83462
  class SelfReportedIncome < ::Stripe::RequestParams
83338
- # Attribute for param field amount
83463
+ # The amount in the minor currency unit (for example, cents for USD).
83339
83464
  sig { returns(Integer) }
83340
83465
  def amount; end
83341
83466
  sig { params(_amount: Integer).returns(Integer) }
83342
83467
  def amount=(_amount); end
83343
- # Attribute for param field currency
83468
+ # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
83344
83469
  sig { returns(String) }
83345
83470
  def currency; end
83346
83471
  sig { params(_currency: String).returns(String) }
@@ -83349,12 +83474,12 @@ module Stripe
83349
83474
  def initialize(amount: nil, currency: nil); end
83350
83475
  end
83351
83476
  class SelfReportedMonthlyHousingPayment < ::Stripe::RequestParams
83352
- # Attribute for param field amount
83477
+ # The amount in the minor currency unit (for example, cents for USD).
83353
83478
  sig { returns(Integer) }
83354
83479
  def amount; end
83355
83480
  sig { params(_amount: Integer).returns(Integer) }
83356
83481
  def amount=(_amount); end
83357
- # Attribute for param field currency
83482
+ # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
83358
83483
  sig { returns(String) }
83359
83484
  def currency; end
83360
83485
  sig { params(_currency: String).returns(String) }
@@ -86836,12 +86961,12 @@ module Stripe
86836
86961
  ); end
86837
86962
  end
86838
86963
  class SelfReportedIncome < ::Stripe::RequestParams
86839
- # Attribute for param field amount
86964
+ # The amount in the minor currency unit (for example, cents for USD).
86840
86965
  sig { returns(Integer) }
86841
86966
  def amount; end
86842
86967
  sig { params(_amount: Integer).returns(Integer) }
86843
86968
  def amount=(_amount); end
86844
- # Attribute for param field currency
86969
+ # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
86845
86970
  sig { returns(String) }
86846
86971
  def currency; end
86847
86972
  sig { params(_currency: String).returns(String) }
@@ -86850,12 +86975,12 @@ module Stripe
86850
86975
  def initialize(amount: nil, currency: nil); end
86851
86976
  end
86852
86977
  class SelfReportedMonthlyHousingPayment < ::Stripe::RequestParams
86853
- # Attribute for param field amount
86978
+ # The amount in the minor currency unit (for example, cents for USD).
86854
86979
  sig { returns(Integer) }
86855
86980
  def amount; end
86856
86981
  sig { params(_amount: Integer).returns(Integer) }
86857
86982
  def amount=(_amount); end
86858
- # Attribute for param field currency
86983
+ # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
86859
86984
  sig { returns(String) }
86860
86985
  def currency; end
86861
86986
  sig { params(_currency: String).returns(String) }
@@ -105207,7 +105332,7 @@ module Stripe
105207
105332
  def postal_code; end
105208
105333
  sig { params(_postal_code: String).returns(String) }
105209
105334
  def postal_code=(_postal_code); end
105210
- # State, county, province, or region.
105335
+ # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
105211
105336
  sig { returns(String) }
105212
105337
  def state; end
105213
105338
  sig { params(_state: String).returns(String) }
@@ -105339,7 +105464,7 @@ module Stripe
105339
105464
  def postal_code; end
105340
105465
  sig { params(_postal_code: String).returns(String) }
105341
105466
  def postal_code=(_postal_code); end
105342
- # State, county, province, or region.
105467
+ # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
105343
105468
  sig { returns(String) }
105344
105469
  def state; end
105345
105470
  sig { params(_state: String).returns(String) }
@@ -105534,7 +105659,7 @@ module Stripe
105534
105659
  def postal_code; end
105535
105660
  sig { params(_postal_code: String).returns(String) }
105536
105661
  def postal_code=(_postal_code); end
105537
- # State, county, province, or region.
105662
+ # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
105538
105663
  sig { returns(String) }
105539
105664
  def state; end
105540
105665
  sig { params(_state: String).returns(String) }
@@ -105622,7 +105747,7 @@ module Stripe
105622
105747
  def postal_code; end
105623
105748
  sig { params(_postal_code: String).returns(String) }
105624
105749
  def postal_code=(_postal_code); end
105625
- # State, county, province, or region.
105750
+ # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
105626
105751
  sig { returns(String) }
105627
105752
  def state; end
105628
105753
  sig { params(_state: String).returns(String) }
@@ -198417,12 +198542,12 @@ module Stripe
198417
198542
  ); end
198418
198543
  end
198419
198544
  class SelfReportedIncome < ::Stripe::RequestParams
198420
- # Attribute for param field amount
198545
+ # The amount in the minor currency unit (for example, cents for USD).
198421
198546
  sig { returns(Integer) }
198422
198547
  def amount; end
198423
198548
  sig { params(_amount: Integer).returns(Integer) }
198424
198549
  def amount=(_amount); end
198425
- # Attribute for param field currency
198550
+ # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
198426
198551
  sig { returns(String) }
198427
198552
  def currency; end
198428
198553
  sig { params(_currency: String).returns(String) }
@@ -198431,12 +198556,12 @@ module Stripe
198431
198556
  def initialize(amount: nil, currency: nil); end
198432
198557
  end
198433
198558
  class SelfReportedMonthlyHousingPayment < ::Stripe::RequestParams
198434
- # Attribute for param field amount
198559
+ # The amount in the minor currency unit (for example, cents for USD).
198435
198560
  sig { returns(Integer) }
198436
198561
  def amount; end
198437
198562
  sig { params(_amount: Integer).returns(Integer) }
198438
198563
  def amount=(_amount); end
198439
- # Attribute for param field currency
198564
+ # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
198440
198565
  sig { returns(String) }
198441
198566
  def currency; end
198442
198567
  sig { params(_currency: String).returns(String) }
@@ -199218,12 +199343,12 @@ module Stripe
199218
199343
  ); end
199219
199344
  end
199220
199345
  class SelfReportedIncome < ::Stripe::RequestParams
199221
- # Attribute for param field amount
199346
+ # The amount in the minor currency unit (for example, cents for USD).
199222
199347
  sig { returns(Integer) }
199223
199348
  def amount; end
199224
199349
  sig { params(_amount: Integer).returns(Integer) }
199225
199350
  def amount=(_amount); end
199226
- # Attribute for param field currency
199351
+ # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
199227
199352
  sig { returns(String) }
199228
199353
  def currency; end
199229
199354
  sig { params(_currency: String).returns(String) }
@@ -199232,12 +199357,12 @@ module Stripe
199232
199357
  def initialize(amount: nil, currency: nil); end
199233
199358
  end
199234
199359
  class SelfReportedMonthlyHousingPayment < ::Stripe::RequestParams
199235
- # Attribute for param field amount
199360
+ # The amount in the minor currency unit (for example, cents for USD).
199236
199361
  sig { returns(Integer) }
199237
199362
  def amount; end
199238
199363
  sig { params(_amount: Integer).returns(Integer) }
199239
199364
  def amount=(_amount); end
199240
- # Attribute for param field currency
199365
+ # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
199241
199366
  sig { returns(String) }
199242
199367
  def currency; end
199243
199368
  sig { params(_currency: String).returns(String) }
@@ -203912,12 +204037,12 @@ module Stripe
203912
204037
  ); end
203913
204038
  end
203914
204039
  class SelfReportedIncome < ::Stripe::RequestParams
203915
- # Attribute for param field amount
204040
+ # The amount in the minor currency unit (for example, cents for USD).
203916
204041
  sig { returns(Integer) }
203917
204042
  def amount; end
203918
204043
  sig { params(_amount: Integer).returns(Integer) }
203919
204044
  def amount=(_amount); end
203920
- # Attribute for param field currency
204045
+ # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
203921
204046
  sig { returns(String) }
203922
204047
  def currency; end
203923
204048
  sig { params(_currency: String).returns(String) }
@@ -203926,12 +204051,12 @@ module Stripe
203926
204051
  def initialize(amount: nil, currency: nil); end
203927
204052
  end
203928
204053
  class SelfReportedMonthlyHousingPayment < ::Stripe::RequestParams
203929
- # Attribute for param field amount
204054
+ # The amount in the minor currency unit (for example, cents for USD).
203930
204055
  sig { returns(Integer) }
203931
204056
  def amount; end
203932
204057
  sig { params(_amount: Integer).returns(Integer) }
203933
204058
  def amount=(_amount); end
203934
- # Attribute for param field currency
204059
+ # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
203935
204060
  sig { returns(String) }
203936
204061
  def currency; end
203937
204062
  sig { params(_currency: String).returns(String) }
@@ -204700,12 +204825,12 @@ module Stripe
204700
204825
  ); end
204701
204826
  end
204702
204827
  class SelfReportedIncome < ::Stripe::RequestParams
204703
- # Attribute for param field amount
204828
+ # The amount in the minor currency unit (for example, cents for USD).
204704
204829
  sig { returns(Integer) }
204705
204830
  def amount; end
204706
204831
  sig { params(_amount: Integer).returns(Integer) }
204707
204832
  def amount=(_amount); end
204708
- # Attribute for param field currency
204833
+ # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
204709
204834
  sig { returns(String) }
204710
204835
  def currency; end
204711
204836
  sig { params(_currency: String).returns(String) }
@@ -204714,12 +204839,12 @@ module Stripe
204714
204839
  def initialize(amount: nil, currency: nil); end
204715
204840
  end
204716
204841
  class SelfReportedMonthlyHousingPayment < ::Stripe::RequestParams
204717
- # Attribute for param field amount
204842
+ # The amount in the minor currency unit (for example, cents for USD).
204718
204843
  sig { returns(Integer) }
204719
204844
  def amount; end
204720
204845
  sig { params(_amount: Integer).returns(Integer) }
204721
204846
  def amount=(_amount); end
204722
- # Attribute for param field currency
204847
+ # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
204723
204848
  sig { returns(String) }
204724
204849
  def currency; end
204725
204850
  sig { params(_currency: String).returns(String) }
@@ -232983,6 +233108,11 @@ module Stripe
232983
233108
  params(_created: T.nilable(V2::Core::EventListParams::Created)).returns(T.nilable(V2::Core::EventListParams::Created))
232984
233109
  }
232985
233110
  def created=(_created); end
233111
+ # Additional fields to include in the response.
233112
+ sig { returns(T.nilable(T::Array[String])) }
233113
+ def include; end
233114
+ sig { params(_include: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) }
233115
+ def include=(_include); end
232986
233116
  # The page size.
232987
233117
  sig { returns(T.nilable(Integer)) }
232988
233118
  def limit; end
@@ -233001,9 +233131,9 @@ module Stripe
233001
233131
  sig { params(_types: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) }
233002
233132
  def types=(_types); end
233003
233133
  sig {
233004
- params(created: T.nilable(V2::Core::EventListParams::Created), limit: T.nilable(Integer), object_id_: T.nilable(String), types: T.nilable(T::Array[String])).void
233134
+ params(created: T.nilable(V2::Core::EventListParams::Created), include: T.nilable(T::Array[String]), limit: T.nilable(Integer), object_id_: T.nilable(String), types: T.nilable(T::Array[String])).void
233005
233135
  }
233006
- def initialize(created: nil, limit: nil, object_id_: nil, types: nil); end
233136
+ def initialize(created: nil, include: nil, limit: nil, object_id_: nil, types: nil); end
233007
233137
  end
233008
233138
  end
233009
233139
  end
@@ -233012,7 +233142,15 @@ end
233012
233142
  module Stripe
233013
233143
  module V2
233014
233144
  module Core
233015
- class EventRetrieveParams < ::Stripe::RequestParams; end
233145
+ class EventRetrieveParams < ::Stripe::RequestParams
233146
+ # Additional fields to include in the response.
233147
+ sig { returns(T.nilable(T::Array[String])) }
233148
+ def include; end
233149
+ sig { params(_include: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) }
233150
+ def include=(_include); end
233151
+ sig { params(include: T.nilable(T::Array[String])).void }
233152
+ def initialize(include: nil); end
233153
+ end
233016
233154
  end
233017
233155
  end
233018
233156
  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.1.0.pre.alpha.3
4
+ version: 18.1.0.pre.alpha.4
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-24 00:00:00.000000000 Z
11
+ date: 2025-12-04 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.
@@ -121,6 +121,12 @@ files:
121
121
  - lib/stripe/events/v2_core_health_traffic_volume_drop_resolved_event.rb
122
122
  - lib/stripe/events/v2_core_health_webhook_latency_firing_event.rb
123
123
  - lib/stripe/events/v2_core_health_webhook_latency_resolved_event.rb
124
+ - lib/stripe/events/v2_iam_api_key_created_event.rb
125
+ - lib/stripe/events/v2_iam_api_key_default_secret_revealed_event.rb
126
+ - lib/stripe/events/v2_iam_api_key_expired_event.rb
127
+ - lib/stripe/events/v2_iam_api_key_permissions_updated_event.rb
128
+ - lib/stripe/events/v2_iam_api_key_rotated_event.rb
129
+ - lib/stripe/events/v2_iam_api_key_updated_event.rb
124
130
  - lib/stripe/events/v2_money_management_adjustment_created_event.rb
125
131
  - lib/stripe/events/v2_money_management_financial_account_created_event.rb
126
132
  - lib/stripe/events/v2_money_management_financial_account_updated_event.rb