stripe 15.0.0 → 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 (320) hide show
  1. checksums.yaml +4 -4
  2. data/API_VERSION +1 -0
  3. data/CHANGELOG.md +129 -44
  4. data/CONTRIBUTING.md +25 -0
  5. data/Gemfile +1 -1
  6. data/OPENAPI_VERSION +1 -1
  7. data/README.md +28 -55
  8. data/VERSION +1 -1
  9. data/lib/stripe/api_operations/nested_resource.rb +35 -35
  10. data/lib/stripe/api_requestor.rb +1 -1
  11. data/lib/stripe/api_version.rb +2 -1
  12. data/lib/stripe/connection_manager.rb +1 -3
  13. data/lib/stripe/event_types.rb +1 -0
  14. data/lib/stripe/events/v1_billing_meter_error_report_triggered_event.rb +1 -1
  15. data/lib/stripe/events/v1_billing_meter_no_meter_found_event.rb +1 -1
  16. data/lib/stripe/events/v2_core_event_destination_ping_event.rb +21 -0
  17. data/lib/stripe/oauth.rb +1 -1
  18. data/lib/stripe/resources/account.rb +198 -28
  19. data/lib/stripe/resources/account_session.rb +176 -72
  20. data/lib/stripe/resources/apple_pay_domain.rb +1 -2
  21. data/lib/stripe/resources/balance.rb +42 -0
  22. data/lib/stripe/resources/balance_transaction.rb +2 -0
  23. data/lib/stripe/resources/bank_account.rb +2 -2
  24. data/lib/stripe/resources/billing_portal/session.rb +3 -3
  25. data/lib/stripe/resources/capability.rb +1 -1
  26. data/lib/stripe/resources/charge.rb +43 -20
  27. data/lib/stripe/resources/checkout/session.rb +120 -19
  28. data/lib/stripe/resources/confirmation_token.rb +119 -100
  29. data/lib/stripe/resources/country_spec.rb +1 -1
  30. data/lib/stripe/resources/coupon.rb +2 -3
  31. data/lib/stripe/resources/credit_note.rb +21 -18
  32. data/lib/stripe/resources/customer.rb +4 -6
  33. data/lib/stripe/resources/customer_session.rb +5 -5
  34. data/lib/stripe/resources/dispute.rb +2 -2
  35. data/lib/stripe/resources/event.rb +3 -1
  36. data/lib/stripe/resources/file.rb +1 -1
  37. data/lib/stripe/resources/funding_instructions.rb +1 -1
  38. data/lib/stripe/resources/identity/verification_report.rb +6 -0
  39. data/lib/stripe/resources/identity/verification_session.rb +51 -11
  40. data/lib/stripe/resources/invoice.rb +146 -32
  41. data/lib/stripe/resources/invoice_item.rb +3 -7
  42. data/lib/stripe/resources/invoice_line_item.rb +1 -1
  43. data/lib/stripe/resources/invoice_payment.rb +9 -2
  44. data/lib/stripe/resources/issuing/authorization.rb +8 -8
  45. data/lib/stripe/resources/issuing/card.rb +1 -1
  46. data/lib/stripe/resources/issuing/dispute.rb +3 -3
  47. data/lib/stripe/resources/login_link.rb +2 -1
  48. data/lib/stripe/resources/mandate.rb +3 -0
  49. data/lib/stripe/resources/payment_intent.rb +602 -325
  50. data/lib/stripe/resources/payment_method.rb +76 -117
  51. data/lib/stripe/resources/payment_method_configuration.rb +356 -2
  52. data/lib/stripe/resources/payment_method_domain.rb +15 -2
  53. data/lib/stripe/resources/payout.rb +4 -4
  54. data/lib/stripe/resources/person.rb +27 -3
  55. data/lib/stripe/resources/plan.rb +2 -3
  56. data/lib/stripe/resources/price.rb +1 -1
  57. data/lib/stripe/resources/product.rb +1 -2
  58. data/lib/stripe/resources/quote.rb +28 -3
  59. data/lib/stripe/resources/radar/value_list.rb +1 -2
  60. data/lib/stripe/resources/radar/value_list_item.rb +1 -2
  61. data/lib/stripe/resources/refund.rb +8 -1
  62. data/lib/stripe/resources/reversal.rb +1 -1
  63. data/lib/stripe/resources/review.rb +1 -1
  64. data/lib/stripe/resources/setup_attempt.rb +1 -1
  65. data/lib/stripe/resources/setup_intent.rb +414 -293
  66. data/lib/stripe/resources/source.rb +1 -1
  67. data/lib/stripe/resources/subscription.rb +149 -27
  68. data/lib/stripe/resources/subscription_item.rb +33 -0
  69. data/lib/stripe/resources/subscription_schedule.rb +141 -4
  70. data/lib/stripe/resources/tax/calculation.rb +6 -2
  71. data/lib/stripe/resources/tax/calculation_line_item.rb +2 -0
  72. data/lib/stripe/resources/tax/registration.rb +261 -1
  73. data/lib/stripe/resources/tax/transaction.rb +1 -1
  74. data/lib/stripe/resources/tax_id.rb +3 -4
  75. data/lib/stripe/resources/tax_rate.rb +2 -2
  76. data/lib/stripe/resources/terminal/configuration.rb +2 -2
  77. data/lib/stripe/resources/terminal/location.rb +2 -3
  78. data/lib/stripe/resources/terminal/reader.rb +426 -6
  79. data/lib/stripe/resources/test_helpers/test_clock.rb +1 -2
  80. data/lib/stripe/resources/token.rb +63 -2
  81. data/lib/stripe/resources/transfer.rb +1 -1
  82. data/lib/stripe/resources/treasury/financial_account.rb +5 -1
  83. data/lib/stripe/resources/v2/billing/meter_event.rb +2 -2
  84. data/lib/stripe/resources/v2/billing/meter_event_adjustment.rb +2 -2
  85. data/lib/stripe/resources/v2/billing/meter_event_session.rb +2 -2
  86. data/lib/stripe/resources/v2/event.rb +2 -2
  87. data/lib/stripe/resources/v2/event_destination.rb +2 -2
  88. data/lib/stripe/resources/webhook_endpoint.rb +1 -2
  89. data/lib/stripe/resources.rb +1 -0
  90. data/lib/stripe/services/account_external_account_service.rb +3 -4
  91. data/lib/stripe/services/account_login_link_service.rb +1 -1
  92. data/lib/stripe/services/account_person_service.rb +85 -2
  93. data/lib/stripe/services/account_service.rb +169 -20
  94. data/lib/stripe/services/account_session_service.rb +115 -47
  95. data/lib/stripe/services/apple_pay_domain_service.rb +1 -2
  96. data/lib/stripe/services/application_fee_service.rb +1 -1
  97. data/lib/stripe/services/apps_service.rb +1 -1
  98. data/lib/stripe/services/balance_service.rb +1 -1
  99. data/lib/stripe/services/billing/meter_service.rb +1 -1
  100. data/lib/stripe/services/billing_portal/session_service.rb +1 -1
  101. data/lib/stripe/services/billing_portal_service.rb +1 -1
  102. data/lib/stripe/services/billing_service.rb +1 -1
  103. data/lib/stripe/services/charge_service.rb +4 -4
  104. data/lib/stripe/services/checkout/session_service.rb +94 -15
  105. data/lib/stripe/services/checkout_service.rb +1 -1
  106. data/lib/stripe/services/climate_service.rb +1 -1
  107. data/lib/stripe/services/coupon_service.rb +1 -2
  108. data/lib/stripe/services/credit_note_preview_lines_service.rb +3 -3
  109. data/lib/stripe/services/credit_note_service.rb +14 -15
  110. data/lib/stripe/services/customer_balance_transaction_service.rb +3 -3
  111. data/lib/stripe/services/customer_cash_balance_transaction_service.rb +2 -2
  112. data/lib/stripe/services/customer_payment_method_service.rb +1 -1
  113. data/lib/stripe/services/customer_payment_source_service.rb +1 -1
  114. data/lib/stripe/services/customer_service.rb +5 -7
  115. data/lib/stripe/services/customer_session_service.rb +1 -1
  116. data/lib/stripe/services/customer_tax_id_service.rb +2 -3
  117. data/lib/stripe/services/dispute_service.rb +1 -1
  118. data/lib/stripe/services/entitlements_service.rb +1 -1
  119. data/lib/stripe/services/file_service.rb +1 -1
  120. data/lib/stripe/services/financial_connections/account_service.rb +1 -1
  121. data/lib/stripe/services/financial_connections_service.rb +1 -1
  122. data/lib/stripe/services/forwarding_service.rb +1 -1
  123. data/lib/stripe/services/identity/verification_session_service.rb +21 -5
  124. data/lib/stripe/services/identity_service.rb +1 -1
  125. data/lib/stripe/services/invoice_item_service.rb +1 -2
  126. data/lib/stripe/services/invoice_service.rb +122 -28
  127. data/lib/stripe/services/issuing/authorization_service.rb +4 -4
  128. data/lib/stripe/services/issuing/card_service.rb +1 -1
  129. data/lib/stripe/services/issuing/dispute_service.rb +2 -2
  130. data/lib/stripe/services/issuing_service.rb +1 -1
  131. data/lib/stripe/services/payment_intent_service.rb +563 -313
  132. data/lib/stripe/services/payment_link_service.rb +1 -1
  133. data/lib/stripe/services/payment_method_configuration_service.rb +254 -2
  134. data/lib/stripe/services/payment_method_domain_service.rb +1 -1
  135. data/lib/stripe/services/payment_method_service.rb +59 -105
  136. data/lib/stripe/services/payout_service.rb +2 -2
  137. data/lib/stripe/services/plan_service.rb +2 -3
  138. data/lib/stripe/services/price_service.rb +2 -2
  139. data/lib/stripe/services/product_feature_service.rb +1 -2
  140. data/lib/stripe/services/product_service.rb +3 -4
  141. data/lib/stripe/services/promotion_code_service.rb +1 -1
  142. data/lib/stripe/services/quote_service.rb +21 -4
  143. data/lib/stripe/services/radar/early_fraud_warning_service.rb +1 -1
  144. data/lib/stripe/services/radar/value_list_item_service.rb +1 -2
  145. data/lib/stripe/services/radar/value_list_service.rb +1 -2
  146. data/lib/stripe/services/radar_service.rb +1 -1
  147. data/lib/stripe/services/reporting_service.rb +1 -1
  148. data/lib/stripe/services/setup_intent_service.rb +403 -291
  149. data/lib/stripe/services/sigma_service.rb +1 -1
  150. data/lib/stripe/services/source_service.rb +2 -2
  151. data/lib/stripe/services/subscription_item_service.rb +26 -0
  152. data/lib/stripe/services/subscription_schedule_service.rb +106 -3
  153. data/lib/stripe/services/subscription_service.rb +121 -26
  154. data/lib/stripe/services/tax/calculation_service.rb +6 -2
  155. data/lib/stripe/services/tax/registration_service.rb +170 -1
  156. data/lib/stripe/services/tax/transaction_service.rb +1 -1
  157. data/lib/stripe/services/tax_id_service.rb +2 -3
  158. data/lib/stripe/services/tax_service.rb +1 -1
  159. data/lib/stripe/services/terminal/configuration_service.rb +1 -2
  160. data/lib/stripe/services/terminal/location_service.rb +2 -3
  161. data/lib/stripe/services/terminal/reader_service.rb +196 -2
  162. data/lib/stripe/services/terminal_service.rb +1 -1
  163. data/lib/stripe/services/test_helpers/confirmation_token_service.rb +90 -91
  164. data/lib/stripe/services/test_helpers/issuing_service.rb +1 -1
  165. data/lib/stripe/services/test_helpers/terminal/reader_service.rb +43 -0
  166. data/lib/stripe/services/test_helpers/terminal_service.rb +1 -1
  167. data/lib/stripe/services/test_helpers/test_clock_service.rb +1 -2
  168. data/lib/stripe/services/test_helpers/treasury_service.rb +1 -1
  169. data/lib/stripe/services/test_helpers_service.rb +1 -1
  170. data/lib/stripe/services/token_service.rb +62 -1
  171. data/lib/stripe/services/transfer_service.rb +2 -2
  172. data/lib/stripe/services/treasury/financial_account_service.rb +6 -2
  173. data/lib/stripe/services/treasury_service.rb +1 -1
  174. data/lib/stripe/services/v1_services.rb +1 -1
  175. data/lib/stripe/services/v2/billing/meter_event_session_service.rb +1 -2
  176. data/lib/stripe/services/v2/billing_service.rb +3 -3
  177. data/lib/stripe/services/v2/core/event_destination_service.rb +17 -23
  178. data/lib/stripe/services/v2/core/event_service.rb +1 -2
  179. data/lib/stripe/services/v2/core_service.rb +1 -1
  180. data/lib/stripe/services/v2_services.rb +1 -1
  181. data/lib/stripe/services/webhook_endpoint_service.rb +1 -2
  182. data/lib/stripe/version.rb +1 -1
  183. data/lib/stripe/webhook.rb +1 -1
  184. data/rbi/stripe/resources/account.rbi +190 -35
  185. data/rbi/stripe/resources/account_session.rbi +196 -77
  186. data/rbi/stripe/resources/apple_pay_domain.rbi +1 -3
  187. data/rbi/stripe/resources/balance.rbi +55 -0
  188. data/rbi/stripe/resources/balance_transaction.rbi +3 -0
  189. data/rbi/stripe/resources/bank_account.rbi +2 -2
  190. data/rbi/stripe/resources/billing/alert.rbi +2 -2
  191. data/rbi/stripe/resources/billing_portal/session.rbi +3 -3
  192. data/rbi/stripe/resources/capability.rbi +1 -1
  193. data/rbi/stripe/resources/charge.rbi +52 -20
  194. data/rbi/stripe/resources/checkout/session.rbi +133 -24
  195. data/rbi/stripe/resources/confirmation_token.rbi +140 -115
  196. data/rbi/stripe/resources/country_spec.rbi +1 -1
  197. data/rbi/stripe/resources/coupon.rbi +2 -4
  198. data/rbi/stripe/resources/credit_note.rbi +23 -18
  199. data/rbi/stripe/resources/customer.rbi +4 -8
  200. data/rbi/stripe/resources/customer_session.rbi +5 -5
  201. data/rbi/stripe/resources/dispute.rbi +2 -2
  202. data/rbi/stripe/resources/event.rbi +4 -1
  203. data/rbi/stripe/resources/file.rbi +1 -1
  204. data/rbi/stripe/resources/identity/verification_report.rbi +9 -0
  205. data/rbi/stripe/resources/identity/verification_session.rbi +59 -12
  206. data/rbi/stripe/resources/invoice.rbi +149 -40
  207. data/rbi/stripe/resources/invoice_item.rbi +3 -8
  208. data/rbi/stripe/resources/invoice_line_item.rbi +2 -2
  209. data/rbi/stripe/resources/invoice_payment.rbi +9 -2
  210. data/rbi/stripe/resources/issuing/authorization.rbi +8 -8
  211. data/rbi/stripe/resources/issuing/card.rbi +1 -1
  212. data/rbi/stripe/resources/issuing/dispute.rbi +3 -3
  213. data/rbi/stripe/resources/login_link.rbi +2 -1
  214. data/rbi/stripe/resources/mandate.rbi +4 -0
  215. data/rbi/stripe/resources/payment_intent.rbi +637 -381
  216. data/rbi/stripe/resources/payment_method.rbi +81 -133
  217. data/rbi/stripe/resources/payment_method_configuration.rbi +400 -4
  218. data/rbi/stripe/resources/payment_method_domain.rbi +18 -2
  219. data/rbi/stripe/resources/payout.rbi +4 -4
  220. data/rbi/stripe/resources/person.rbi +33 -3
  221. data/rbi/stripe/resources/plan.rbi +2 -4
  222. data/rbi/stripe/resources/price.rbi +1 -1
  223. data/rbi/stripe/resources/product.rbi +1 -3
  224. data/rbi/stripe/resources/quote.rbi +25 -3
  225. data/rbi/stripe/resources/radar/value_list.rbi +1 -3
  226. data/rbi/stripe/resources/radar/value_list_item.rbi +1 -3
  227. data/rbi/stripe/resources/refund.rbi +8 -1
  228. data/rbi/stripe/resources/reversal.rbi +1 -1
  229. data/rbi/stripe/resources/review.rbi +1 -1
  230. data/rbi/stripe/resources/setup_attempt.rbi +1 -1
  231. data/rbi/stripe/resources/setup_intent.rbi +464 -346
  232. data/rbi/stripe/resources/source.rbi +1 -1
  233. data/rbi/stripe/resources/subscription.rbi +150 -34
  234. data/rbi/stripe/resources/subscription_item.rbi +36 -2
  235. data/rbi/stripe/resources/subscription_schedule.rbi +161 -11
  236. data/rbi/stripe/resources/tax/calculation.rbi +7 -3
  237. data/rbi/stripe/resources/tax/calculation_line_item.rbi +4 -1
  238. data/rbi/stripe/resources/tax/registration.rbi +249 -2
  239. data/rbi/stripe/resources/tax/transaction.rbi +1 -1
  240. data/rbi/stripe/resources/tax_id.rbi +3 -5
  241. data/rbi/stripe/resources/tax_rate.rbi +2 -2
  242. data/rbi/stripe/resources/terminal/configuration.rbi +2 -3
  243. data/rbi/stripe/resources/terminal/location.rbi +4 -6
  244. data/rbi/stripe/resources/terminal/reader.rbi +415 -8
  245. data/rbi/stripe/resources/test_helpers/test_clock.rbi +1 -3
  246. data/rbi/stripe/resources/token.rbi +70 -4
  247. data/rbi/stripe/resources/transfer.rbi +1 -1
  248. data/rbi/stripe/resources/treasury/financial_account.rbi +6 -2
  249. data/rbi/stripe/resources/v2/billing/meter_event.rbi +3 -3
  250. data/rbi/stripe/resources/v2/billing/meter_event_adjustment.rbi +3 -3
  251. data/rbi/stripe/resources/v2/billing/meter_event_session.rbi +3 -3
  252. data/rbi/stripe/resources/v2/event.rbi +3 -3
  253. data/rbi/stripe/resources/v2/event_destination.rbi +3 -3
  254. data/rbi/stripe/resources/webhook_endpoint.rbi +1 -3
  255. data/rbi/stripe/services/account_external_account_service.rbi +3 -5
  256. data/rbi/stripe/services/account_login_link_service.rbi +1 -1
  257. data/rbi/stripe/services/account_person_service.rbi +93 -5
  258. data/rbi/stripe/services/account_service.rbi +166 -28
  259. data/rbi/stripe/services/account_session_service.rbi +126 -52
  260. data/rbi/stripe/services/apple_pay_domain_service.rbi +1 -3
  261. data/rbi/stripe/services/balance_service.rbi +1 -1
  262. data/rbi/stripe/services/billing/alert_service.rbi +2 -2
  263. data/rbi/stripe/services/billing_portal/session_service.rbi +1 -1
  264. data/rbi/stripe/services/charge_service.rbi +4 -4
  265. data/rbi/stripe/services/checkout/session_service.rbi +104 -19
  266. data/rbi/stripe/services/coupon_service.rbi +1 -3
  267. data/rbi/stripe/services/credit_note_preview_lines_service.rbi +3 -3
  268. data/rbi/stripe/services/credit_note_service.rbi +13 -14
  269. data/rbi/stripe/services/customer_balance_transaction_service.rbi +3 -3
  270. data/rbi/stripe/services/customer_cash_balance_transaction_service.rbi +2 -2
  271. data/rbi/stripe/services/customer_payment_method_service.rbi +1 -1
  272. data/rbi/stripe/services/customer_payment_source_service.rbi +1 -1
  273. data/rbi/stripe/services/customer_service.rbi +4 -8
  274. data/rbi/stripe/services/customer_session_service.rbi +1 -1
  275. data/rbi/stripe/services/customer_tax_id_service.rbi +2 -4
  276. data/rbi/stripe/services/dispute_service.rbi +1 -1
  277. data/rbi/stripe/services/file_service.rbi +1 -1
  278. data/rbi/stripe/services/identity/verification_session_service.rbi +22 -6
  279. data/rbi/stripe/services/invoice_item_service.rbi +1 -3
  280. data/rbi/stripe/services/invoice_service.rbi +126 -35
  281. data/rbi/stripe/services/issuing/authorization_service.rbi +4 -4
  282. data/rbi/stripe/services/issuing/card_service.rbi +1 -1
  283. data/rbi/stripe/services/issuing/dispute_service.rbi +2 -2
  284. data/rbi/stripe/services/payment_intent_service.rbi +599 -369
  285. data/rbi/stripe/services/payment_method_configuration_service.rbi +280 -4
  286. data/rbi/stripe/services/payment_method_domain_service.rbi +1 -1
  287. data/rbi/stripe/services/payment_method_service.rbi +62 -121
  288. data/rbi/stripe/services/payout_service.rbi +2 -2
  289. data/rbi/stripe/services/plan_service.rbi +2 -4
  290. data/rbi/stripe/services/price_service.rbi +2 -2
  291. data/rbi/stripe/services/product_feature_service.rbi +1 -3
  292. data/rbi/stripe/services/product_service.rbi +2 -4
  293. data/rbi/stripe/services/promotion_code_service.rbi +1 -1
  294. data/rbi/stripe/services/quote_service.rbi +16 -3
  295. data/rbi/stripe/services/radar/early_fraud_warning_service.rbi +1 -1
  296. data/rbi/stripe/services/radar/value_list_item_service.rbi +1 -3
  297. data/rbi/stripe/services/radar/value_list_service.rbi +1 -3
  298. data/rbi/stripe/services/setup_intent_service.rbi +457 -344
  299. data/rbi/stripe/services/source_service.rbi +1 -1
  300. data/rbi/stripe/services/subscription_item_service.rbi +28 -2
  301. data/rbi/stripe/services/subscription_schedule_service.rbi +119 -10
  302. data/rbi/stripe/services/subscription_service.rbi +121 -33
  303. data/rbi/stripe/services/tax/calculation_service.rbi +6 -2
  304. data/rbi/stripe/services/tax/registration_service.rbi +171 -2
  305. data/rbi/stripe/services/tax_id_service.rbi +2 -4
  306. data/rbi/stripe/services/terminal/configuration_service.rbi +1 -3
  307. data/rbi/stripe/services/terminal/location_service.rbi +4 -6
  308. data/rbi/stripe/services/terminal/reader_service.rbi +200 -4
  309. data/rbi/stripe/services/test_helpers/confirmation_token_service.rbi +106 -106
  310. data/rbi/stripe/services/test_helpers/terminal/reader_service.rbi +31 -0
  311. data/rbi/stripe/services/test_helpers/test_clock_service.rbi +1 -3
  312. data/rbi/stripe/services/token_service.rbi +71 -3
  313. data/rbi/stripe/services/transfer_service.rbi +1 -1
  314. data/rbi/stripe/services/treasury/financial_account_service.rbi +6 -2
  315. data/rbi/stripe/services/v2/billing/meter_event_session_service.rbi +1 -3
  316. data/rbi/stripe/services/v2/billing_service.rbi +1 -1
  317. data/rbi/stripe/services/v2/core/event_destination_service.rbi +14 -22
  318. data/rbi/stripe/services/v2/core/event_service.rbi +1 -3
  319. data/rbi/stripe/services/webhook_endpoint_service.rbi +1 -3
  320. metadata +5 -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
@@ -69,6 +69,28 @@ module Stripe
69
69
  sig { returns(Features) }
70
70
  attr_reader :features
71
71
  end
72
+ class DisputesList < Stripe::StripeObject
73
+ class Features < Stripe::StripeObject
74
+ # Whether to allow capturing and cancelling payment intents. This is `true` by default.
75
+ sig { returns(T::Boolean) }
76
+ attr_reader :capture_payments
77
+ # Whether connected accounts can manage destination charges that are created on behalf of them. This is `false` by default.
78
+ sig { returns(T::Boolean) }
79
+ attr_reader :destination_on_behalf_of_charge_management
80
+ # Whether responding to disputes is enabled, including submitting evidence and accepting disputes. This is `true` by default.
81
+ sig { returns(T::Boolean) }
82
+ attr_reader :dispute_management
83
+ # Whether sending refunds is enabled. This is `true` by default.
84
+ sig { returns(T::Boolean) }
85
+ attr_reader :refund_management
86
+ end
87
+ # Whether the embedded component is enabled.
88
+ sig { returns(T::Boolean) }
89
+ attr_reader :enabled
90
+ # Attribute for field features
91
+ sig { returns(Features) }
92
+ attr_reader :features
93
+ end
72
94
  class Documents < Stripe::StripeObject
73
95
  class Features < Stripe::StripeObject; end
74
96
  # Whether the embedded component is enabled.
@@ -80,10 +102,10 @@ module Stripe
80
102
  end
81
103
  class FinancialAccount < Stripe::StripeObject
82
104
  class Features < Stripe::StripeObject
83
- # 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`.
84
106
  sig { returns(T::Boolean) }
85
107
  attr_reader :disable_stripe_user_authentication
86
- # 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`.
87
109
  sig { returns(T::Boolean) }
88
110
  attr_reader :external_account_collection
89
111
  # Whether to allow sending money.
@@ -146,7 +168,7 @@ module Stripe
146
168
  # Whether to allow cardholder management features.
147
169
  sig { returns(T::Boolean) }
148
170
  attr_reader :cardholder_management
149
- # 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`.
150
172
  sig { returns(T::Boolean) }
151
173
  attr_reader :disable_stripe_user_authentication
152
174
  # Whether to allow spend control management features.
@@ -162,10 +184,10 @@ module Stripe
162
184
  end
163
185
  class NotificationBanner < Stripe::StripeObject
164
186
  class Features < Stripe::StripeObject
165
- # 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`.
166
188
  sig { returns(T::Boolean) }
167
189
  attr_reader :disable_stripe_user_authentication
168
- # 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`.
169
191
  sig { returns(T::Boolean) }
170
192
  attr_reader :external_account_collection
171
193
  end
@@ -181,13 +203,32 @@ module Stripe
181
203
  # Whether to allow capturing and cancelling payment intents. This is `true` by default.
182
204
  sig { returns(T::Boolean) }
183
205
  attr_reader :capture_payments
184
- # 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.
185
207
  sig { returns(T::Boolean) }
186
208
  attr_reader :destination_on_behalf_of_charge_management
187
- # 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.
188
210
  sig { returns(T::Boolean) }
189
211
  attr_reader :dispute_management
190
- # Whether to allow sending refunds. This is `true` by default.
212
+ # Whether sending refunds is enabled. This is `true` by default.
213
+ sig { returns(T::Boolean) }
214
+ attr_reader :refund_management
215
+ end
216
+ # Whether the embedded component is enabled.
217
+ sig { returns(T::Boolean) }
218
+ attr_reader :enabled
219
+ # Attribute for field features
220
+ sig { returns(Features) }
221
+ attr_reader :features
222
+ end
223
+ class PaymentDisputes < Stripe::StripeObject
224
+ class Features < Stripe::StripeObject
225
+ # Whether connected accounts can manage destination charges that are created on behalf of them. This is `false` by default.
226
+ sig { returns(T::Boolean) }
227
+ attr_reader :destination_on_behalf_of_charge_management
228
+ # Whether responding to disputes is enabled, including submitting evidence and accepting disputes. This is `true` by default.
229
+ sig { returns(T::Boolean) }
230
+ attr_reader :dispute_management
231
+ # Whether sending refunds is enabled. This is `true` by default.
191
232
  sig { returns(T::Boolean) }
192
233
  attr_reader :refund_management
193
234
  end
@@ -203,13 +244,13 @@ module Stripe
203
244
  # Whether to allow capturing and cancelling payment intents. This is `true` by default.
204
245
  sig { returns(T::Boolean) }
205
246
  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.
247
+ # Whether connected accounts can manage destination charges that are created on behalf of them. This is `false` by default.
207
248
  sig { returns(T::Boolean) }
208
249
  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.
250
+ # Whether responding to disputes is enabled, including submitting evidence and accepting disputes. This is `true` by default.
210
251
  sig { returns(T::Boolean) }
211
252
  attr_reader :dispute_management
212
- # Whether to allow sending refunds. This is `true` by default.
253
+ # Whether sending refunds is enabled. This is `true` by default.
213
254
  sig { returns(T::Boolean) }
214
255
  attr_reader :refund_management
215
256
  end
@@ -222,19 +263,19 @@ module Stripe
222
263
  end
223
264
  class Payouts < Stripe::StripeObject
224
265
  class Features < Stripe::StripeObject
225
- # 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`.
226
267
  sig { returns(T::Boolean) }
227
268
  attr_reader :disable_stripe_user_authentication
228
- # 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`.
229
270
  sig { returns(T::Boolean) }
230
271
  attr_reader :edit_payout_schedule
231
- # 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`.
232
273
  sig { returns(T::Boolean) }
233
274
  attr_reader :external_account_collection
234
- # 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`.
235
276
  sig { returns(T::Boolean) }
236
277
  attr_reader :instant_payouts
237
- # 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`.
238
279
  sig { returns(T::Boolean) }
239
280
  attr_reader :standard_payouts
240
281
  end
@@ -281,6 +322,9 @@ module Stripe
281
322
  # Attribute for field balances
282
323
  sig { returns(Balances) }
283
324
  attr_reader :balances
325
+ # Attribute for field disputes_list
326
+ sig { returns(DisputesList) }
327
+ attr_reader :disputes_list
284
328
  # Attribute for field documents
285
329
  sig { returns(Documents) }
286
330
  attr_reader :documents
@@ -302,6 +346,9 @@ module Stripe
302
346
  # Attribute for field payment_details
303
347
  sig { returns(PaymentDetails) }
304
348
  attr_reader :payment_details
349
+ # Attribute for field payment_disputes
350
+ sig { returns(PaymentDisputes) }
351
+ attr_reader :payment_disputes
305
352
  # Attribute for field payments
306
353
  sig { returns(Payments) }
307
354
  attr_reader :payments
@@ -344,10 +391,10 @@ module Stripe
344
391
  class Components < Stripe::RequestParams
345
392
  class AccountManagement < Stripe::RequestParams
346
393
  class Features < Stripe::RequestParams
347
- # 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`.
348
395
  sig { returns(T.nilable(T::Boolean)) }
349
396
  attr_accessor :disable_stripe_user_authentication
350
- # 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`.
351
398
  sig { returns(T.nilable(T::Boolean)) }
352
399
  attr_accessor :external_account_collection
353
400
  sig {
@@ -373,10 +420,10 @@ module Stripe
373
420
  end
374
421
  class AccountOnboarding < Stripe::RequestParams
375
422
  class Features < Stripe::RequestParams
376
- # 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`.
377
424
  sig { returns(T.nilable(T::Boolean)) }
378
425
  attr_accessor :disable_stripe_user_authentication
379
- # 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`.
380
427
  sig { returns(T.nilable(T::Boolean)) }
381
428
  attr_accessor :external_account_collection
382
429
  sig {
@@ -402,19 +449,19 @@ module Stripe
402
449
  end
403
450
  class Balances < Stripe::RequestParams
404
451
  class Features < Stripe::RequestParams
405
- # 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`.
406
453
  sig { returns(T.nilable(T::Boolean)) }
407
454
  attr_accessor :disable_stripe_user_authentication
408
- # 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`.
409
456
  sig { returns(T.nilable(T::Boolean)) }
410
457
  attr_accessor :edit_payout_schedule
411
- # 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`.
412
459
  sig { returns(T.nilable(T::Boolean)) }
413
460
  attr_accessor :external_account_collection
414
- # 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`.
415
462
  sig { returns(T.nilable(T::Boolean)) }
416
463
  attr_accessor :instant_payouts
417
- # 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`.
418
465
  sig { returns(T.nilable(T::Boolean)) }
419
466
  attr_accessor :standard_payouts
420
467
  sig {
@@ -441,14 +488,49 @@ module Stripe
441
488
  }
442
489
  def initialize(enabled: nil, features: nil); end
443
490
  end
444
- class Documents < Stripe::RequestParams
491
+ class DisputesList < Stripe::RequestParams
445
492
  class Features < Stripe::RequestParams
446
-
493
+ # Whether to allow capturing and cancelling payment intents. This is `true` by default.
494
+ sig { returns(T.nilable(T::Boolean)) }
495
+ attr_accessor :capture_payments
496
+ # Whether connected accounts can manage destination charges that are created on behalf of them. This is `false` by default.
497
+ sig { returns(T.nilable(T::Boolean)) }
498
+ attr_accessor :destination_on_behalf_of_charge_management
499
+ # Whether responding to disputes is enabled, including submitting evidence and accepting disputes. This is `true` by default.
500
+ sig { returns(T.nilable(T::Boolean)) }
501
+ attr_accessor :dispute_management
502
+ # Whether sending refunds is enabled. This is `true` by default.
503
+ sig { returns(T.nilable(T::Boolean)) }
504
+ attr_accessor :refund_management
505
+ sig {
506
+ params(capture_payments: T.nilable(T::Boolean), destination_on_behalf_of_charge_management: T.nilable(T::Boolean), dispute_management: T.nilable(T::Boolean), refund_management: T.nilable(T::Boolean)).void
507
+ }
508
+ def initialize(
509
+ capture_payments: nil,
510
+ destination_on_behalf_of_charge_management: nil,
511
+ dispute_management: nil,
512
+ refund_management: nil
513
+ ); end
447
514
  end
448
515
  # Whether the embedded component is enabled.
449
516
  sig { returns(T::Boolean) }
450
517
  attr_accessor :enabled
451
518
  # The list of features enabled in the embedded component.
519
+ sig {
520
+ returns(T.nilable(::Stripe::AccountSession::CreateParams::Components::DisputesList::Features))
521
+ }
522
+ attr_accessor :features
523
+ sig {
524
+ params(enabled: T::Boolean, features: T.nilable(::Stripe::AccountSession::CreateParams::Components::DisputesList::Features)).void
525
+ }
526
+ def initialize(enabled: nil, features: nil); end
527
+ end
528
+ class Documents < Stripe::RequestParams
529
+ class Features < Stripe::RequestParams; end
530
+ # Whether the embedded component is enabled.
531
+ sig { returns(T::Boolean) }
532
+ attr_accessor :enabled
533
+ # The list of features enabled in the embedded component.
452
534
  sig {
453
535
  returns(T.nilable(::Stripe::AccountSession::CreateParams::Components::Documents::Features))
454
536
  }
@@ -460,10 +542,10 @@ module Stripe
460
542
  end
461
543
  class FinancialAccount < Stripe::RequestParams
462
544
  class Features < Stripe::RequestParams
463
- # 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`.
464
546
  sig { returns(T.nilable(T::Boolean)) }
465
547
  attr_accessor :disable_stripe_user_authentication
466
- # 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`.
467
549
  sig { returns(T.nilable(T::Boolean)) }
468
550
  attr_accessor :external_account_collection
469
551
  # Whether to allow sending money.
@@ -564,7 +646,7 @@ module Stripe
564
646
  # Whether to allow cardholder management features.
565
647
  sig { returns(T.nilable(T::Boolean)) }
566
648
  attr_accessor :cardholder_management
567
- # 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`.
568
650
  sig { returns(T.nilable(T::Boolean)) }
569
651
  attr_accessor :disable_stripe_user_authentication
570
652
  # Whether to allow spend control management features.
@@ -596,10 +678,10 @@ module Stripe
596
678
  end
597
679
  class NotificationBanner < Stripe::RequestParams
598
680
  class Features < Stripe::RequestParams
599
- # 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`.
600
682
  sig { returns(T.nilable(T::Boolean)) }
601
683
  attr_accessor :disable_stripe_user_authentication
602
- # 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`.
603
685
  sig { returns(T.nilable(T::Boolean)) }
604
686
  attr_accessor :external_account_collection
605
687
  sig {
@@ -628,13 +710,13 @@ module Stripe
628
710
  # Whether to allow capturing and cancelling payment intents. This is `true` by default.
629
711
  sig { returns(T.nilable(T::Boolean)) }
630
712
  attr_accessor :capture_payments
631
- # 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.
632
714
  sig { returns(T.nilable(T::Boolean)) }
633
715
  attr_accessor :destination_on_behalf_of_charge_management
634
- # 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.
635
717
  sig { returns(T.nilable(T::Boolean)) }
636
718
  attr_accessor :dispute_management
637
- # Whether to allow sending refunds. This is `true` by default.
719
+ # Whether sending refunds is enabled. This is `true` by default.
638
720
  sig { returns(T.nilable(T::Boolean)) }
639
721
  attr_accessor :refund_management
640
722
  sig {
@@ -660,18 +742,51 @@ module Stripe
660
742
  }
661
743
  def initialize(enabled: nil, features: nil); end
662
744
  end
745
+ class PaymentDisputes < Stripe::RequestParams
746
+ class Features < Stripe::RequestParams
747
+ # Whether connected accounts can manage destination charges that are created on behalf of them. This is `false` by default.
748
+ sig { returns(T.nilable(T::Boolean)) }
749
+ attr_accessor :destination_on_behalf_of_charge_management
750
+ # Whether responding to disputes is enabled, including submitting evidence and accepting disputes. This is `true` by default.
751
+ sig { returns(T.nilable(T::Boolean)) }
752
+ attr_accessor :dispute_management
753
+ # Whether sending refunds is enabled. This is `true` by default.
754
+ sig { returns(T.nilable(T::Boolean)) }
755
+ attr_accessor :refund_management
756
+ sig {
757
+ params(destination_on_behalf_of_charge_management: T.nilable(T::Boolean), dispute_management: T.nilable(T::Boolean), refund_management: T.nilable(T::Boolean)).void
758
+ }
759
+ def initialize(
760
+ destination_on_behalf_of_charge_management: nil,
761
+ dispute_management: nil,
762
+ refund_management: nil
763
+ ); end
764
+ end
765
+ # Whether the embedded component is enabled.
766
+ sig { returns(T::Boolean) }
767
+ attr_accessor :enabled
768
+ # The list of features enabled in the embedded component.
769
+ sig {
770
+ returns(T.nilable(::Stripe::AccountSession::CreateParams::Components::PaymentDisputes::Features))
771
+ }
772
+ attr_accessor :features
773
+ sig {
774
+ params(enabled: T::Boolean, features: T.nilable(::Stripe::AccountSession::CreateParams::Components::PaymentDisputes::Features)).void
775
+ }
776
+ def initialize(enabled: nil, features: nil); end
777
+ end
663
778
  class Payments < Stripe::RequestParams
664
779
  class Features < Stripe::RequestParams
665
780
  # Whether to allow capturing and cancelling payment intents. This is `true` by default.
666
781
  sig { returns(T.nilable(T::Boolean)) }
667
782
  attr_accessor :capture_payments
668
- # 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.
669
784
  sig { returns(T.nilable(T::Boolean)) }
670
785
  attr_accessor :destination_on_behalf_of_charge_management
671
- # 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.
672
787
  sig { returns(T.nilable(T::Boolean)) }
673
788
  attr_accessor :dispute_management
674
- # Whether to allow sending refunds. This is `true` by default.
789
+ # Whether sending refunds is enabled. This is `true` by default.
675
790
  sig { returns(T.nilable(T::Boolean)) }
676
791
  attr_accessor :refund_management
677
792
  sig {
@@ -699,19 +814,19 @@ module Stripe
699
814
  end
700
815
  class Payouts < Stripe::RequestParams
701
816
  class Features < Stripe::RequestParams
702
- # 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`.
703
818
  sig { returns(T.nilable(T::Boolean)) }
704
819
  attr_accessor :disable_stripe_user_authentication
705
- # 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`.
706
821
  sig { returns(T.nilable(T::Boolean)) }
707
822
  attr_accessor :edit_payout_schedule
708
- # 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`.
709
824
  sig { returns(T.nilable(T::Boolean)) }
710
825
  attr_accessor :external_account_collection
711
- # 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`.
712
827
  sig { returns(T.nilable(T::Boolean)) }
713
828
  attr_accessor :instant_payouts
714
- # 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`.
715
830
  sig { returns(T.nilable(T::Boolean)) }
716
831
  attr_accessor :standard_payouts
717
832
  sig {
@@ -739,9 +854,7 @@ module Stripe
739
854
  def initialize(enabled: nil, features: nil); end
740
855
  end
741
856
  class PayoutsList < Stripe::RequestParams
742
- class Features < Stripe::RequestParams
743
-
744
- end
857
+ class Features < Stripe::RequestParams; end
745
858
  # Whether the embedded component is enabled.
746
859
  sig { returns(T::Boolean) }
747
860
  attr_accessor :enabled
@@ -756,9 +869,7 @@ module Stripe
756
869
  def initialize(enabled: nil, features: nil); end
757
870
  end
758
871
  class TaxRegistrations < Stripe::RequestParams
759
- class Features < Stripe::RequestParams
760
-
761
- end
872
+ class Features < Stripe::RequestParams; end
762
873
  # Whether the embedded component is enabled.
763
874
  sig { returns(T::Boolean) }
764
875
  attr_accessor :enabled
@@ -773,9 +884,7 @@ module Stripe
773
884
  def initialize(enabled: nil, features: nil); end
774
885
  end
775
886
  class TaxSettings < Stripe::RequestParams
776
- class Features < Stripe::RequestParams
777
-
778
- end
887
+ class Features < Stripe::RequestParams; end
779
888
  # Whether the embedded component is enabled.
780
889
  sig { returns(T::Boolean) }
781
890
  attr_accessor :enabled
@@ -789,74 +898,83 @@ module Stripe
789
898
  }
790
899
  def initialize(enabled: nil, features: nil); end
791
900
  end
792
- # Configuration for the account management embedded component.
901
+ # Configuration for the [account management](/connect/supported-embedded-components/account-management/) embedded component.
793
902
  sig {
794
903
  returns(T.nilable(::Stripe::AccountSession::CreateParams::Components::AccountManagement))
795
904
  }
796
905
  attr_accessor :account_management
797
- # Configuration for the account onboarding embedded component.
906
+ # Configuration for the [account onboarding](/connect/supported-embedded-components/account-onboarding/) embedded component.
798
907
  sig {
799
908
  returns(T.nilable(::Stripe::AccountSession::CreateParams::Components::AccountOnboarding))
800
909
  }
801
910
  attr_accessor :account_onboarding
802
- # Configuration for the balances embedded component.
911
+ # Configuration for the [balances](/connect/supported-embedded-components/balances/) embedded component.
803
912
  sig { returns(T.nilable(::Stripe::AccountSession::CreateParams::Components::Balances)) }
804
913
  attr_accessor :balances
805
- # Configuration for the documents embedded component.
914
+ # Configuration for the [disputes list](/connect/supported-embedded-components/disputes-list/) embedded component.
915
+ sig { returns(T.nilable(::Stripe::AccountSession::CreateParams::Components::DisputesList)) }
916
+ attr_accessor :disputes_list
917
+ # Configuration for the [documents](/connect/supported-embedded-components/documents/) embedded component.
806
918
  sig { returns(T.nilable(::Stripe::AccountSession::CreateParams::Components::Documents)) }
807
919
  attr_accessor :documents
808
- # Configuration for the financial account embedded component.
920
+ # Configuration for the [financial account](/connect/supported-embedded-components/financial-account/) embedded component.
809
921
  sig {
810
922
  returns(T.nilable(::Stripe::AccountSession::CreateParams::Components::FinancialAccount))
811
923
  }
812
924
  attr_accessor :financial_account
813
- # Configuration for the financial account transactions embedded component.
925
+ # Configuration for the [financial account transactions](/connect/supported-embedded-components/financial-account-transactions/) embedded component.
814
926
  sig {
815
927
  returns(T.nilable(::Stripe::AccountSession::CreateParams::Components::FinancialAccountTransactions))
816
928
  }
817
929
  attr_accessor :financial_account_transactions
818
- # Configuration for the issuing card embedded component.
930
+ # Configuration for the [issuing card](/connect/supported-embedded-components/issuing-card/) embedded component.
819
931
  sig { returns(T.nilable(::Stripe::AccountSession::CreateParams::Components::IssuingCard)) }
820
932
  attr_accessor :issuing_card
821
- # Configuration for the issuing cards list embedded component.
933
+ # Configuration for the [issuing cards list](/connect/supported-embedded-components/issuing-cards-list/) embedded component.
822
934
  sig {
823
935
  returns(T.nilable(::Stripe::AccountSession::CreateParams::Components::IssuingCardsList))
824
936
  }
825
937
  attr_accessor :issuing_cards_list
826
- # Configuration for the notification banner embedded component.
938
+ # Configuration for the [notification banner](/connect/supported-embedded-components/notification-banner/) embedded component.
827
939
  sig {
828
940
  returns(T.nilable(::Stripe::AccountSession::CreateParams::Components::NotificationBanner))
829
941
  }
830
942
  attr_accessor :notification_banner
831
- # Configuration for the payment details embedded component.
943
+ # Configuration for the [payment details](/connect/supported-embedded-components/payment-details/) embedded component.
832
944
  sig {
833
945
  returns(T.nilable(::Stripe::AccountSession::CreateParams::Components::PaymentDetails))
834
946
  }
835
947
  attr_accessor :payment_details
836
- # Configuration for the payments embedded component.
948
+ # Configuration for the [payment disputes](/connect/supported-embedded-components/payment-disputes/) embedded component.
949
+ sig {
950
+ returns(T.nilable(::Stripe::AccountSession::CreateParams::Components::PaymentDisputes))
951
+ }
952
+ attr_accessor :payment_disputes
953
+ # Configuration for the [payments](/connect/supported-embedded-components/payments/) embedded component.
837
954
  sig { returns(T.nilable(::Stripe::AccountSession::CreateParams::Components::Payments)) }
838
955
  attr_accessor :payments
839
- # Configuration for the payouts embedded component.
956
+ # Configuration for the [payouts](/connect/supported-embedded-components/payouts/) embedded component.
840
957
  sig { returns(T.nilable(::Stripe::AccountSession::CreateParams::Components::Payouts)) }
841
958
  attr_accessor :payouts
842
- # Configuration for the payouts list embedded component.
959
+ # Configuration for the [payouts list](/connect/supported-embedded-components/payouts-list/) embedded component.
843
960
  sig { returns(T.nilable(::Stripe::AccountSession::CreateParams::Components::PayoutsList)) }
844
961
  attr_accessor :payouts_list
845
- # Configuration for the tax registrations embedded component.
962
+ # Configuration for the [tax registrations](/connect/supported-embedded-components/tax-registrations/) embedded component.
846
963
  sig {
847
964
  returns(T.nilable(::Stripe::AccountSession::CreateParams::Components::TaxRegistrations))
848
965
  }
849
966
  attr_accessor :tax_registrations
850
- # Configuration for the tax settings embedded component.
967
+ # Configuration for the [tax settings](/connect/supported-embedded-components/tax-settings/) embedded component.
851
968
  sig { returns(T.nilable(::Stripe::AccountSession::CreateParams::Components::TaxSettings)) }
852
969
  attr_accessor :tax_settings
853
970
  sig {
854
- params(account_management: T.nilable(::Stripe::AccountSession::CreateParams::Components::AccountManagement), account_onboarding: T.nilable(::Stripe::AccountSession::CreateParams::Components::AccountOnboarding), balances: T.nilable(::Stripe::AccountSession::CreateParams::Components::Balances), documents: T.nilable(::Stripe::AccountSession::CreateParams::Components::Documents), financial_account: T.nilable(::Stripe::AccountSession::CreateParams::Components::FinancialAccount), financial_account_transactions: T.nilable(::Stripe::AccountSession::CreateParams::Components::FinancialAccountTransactions), issuing_card: T.nilable(::Stripe::AccountSession::CreateParams::Components::IssuingCard), issuing_cards_list: T.nilable(::Stripe::AccountSession::CreateParams::Components::IssuingCardsList), notification_banner: T.nilable(::Stripe::AccountSession::CreateParams::Components::NotificationBanner), payment_details: T.nilable(::Stripe::AccountSession::CreateParams::Components::PaymentDetails), payments: T.nilable(::Stripe::AccountSession::CreateParams::Components::Payments), payouts: T.nilable(::Stripe::AccountSession::CreateParams::Components::Payouts), payouts_list: T.nilable(::Stripe::AccountSession::CreateParams::Components::PayoutsList), tax_registrations: T.nilable(::Stripe::AccountSession::CreateParams::Components::TaxRegistrations), tax_settings: T.nilable(::Stripe::AccountSession::CreateParams::Components::TaxSettings)).void
971
+ params(account_management: T.nilable(::Stripe::AccountSession::CreateParams::Components::AccountManagement), account_onboarding: T.nilable(::Stripe::AccountSession::CreateParams::Components::AccountOnboarding), balances: T.nilable(::Stripe::AccountSession::CreateParams::Components::Balances), disputes_list: T.nilable(::Stripe::AccountSession::CreateParams::Components::DisputesList), documents: T.nilable(::Stripe::AccountSession::CreateParams::Components::Documents), financial_account: T.nilable(::Stripe::AccountSession::CreateParams::Components::FinancialAccount), financial_account_transactions: T.nilable(::Stripe::AccountSession::CreateParams::Components::FinancialAccountTransactions), issuing_card: T.nilable(::Stripe::AccountSession::CreateParams::Components::IssuingCard), issuing_cards_list: T.nilable(::Stripe::AccountSession::CreateParams::Components::IssuingCardsList), notification_banner: T.nilable(::Stripe::AccountSession::CreateParams::Components::NotificationBanner), payment_details: T.nilable(::Stripe::AccountSession::CreateParams::Components::PaymentDetails), payment_disputes: T.nilable(::Stripe::AccountSession::CreateParams::Components::PaymentDisputes), payments: T.nilable(::Stripe::AccountSession::CreateParams::Components::Payments), payouts: T.nilable(::Stripe::AccountSession::CreateParams::Components::Payouts), payouts_list: T.nilable(::Stripe::AccountSession::CreateParams::Components::PayoutsList), tax_registrations: T.nilable(::Stripe::AccountSession::CreateParams::Components::TaxRegistrations), tax_settings: T.nilable(::Stripe::AccountSession::CreateParams::Components::TaxSettings)).void
855
972
  }
856
973
  def initialize(
857
974
  account_management: nil,
858
975
  account_onboarding: nil,
859
976
  balances: nil,
977
+ disputes_list: nil,
860
978
  documents: nil,
861
979
  financial_account: nil,
862
980
  financial_account_transactions: nil,
@@ -864,6 +982,7 @@ module Stripe
864
982
  issuing_cards_list: nil,
865
983
  notification_banner: nil,
866
984
  payment_details: nil,
985
+ payment_disputes: nil,
867
986
  payments: nil,
868
987
  payouts: nil,
869
988
  payouts_list: nil,
@@ -23,9 +23,7 @@ module Stripe
23
23
  # Always true for a deleted object
24
24
  sig { returns(T::Boolean) }
25
25
  attr_reader :deleted
26
- class DeleteParams < Stripe::RequestParams
27
-
28
- end
26
+ class DeleteParams < Stripe::RequestParams; end
29
27
  class ListParams < Stripe::RequestParams
30
28
  # Attribute for param field domain_name
31
29
  sig { returns(T.nilable(String)) }