stripe 15.2.1 → 15.3.0

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 (106) hide show
  1. checksums.yaml +4 -4
  2. data/API_VERSION +1 -0
  3. data/CHANGELOG.md +66 -39
  4. data/OPENAPI_VERSION +1 -1
  5. data/README.md +14 -50
  6. data/VERSION +1 -1
  7. data/lib/stripe/api_version.rb +2 -1
  8. data/lib/stripe/events/v2_core_event_destination_ping_event.rb +1 -1
  9. data/lib/stripe/resources/account.rb +89 -5
  10. data/lib/stripe/resources/account_session.rb +79 -79
  11. data/lib/stripe/resources/billing_portal/session.rb +2 -2
  12. data/lib/stripe/resources/charge.rb +28 -15
  13. data/lib/stripe/resources/checkout/session.rb +57 -7
  14. data/lib/stripe/resources/confirmation_token.rb +19 -11
  15. data/lib/stripe/resources/credit_note.rb +9 -9
  16. data/lib/stripe/resources/customer_session.rb +2 -2
  17. data/lib/stripe/resources/event.rb +1 -1
  18. data/lib/stripe/resources/identity/verification_session.rb +34 -0
  19. data/lib/stripe/resources/invoice.rb +29 -4
  20. data/lib/stripe/resources/invoice_item.rb +1 -4
  21. data/lib/stripe/resources/mandate.rb +3 -0
  22. data/lib/stripe/resources/payment_intent.rb +331 -12
  23. data/lib/stripe/resources/payment_method.rb +17 -9
  24. data/lib/stripe/resources/quote.rb +26 -3
  25. data/lib/stripe/resources/setup_attempt.rb +1 -1
  26. data/lib/stripe/resources/setup_intent.rb +285 -3
  27. data/lib/stripe/resources/subscription.rb +68 -6
  28. data/lib/stripe/resources/subscription_schedule.rb +22 -0
  29. data/lib/stripe/resources/tax/registration.rb +20 -0
  30. data/lib/stripe/resources/terminal/configuration.rb +1 -0
  31. data/lib/stripe/resources/terminal/reader.rb +152 -4
  32. data/lib/stripe/resources/token.rb +1 -1
  33. data/lib/stripe/resources/treasury/financial_account.rb +5 -1
  34. data/lib/stripe/services/account_service.rb +83 -5
  35. data/lib/stripe/services/account_session_service.rb +48 -48
  36. data/lib/stripe/services/billing_portal/session_service.rb +1 -1
  37. data/lib/stripe/services/checkout/session_service.rb +57 -7
  38. data/lib/stripe/services/credit_note_preview_lines_service.rb +3 -3
  39. data/lib/stripe/services/credit_note_service.rb +6 -6
  40. data/lib/stripe/services/customer_session_service.rb +1 -1
  41. data/lib/stripe/services/identity/verification_session_service.rb +16 -0
  42. data/lib/stripe/services/invoice_service.rb +29 -4
  43. data/lib/stripe/services/payment_intent_service.rb +315 -9
  44. data/lib/stripe/services/payment_method_service.rb +5 -0
  45. data/lib/stripe/services/quote_service.rb +20 -3
  46. data/lib/stripe/services/setup_intent_service.rb +275 -2
  47. data/lib/stripe/services/subscription_schedule_service.rb +13 -0
  48. data/lib/stripe/services/subscription_service.rb +48 -4
  49. data/lib/stripe/services/tax/registration_service.rb +13 -0
  50. data/lib/stripe/services/terminal/reader_service.rb +90 -0
  51. data/lib/stripe/services/test_helpers/confirmation_token_service.rb +6 -1
  52. data/lib/stripe/services/token_service.rb +1 -1
  53. data/lib/stripe/services/treasury/financial_account_service.rb +5 -1
  54. data/lib/stripe/services/v2/billing_service.rb +2 -2
  55. data/lib/stripe/services/v2/core/event_destination_service.rb +16 -16
  56. data/lib/stripe/version.rb +1 -1
  57. data/rbi/stripe/resources/account.rbi +78 -9
  58. data/rbi/stripe/resources/account_session.rbi +79 -79
  59. data/rbi/stripe/resources/billing_portal/session.rbi +2 -2
  60. data/rbi/stripe/resources/charge.rbi +32 -15
  61. data/rbi/stripe/resources/checkout/session.rbi +65 -9
  62. data/rbi/stripe/resources/confirmation_token.rbi +23 -12
  63. data/rbi/stripe/resources/credit_note.rbi +9 -9
  64. data/rbi/stripe/resources/customer_session.rbi +2 -2
  65. data/rbi/stripe/resources/event.rbi +1 -1
  66. data/rbi/stripe/resources/identity/verification_session.rbi +39 -1
  67. data/rbi/stripe/resources/invoice.rbi +36 -6
  68. data/rbi/stripe/resources/invoice_item.rbi +1 -4
  69. data/rbi/stripe/resources/mandate.rbi +4 -0
  70. data/rbi/stripe/resources/payment_intent.rbi +361 -21
  71. data/rbi/stripe/resources/payment_method.rbi +19 -10
  72. data/rbi/stripe/resources/quote.rbi +22 -3
  73. data/rbi/stripe/resources/setup_attempt.rbi +1 -1
  74. data/rbi/stripe/resources/setup_intent.rbi +332 -9
  75. data/rbi/stripe/resources/subscription.rbi +60 -7
  76. data/rbi/stripe/resources/subscription_schedule.rbi +23 -1
  77. data/rbi/stripe/resources/tax/registration.rbi +20 -1
  78. data/rbi/stripe/resources/terminal/configuration.rbi +1 -0
  79. data/rbi/stripe/resources/terminal/location.rbi +2 -2
  80. data/rbi/stripe/resources/terminal/reader.rbi +151 -4
  81. data/rbi/stripe/resources/token.rbi +1 -1
  82. data/rbi/stripe/resources/treasury/financial_account.rbi +6 -2
  83. data/rbi/stripe/services/account_service.rbi +77 -9
  84. data/rbi/stripe/services/account_session_service.rbi +48 -48
  85. data/rbi/stripe/services/billing_portal/session_service.rbi +1 -1
  86. data/rbi/stripe/services/checkout/session_service.rbi +65 -9
  87. data/rbi/stripe/services/credit_note_preview_lines_service.rbi +3 -3
  88. data/rbi/stripe/services/credit_note_service.rbi +6 -6
  89. data/rbi/stripe/services/customer_session_service.rbi +1 -1
  90. data/rbi/stripe/services/identity/verification_session_service.rbi +17 -1
  91. data/rbi/stripe/services/invoice_service.rbi +36 -6
  92. data/rbi/stripe/services/payment_intent_service.rbi +348 -18
  93. data/rbi/stripe/services/payment_method_service.rbi +6 -1
  94. data/rbi/stripe/services/quote_service.rbi +16 -3
  95. data/rbi/stripe/services/setup_intent_service.rbi +326 -8
  96. data/rbi/stripe/services/subscription_schedule_service.rbi +12 -1
  97. data/rbi/stripe/services/subscription_service.rbi +41 -5
  98. data/rbi/stripe/services/tax/registration_service.rbi +14 -1
  99. data/rbi/stripe/services/terminal/location_service.rbi +2 -2
  100. data/rbi/stripe/services/terminal/reader_service.rbi +85 -0
  101. data/rbi/stripe/services/test_helpers/confirmation_token_service.rbi +9 -2
  102. data/rbi/stripe/services/token_service.rbi +1 -1
  103. data/rbi/stripe/services/treasury/financial_account_service.rbi +6 -2
  104. data/rbi/stripe/services/v2/billing_service.rbi +1 -1
  105. data/rbi/stripe/services/v2/core/event_destination_service.rbi +13 -13
  106. metadata +3 -2
@@ -14,10 +14,10 @@ module Stripe
14
14
  class Components < Stripe::StripeObject
15
15
  class AccountManagement < Stripe::StripeObject
16
16
  class Features < Stripe::StripeObject
17
- # Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. The default value is the opposite of the `external_account_collection` value. For example, if you dont set `external_account_collection`, it defaults to true and `disable_stripe_user_authentication` defaults to false.
17
+ # Whether Stripe user authentication is disabled. This value can only be `true` for accounts where `controller.requirement_collection` is `application` for the account. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to `true` and `disable_stripe_user_authentication` defaults to `false`.
18
18
  sig { returns(T::Boolean) }
19
19
  attr_reader :disable_stripe_user_authentication
20
- # Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for accounts where you’re responsible for collecting updated information when requirements are due or change, like custom accounts. Otherwise, bank account collection is determined by compliance requirements. The default value for this feature is `true`.
20
+ # Whether external account collection is enabled. This feature can only be `false` for accounts where you’re responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `true`.
21
21
  sig { returns(T::Boolean) }
22
22
  attr_reader :external_account_collection
23
23
  end
@@ -30,10 +30,10 @@ module Stripe
30
30
  end
31
31
  class AccountOnboarding < Stripe::StripeObject
32
32
  class Features < Stripe::StripeObject
33
- # Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. The default value is the opposite of the `external_account_collection` value. For example, if you dont set `external_account_collection`, it defaults to true and `disable_stripe_user_authentication` defaults to false.
33
+ # Whether Stripe user authentication is disabled. This value can only be `true` for accounts where `controller.requirement_collection` is `application` for the account. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to `true` and `disable_stripe_user_authentication` defaults to `false`.
34
34
  sig { returns(T::Boolean) }
35
35
  attr_reader :disable_stripe_user_authentication
36
- # Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for accounts where you’re responsible for collecting updated information when requirements are due or change, like custom accounts. Otherwise, bank account collection is determined by compliance requirements. The default value for this feature is `true`.
36
+ # Whether external account collection is enabled. This feature can only be `false` for accounts where you’re responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `true`.
37
37
  sig { returns(T::Boolean) }
38
38
  attr_reader :external_account_collection
39
39
  end
@@ -46,19 +46,19 @@ module Stripe
46
46
  end
47
47
  class Balances < Stripe::StripeObject
48
48
  class Features < Stripe::StripeObject
49
- # Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. The default value is the opposite of the `external_account_collection` value. For example, if you dont set `external_account_collection`, it defaults to true and `disable_stripe_user_authentication` defaults to false.
49
+ # Whether Stripe user authentication is disabled. This value can only be `true` for accounts where `controller.requirement_collection` is `application` for the account. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to `true` and `disable_stripe_user_authentication` defaults to `false`.
50
50
  sig { returns(T::Boolean) }
51
51
  attr_reader :disable_stripe_user_authentication
52
- # Whether to allow payout schedule to be changed. Default `true` when Stripe owns Loss Liability, default `false` otherwise.
52
+ # Whether to allow payout schedule to be changed. Defaults to `true` when `controller.losses.payments` is set to `stripe` for the account, otherwise `false`.
53
53
  sig { returns(T::Boolean) }
54
54
  attr_reader :edit_payout_schedule
55
- # Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for accounts where you’re responsible for collecting updated information when requirements are due or change, like custom accounts. Otherwise, bank account collection is determined by compliance requirements. The default value for this feature is `true`.
55
+ # Whether external account collection is enabled. This feature can only be `false` for accounts where you’re responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `true`.
56
56
  sig { returns(T::Boolean) }
57
57
  attr_reader :external_account_collection
58
- # Whether to allow creation of instant payouts. Default `true` when Stripe owns Loss Liability, default `false` otherwise.
58
+ # Whether to allow creation of instant payouts. Defaults to `true` when `controller.losses.payments` is set to `stripe` for the account, otherwise `false`.
59
59
  sig { returns(T::Boolean) }
60
60
  attr_reader :instant_payouts
61
- # Whether to allow creation of standard payouts. Default `true` when Stripe owns Loss Liability, default `false` otherwise.
61
+ # Whether to allow creation of standard payouts. Defaults to `true` when `controller.losses.payments` is set to `stripe` for the account, otherwise `false`.
62
62
  sig { returns(T::Boolean) }
63
63
  attr_reader :standard_payouts
64
64
  end
@@ -74,13 +74,13 @@ module Stripe
74
74
  # Whether to allow capturing and cancelling payment intents. This is `true` by default.
75
75
  sig { returns(T::Boolean) }
76
76
  attr_reader :capture_payments
77
- # Whether to allow connected accounts to manage destination charges that are created on behalf of them. This is `false` by default.
77
+ # Whether connected accounts can manage destination charges that are created on behalf of them. This is `false` by default.
78
78
  sig { returns(T::Boolean) }
79
79
  attr_reader :destination_on_behalf_of_charge_management
80
- # Whether to allow responding to disputes, including submitting evidence and accepting disputes. This is `true` by default.
80
+ # Whether responding to disputes is enabled, including submitting evidence and accepting disputes. This is `true` by default.
81
81
  sig { returns(T::Boolean) }
82
82
  attr_reader :dispute_management
83
- # Whether to allow sending refunds. This is `true` by default.
83
+ # Whether sending refunds is enabled. This is `true` by default.
84
84
  sig { returns(T::Boolean) }
85
85
  attr_reader :refund_management
86
86
  end
@@ -102,10 +102,10 @@ module Stripe
102
102
  end
103
103
  class FinancialAccount < Stripe::StripeObject
104
104
  class Features < Stripe::StripeObject
105
- # Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. The default value is the opposite of the `external_account_collection` value. For example, if you dont set `external_account_collection`, it defaults to true and `disable_stripe_user_authentication` defaults to false.
105
+ # Whether Stripe user authentication is disabled. This value can only be `true` for accounts where `controller.requirement_collection` is `application` for the account. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to `true` and `disable_stripe_user_authentication` defaults to `false`.
106
106
  sig { returns(T::Boolean) }
107
107
  attr_reader :disable_stripe_user_authentication
108
- # Whether to allow external accounts to be linked for money transfer.
108
+ # Whether external account collection is enabled. This feature can only be `false` for accounts where you’re responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `true`.
109
109
  sig { returns(T::Boolean) }
110
110
  attr_reader :external_account_collection
111
111
  # Whether to allow sending money.
@@ -168,7 +168,7 @@ module Stripe
168
168
  # Whether to allow cardholder management features.
169
169
  sig { returns(T::Boolean) }
170
170
  attr_reader :cardholder_management
171
- # Disables Stripe user authentication for this embedded component. This feature can only be false for accounts where you’re responsible for collecting updated information when requirements are due or change, like custom accounts.
171
+ # Whether Stripe user authentication is disabled. This value can only be `true` for accounts where `controller.requirement_collection` is `application` for the account. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to `true` and `disable_stripe_user_authentication` defaults to `false`.
172
172
  sig { returns(T::Boolean) }
173
173
  attr_reader :disable_stripe_user_authentication
174
174
  # Whether to allow spend control management features.
@@ -184,10 +184,10 @@ module Stripe
184
184
  end
185
185
  class NotificationBanner < Stripe::StripeObject
186
186
  class Features < Stripe::StripeObject
187
- # Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. The default value is the opposite of the `external_account_collection` value. For example, if you dont set `external_account_collection`, it defaults to true and `disable_stripe_user_authentication` defaults to false.
187
+ # Whether Stripe user authentication is disabled. This value can only be `true` for accounts where `controller.requirement_collection` is `application` for the account. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to `true` and `disable_stripe_user_authentication` defaults to `false`.
188
188
  sig { returns(T::Boolean) }
189
189
  attr_reader :disable_stripe_user_authentication
190
- # Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for accounts where you’re responsible for collecting updated information when requirements are due or change, like custom accounts. Otherwise, bank account collection is determined by compliance requirements. The default value for this feature is `true`.
190
+ # Whether external account collection is enabled. This feature can only be `false` for accounts where you’re responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `true`.
191
191
  sig { returns(T::Boolean) }
192
192
  attr_reader :external_account_collection
193
193
  end
@@ -203,13 +203,13 @@ module Stripe
203
203
  # Whether to allow capturing and cancelling payment intents. This is `true` by default.
204
204
  sig { returns(T::Boolean) }
205
205
  attr_reader :capture_payments
206
- # Whether to allow connected accounts to manage destination charges that are created on behalf of them. This is `false` by default.
206
+ # Whether connected accounts can manage destination charges that are created on behalf of them. This is `false` by default.
207
207
  sig { returns(T::Boolean) }
208
208
  attr_reader :destination_on_behalf_of_charge_management
209
- # Whether to allow responding to disputes, including submitting evidence and accepting disputes. This is `true` by default.
209
+ # Whether responding to disputes is enabled, including submitting evidence and accepting disputes. This is `true` by default.
210
210
  sig { returns(T::Boolean) }
211
211
  attr_reader :dispute_management
212
- # Whether to allow sending refunds. This is `true` by default.
212
+ # Whether sending refunds is enabled. This is `true` by default.
213
213
  sig { returns(T::Boolean) }
214
214
  attr_reader :refund_management
215
215
  end
@@ -222,13 +222,13 @@ module Stripe
222
222
  end
223
223
  class PaymentDisputes < Stripe::StripeObject
224
224
  class Features < Stripe::StripeObject
225
- # Whether to allow connected accounts to manage destination charges that are created on behalf of them. This is `false` by default.
225
+ # Whether connected accounts can manage destination charges that are created on behalf of them. This is `false` by default.
226
226
  sig { returns(T::Boolean) }
227
227
  attr_reader :destination_on_behalf_of_charge_management
228
- # Whether to allow responding to disputes, including submitting evidence and accepting disputes. This is `true` by default.
228
+ # Whether responding to disputes is enabled, including submitting evidence and accepting disputes. This is `true` by default.
229
229
  sig { returns(T::Boolean) }
230
230
  attr_reader :dispute_management
231
- # Whether to allow sending refunds. This is `true` by default.
231
+ # Whether sending refunds is enabled. This is `true` by default.
232
232
  sig { returns(T::Boolean) }
233
233
  attr_reader :refund_management
234
234
  end
@@ -244,13 +244,13 @@ module Stripe
244
244
  # Whether to allow capturing and cancelling payment intents. This is `true` by default.
245
245
  sig { returns(T::Boolean) }
246
246
  attr_reader :capture_payments
247
- # Whether to allow connected accounts to manage destination charges that are created on behalf of them. This is `false` by default.
247
+ # Whether connected accounts can manage destination charges that are created on behalf of them. This is `false` by default.
248
248
  sig { returns(T::Boolean) }
249
249
  attr_reader :destination_on_behalf_of_charge_management
250
- # Whether to allow responding to disputes, including submitting evidence and accepting disputes. This is `true` by default.
250
+ # Whether responding to disputes is enabled, including submitting evidence and accepting disputes. This is `true` by default.
251
251
  sig { returns(T::Boolean) }
252
252
  attr_reader :dispute_management
253
- # Whether to allow sending refunds. This is `true` by default.
253
+ # Whether sending refunds is enabled. This is `true` by default.
254
254
  sig { returns(T::Boolean) }
255
255
  attr_reader :refund_management
256
256
  end
@@ -263,19 +263,19 @@ module Stripe
263
263
  end
264
264
  class Payouts < Stripe::StripeObject
265
265
  class Features < Stripe::StripeObject
266
- # Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. The default value is the opposite of the `external_account_collection` value. For example, if you dont set `external_account_collection`, it defaults to true and `disable_stripe_user_authentication` defaults to false.
266
+ # Whether Stripe user authentication is disabled. This value can only be `true` for accounts where `controller.requirement_collection` is `application` for the account. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to `true` and `disable_stripe_user_authentication` defaults to `false`.
267
267
  sig { returns(T::Boolean) }
268
268
  attr_reader :disable_stripe_user_authentication
269
- # Whether to allow payout schedule to be changed. Default `true` when Stripe owns Loss Liability, default `false` otherwise.
269
+ # Whether to allow payout schedule to be changed. Defaults to `true` when `controller.losses.payments` is set to `stripe` for the account, otherwise `false`.
270
270
  sig { returns(T::Boolean) }
271
271
  attr_reader :edit_payout_schedule
272
- # Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for accounts where you’re responsible for collecting updated information when requirements are due or change, like custom accounts. Otherwise, bank account collection is determined by compliance requirements. The default value for this feature is `true`.
272
+ # Whether external account collection is enabled. This feature can only be `false` for accounts where you’re responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `true`.
273
273
  sig { returns(T::Boolean) }
274
274
  attr_reader :external_account_collection
275
- # Whether to allow creation of instant payouts. Default `true` when Stripe owns Loss Liability, default `false` otherwise.
275
+ # Whether to allow creation of instant payouts. Defaults to `true` when `controller.losses.payments` is set to `stripe` for the account, otherwise `false`.
276
276
  sig { returns(T::Boolean) }
277
277
  attr_reader :instant_payouts
278
- # Whether to allow creation of standard payouts. Default `true` when Stripe owns Loss Liability, default `false` otherwise.
278
+ # Whether to allow creation of standard payouts. Defaults to `true` when `controller.losses.payments` is set to `stripe` for the account, otherwise `false`.
279
279
  sig { returns(T::Boolean) }
280
280
  attr_reader :standard_payouts
281
281
  end
@@ -391,10 +391,10 @@ module Stripe
391
391
  class Components < Stripe::RequestParams
392
392
  class AccountManagement < Stripe::RequestParams
393
393
  class Features < Stripe::RequestParams
394
- # Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. The default value is the opposite of the `external_account_collection` value. For example, if you dont set `external_account_collection`, it defaults to true and `disable_stripe_user_authentication` defaults to false.
394
+ # Whether Stripe user authentication is disabled. This value can only be `true` for accounts where `controller.requirement_collection` is `application` for the account. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to `true` and `disable_stripe_user_authentication` defaults to `false`.
395
395
  sig { returns(T.nilable(T::Boolean)) }
396
396
  attr_accessor :disable_stripe_user_authentication
397
- # Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for accounts where you’re responsible for collecting updated information when requirements are due or change, like custom accounts. Otherwise, bank account collection is determined by compliance requirements. The default value for this feature is `true`.
397
+ # Whether external account collection is enabled. This feature can only be `false` for accounts where you’re responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `true`.
398
398
  sig { returns(T.nilable(T::Boolean)) }
399
399
  attr_accessor :external_account_collection
400
400
  sig {
@@ -420,10 +420,10 @@ module Stripe
420
420
  end
421
421
  class AccountOnboarding < Stripe::RequestParams
422
422
  class Features < Stripe::RequestParams
423
- # Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. The default value is the opposite of the `external_account_collection` value. For example, if you dont set `external_account_collection`, it defaults to true and `disable_stripe_user_authentication` defaults to false.
423
+ # Whether Stripe user authentication is disabled. This value can only be `true` for accounts where `controller.requirement_collection` is `application` for the account. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to `true` and `disable_stripe_user_authentication` defaults to `false`.
424
424
  sig { returns(T.nilable(T::Boolean)) }
425
425
  attr_accessor :disable_stripe_user_authentication
426
- # Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for accounts where you’re responsible for collecting updated information when requirements are due or change, like custom accounts. Otherwise, bank account collection is determined by compliance requirements. The default value for this feature is `true`.
426
+ # Whether external account collection is enabled. This feature can only be `false` for accounts where you’re responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `true`.
427
427
  sig { returns(T.nilable(T::Boolean)) }
428
428
  attr_accessor :external_account_collection
429
429
  sig {
@@ -449,19 +449,19 @@ module Stripe
449
449
  end
450
450
  class Balances < Stripe::RequestParams
451
451
  class Features < Stripe::RequestParams
452
- # Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. The default value is the opposite of the `external_account_collection` value. For example, if you dont set `external_account_collection`, it defaults to true and `disable_stripe_user_authentication` defaults to false.
452
+ # Whether Stripe user authentication is disabled. This value can only be `true` for accounts where `controller.requirement_collection` is `application` for the account. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to `true` and `disable_stripe_user_authentication` defaults to `false`.
453
453
  sig { returns(T.nilable(T::Boolean)) }
454
454
  attr_accessor :disable_stripe_user_authentication
455
- # Whether to allow payout schedule to be changed. Default `true` when Stripe owns Loss Liability, default `false` otherwise.
455
+ # Whether to allow payout schedule to be changed. Defaults to `true` when `controller.losses.payments` is set to `stripe` for the account, otherwise `false`.
456
456
  sig { returns(T.nilable(T::Boolean)) }
457
457
  attr_accessor :edit_payout_schedule
458
- # Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for accounts where you’re responsible for collecting updated information when requirements are due or change, like custom accounts. Otherwise, bank account collection is determined by compliance requirements. The default value for this feature is `true`.
458
+ # Whether external account collection is enabled. This feature can only be `false` for accounts where you’re responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `true`.
459
459
  sig { returns(T.nilable(T::Boolean)) }
460
460
  attr_accessor :external_account_collection
461
- # Whether to allow creation of instant payouts. Default `true` when Stripe owns Loss Liability, default `false` otherwise.
461
+ # Whether to allow creation of instant payouts. Defaults to `true` when `controller.losses.payments` is set to `stripe` for the account, otherwise `false`.
462
462
  sig { returns(T.nilable(T::Boolean)) }
463
463
  attr_accessor :instant_payouts
464
- # Whether to allow creation of standard payouts. Default `true` when Stripe owns Loss Liability, default `false` otherwise.
464
+ # Whether to allow creation of standard payouts. Defaults to `true` when `controller.losses.payments` is set to `stripe` for the account, otherwise `false`.
465
465
  sig { returns(T.nilable(T::Boolean)) }
466
466
  attr_accessor :standard_payouts
467
467
  sig {
@@ -493,13 +493,13 @@ module Stripe
493
493
  # Whether to allow capturing and cancelling payment intents. This is `true` by default.
494
494
  sig { returns(T.nilable(T::Boolean)) }
495
495
  attr_accessor :capture_payments
496
- # Whether to allow connected accounts to manage destination charges that are created on behalf of them. This is `false` by default.
496
+ # Whether connected accounts can manage destination charges that are created on behalf of them. This is `false` by default.
497
497
  sig { returns(T.nilable(T::Boolean)) }
498
498
  attr_accessor :destination_on_behalf_of_charge_management
499
- # Whether to allow responding to disputes, including submitting evidence and accepting disputes. This is `true` by default.
499
+ # Whether responding to disputes is enabled, including submitting evidence and accepting disputes. This is `true` by default.
500
500
  sig { returns(T.nilable(T::Boolean)) }
501
501
  attr_accessor :dispute_management
502
- # Whether to allow sending refunds. This is `true` by default.
502
+ # Whether sending refunds is enabled. This is `true` by default.
503
503
  sig { returns(T.nilable(T::Boolean)) }
504
504
  attr_accessor :refund_management
505
505
  sig {
@@ -542,10 +542,10 @@ module Stripe
542
542
  end
543
543
  class FinancialAccount < Stripe::RequestParams
544
544
  class Features < Stripe::RequestParams
545
- # Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. The default value is the opposite of the `external_account_collection` value. For example, if you dont set `external_account_collection`, it defaults to true and `disable_stripe_user_authentication` defaults to false.
545
+ # Whether Stripe user authentication is disabled. This value can only be `true` for accounts where `controller.requirement_collection` is `application` for the account. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to `true` and `disable_stripe_user_authentication` defaults to `false`.
546
546
  sig { returns(T.nilable(T::Boolean)) }
547
547
  attr_accessor :disable_stripe_user_authentication
548
- # Whether to allow external accounts to be linked for money transfer.
548
+ # Whether external account collection is enabled. This feature can only be `false` for accounts where you’re responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `true`.
549
549
  sig { returns(T.nilable(T::Boolean)) }
550
550
  attr_accessor :external_account_collection
551
551
  # Whether to allow sending money.
@@ -646,7 +646,7 @@ module Stripe
646
646
  # Whether to allow cardholder management features.
647
647
  sig { returns(T.nilable(T::Boolean)) }
648
648
  attr_accessor :cardholder_management
649
- # Disables Stripe user authentication for this embedded component. This feature can only be false for accounts where you’re responsible for collecting updated information when requirements are due or change, like custom accounts.
649
+ # Whether Stripe user authentication is disabled. This value can only be `true` for accounts where `controller.requirement_collection` is `application` for the account. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to `true` and `disable_stripe_user_authentication` defaults to `false`.
650
650
  sig { returns(T.nilable(T::Boolean)) }
651
651
  attr_accessor :disable_stripe_user_authentication
652
652
  # Whether to allow spend control management features.
@@ -678,10 +678,10 @@ module Stripe
678
678
  end
679
679
  class NotificationBanner < Stripe::RequestParams
680
680
  class Features < Stripe::RequestParams
681
- # Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. The default value is the opposite of the `external_account_collection` value. For example, if you dont set `external_account_collection`, it defaults to true and `disable_stripe_user_authentication` defaults to false.
681
+ # Whether Stripe user authentication is disabled. This value can only be `true` for accounts where `controller.requirement_collection` is `application` for the account. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to `true` and `disable_stripe_user_authentication` defaults to `false`.
682
682
  sig { returns(T.nilable(T::Boolean)) }
683
683
  attr_accessor :disable_stripe_user_authentication
684
- # Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for accounts where you’re responsible for collecting updated information when requirements are due or change, like custom accounts. Otherwise, bank account collection is determined by compliance requirements. The default value for this feature is `true`.
684
+ # Whether external account collection is enabled. This feature can only be `false` for accounts where you’re responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `true`.
685
685
  sig { returns(T.nilable(T::Boolean)) }
686
686
  attr_accessor :external_account_collection
687
687
  sig {
@@ -710,13 +710,13 @@ module Stripe
710
710
  # Whether to allow capturing and cancelling payment intents. This is `true` by default.
711
711
  sig { returns(T.nilable(T::Boolean)) }
712
712
  attr_accessor :capture_payments
713
- # Whether to allow connected accounts to manage destination charges that are created on behalf of them. This is `false` by default.
713
+ # Whether connected accounts can manage destination charges that are created on behalf of them. This is `false` by default.
714
714
  sig { returns(T.nilable(T::Boolean)) }
715
715
  attr_accessor :destination_on_behalf_of_charge_management
716
- # Whether to allow responding to disputes, including submitting evidence and accepting disputes. This is `true` by default.
716
+ # Whether responding to disputes is enabled, including submitting evidence and accepting disputes. This is `true` by default.
717
717
  sig { returns(T.nilable(T::Boolean)) }
718
718
  attr_accessor :dispute_management
719
- # Whether to allow sending refunds. This is `true` by default.
719
+ # Whether sending refunds is enabled. This is `true` by default.
720
720
  sig { returns(T.nilable(T::Boolean)) }
721
721
  attr_accessor :refund_management
722
722
  sig {
@@ -744,13 +744,13 @@ module Stripe
744
744
  end
745
745
  class PaymentDisputes < Stripe::RequestParams
746
746
  class Features < Stripe::RequestParams
747
- # Whether to allow connected accounts to manage destination charges that are created on behalf of them. This is `false` by default.
747
+ # Whether connected accounts can manage destination charges that are created on behalf of them. This is `false` by default.
748
748
  sig { returns(T.nilable(T::Boolean)) }
749
749
  attr_accessor :destination_on_behalf_of_charge_management
750
- # Whether to allow responding to disputes, including submitting evidence and accepting disputes. This is `true` by default.
750
+ # Whether responding to disputes is enabled, including submitting evidence and accepting disputes. This is `true` by default.
751
751
  sig { returns(T.nilable(T::Boolean)) }
752
752
  attr_accessor :dispute_management
753
- # Whether to allow sending refunds. This is `true` by default.
753
+ # Whether sending refunds is enabled. This is `true` by default.
754
754
  sig { returns(T.nilable(T::Boolean)) }
755
755
  attr_accessor :refund_management
756
756
  sig {
@@ -780,13 +780,13 @@ module Stripe
780
780
  # Whether to allow capturing and cancelling payment intents. This is `true` by default.
781
781
  sig { returns(T.nilable(T::Boolean)) }
782
782
  attr_accessor :capture_payments
783
- # Whether to allow connected accounts to manage destination charges that are created on behalf of them. This is `false` by default.
783
+ # Whether connected accounts can manage destination charges that are created on behalf of them. This is `false` by default.
784
784
  sig { returns(T.nilable(T::Boolean)) }
785
785
  attr_accessor :destination_on_behalf_of_charge_management
786
- # Whether to allow responding to disputes, including submitting evidence and accepting disputes. This is `true` by default.
786
+ # Whether responding to disputes is enabled, including submitting evidence and accepting disputes. This is `true` by default.
787
787
  sig { returns(T.nilable(T::Boolean)) }
788
788
  attr_accessor :dispute_management
789
- # Whether to allow sending refunds. This is `true` by default.
789
+ # Whether sending refunds is enabled. This is `true` by default.
790
790
  sig { returns(T.nilable(T::Boolean)) }
791
791
  attr_accessor :refund_management
792
792
  sig {
@@ -814,19 +814,19 @@ module Stripe
814
814
  end
815
815
  class Payouts < Stripe::RequestParams
816
816
  class Features < Stripe::RequestParams
817
- # Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. The default value is the opposite of the `external_account_collection` value. For example, if you dont set `external_account_collection`, it defaults to true and `disable_stripe_user_authentication` defaults to false.
817
+ # Whether Stripe user authentication is disabled. This value can only be `true` for accounts where `controller.requirement_collection` is `application` for the account. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to `true` and `disable_stripe_user_authentication` defaults to `false`.
818
818
  sig { returns(T.nilable(T::Boolean)) }
819
819
  attr_accessor :disable_stripe_user_authentication
820
- # Whether to allow payout schedule to be changed. Default `true` when Stripe owns Loss Liability, default `false` otherwise.
820
+ # Whether to allow payout schedule to be changed. Defaults to `true` when `controller.losses.payments` is set to `stripe` for the account, otherwise `false`.
821
821
  sig { returns(T.nilable(T::Boolean)) }
822
822
  attr_accessor :edit_payout_schedule
823
- # Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for accounts where you’re responsible for collecting updated information when requirements are due or change, like custom accounts. Otherwise, bank account collection is determined by compliance requirements. The default value for this feature is `true`.
823
+ # Whether external account collection is enabled. This feature can only be `false` for accounts where you’re responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `true`.
824
824
  sig { returns(T.nilable(T::Boolean)) }
825
825
  attr_accessor :external_account_collection
826
- # Whether to allow creation of instant payouts. Default `true` when Stripe owns Loss Liability, default `false` otherwise.
826
+ # Whether to allow creation of instant payouts. Defaults to `true` when `controller.losses.payments` is set to `stripe` for the account, otherwise `false`.
827
827
  sig { returns(T.nilable(T::Boolean)) }
828
828
  attr_accessor :instant_payouts
829
- # Whether to allow creation of standard payouts. Default `true` when Stripe owns Loss Liability, default `false` otherwise.
829
+ # Whether to allow creation of standard payouts. Defaults to `true` when `controller.losses.payments` is set to `stripe` for the account, otherwise `false`.
830
830
  sig { returns(T.nilable(T::Boolean)) }
831
831
  attr_accessor :standard_payouts
832
832
  sig {
@@ -898,73 +898,73 @@ module Stripe
898
898
  }
899
899
  def initialize(enabled: nil, features: nil); end
900
900
  end
901
- # Configuration for the account management embedded component.
901
+ # Configuration for the [account management](/connect/supported-embedded-components/account-management/) embedded component.
902
902
  sig {
903
903
  returns(T.nilable(::Stripe::AccountSession::CreateParams::Components::AccountManagement))
904
904
  }
905
905
  attr_accessor :account_management
906
- # Configuration for the account onboarding embedded component.
906
+ # Configuration for the [account onboarding](/connect/supported-embedded-components/account-onboarding/) embedded component.
907
907
  sig {
908
908
  returns(T.nilable(::Stripe::AccountSession::CreateParams::Components::AccountOnboarding))
909
909
  }
910
910
  attr_accessor :account_onboarding
911
- # Configuration for the balances embedded component.
911
+ # Configuration for the [balances](/connect/supported-embedded-components/balances/) embedded component.
912
912
  sig { returns(T.nilable(::Stripe::AccountSession::CreateParams::Components::Balances)) }
913
913
  attr_accessor :balances
914
- # Configuration for the disputes list embedded component.
914
+ # Configuration for the [disputes list](/connect/supported-embedded-components/disputes-list/) embedded component.
915
915
  sig { returns(T.nilable(::Stripe::AccountSession::CreateParams::Components::DisputesList)) }
916
916
  attr_accessor :disputes_list
917
- # Configuration for the documents embedded component.
917
+ # Configuration for the [documents](/connect/supported-embedded-components/documents/) embedded component.
918
918
  sig { returns(T.nilable(::Stripe::AccountSession::CreateParams::Components::Documents)) }
919
919
  attr_accessor :documents
920
- # Configuration for the financial account embedded component.
920
+ # Configuration for the [financial account](/connect/supported-embedded-components/financial-account/) embedded component.
921
921
  sig {
922
922
  returns(T.nilable(::Stripe::AccountSession::CreateParams::Components::FinancialAccount))
923
923
  }
924
924
  attr_accessor :financial_account
925
- # Configuration for the financial account transactions embedded component.
925
+ # Configuration for the [financial account transactions](/connect/supported-embedded-components/financial-account-transactions/) embedded component.
926
926
  sig {
927
927
  returns(T.nilable(::Stripe::AccountSession::CreateParams::Components::FinancialAccountTransactions))
928
928
  }
929
929
  attr_accessor :financial_account_transactions
930
- # Configuration for the issuing card embedded component.
930
+ # Configuration for the [issuing card](/connect/supported-embedded-components/issuing-card/) embedded component.
931
931
  sig { returns(T.nilable(::Stripe::AccountSession::CreateParams::Components::IssuingCard)) }
932
932
  attr_accessor :issuing_card
933
- # Configuration for the issuing cards list embedded component.
933
+ # Configuration for the [issuing cards list](/connect/supported-embedded-components/issuing-cards-list/) embedded component.
934
934
  sig {
935
935
  returns(T.nilable(::Stripe::AccountSession::CreateParams::Components::IssuingCardsList))
936
936
  }
937
937
  attr_accessor :issuing_cards_list
938
- # Configuration for the notification banner embedded component.
938
+ # Configuration for the [notification banner](/connect/supported-embedded-components/notification-banner/) embedded component.
939
939
  sig {
940
940
  returns(T.nilable(::Stripe::AccountSession::CreateParams::Components::NotificationBanner))
941
941
  }
942
942
  attr_accessor :notification_banner
943
- # Configuration for the payment details embedded component.
943
+ # Configuration for the [payment details](/connect/supported-embedded-components/payment-details/) embedded component.
944
944
  sig {
945
945
  returns(T.nilable(::Stripe::AccountSession::CreateParams::Components::PaymentDetails))
946
946
  }
947
947
  attr_accessor :payment_details
948
- # Configuration for the payment disputes embedded component.
948
+ # Configuration for the [payment disputes](/connect/supported-embedded-components/payment-disputes/) embedded component.
949
949
  sig {
950
950
  returns(T.nilable(::Stripe::AccountSession::CreateParams::Components::PaymentDisputes))
951
951
  }
952
952
  attr_accessor :payment_disputes
953
- # Configuration for the payments embedded component.
953
+ # Configuration for the [payments](/connect/supported-embedded-components/payments/) embedded component.
954
954
  sig { returns(T.nilable(::Stripe::AccountSession::CreateParams::Components::Payments)) }
955
955
  attr_accessor :payments
956
- # Configuration for the payouts embedded component.
956
+ # Configuration for the [payouts](/connect/supported-embedded-components/payouts/) embedded component.
957
957
  sig { returns(T.nilable(::Stripe::AccountSession::CreateParams::Components::Payouts)) }
958
958
  attr_accessor :payouts
959
- # Configuration for the payouts list embedded component.
959
+ # Configuration for the [payouts list](/connect/supported-embedded-components/payouts-list/) embedded component.
960
960
  sig { returns(T.nilable(::Stripe::AccountSession::CreateParams::Components::PayoutsList)) }
961
961
  attr_accessor :payouts_list
962
- # Configuration for the tax registrations embedded component.
962
+ # Configuration for the [tax registrations](/connect/supported-embedded-components/tax-registrations/) embedded component.
963
963
  sig {
964
964
  returns(T.nilable(::Stripe::AccountSession::CreateParams::Components::TaxRegistrations))
965
965
  }
966
966
  attr_accessor :tax_registrations
967
- # Configuration for the tax settings embedded component.
967
+ # Configuration for the [tax settings](/connect/supported-embedded-components/tax-settings/) embedded component.
968
968
  sig { returns(T.nilable(::Stripe::AccountSession::CreateParams::Components::TaxSettings)) }
969
969
  attr_accessor :tax_settings
970
970
  sig {
@@ -87,7 +87,7 @@ module Stripe
87
87
  sig { returns(Integer) }
88
88
  attr_reader :quantity
89
89
  end
90
- # The coupon or promotion code to apply to this subscription update. Currently, only up to one may be specified.
90
+ # The coupon or promotion code to apply to this subscription update.
91
91
  sig { returns(T.nilable(T::Array[Discount])) }
92
92
  attr_reader :discounts
93
93
  # The [subscription item](https://stripe.com/docs/api/subscription_items) to be updated through this flow. Currently, only up to one may be specified and subscriptions with multiple items are not updatable.
@@ -249,7 +249,7 @@ module Stripe
249
249
  }
250
250
  def initialize(id: nil, price: nil, quantity: nil); end
251
251
  end
252
- # The coupon or promotion code to apply to this subscription update. Currently, only up to one may be specified.
252
+ # The coupon or promotion code to apply to this subscription update.
253
253
  sig {
254
254
  returns(T.nilable(T::Array[::Stripe::BillingPortal::Session::CreateParams::FlowData::SubscriptionUpdateConfirm::Discount]))
255
255
  }