stripe 18.2.0.pre.alpha.2 → 18.2.0.pre.alpha.3

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: c5ec9248559b09d65ff2d7f6023dc4f706441260ccebfcd92b7c1f1a681714eb
4
- data.tar.gz: bcd470b3846ddc18bab7a774754c4f57fe6461d7e1d4ed7a38fee062c116be2e
3
+ metadata.gz: 813d860017e4d824dbb11ab8961209c0a1de9e0354917973ff9a4071850cb09d
4
+ data.tar.gz: 0e07e3d34861629f153fcca92fcf2eb5ddc86a8905efdb23edd763afeed77a4e
5
5
  SHA512:
6
- metadata.gz: bbc13ab3c9586304d495d2ea40f44f1886d06999dc8d1f7f45bcc62b7d94eace4f8a337e33479cde540afcf7f1c685c8469cd4f36b8adea8abddfa3f44094e99
7
- data.tar.gz: 00fb6a2644108d1ac09732d8d763a1ce9bea18cb3be271254d3ae0da724e0eb858f0029001ff93a81144e47401d0663f0cf2740a946ff0ba8fa9ff748b7d605a
6
+ metadata.gz: 70aa89d0cd5f8073a1f879a93ebefb2d30396b7a807a63fd40c52b454cfad9d3491d9828b4d7afb958c355ce9484df6cdbdbc193c3419f9ea2d18056c64fdfa9
7
+ data.tar.gz: e42643f8e53953504fbb4a15d725d799b7cc46e02a36091f05fb9f56bb4e6e5a88ffa685973c06752265e5e592a23570ff9a1c5cc00d86686f7fcfa927341e60
@@ -92,6 +92,8 @@ module Stripe
92
92
  Events::V2CoreAccountIncludingConfigurationStorerUpdatedEvent,
93
93
  Events::V2CoreAccountIncludingDefaultsUpdatedEvent.lookup_type =>
94
94
  Events::V2CoreAccountIncludingDefaultsUpdatedEvent,
95
+ Events::V2CoreAccountIncludingFutureRequirementsUpdatedEvent.lookup_type =>
96
+ Events::V2CoreAccountIncludingFutureRequirementsUpdatedEvent,
95
97
  Events::V2CoreAccountIncludingIdentityUpdatedEvent.lookup_type =>
96
98
  Events::V2CoreAccountIncludingIdentityUpdatedEvent,
97
99
  Events::V2CoreAccountIncludingRequirementsUpdatedEvent.lookup_type =>
@@ -389,6 +391,8 @@ module Stripe
389
391
  Events::V2CoreAccountIncludingConfigurationStorerUpdatedEventNotification,
390
392
  Events::V2CoreAccountIncludingDefaultsUpdatedEventNotification.lookup_type =>
391
393
  Events::V2CoreAccountIncludingDefaultsUpdatedEventNotification,
394
+ Events::V2CoreAccountIncludingFutureRequirementsUpdatedEventNotification.lookup_type =>
395
+ Events::V2CoreAccountIncludingFutureRequirementsUpdatedEventNotification,
392
396
  Events::V2CoreAccountIncludingIdentityUpdatedEventNotification.lookup_type =>
393
397
  Events::V2CoreAccountIncludingIdentityUpdatedEventNotification,
394
398
  Events::V2CoreAccountIncludingRequirementsUpdatedEventNotification.lookup_type =>
@@ -0,0 +1,44 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module Events
6
+ # Occurs when an Account's future requirements are updated.
7
+ class V2CoreAccountIncludingFutureRequirementsUpdatedEvent < Stripe::V2::Core::Event
8
+ def self.lookup_type
9
+ "v2.core.account[future_requirements].updated"
10
+ end
11
+
12
+ # Retrieves the related object from the API. Makes an API request on every call.
13
+ def fetch_related_object
14
+ _request(
15
+ method: :get,
16
+ path: related_object.url,
17
+ base_address: :api,
18
+ opts: { stripe_context: context }
19
+ )
20
+ end
21
+ attr_reader :related_object
22
+ end
23
+
24
+ # Occurs when an Account's future requirements are updated.
25
+ class V2CoreAccountIncludingFutureRequirementsUpdatedEventNotification < Stripe::V2::Core::EventNotification
26
+ def self.lookup_type
27
+ "v2.core.account[future_requirements].updated"
28
+ end
29
+
30
+ attr_reader :related_object
31
+
32
+ # Retrieves the Account related to this EventNotification from the Stripe API. Makes an API request on every call.
33
+ def fetch_related_object
34
+ resp = @client.raw_request(
35
+ :get,
36
+ related_object.url,
37
+ opts: { stripe_context: context },
38
+ usage: ["fetch_related_object"]
39
+ )
40
+ @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url))
41
+ end
42
+ end
43
+ end
44
+ end
@@ -48,12 +48,15 @@ module Stripe
48
48
  attr_accessor :expand
49
49
  # Price configuration during the trial period (amount, billing scheme, etc).
50
50
  attr_accessor :price
51
+ # A brief, user-friendly name for the trial offer-for identification purposes.
52
+ attr_accessor :name
51
53
 
52
- def initialize(duration: nil, end_behavior: nil, expand: nil, price: nil)
54
+ def initialize(duration: nil, end_behavior: nil, expand: nil, price: nil, name: nil)
53
55
  @duration = duration
54
56
  @end_behavior = end_behavior
55
57
  @expand = expand
56
58
  @price = price
59
+ @name = name
57
60
  end
58
61
  end
59
62
  end
@@ -4,14 +4,37 @@
4
4
  module Stripe
5
5
  module Radar
6
6
  class AccountEvaluationUpdateParams < ::Stripe::RequestParams
7
+ class LoginFailed < ::Stripe::RequestParams
8
+ # The reason why this login failed.
9
+ attr_accessor :reason
10
+
11
+ def initialize(reason: nil)
12
+ @reason = reason
13
+ end
14
+ end
15
+
16
+ class RegistrationFailed < ::Stripe::RequestParams
17
+ # The reason why this registration failed.
18
+ attr_accessor :reason
19
+
20
+ def initialize(reason: nil)
21
+ @reason = reason
22
+ end
23
+ end
7
24
  # Specifies which fields in the response should be expanded.
8
25
  attr_accessor :expand
9
26
  # The type of event to report.
10
27
  attr_accessor :type
28
+ # Event payload for login_failed.
29
+ attr_accessor :login_failed
30
+ # Event payload for registration_failed.
31
+ attr_accessor :registration_failed
11
32
 
12
- def initialize(expand: nil, type: nil)
33
+ def initialize(expand: nil, type: nil, login_failed: nil, registration_failed: nil)
13
34
  @expand = expand
14
35
  @type = type
36
+ @login_failed = login_failed
37
+ @registration_failed = registration_failed
15
38
  end
16
39
  end
17
40
  end
@@ -18,14 +18,31 @@ module Stripe
18
18
  end
19
19
 
20
20
  class DeliveryOptions < ::Stripe::RequestParams
21
- # Open Enum. Method for bank account.
22
- attr_accessor :bank_account
21
+ class PaperCheck < ::Stripe::RequestParams
22
+ # Memo printed on the memo field of the check.
23
+ attr_accessor :memo
24
+ # Open Enum. Shipping speed of the paper check. Defaults to standard.
25
+ attr_accessor :shipping_speed
26
+ # Signature for the paper check.
27
+ attr_accessor :signature
28
+
29
+ def initialize(memo: nil, shipping_speed: nil, signature: nil)
30
+ @memo = memo
31
+ @shipping_speed = shipping_speed
32
+ @signature = signature
33
+ end
34
+ end
23
35
  # Open Enum. Speed of the payout.
24
36
  attr_accessor :speed
37
+ # Open Enum. Method for bank account.
38
+ attr_accessor :bank_account
39
+ # Delivery options for paper check.
40
+ attr_accessor :paper_check
25
41
 
26
- def initialize(bank_account: nil, speed: nil)
27
- @bank_account = bank_account
42
+ def initialize(speed: nil, bank_account: nil, paper_check: nil)
28
43
  @speed = speed
44
+ @bank_account = bank_account
45
+ @paper_check = paper_check
29
46
  end
30
47
  end
31
48
 
@@ -18,14 +18,14 @@ module Stripe
18
18
  end
19
19
 
20
20
  class DeliveryOptions < ::Stripe::RequestParams
21
- # Open Enum. Method for bank account.
22
- attr_accessor :bank_account
23
21
  # Open Enum. Speed of the payout.
24
22
  attr_accessor :speed
23
+ # Open Enum. Method for bank account.
24
+ attr_accessor :bank_account
25
25
 
26
- def initialize(bank_account: nil, speed: nil)
27
- @bank_account = bank_account
26
+ def initialize(speed: nil, bank_account: nil)
28
27
  @speed = speed
28
+ @bank_account = bank_account
29
29
  end
30
30
  end
31
31
 
@@ -194,14 +194,8 @@ module Stripe
194
194
  attr_reader :amount_discount
195
195
  # The total before any discounts or taxes are applied.
196
196
  attr_reader :amount_subtotal
197
- # The description of the line item.
198
- attr_reader :description
199
- # The images of the line item.
200
- attr_reader :images
201
197
  # The key of the line item.
202
198
  attr_reader :key
203
- # The name of the line item.
204
- attr_reader :name
205
199
  # Attribute for field product_details
206
200
  attr_reader :product_details
207
201
  # The quantity of the line item.
@@ -355,6 +349,39 @@ module Stripe
355
349
  @field_remappings = {}
356
350
  end
357
351
  end
352
+
353
+ class RiskDetails < ::Stripe::StripeObject
354
+ class ClientDeviceMetadataDetails < ::Stripe::StripeObject
355
+ # The radar session for the client device.
356
+ attr_reader :radar_session
357
+ # The referrer of the client device.
358
+ attr_reader :referrer
359
+ # The remote IP address of the client device.
360
+ attr_reader :remote_ip
361
+ # The time spent on the page by the client device.
362
+ attr_reader :time_on_page_ms
363
+ # The user agent of the client device.
364
+ attr_reader :user_agent
365
+
366
+ def self.inner_class_types
367
+ @inner_class_types = {}
368
+ end
369
+
370
+ def self.field_remappings
371
+ @field_remappings = {}
372
+ end
373
+ end
374
+ # The risk metadata for the client device.
375
+ attr_reader :client_device_metadata_details
376
+
377
+ def self.inner_class_types
378
+ @inner_class_types = { client_device_metadata_details: ClientDeviceMetadataDetails }
379
+ end
380
+
381
+ def self.field_remappings
382
+ @field_remappings = {}
383
+ end
384
+ end
358
385
  # The subtotal amount of the requested session.
359
386
  attr_reader :amount_subtotal
360
387
  # The total amount of the requested session.
@@ -399,6 +426,8 @@ module Stripe
399
426
  attr_reader :total_details
400
427
  # Time at which the object was last updated. Measured in seconds since the Unix epoch.
401
428
  attr_reader :updated_at
429
+ # The risk details of the requested session.
430
+ attr_reader :risk_details
402
431
 
403
432
  # Confirms a requested session
404
433
  def confirm(params = {}, opts = {})
@@ -468,6 +497,7 @@ module Stripe
468
497
  payment_method_preview: PaymentMethodPreview,
469
498
  seller_details: SellerDetails,
470
499
  total_details: TotalDetails,
500
+ risk_details: RiskDetails,
471
501
  }
472
502
  end
473
503
 
@@ -78,6 +78,8 @@ module Stripe
78
78
  attr_reader :object
79
79
  # The price during the trial offer.
80
80
  attr_reader :price
81
+ # A brief, user-friendly name for the trial offer-for identification purposes.
82
+ attr_reader :name
81
83
 
82
84
  # Creates a trial offer.
83
85
  def self.create(params = {}, opts = {})
@@ -14,13 +14,42 @@ module Stripe
14
14
  end
15
15
 
16
16
  class Event < ::Stripe::StripeObject
17
+ class LoginFailed < ::Stripe::StripeObject
18
+ # The reason why this login failed.
19
+ attr_reader :reason
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 RegistrationFailed < ::Stripe::StripeObject
31
+ # The reason why this registration failed.
32
+ attr_reader :reason
33
+
34
+ def self.inner_class_types
35
+ @inner_class_types = {}
36
+ end
37
+
38
+ def self.field_remappings
39
+ @field_remappings = {}
40
+ end
41
+ end
17
42
  # Time at which the event occurred. Measured in seconds since the Unix epoch.
18
43
  attr_reader :occurred_at
19
44
  # The type of event that occurred.
20
45
  attr_reader :type
46
+ # Data about a failed login event.
47
+ attr_reader :login_failed
48
+ # Data about a failed registration event.
49
+ attr_reader :registration_failed
21
50
 
22
51
  def self.inner_class_types
23
- @inner_class_types = {}
52
+ @inner_class_types = { login_failed: LoginFailed, registration_failed: RegistrationFailed }
24
53
  end
25
54
 
26
55
  def self.field_remappings
@@ -27,13 +27,31 @@ module Stripe
27
27
  end
28
28
 
29
29
  class DeliveryOptions < ::Stripe::StripeObject
30
- # Open Enum. Method for bank account.
31
- attr_reader :bank_account
30
+ class PaperCheck < ::Stripe::StripeObject
31
+ # Memo printed on the memo field of the check.
32
+ attr_reader :memo
33
+ # Open Enum. Shipping speed of the paper check.
34
+ attr_reader :shipping_speed
35
+ # Signature for the paper check.
36
+ attr_reader :signature
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
32
46
  # Open Enum. Speed of the payout.
33
47
  attr_reader :speed
48
+ # Open Enum. Method for bank account.
49
+ attr_reader :bank_account
50
+ # Delivery options for paper check.
51
+ attr_reader :paper_check
34
52
 
35
53
  def self.inner_class_types
36
- @inner_class_types = {}
54
+ @inner_class_types = { paper_check: PaperCheck }
37
55
  end
38
56
 
39
57
  def self.field_remappings
@@ -195,6 +213,67 @@ module Stripe
195
213
  @field_remappings = {}
196
214
  end
197
215
  end
216
+
217
+ class TrackingDetails < ::Stripe::StripeObject
218
+ class PaperCheck < ::Stripe::StripeObject
219
+ class MailingAddress < ::Stripe::StripeObject
220
+ # City, district, suburb, town, or village.
221
+ attr_reader :city
222
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
223
+ attr_reader :country
224
+ # Address line 1 (e.g., street, PO Box, or company name).
225
+ attr_reader :line1
226
+ # Address line 2 (e.g., apartment, suite, unit, or building).
227
+ attr_reader :line2
228
+ # ZIP or postal code.
229
+ attr_reader :postal_code
230
+ # State, county, province, or region.
231
+ attr_reader :state
232
+ # Town or district.
233
+ attr_reader :town
234
+
235
+ def self.inner_class_types
236
+ @inner_class_types = {}
237
+ end
238
+
239
+ def self.field_remappings
240
+ @field_remappings = {}
241
+ end
242
+ end
243
+ # Open Enum. Carrier of the paper check.
244
+ attr_reader :carrier
245
+ # Check number.
246
+ attr_reader :check_number
247
+ # Postal code of the latest tracking update.
248
+ attr_reader :current_postal_code
249
+ # Mailing address of the paper check.
250
+ attr_reader :mailing_address
251
+ # Tracking number for the check.
252
+ attr_reader :tracking_number
253
+ # Open Enum. Tracking status of the paper check.
254
+ attr_reader :tracking_status
255
+ # When the tracking details were last updated.
256
+ attr_reader :updated_at
257
+
258
+ def self.inner_class_types
259
+ @inner_class_types = { mailing_address: MailingAddress }
260
+ end
261
+
262
+ def self.field_remappings
263
+ @field_remappings = {}
264
+ end
265
+ end
266
+ # Paper check tracking details.
267
+ attr_reader :paper_check
268
+
269
+ def self.inner_class_types
270
+ @inner_class_types = { paper_check: PaperCheck }
271
+ end
272
+
273
+ def self.field_remappings
274
+ @field_remappings = {}
275
+ end
276
+ end
198
277
  # The "presentment amount" for the OutboundPayment.
199
278
  attr_reader :amount
200
279
  # Returns true if the OutboundPayment can be canceled, and false otherwise.
@@ -240,6 +319,8 @@ module Stripe
240
319
  attr_reader :to
241
320
  # A unique identifier that can be used to track this OutboundPayment with recipient bank. Banks might call this a “reference number” or something similar.
242
321
  attr_reader :trace_id
322
+ # Information to track this OutboundPayment with the recipient bank.
323
+ attr_reader :tracking_details
243
324
  # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
244
325
  attr_reader :livemode
245
326
 
@@ -253,6 +334,7 @@ module Stripe
253
334
  status_transitions: StatusTransitions,
254
335
  to: To,
255
336
  trace_id: TraceId,
337
+ tracking_details: TrackingDetails,
256
338
  }
257
339
  end
258
340
 
@@ -27,10 +27,10 @@ module Stripe
27
27
  end
28
28
 
29
29
  class DeliveryOptions < ::Stripe::StripeObject
30
- # Open Enum. Method for bank account.
31
- attr_reader :bank_account
32
30
  # Open Enum. Speed of the payout.
33
31
  attr_reader :speed
32
+ # Open Enum. Method for bank account.
33
+ attr_reader :bank_account
34
34
 
35
35
  def self.inner_class_types
36
36
  @inner_class_types = {}
@@ -291,6 +291,7 @@ require "stripe/events/v2_core_account_including_configuration_recipient_updated
291
291
  require "stripe/events/v2_core_account_including_configuration_storer_capability_status_updated_event"
292
292
  require "stripe/events/v2_core_account_including_configuration_storer_updated_event"
293
293
  require "stripe/events/v2_core_account_including_defaults_updated_event"
294
+ require "stripe/events/v2_core_account_including_future_requirements_updated_event"
294
295
  require "stripe/events/v2_core_account_including_identity_updated_event"
295
296
  require "stripe/events/v2_core_account_including_requirements_updated_event"
296
297
  require "stripe/events/v2_core_account_link_returned_event"
@@ -6,6 +6,8 @@ module Stripe
6
6
  module Core
7
7
  class AccountLinkService < StripeService
8
8
  # Creates an AccountLink object that includes a single-use URL that an account can use to access a Stripe-hosted flow for collecting or updating required information.
9
+ #
10
+ # ** raises RateLimitError
9
11
  def create(params = {}, opts = {})
10
12
  request(
11
13
  method: :post,
@@ -14,6 +14,8 @@ module Stripe
14
14
  end
15
15
 
16
16
  # Removes access to the Account and its associated resources. Closed Accounts can no longer be operated on, but limited information can still be retrieved through the API in order to be able to track their history.
17
+ #
18
+ # ** raises RateLimitError
17
19
  def close(id, params = {}, opts = {})
18
20
  request(
19
21
  method: :post,
@@ -25,6 +27,8 @@ module Stripe
25
27
  end
26
28
 
27
29
  # An Account is a representation of a company, individual or other entity that a user interacts with. Accounts contain identifying information about the entity, and configurations that store the features an account has access to. An account can be configured as any or all of the following configurations: Customer, Merchant and/or Recipient.
30
+ #
31
+ # ** raises RateLimitError
28
32
  def create(params = {}, opts = {})
29
33
  request(
30
34
  method: :post,
@@ -36,6 +40,8 @@ module Stripe
36
40
  end
37
41
 
38
42
  # Returns a list of Accounts.
43
+ #
44
+ # ** raises RateLimitError
39
45
  def list(params = {}, opts = {})
40
46
  request(
41
47
  method: :get,
@@ -47,6 +53,8 @@ module Stripe
47
53
  end
48
54
 
49
55
  # Retrieves the details of an Account.
56
+ #
57
+ # ** raises RateLimitError
50
58
  def retrieve(id, params = {}, opts = {})
51
59
  request(
52
60
  method: :get,
@@ -58,6 +66,8 @@ module Stripe
58
66
  end
59
67
 
60
68
  # Updates the details of an Account.
69
+ #
70
+ # ** raises RateLimitError
61
71
  def update(id, params = {}, opts = {})
62
72
  request(
63
73
  method: :post,
@@ -6,6 +6,8 @@ module Stripe
6
6
  module Core
7
7
  class AccountTokenService < StripeService
8
8
  # Creates an Account Token.
9
+ #
10
+ # ** raises RateLimitError
9
11
  def create(params = {}, opts = {})
10
12
  request(
11
13
  method: :post,
@@ -17,6 +19,8 @@ module Stripe
17
19
  end
18
20
 
19
21
  # Retrieves an Account Token.
22
+ #
23
+ # ** raises RateLimitError
20
24
  def retrieve(id, params = {}, opts = {})
21
25
  request(
22
26
  method: :get,
@@ -7,6 +7,8 @@ module Stripe
7
7
  module Accounts
8
8
  class PersonService < StripeService
9
9
  # Create a Person. Adds an individual to an Account's identity. You can set relationship attributes and identity information at creation.
10
+ #
11
+ # ** raises RateLimitError
10
12
  def create(account_id, params = {}, opts = {})
11
13
  request(
12
14
  method: :post,
@@ -18,6 +20,8 @@ module Stripe
18
20
  end
19
21
 
20
22
  # Delete a Person associated with an Account.
23
+ #
24
+ # ** raises RateLimitError
21
25
  def delete(account_id, id, params = {}, opts = {})
22
26
  request(
23
27
  method: :delete,
@@ -29,6 +33,8 @@ module Stripe
29
33
  end
30
34
 
31
35
  # Returns a paginated list of Persons associated with an Account.
36
+ #
37
+ # ** raises RateLimitError
32
38
  def list(account_id, params = {}, opts = {})
33
39
  request(
34
40
  method: :get,
@@ -40,6 +46,8 @@ module Stripe
40
46
  end
41
47
 
42
48
  # Retrieves a Person associated with an Account.
49
+ #
50
+ # ** raises RateLimitError
43
51
  def retrieve(account_id, id, params = {}, opts = {})
44
52
  request(
45
53
  method: :get,
@@ -51,6 +59,8 @@ module Stripe
51
59
  end
52
60
 
53
61
  # Updates a Person associated with an Account.
62
+ #
63
+ # ** raises RateLimitError
54
64
  def update(account_id, id, params = {}, opts = {})
55
65
  request(
56
66
  method: :post,
@@ -7,6 +7,8 @@ module Stripe
7
7
  module Accounts
8
8
  class PersonTokenService < StripeService
9
9
  # Creates a Person Token associated with an Account.
10
+ #
11
+ # ** raises RateLimitError
10
12
  def create(account_id, params = {}, opts = {})
11
13
  request(
12
14
  method: :post,
@@ -18,6 +20,8 @@ module Stripe
18
20
  end
19
21
 
20
22
  # Retrieves a Person Token associated with an Account.
23
+ #
24
+ # ** raises RateLimitError
21
25
  def retrieve(account_id, id, params = {}, opts = {})
22
26
  request(
23
27
  method: :get,
@@ -5,7 +5,7 @@ module Stripe
5
5
  module V2
6
6
  module Iam
7
7
  class ApiKeyService < StripeService
8
- # Create an API key.
8
+ # Create an API key. To create a secret key in livemode, a public key for encryption must be provided.
9
9
  def create(params = {}, opts = {})
10
10
  request(
11
11
  method: :post,
@@ -16,7 +16,7 @@ module Stripe
16
16
  )
17
17
  end
18
18
 
19
- # Expire an API key.
19
+ # Expire an API key. The specified key becomes invalid immediately.
20
20
  def expire(id, params = {}, opts = {})
21
21
  request(
22
22
  method: :post,
@@ -38,7 +38,7 @@ module Stripe
38
38
  )
39
39
  end
40
40
 
41
- # Retrieve an API key.
41
+ # Retrieve an API key. For livemode secret keys, secret tokens are only returned on creation, and never returned here.
42
42
  def retrieve(id, params = {}, opts = {})
43
43
  request(
44
44
  method: :get,
@@ -49,7 +49,7 @@ module Stripe
49
49
  )
50
50
  end
51
51
 
52
- # Rotate an API key.
52
+ # Rotate an API key. A new key with the same properties is created and returned. The existing key is expired immediately, unless an expiry time is specified.
53
53
  def rotate(id, params = {}, opts = {})
54
54
  request(
55
55
  method: :post,
@@ -60,7 +60,7 @@ module Stripe
60
60
  )
61
61
  end
62
62
 
63
- # Update an API key.
63
+ # Update an API key. Only parameters that are specified in the request will be updated.
64
64
  def update(id, params = {}, opts = {})
65
65
  request(
66
66
  method: :post,
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Stripe
4
- VERSION = "18.2.0-alpha.2"
4
+ VERSION = "18.2.0-alpha.3"
5
5
  end
data/rbi/stripe.rbi CHANGED
@@ -18183,18 +18183,9 @@ module Stripe
18183
18183
  # The total before any discounts or taxes are applied.
18184
18184
  sig { returns(Integer) }
18185
18185
  def amount_subtotal; end
18186
- # The description of the line item.
18187
- sig { returns(T.nilable(String)) }
18188
- def description; end
18189
- # The images of the line item.
18190
- sig { returns(T.nilable(T::Array[String])) }
18191
- def images; end
18192
18186
  # The key of the line item.
18193
18187
  sig { returns(String) }
18194
18188
  def key; end
18195
- # The name of the line item.
18196
- sig { returns(String) }
18197
- def name; end
18198
18189
  # Attribute for field product_details
18199
18190
  sig { returns(T.nilable(ProductDetails)) }
18200
18191
  def product_details; end
@@ -18356,6 +18347,40 @@ module Stripe
18356
18347
  @field_remappings = {}
18357
18348
  end
18358
18349
  end
18350
+ class RiskDetails < ::Stripe::StripeObject
18351
+ class ClientDeviceMetadataDetails < ::Stripe::StripeObject
18352
+ # The radar session for the client device.
18353
+ sig { returns(T.nilable(String)) }
18354
+ def radar_session; end
18355
+ # The referrer of the client device.
18356
+ sig { returns(T.nilable(String)) }
18357
+ def referrer; end
18358
+ # The remote IP address of the client device.
18359
+ sig { returns(T.nilable(String)) }
18360
+ def remote_ip; end
18361
+ # The time spent on the page by the client device.
18362
+ sig { returns(T.nilable(Integer)) }
18363
+ def time_on_page_ms; end
18364
+ # The user agent of the client device.
18365
+ sig { returns(T.nilable(String)) }
18366
+ def user_agent; end
18367
+ def self.inner_class_types
18368
+ @inner_class_types = {}
18369
+ end
18370
+ def self.field_remappings
18371
+ @field_remappings = {}
18372
+ end
18373
+ end
18374
+ # The risk metadata for the client device.
18375
+ sig { returns(T.nilable(ClientDeviceMetadataDetails)) }
18376
+ def client_device_metadata_details; end
18377
+ def self.inner_class_types
18378
+ @inner_class_types = {client_device_metadata_details: ClientDeviceMetadataDetails}
18379
+ end
18380
+ def self.field_remappings
18381
+ @field_remappings = {}
18382
+ end
18383
+ end
18359
18384
  # The subtotal amount of the requested session.
18360
18385
  sig { returns(T.nilable(Integer)) }
18361
18386
  def amount_subtotal; end
@@ -18422,6 +18447,9 @@ module Stripe
18422
18447
  # Time at which the object was last updated. Measured in seconds since the Unix epoch.
18423
18448
  sig { returns(Integer) }
18424
18449
  def updated_at; end
18450
+ # The risk details of the requested session.
18451
+ sig { returns(T.nilable(RiskDetails)) }
18452
+ def risk_details; end
18425
18453
  # Confirms a requested session
18426
18454
  sig {
18427
18455
  params(params: T.any(::Stripe::DelegatedCheckout::RequestedSessionConfirmParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::DelegatedCheckout::RequestedSession)
@@ -42302,6 +42330,9 @@ module Stripe
42302
42330
  # The price during the trial offer.
42303
42331
  sig { returns(T.any(String, ::Stripe::Price)) }
42304
42332
  def price; end
42333
+ # A brief, user-friendly name for the trial offer-for identification purposes.
42334
+ sig { returns(T.nilable(String)) }
42335
+ def name; end
42305
42336
  # Creates a trial offer.
42306
42337
  sig {
42307
42338
  params(params: T.any(::Stripe::ProductCatalog::TrialOfferCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ProductCatalog::TrialOffer)
@@ -46152,14 +46183,42 @@ module Stripe
46152
46183
  # Account Evaluation resource returned by the Radar Account Evaluations API.
46153
46184
  class AccountEvaluation < APIResource
46154
46185
  class Event < ::Stripe::StripeObject
46186
+ class LoginFailed < ::Stripe::StripeObject
46187
+ # The reason why this login failed.
46188
+ sig { returns(String) }
46189
+ def reason; end
46190
+ def self.inner_class_types
46191
+ @inner_class_types = {}
46192
+ end
46193
+ def self.field_remappings
46194
+ @field_remappings = {}
46195
+ end
46196
+ end
46197
+ class RegistrationFailed < ::Stripe::StripeObject
46198
+ # The reason why this registration failed.
46199
+ sig { returns(String) }
46200
+ def reason; end
46201
+ def self.inner_class_types
46202
+ @inner_class_types = {}
46203
+ end
46204
+ def self.field_remappings
46205
+ @field_remappings = {}
46206
+ end
46207
+ end
46155
46208
  # Time at which the event occurred. Measured in seconds since the Unix epoch.
46156
46209
  sig { returns(Integer) }
46157
46210
  def occurred_at; end
46158
46211
  # The type of event that occurred.
46159
46212
  sig { returns(String) }
46160
46213
  def type; end
46214
+ # Data about a failed login event.
46215
+ sig { returns(T.nilable(LoginFailed)) }
46216
+ def login_failed; end
46217
+ # Data about a failed registration event.
46218
+ sig { returns(T.nilable(RegistrationFailed)) }
46219
+ def registration_failed; end
46161
46220
  def self.inner_class_types
46162
- @inner_class_types = {}
46221
+ @inner_class_types = {login_failed: LoginFailed, registration_failed: RegistrationFailed}
46163
46222
  end
46164
46223
  def self.field_remappings
46165
46224
  @field_remappings = {}
@@ -70788,12 +70847,12 @@ module Stripe
70788
70847
  end
70789
70848
  end
70790
70849
  class DeliveryOptions < ::Stripe::StripeObject
70791
- # Open Enum. Method for bank account.
70792
- sig { returns(T.nilable(String)) }
70793
- def bank_account; end
70794
70850
  # Open Enum. Speed of the payout.
70795
70851
  sig { returns(T.nilable(String)) }
70796
70852
  def speed; end
70853
+ # Open Enum. Method for bank account.
70854
+ sig { returns(T.nilable(String)) }
70855
+ def bank_account; end
70797
70856
  def self.inner_class_types
70798
70857
  @inner_class_types = {}
70799
70858
  end
@@ -70978,14 +71037,34 @@ module Stripe
70978
71037
  end
70979
71038
  end
70980
71039
  class DeliveryOptions < ::Stripe::StripeObject
70981
- # Open Enum. Method for bank account.
70982
- sig { returns(T.nilable(String)) }
70983
- def bank_account; end
71040
+ class PaperCheck < ::Stripe::StripeObject
71041
+ # Memo printed on the memo field of the check.
71042
+ sig { returns(T.nilable(String)) }
71043
+ def memo; end
71044
+ # Open Enum. Shipping speed of the paper check.
71045
+ sig { returns(String) }
71046
+ def shipping_speed; end
71047
+ # Signature for the paper check.
71048
+ sig { returns(String) }
71049
+ def signature; end
71050
+ def self.inner_class_types
71051
+ @inner_class_types = {}
71052
+ end
71053
+ def self.field_remappings
71054
+ @field_remappings = {}
71055
+ end
71056
+ end
70984
71057
  # Open Enum. Speed of the payout.
70985
71058
  sig { returns(T.nilable(String)) }
70986
71059
  def speed; end
71060
+ # Open Enum. Method for bank account.
71061
+ sig { returns(T.nilable(String)) }
71062
+ def bank_account; end
71063
+ # Delivery options for paper check.
71064
+ sig { returns(T.nilable(PaperCheck)) }
71065
+ def paper_check; end
70987
71066
  def self.inner_class_types
70988
- @inner_class_types = {}
71067
+ @inner_class_types = {paper_check: PaperCheck}
70989
71068
  end
70990
71069
  def self.field_remappings
70991
71070
  @field_remappings = {}
@@ -71139,6 +71218,75 @@ module Stripe
71139
71218
  @field_remappings = {}
71140
71219
  end
71141
71220
  end
71221
+ class TrackingDetails < ::Stripe::StripeObject
71222
+ class PaperCheck < ::Stripe::StripeObject
71223
+ class MailingAddress < ::Stripe::StripeObject
71224
+ # City, district, suburb, town, or village.
71225
+ sig { returns(T.nilable(String)) }
71226
+ def city; end
71227
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
71228
+ sig { returns(T.nilable(String)) }
71229
+ def country; end
71230
+ # Address line 1 (e.g., street, PO Box, or company name).
71231
+ sig { returns(T.nilable(String)) }
71232
+ def line1; end
71233
+ # Address line 2 (e.g., apartment, suite, unit, or building).
71234
+ sig { returns(T.nilable(String)) }
71235
+ def line2; end
71236
+ # ZIP or postal code.
71237
+ sig { returns(T.nilable(String)) }
71238
+ def postal_code; end
71239
+ # State, county, province, or region.
71240
+ sig { returns(T.nilable(String)) }
71241
+ def state; end
71242
+ # Town or district.
71243
+ sig { returns(T.nilable(String)) }
71244
+ def town; end
71245
+ def self.inner_class_types
71246
+ @inner_class_types = {}
71247
+ end
71248
+ def self.field_remappings
71249
+ @field_remappings = {}
71250
+ end
71251
+ end
71252
+ # Open Enum. Carrier of the paper check.
71253
+ sig { returns(String) }
71254
+ def carrier; end
71255
+ # Check number.
71256
+ sig { returns(String) }
71257
+ def check_number; end
71258
+ # Postal code of the latest tracking update.
71259
+ sig { returns(String) }
71260
+ def current_postal_code; end
71261
+ # Mailing address of the paper check.
71262
+ sig { returns(MailingAddress) }
71263
+ def mailing_address; end
71264
+ # Tracking number for the check.
71265
+ sig { returns(String) }
71266
+ def tracking_number; end
71267
+ # Open Enum. Tracking status of the paper check.
71268
+ sig { returns(String) }
71269
+ def tracking_status; end
71270
+ # When the tracking details were last updated.
71271
+ sig { returns(String) }
71272
+ def updated_at; end
71273
+ def self.inner_class_types
71274
+ @inner_class_types = {mailing_address: MailingAddress}
71275
+ end
71276
+ def self.field_remappings
71277
+ @field_remappings = {}
71278
+ end
71279
+ end
71280
+ # Paper check tracking details.
71281
+ sig { returns(T.nilable(PaperCheck)) }
71282
+ def paper_check; end
71283
+ def self.inner_class_types
71284
+ @inner_class_types = {paper_check: PaperCheck}
71285
+ end
71286
+ def self.field_remappings
71287
+ @field_remappings = {}
71288
+ end
71289
+ end
71142
71290
  # The "presentment amount" for the OutboundPayment.
71143
71291
  sig { returns(Amount) }
71144
71292
  def amount; end
@@ -71204,6 +71352,9 @@ module Stripe
71204
71352
  # A unique identifier that can be used to track this OutboundPayment with recipient bank. Banks might call this a “reference number” or something similar.
71205
71353
  sig { returns(TraceId) }
71206
71354
  def trace_id; end
71355
+ # Information to track this OutboundPayment with the recipient bank.
71356
+ sig { returns(T.nilable(TrackingDetails)) }
71357
+ def tracking_details; end
71207
71358
  # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
71208
71359
  sig { returns(T::Boolean) }
71209
71360
  def livemode; end
@@ -79642,30 +79793,40 @@ module Stripe
79642
79793
  attr_reader :persons
79643
79794
  attr_reader :person_tokens
79644
79795
  # Removes access to the Account and its associated resources. Closed Accounts can no longer be operated on, but limited information can still be retrieved through the API in order to be able to track their history.
79796
+ #
79797
+ # ** raises RateLimitError
79645
79798
  sig {
79646
79799
  params(id: String, params: T.any(::Stripe::V2::Core::AccountCloseParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::V2::Core::Account)
79647
79800
  }
79648
79801
  def close(id, params = {}, opts = {}); end
79649
79802
 
79650
79803
  # An Account is a representation of a company, individual or other entity that a user interacts with. Accounts contain identifying information about the entity, and configurations that store the features an account has access to. An account can be configured as any or all of the following configurations: Customer, Merchant and/or Recipient.
79804
+ #
79805
+ # ** raises RateLimitError
79651
79806
  sig {
79652
79807
  params(params: T.any(::Stripe::V2::Core::AccountCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::V2::Core::Account)
79653
79808
  }
79654
79809
  def create(params = {}, opts = {}); end
79655
79810
 
79656
79811
  # Returns a list of Accounts.
79812
+ #
79813
+ # ** raises RateLimitError
79657
79814
  sig {
79658
79815
  params(params: T.any(::Stripe::V2::Core::AccountListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::V2::ListObject)
79659
79816
  }
79660
79817
  def list(params = {}, opts = {}); end
79661
79818
 
79662
79819
  # Retrieves the details of an Account.
79820
+ #
79821
+ # ** raises RateLimitError
79663
79822
  sig {
79664
79823
  params(id: String, params: T.any(::Stripe::V2::Core::AccountRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::V2::Core::Account)
79665
79824
  }
79666
79825
  def retrieve(id, params = {}, opts = {}); end
79667
79826
 
79668
79827
  # Updates the details of an Account.
79828
+ #
79829
+ # ** raises RateLimitError
79669
79830
  sig {
79670
79831
  params(id: String, params: T.any(::Stripe::V2::Core::AccountUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::V2::Core::Account)
79671
79832
  }
@@ -79681,30 +79842,40 @@ module Stripe
79681
79842
  module Accounts
79682
79843
  class PersonService < StripeService
79683
79844
  # Create a Person. Adds an individual to an Account's identity. You can set relationship attributes and identity information at creation.
79845
+ #
79846
+ # ** raises RateLimitError
79684
79847
  sig {
79685
79848
  params(account_id: String, params: T.any(::Stripe::V2::Core::Accounts::PersonCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::V2::Core::AccountPerson)
79686
79849
  }
79687
79850
  def create(account_id, params = {}, opts = {}); end
79688
79851
 
79689
79852
  # Delete a Person associated with an Account.
79853
+ #
79854
+ # ** raises RateLimitError
79690
79855
  sig {
79691
79856
  params(account_id: String, id: String, params: T.any(::Stripe::V2::Core::Accounts::PersonDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::V2::DeletedObject)
79692
79857
  }
79693
79858
  def delete(account_id, id, params = {}, opts = {}); end
79694
79859
 
79695
79860
  # Returns a paginated list of Persons associated with an Account.
79861
+ #
79862
+ # ** raises RateLimitError
79696
79863
  sig {
79697
79864
  params(account_id: String, params: T.any(::Stripe::V2::Core::Accounts::PersonListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::V2::ListObject)
79698
79865
  }
79699
79866
  def list(account_id, params = {}, opts = {}); end
79700
79867
 
79701
79868
  # Retrieves a Person associated with an Account.
79869
+ #
79870
+ # ** raises RateLimitError
79702
79871
  sig {
79703
79872
  params(account_id: String, id: String, params: T.any(::Stripe::V2::Core::Accounts::PersonRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::V2::Core::AccountPerson)
79704
79873
  }
79705
79874
  def retrieve(account_id, id, params = {}, opts = {}); end
79706
79875
 
79707
79876
  # Updates a Person associated with an Account.
79877
+ #
79878
+ # ** raises RateLimitError
79708
79879
  sig {
79709
79880
  params(account_id: String, id: String, params: T.any(::Stripe::V2::Core::Accounts::PersonUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::V2::Core::AccountPerson)
79710
79881
  }
@@ -79721,12 +79892,16 @@ module Stripe
79721
79892
  module Accounts
79722
79893
  class PersonTokenService < StripeService
79723
79894
  # Creates a Person Token associated with an Account.
79895
+ #
79896
+ # ** raises RateLimitError
79724
79897
  sig {
79725
79898
  params(account_id: String, params: T.any(::Stripe::V2::Core::Accounts::PersonTokenCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::V2::Core::AccountPersonToken)
79726
79899
  }
79727
79900
  def create(account_id, params = {}, opts = {}); end
79728
79901
 
79729
79902
  # Retrieves a Person Token associated with an Account.
79903
+ #
79904
+ # ** raises RateLimitError
79730
79905
  sig {
79731
79906
  params(account_id: String, id: String, params: T.any(::Stripe::V2::Core::Accounts::PersonTokenRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::V2::Core::AccountPersonToken)
79732
79907
  }
@@ -79742,6 +79917,8 @@ module Stripe
79742
79917
  module Core
79743
79918
  class AccountLinkService < StripeService
79744
79919
  # Creates an AccountLink object that includes a single-use URL that an account can use to access a Stripe-hosted flow for collecting or updating required information.
79920
+ #
79921
+ # ** raises RateLimitError
79745
79922
  sig {
79746
79923
  params(params: T.any(::Stripe::V2::Core::AccountLinkCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::V2::Core::AccountLink)
79747
79924
  }
@@ -79756,12 +79933,16 @@ module Stripe
79756
79933
  module Core
79757
79934
  class AccountTokenService < StripeService
79758
79935
  # Creates an Account Token.
79936
+ #
79937
+ # ** raises RateLimitError
79759
79938
  sig {
79760
79939
  params(params: T.any(::Stripe::V2::Core::AccountTokenCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::V2::Core::AccountToken)
79761
79940
  }
79762
79941
  def create(params = {}, opts = {}); end
79763
79942
 
79764
79943
  # Retrieves an Account Token.
79944
+ #
79945
+ # ** raises RateLimitError
79765
79946
  sig {
79766
79947
  params(id: String, params: T.any(::Stripe::V2::Core::AccountTokenRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::V2::Core::AccountToken)
79767
79948
  }
@@ -80010,13 +80191,13 @@ module Stripe
80010
80191
  module V2
80011
80192
  module Iam
80012
80193
  class ApiKeyService < StripeService
80013
- # Create an API key.
80194
+ # Create an API key. To create a secret key in livemode, a public key for encryption must be provided.
80014
80195
  sig {
80015
80196
  params(params: T.any(::Stripe::V2::Iam::ApiKeyCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::V2::Iam::ApiKey)
80016
80197
  }
80017
80198
  def create(params = {}, opts = {}); end
80018
80199
 
80019
- # Expire an API key.
80200
+ # Expire an API key. The specified key becomes invalid immediately.
80020
80201
  sig {
80021
80202
  params(id: String, params: T.any(::Stripe::V2::Iam::ApiKeyExpireParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::V2::Iam::ApiKey)
80022
80203
  }
@@ -80028,19 +80209,19 @@ module Stripe
80028
80209
  }
80029
80210
  def list(params = {}, opts = {}); end
80030
80211
 
80031
- # Retrieve an API key.
80212
+ # Retrieve an API key. For livemode secret keys, secret tokens are only returned on creation, and never returned here.
80032
80213
  sig {
80033
80214
  params(id: String, params: T.any(::Stripe::V2::Iam::ApiKeyRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::V2::Iam::ApiKey)
80034
80215
  }
80035
80216
  def retrieve(id, params = {}, opts = {}); end
80036
80217
 
80037
- # Rotate an API key.
80218
+ # Rotate an API key. A new key with the same properties is created and returned. The existing key is expired immediately, unless an expiry time is specified.
80038
80219
  sig {
80039
80220
  params(id: String, params: T.any(::Stripe::V2::Iam::ApiKeyRotateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::V2::Iam::ApiKey)
80040
80221
  }
80041
80222
  def rotate(id, params = {}, opts = {}); end
80042
80223
 
80043
- # Update an API key.
80224
+ # Update an API key. Only parameters that are specified in the request will be updated.
80044
80225
  sig {
80045
80226
  params(id: String, params: T.any(::Stripe::V2::Iam::ApiKeyUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::V2::Iam::ApiKey)
80046
80227
  }
@@ -170898,10 +171079,15 @@ module Stripe
170898
171079
  def price; end
170899
171080
  sig { params(_price: String).returns(String) }
170900
171081
  def price=(_price); end
171082
+ # A brief, user-friendly name for the trial offer-for identification purposes.
171083
+ sig { returns(T.nilable(String)) }
171084
+ def name; end
171085
+ sig { params(_name: T.nilable(String)).returns(T.nilable(String)) }
171086
+ def name=(_name); end
170901
171087
  sig {
170902
- params(duration: ProductCatalog::TrialOfferCreateParams::Duration, end_behavior: ProductCatalog::TrialOfferCreateParams::EndBehavior, expand: T.nilable(T::Array[String]), price: String).void
171088
+ params(duration: ProductCatalog::TrialOfferCreateParams::Duration, end_behavior: ProductCatalog::TrialOfferCreateParams::EndBehavior, expand: T.nilable(T::Array[String]), price: String, name: T.nilable(String)).void
170903
171089
  }
170904
- def initialize(duration: nil, end_behavior: nil, expand: nil, price: nil); end
171090
+ def initialize(duration: nil, end_behavior: nil, expand: nil, price: nil, name: nil); end
170905
171091
  end
170906
171092
  end
170907
171093
  end
@@ -176321,6 +176507,24 @@ end
176321
176507
  module Stripe
176322
176508
  module Radar
176323
176509
  class AccountEvaluationUpdateParams < ::Stripe::RequestParams
176510
+ class LoginFailed < ::Stripe::RequestParams
176511
+ # The reason why this login failed.
176512
+ sig { returns(String) }
176513
+ def reason; end
176514
+ sig { params(_reason: String).returns(String) }
176515
+ def reason=(_reason); end
176516
+ sig { params(reason: String).void }
176517
+ def initialize(reason: nil); end
176518
+ end
176519
+ class RegistrationFailed < ::Stripe::RequestParams
176520
+ # The reason why this registration failed.
176521
+ sig { returns(String) }
176522
+ def reason; end
176523
+ sig { params(_reason: String).returns(String) }
176524
+ def reason=(_reason); end
176525
+ sig { params(reason: String).void }
176526
+ def initialize(reason: nil); end
176527
+ end
176324
176528
  # Specifies which fields in the response should be expanded.
176325
176529
  sig { returns(T.nilable(T::Array[String])) }
176326
176530
  def expand; end
@@ -176331,8 +176535,24 @@ module Stripe
176331
176535
  def type; end
176332
176536
  sig { params(_type: String).returns(String) }
176333
176537
  def type=(_type); end
176334
- sig { params(expand: T.nilable(T::Array[String]), type: String).void }
176335
- def initialize(expand: nil, type: nil); end
176538
+ # Event payload for login_failed.
176539
+ sig { returns(T.nilable(Radar::AccountEvaluationUpdateParams::LoginFailed)) }
176540
+ def login_failed; end
176541
+ sig {
176542
+ params(_login_failed: T.nilable(Radar::AccountEvaluationUpdateParams::LoginFailed)).returns(T.nilable(Radar::AccountEvaluationUpdateParams::LoginFailed))
176543
+ }
176544
+ def login_failed=(_login_failed); end
176545
+ # Event payload for registration_failed.
176546
+ sig { returns(T.nilable(Radar::AccountEvaluationUpdateParams::RegistrationFailed)) }
176547
+ def registration_failed; end
176548
+ sig {
176549
+ params(_registration_failed: T.nilable(Radar::AccountEvaluationUpdateParams::RegistrationFailed)).returns(T.nilable(Radar::AccountEvaluationUpdateParams::RegistrationFailed))
176550
+ }
176551
+ def registration_failed=(_registration_failed); end
176552
+ sig {
176553
+ params(expand: T.nilable(T::Array[String]), type: String, login_failed: T.nilable(Radar::AccountEvaluationUpdateParams::LoginFailed), registration_failed: T.nilable(Radar::AccountEvaluationUpdateParams::RegistrationFailed)).void
176554
+ }
176555
+ def initialize(expand: nil, type: nil, login_failed: nil, registration_failed: nil); end
176336
176556
  end
176337
176557
  end
176338
176558
  end
@@ -237162,18 +237382,50 @@ module Stripe
237162
237382
  def initialize(value: nil, currency: nil); end
237163
237383
  end
237164
237384
  class DeliveryOptions < ::Stripe::RequestParams
237165
- # Open Enum. Method for bank account.
237166
- sig { returns(T.nilable(String)) }
237167
- def bank_account; end
237168
- sig { params(_bank_account: T.nilable(String)).returns(T.nilable(String)) }
237169
- def bank_account=(_bank_account); end
237385
+ class PaperCheck < ::Stripe::RequestParams
237386
+ # Memo printed on the memo field of the check.
237387
+ sig { returns(T.nilable(String)) }
237388
+ def memo; end
237389
+ sig { params(_memo: T.nilable(String)).returns(T.nilable(String)) }
237390
+ def memo=(_memo); end
237391
+ # Open Enum. Shipping speed of the paper check. Defaults to standard.
237392
+ sig { returns(T.nilable(String)) }
237393
+ def shipping_speed; end
237394
+ sig { params(_shipping_speed: T.nilable(String)).returns(T.nilable(String)) }
237395
+ def shipping_speed=(_shipping_speed); end
237396
+ # Signature for the paper check.
237397
+ sig { returns(String) }
237398
+ def signature; end
237399
+ sig { params(_signature: String).returns(String) }
237400
+ def signature=(_signature); end
237401
+ sig {
237402
+ params(memo: T.nilable(String), shipping_speed: T.nilable(String), signature: String).void
237403
+ }
237404
+ def initialize(memo: nil, shipping_speed: nil, signature: nil); end
237405
+ end
237170
237406
  # Open Enum. Speed of the payout.
237171
237407
  sig { returns(T.nilable(String)) }
237172
237408
  def speed; end
237173
237409
  sig { params(_speed: T.nilable(String)).returns(T.nilable(String)) }
237174
237410
  def speed=(_speed); end
237175
- sig { params(bank_account: T.nilable(String), speed: T.nilable(String)).void }
237176
- def initialize(bank_account: nil, speed: nil); end
237411
+ # Open Enum. Method for bank account.
237412
+ sig { returns(T.nilable(String)) }
237413
+ def bank_account; end
237414
+ sig { params(_bank_account: T.nilable(String)).returns(T.nilable(String)) }
237415
+ def bank_account=(_bank_account); end
237416
+ # Delivery options for paper check.
237417
+ sig {
237418
+ returns(T.nilable(V2::MoneyManagement::OutboundPaymentCreateParams::DeliveryOptions::PaperCheck))
237419
+ }
237420
+ def paper_check; end
237421
+ sig {
237422
+ params(_paper_check: T.nilable(V2::MoneyManagement::OutboundPaymentCreateParams::DeliveryOptions::PaperCheck)).returns(T.nilable(V2::MoneyManagement::OutboundPaymentCreateParams::DeliveryOptions::PaperCheck))
237423
+ }
237424
+ def paper_check=(_paper_check); end
237425
+ sig {
237426
+ params(speed: T.nilable(String), bank_account: T.nilable(String), paper_check: T.nilable(V2::MoneyManagement::OutboundPaymentCreateParams::DeliveryOptions::PaperCheck)).void
237427
+ }
237428
+ def initialize(speed: nil, bank_account: nil, paper_check: nil); end
237177
237429
  end
237178
237430
  class From < ::Stripe::RequestParams
237179
237431
  # Describes the FinancialAmount's currency drawn from.
@@ -237341,18 +237593,18 @@ module Stripe
237341
237593
  def initialize(value: nil, currency: nil); end
237342
237594
  end
237343
237595
  class DeliveryOptions < ::Stripe::RequestParams
237344
- # Open Enum. Method for bank account.
237345
- sig { returns(T.nilable(String)) }
237346
- def bank_account; end
237347
- sig { params(_bank_account: T.nilable(String)).returns(T.nilable(String)) }
237348
- def bank_account=(_bank_account); end
237349
237596
  # Open Enum. Speed of the payout.
237350
237597
  sig { returns(T.nilable(String)) }
237351
237598
  def speed; end
237352
237599
  sig { params(_speed: T.nilable(String)).returns(T.nilable(String)) }
237353
237600
  def speed=(_speed); end
237354
- sig { params(bank_account: T.nilable(String), speed: T.nilable(String)).void }
237355
- def initialize(bank_account: nil, speed: nil); end
237601
+ # Open Enum. Method for bank account.
237602
+ sig { returns(T.nilable(String)) }
237603
+ def bank_account; end
237604
+ sig { params(_bank_account: T.nilable(String)).returns(T.nilable(String)) }
237605
+ def bank_account=(_bank_account); end
237606
+ sig { params(speed: T.nilable(String), bank_account: T.nilable(String)).void }
237607
+ def initialize(speed: nil, bank_account: nil); end
237356
237608
  end
237357
237609
  class From < ::Stripe::RequestParams
237358
237610
  # Describes the FinancialAccount's currency drawn from.
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.2.0.pre.alpha.2
4
+ version: 18.2.0.pre.alpha.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stripe
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2026-01-07 00:00:00.000000000 Z
11
+ date: 2026-01-14 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.
@@ -90,6 +90,7 @@ files:
90
90
  - lib/stripe/events/v2_core_account_including_configuration_storer_capability_status_updated_event.rb
91
91
  - lib/stripe/events/v2_core_account_including_configuration_storer_updated_event.rb
92
92
  - lib/stripe/events/v2_core_account_including_defaults_updated_event.rb
93
+ - lib/stripe/events/v2_core_account_including_future_requirements_updated_event.rb
93
94
  - lib/stripe/events/v2_core_account_including_identity_updated_event.rb
94
95
  - lib/stripe/events/v2_core_account_including_requirements_updated_event.rb
95
96
  - lib/stripe/events/v2_core_account_link_returned_event.rb