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
@@ -6,14 +6,14 @@ module Stripe
6
6
  # properties on the account like its current requirements or if the account is
7
7
  # enabled to make live charges or receive payouts.
8
8
  #
9
- # For accounts where [controller.requirement_collection](https://stripe.com/api/accounts/object#account_object-controller-requirement_collection)
9
+ # For accounts where [controller.requirement_collection](https://docs.stripe.com/api/accounts/object#account_object-controller-requirement_collection)
10
10
  # is `application`, which includes Custom accounts, the properties below are always
11
11
  # returned.
12
12
  #
13
- # For accounts where [controller.requirement_collection](https://stripe.com/api/accounts/object#account_object-controller-requirement_collection)
13
+ # For accounts where [controller.requirement_collection](https://docs.stripe.com/api/accounts/object#account_object-controller-requirement_collection)
14
14
  # is `stripe`, which includes Standard and Express accounts, some properties are only returned
15
- # until you create an [Account Link](https://stripe.com/api/account_links) or [Account Session](https://stripe.com/api/account_sessions)
16
- # to start Connect Onboarding. Learn about the [differences between accounts](https://stripe.com/connect/accounts).
15
+ # until you create an [Account Link](https://docs.stripe.com/api/account_links) or [Account Session](https://docs.stripe.com/api/account_sessions)
16
+ # to start Connect Onboarding. Learn about the [differences between accounts](https://docs.stripe.com/connect/accounts).
17
17
  class Account < APIResource
18
18
  extend Stripe::APIOperations::Create
19
19
  include Stripe::APIOperations::Delete
@@ -71,6 +71,8 @@ module Stripe
71
71
  attr_reader :estimated_worker_count
72
72
  # [The merchant category code for the account](/connect/setting-mcc). MCCs are used to classify businesses based on the goods or services they provide.
73
73
  attr_reader :mcc
74
+ # Whether the business is a minority-owned, women-owned, and/or LGBTQI+-owned business.
75
+ attr_reader :minority_owned_business_designation
74
76
  # Attribute for field monthly_estimated_revenue
75
77
  attr_reader :monthly_estimated_revenue
76
78
  # The customer-facing business name.
@@ -122,6 +124,8 @@ module Stripe
122
124
  attr_reader :cartes_bancaires_payments
123
125
  # The status of the Cash App Pay capability of the account, or whether the account can directly process Cash App Pay payments.
124
126
  attr_reader :cashapp_payments
127
+ # The status of the Crypto capability of the account, or whether the account can directly process Crypto payments.
128
+ attr_reader :crypto_payments
125
129
  # The status of the EPS payments capability of the account, or whether the account can directly process EPS charges.
126
130
  attr_reader :eps_payments
127
131
  # The status of the FPX payments capability of the account, or whether the account can directly process FPX charges.
@@ -172,6 +176,8 @@ module Stripe
172
176
  attr_reader :payco_payments
173
177
  # The status of the paynow payments capability of the account, or whether the account can directly process paynow charges.
174
178
  attr_reader :paynow_payments
179
+ # The status of the pix payments capability of the account, or whether the account can directly process pix charges.
180
+ attr_reader :pix_payments
175
181
  # The status of the promptpay payments capability of the account, or whether the account can directly process promptpay charges.
176
182
  attr_reader :promptpay_payments
177
183
  # The status of the RevolutPay capability of the account, or whether the account can directly process RevolutPay payments.
@@ -274,6 +280,15 @@ module Stripe
274
280
  attr_reader :user_agent
275
281
  end
276
282
 
283
+ class RegistrationDate < Stripe::StripeObject
284
+ # The day of registration, between 1 and 31.
285
+ attr_reader :day
286
+ # The month of registration, between 1 and 12.
287
+ attr_reader :month
288
+ # The four-digit year of registration.
289
+ attr_reader :year
290
+ end
291
+
277
292
  class Verification < Stripe::StripeObject
278
293
  class Document < Stripe::StripeObject
279
294
  # The back of a document returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `additional_verification`.
@@ -318,6 +333,8 @@ module Stripe
318
333
  attr_reader :ownership_exemption_reason
319
334
  # The company's phone number (used for verification).
320
335
  attr_reader :phone
336
+ # Attribute for field registration_date
337
+ attr_reader :registration_date
321
338
  # The category identifying the legal structure of the company or legal entity. Also available for accounts where [controller.requirement_collection](/api/accounts/object#account_object-controller-requirement_collection) is `stripe`. See [Business structure](https://stripe.com/docs/connect/identity-verification#business-structure) for more details.
322
339
  attr_reader :structure
323
340
  # Whether the company's business ID number was provided.
@@ -516,8 +533,12 @@ module Stripe
516
533
  attr_reader :interval
517
534
  # The day of the month funds will be paid out. Only shown if `interval` is monthly. Payouts scheduled between the 29th and 31st of the month are sent on the last day of shorter months.
518
535
  attr_reader :monthly_anchor
536
+ # The days of the month funds will be paid out. Only shown if `interval` is monthly. Payouts scheduled between the 29th and 31st of the month are sent on the last day of shorter months.
537
+ attr_reader :monthly_payout_days
519
538
  # The day of the week funds will be paid out, of the style 'monday', 'tuesday', etc. Only shown if `interval` is weekly.
520
539
  attr_reader :weekly_anchor
540
+ # The days of the week when available funds are paid out, specified as an array, for example, [`monday`, `tuesday`]. Only shown if `interval` is weekly.
541
+ attr_reader :weekly_payout_days
521
542
  end
522
543
  # A Boolean indicating if Stripe should try to reclaim negative balances from an attached bank account. See [Understanding Connect account balances](/connect/account-balances) for details. The default value is `false` when [controller.requirement_collection](/api/accounts/object#account_object-controller-requirement_collection) is `application`, which includes Custom accounts, otherwise `true`.
523
544
  attr_reader :debit_negative_balances
@@ -577,8 +598,7 @@ module Stripe
577
598
  attr_reader :user_agent
578
599
  end
579
600
 
580
- class DeleteParams < Stripe::RequestParams
581
- end
601
+ class DeleteParams < Stripe::RequestParams; end
582
602
 
583
603
  class UpdateParams < Stripe::RequestParams
584
604
  class BankAccount < Stripe::RequestParams
@@ -594,7 +614,7 @@ module Stripe
594
614
  attr_accessor :country
595
615
  # The currency the bank account is in. This must be a country/currency pairing that [Stripe supports.](docs/payouts)
596
616
  attr_accessor :currency
597
- # The routing number, sort code, or other country-appropriateinstitution number for the bank account. For US bank accounts, this is required and should bethe ACH routing number, not the wire routing number. If you are providing an IBAN for`account_number`, this field is not required.
617
+ # The routing number, sort code, or other country-appropriate institution number for the bank account. For US bank accounts, this is required and should be the ACH routing number, not the wire routing number. If you are providing an IBAN for `account_number`, this field is not required.
598
618
  attr_accessor :routing_number
599
619
 
600
620
  def initialize(
@@ -680,6 +700,8 @@ module Stripe
680
700
  attr_accessor :estimated_worker_count
681
701
  # [The merchant category code for the account](/connect/setting-mcc). MCCs are used to classify businesses based on the goods or services they provide.
682
702
  attr_accessor :mcc
703
+ # Whether the business is a minority-owned, women-owned, and/or LGBTQI+-owned business.
704
+ attr_accessor :minority_owned_business_designation
683
705
  # An estimate of the monthly revenue of the business. Only accepted for accounts in Brazil and India.
684
706
  attr_accessor :monthly_estimated_revenue
685
707
  # The customer-facing business name.
@@ -701,6 +723,7 @@ module Stripe
701
723
  annual_revenue: nil,
702
724
  estimated_worker_count: nil,
703
725
  mcc: nil,
726
+ minority_owned_business_designation: nil,
704
727
  monthly_estimated_revenue: nil,
705
728
  name: nil,
706
729
  product_description: nil,
@@ -713,6 +736,7 @@ module Stripe
713
736
  @annual_revenue = annual_revenue
714
737
  @estimated_worker_count = estimated_worker_count
715
738
  @mcc = mcc
739
+ @minority_owned_business_designation = minority_owned_business_designation
716
740
  @monthly_estimated_revenue = monthly_estimated_revenue
717
741
  @name = name
718
742
  @product_description = product_description
@@ -869,6 +893,15 @@ module Stripe
869
893
  end
870
894
  end
871
895
 
896
+ class CryptoPayments < Stripe::RequestParams
897
+ # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
898
+ attr_accessor :requested
899
+
900
+ def initialize(requested: nil)
901
+ @requested = requested
902
+ end
903
+ end
904
+
872
905
  class EpsPayments < Stripe::RequestParams
873
906
  # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
874
907
  attr_accessor :requested
@@ -1094,6 +1127,15 @@ module Stripe
1094
1127
  end
1095
1128
  end
1096
1129
 
1130
+ class PixPayments < Stripe::RequestParams
1131
+ # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
1132
+ attr_accessor :requested
1133
+
1134
+ def initialize(requested: nil)
1135
+ @requested = requested
1136
+ end
1137
+ end
1138
+
1097
1139
  class PromptpayPayments < Stripe::RequestParams
1098
1140
  # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
1099
1141
  attr_accessor :requested
@@ -1269,6 +1311,8 @@ module Stripe
1269
1311
  attr_accessor :cartes_bancaires_payments
1270
1312
  # The cashapp_payments capability.
1271
1313
  attr_accessor :cashapp_payments
1314
+ # The crypto_payments capability.
1315
+ attr_accessor :crypto_payments
1272
1316
  # The eps_payments capability.
1273
1317
  attr_accessor :eps_payments
1274
1318
  # The fpx_payments capability.
@@ -1319,6 +1363,8 @@ module Stripe
1319
1363
  attr_accessor :payco_payments
1320
1364
  # The paynow_payments capability.
1321
1365
  attr_accessor :paynow_payments
1366
+ # The pix_payments capability.
1367
+ attr_accessor :pix_payments
1322
1368
  # The promptpay_payments capability.
1323
1369
  attr_accessor :promptpay_payments
1324
1370
  # The revolut_pay_payments capability.
@@ -1369,6 +1415,7 @@ module Stripe
1369
1415
  card_payments: nil,
1370
1416
  cartes_bancaires_payments: nil,
1371
1417
  cashapp_payments: nil,
1418
+ crypto_payments: nil,
1372
1419
  eps_payments: nil,
1373
1420
  fpx_payments: nil,
1374
1421
  gb_bank_transfer_payments: nil,
@@ -1394,6 +1441,7 @@ module Stripe
1394
1441
  pay_by_bank_payments: nil,
1395
1442
  payco_payments: nil,
1396
1443
  paynow_payments: nil,
1444
+ pix_payments: nil,
1397
1445
  promptpay_payments: nil,
1398
1446
  revolut_pay_payments: nil,
1399
1447
  samsung_pay_payments: nil,
@@ -1427,6 +1475,7 @@ module Stripe
1427
1475
  @card_payments = card_payments
1428
1476
  @cartes_bancaires_payments = cartes_bancaires_payments
1429
1477
  @cashapp_payments = cashapp_payments
1478
+ @crypto_payments = crypto_payments
1430
1479
  @eps_payments = eps_payments
1431
1480
  @fpx_payments = fpx_payments
1432
1481
  @gb_bank_transfer_payments = gb_bank_transfer_payments
@@ -1452,6 +1501,7 @@ module Stripe
1452
1501
  @pay_by_bank_payments = pay_by_bank_payments
1453
1502
  @payco_payments = payco_payments
1454
1503
  @paynow_payments = paynow_payments
1504
+ @pix_payments = pix_payments
1455
1505
  @promptpay_payments = promptpay_payments
1456
1506
  @revolut_pay_payments = revolut_pay_payments
1457
1507
  @samsung_pay_payments = samsung_pay_payments
@@ -1685,6 +1735,21 @@ module Stripe
1685
1735
  end
1686
1736
  end
1687
1737
 
1738
+ class RegistrationDate < Stripe::RequestParams
1739
+ # The day of registration, between 1 and 31.
1740
+ attr_accessor :day
1741
+ # The month of registration, between 1 and 12.
1742
+ attr_accessor :month
1743
+ # The four-digit year of registration.
1744
+ attr_accessor :year
1745
+
1746
+ def initialize(day: nil, month: nil, year: nil)
1747
+ @day = day
1748
+ @month = month
1749
+ @year = year
1750
+ end
1751
+ end
1752
+
1688
1753
  class Verification < Stripe::RequestParams
1689
1754
  class Document < Stripe::RequestParams
1690
1755
  # The back of a document returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `additional_verification`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size.
@@ -1734,6 +1799,8 @@ module Stripe
1734
1799
  attr_accessor :ownership_exemption_reason
1735
1800
  # The company's phone number (used for verification).
1736
1801
  attr_accessor :phone
1802
+ # Attribute for param field registration_date
1803
+ attr_accessor :registration_date
1737
1804
  # The identification number given to a company when it is registered or incorporated, if distinct from the identification number used for filing taxes. (Examples are the CIN for companies and LLP IN for partnerships in India, and the Company Registration Number in Hong Kong).
1738
1805
  attr_accessor :registration_number
1739
1806
  # The category identifying the legal structure of the company or legal entity. See [Business structure](/connect/identity-verification#business-structure) for more details. Pass an empty string to unset this value.
@@ -1763,6 +1830,7 @@ module Stripe
1763
1830
  ownership_declaration: nil,
1764
1831
  ownership_exemption_reason: nil,
1765
1832
  phone: nil,
1833
+ registration_date: nil,
1766
1834
  registration_number: nil,
1767
1835
  structure: nil,
1768
1836
  tax_id: nil,
@@ -1785,6 +1853,7 @@ module Stripe
1785
1853
  @ownership_declaration = ownership_declaration
1786
1854
  @ownership_exemption_reason = ownership_exemption_reason
1787
1855
  @phone = phone
1856
+ @registration_date = registration_date
1788
1857
  @registration_number = registration_number
1789
1858
  @structure = structure
1790
1859
  @tax_id = tax_id
@@ -1849,6 +1918,15 @@ module Stripe
1849
1918
  end
1850
1919
  end
1851
1920
 
1921
+ class ProofOfAddress < Stripe::RequestParams
1922
+ # One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`.
1923
+ attr_accessor :files
1924
+
1925
+ def initialize(files: nil)
1926
+ @files = files
1927
+ end
1928
+ end
1929
+
1852
1930
  class ProofOfRegistration < Stripe::RequestParams
1853
1931
  # One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`.
1854
1932
  attr_accessor :files
@@ -1878,6 +1956,8 @@ module Stripe
1878
1956
  attr_accessor :company_registration_verification
1879
1957
  # One or more documents that demonstrate proof of a company's tax ID.
1880
1958
  attr_accessor :company_tax_id_verification
1959
+ # One or more documents that demonstrate proof of address.
1960
+ attr_accessor :proof_of_address
1881
1961
  # One or more documents showing the company’s proof of registration with the national business registry.
1882
1962
  attr_accessor :proof_of_registration
1883
1963
  # One or more documents that demonstrate proof of ultimate beneficial ownership.
@@ -1890,6 +1970,7 @@ module Stripe
1890
1970
  company_ministerial_decree: nil,
1891
1971
  company_registration_verification: nil,
1892
1972
  company_tax_id_verification: nil,
1973
+ proof_of_address: nil,
1893
1974
  proof_of_registration: nil,
1894
1975
  proof_of_ultimate_beneficial_ownership: nil
1895
1976
  )
@@ -1899,6 +1980,7 @@ module Stripe
1899
1980
  @company_ministerial_decree = company_ministerial_decree
1900
1981
  @company_registration_verification = company_registration_verification
1901
1982
  @company_tax_id_verification = company_tax_id_verification
1983
+ @proof_of_address = proof_of_address
1902
1984
  @proof_of_registration = proof_of_registration
1903
1985
  @proof_of_ultimate_beneficial_ownership = proof_of_ultimate_beneficial_ownership
1904
1986
  end
@@ -2344,14 +2426,27 @@ module Stripe
2344
2426
  attr_accessor :interval
2345
2427
  # The day of the month when available funds are paid out, specified as a number between 1--31. Payouts nominally scheduled between the 29th and 31st of the month are instead sent on the last day of a shorter month. Required and applicable only if `interval` is `monthly`.
2346
2428
  attr_accessor :monthly_anchor
2429
+ # The days of the month when available funds are paid out, specified as an array of numbers between 1--31. Payouts nominally scheduled between the 29th and 31st of the month are instead sent on the last day of a shorter month. Required and applicable only if `interval` is `monthly` and `monthly_anchor` is not set.
2430
+ attr_accessor :monthly_payout_days
2347
2431
  # The day of the week when available funds are paid out, specified as `monday`, `tuesday`, etc. (required and applicable only if `interval` is `weekly`.)
2348
2432
  attr_accessor :weekly_anchor
2349
-
2350
- def initialize(delay_days: nil, interval: nil, monthly_anchor: nil, weekly_anchor: nil)
2433
+ # The days of the week when available funds are paid out, specified as an array, e.g., [`monday`, `tuesday`]. (required and applicable only if `interval` is `weekly` and `weekly_anchor` is not set.)
2434
+ attr_accessor :weekly_payout_days
2435
+
2436
+ def initialize(
2437
+ delay_days: nil,
2438
+ interval: nil,
2439
+ monthly_anchor: nil,
2440
+ monthly_payout_days: nil,
2441
+ weekly_anchor: nil,
2442
+ weekly_payout_days: nil
2443
+ )
2351
2444
  @delay_days = delay_days
2352
2445
  @interval = interval
2353
2446
  @monthly_anchor = monthly_anchor
2447
+ @monthly_payout_days = monthly_payout_days
2354
2448
  @weekly_anchor = weekly_anchor
2449
+ @weekly_payout_days = weekly_payout_days
2355
2450
  end
2356
2451
  end
2357
2452
  # A Boolean indicating whether Stripe should try to reclaim negative balances from an attached bank account. For details, see [Understanding Connect Account Balances](/connect/account-balances).
@@ -2570,7 +2665,7 @@ module Stripe
2570
2665
  attr_accessor :country
2571
2666
  # The currency the bank account is in. This must be a country/currency pairing that [Stripe supports.](docs/payouts)
2572
2667
  attr_accessor :currency
2573
- # The routing number, sort code, or other country-appropriateinstitution number for the bank account. For US bank accounts, this is required and should bethe ACH routing number, not the wire routing number. If you are providing an IBAN for`account_number`, this field is not required.
2668
+ # The routing number, sort code, or other country-appropriate institution number for the bank account. For US bank accounts, this is required and should be the ACH routing number, not the wire routing number. If you are providing an IBAN for `account_number`, this field is not required.
2574
2669
  attr_accessor :routing_number
2575
2670
 
2576
2671
  def initialize(
@@ -2656,6 +2751,8 @@ module Stripe
2656
2751
  attr_accessor :estimated_worker_count
2657
2752
  # [The merchant category code for the account](/connect/setting-mcc). MCCs are used to classify businesses based on the goods or services they provide.
2658
2753
  attr_accessor :mcc
2754
+ # Whether the business is a minority-owned, women-owned, and/or LGBTQI+-owned business.
2755
+ attr_accessor :minority_owned_business_designation
2659
2756
  # An estimate of the monthly revenue of the business. Only accepted for accounts in Brazil and India.
2660
2757
  attr_accessor :monthly_estimated_revenue
2661
2758
  # The customer-facing business name.
@@ -2677,6 +2774,7 @@ module Stripe
2677
2774
  annual_revenue: nil,
2678
2775
  estimated_worker_count: nil,
2679
2776
  mcc: nil,
2777
+ minority_owned_business_designation: nil,
2680
2778
  monthly_estimated_revenue: nil,
2681
2779
  name: nil,
2682
2780
  product_description: nil,
@@ -2689,6 +2787,7 @@ module Stripe
2689
2787
  @annual_revenue = annual_revenue
2690
2788
  @estimated_worker_count = estimated_worker_count
2691
2789
  @mcc = mcc
2790
+ @minority_owned_business_designation = minority_owned_business_designation
2692
2791
  @monthly_estimated_revenue = monthly_estimated_revenue
2693
2792
  @name = name
2694
2793
  @product_description = product_description
@@ -2845,6 +2944,15 @@ module Stripe
2845
2944
  end
2846
2945
  end
2847
2946
 
2947
+ class CryptoPayments < Stripe::RequestParams
2948
+ # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
2949
+ attr_accessor :requested
2950
+
2951
+ def initialize(requested: nil)
2952
+ @requested = requested
2953
+ end
2954
+ end
2955
+
2848
2956
  class EpsPayments < Stripe::RequestParams
2849
2957
  # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
2850
2958
  attr_accessor :requested
@@ -3070,6 +3178,15 @@ module Stripe
3070
3178
  end
3071
3179
  end
3072
3180
 
3181
+ class PixPayments < Stripe::RequestParams
3182
+ # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
3183
+ attr_accessor :requested
3184
+
3185
+ def initialize(requested: nil)
3186
+ @requested = requested
3187
+ end
3188
+ end
3189
+
3073
3190
  class PromptpayPayments < Stripe::RequestParams
3074
3191
  # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
3075
3192
  attr_accessor :requested
@@ -3245,6 +3362,8 @@ module Stripe
3245
3362
  attr_accessor :cartes_bancaires_payments
3246
3363
  # The cashapp_payments capability.
3247
3364
  attr_accessor :cashapp_payments
3365
+ # The crypto_payments capability.
3366
+ attr_accessor :crypto_payments
3248
3367
  # The eps_payments capability.
3249
3368
  attr_accessor :eps_payments
3250
3369
  # The fpx_payments capability.
@@ -3295,6 +3414,8 @@ module Stripe
3295
3414
  attr_accessor :payco_payments
3296
3415
  # The paynow_payments capability.
3297
3416
  attr_accessor :paynow_payments
3417
+ # The pix_payments capability.
3418
+ attr_accessor :pix_payments
3298
3419
  # The promptpay_payments capability.
3299
3420
  attr_accessor :promptpay_payments
3300
3421
  # The revolut_pay_payments capability.
@@ -3345,6 +3466,7 @@ module Stripe
3345
3466
  card_payments: nil,
3346
3467
  cartes_bancaires_payments: nil,
3347
3468
  cashapp_payments: nil,
3469
+ crypto_payments: nil,
3348
3470
  eps_payments: nil,
3349
3471
  fpx_payments: nil,
3350
3472
  gb_bank_transfer_payments: nil,
@@ -3370,6 +3492,7 @@ module Stripe
3370
3492
  pay_by_bank_payments: nil,
3371
3493
  payco_payments: nil,
3372
3494
  paynow_payments: nil,
3495
+ pix_payments: nil,
3373
3496
  promptpay_payments: nil,
3374
3497
  revolut_pay_payments: nil,
3375
3498
  samsung_pay_payments: nil,
@@ -3403,6 +3526,7 @@ module Stripe
3403
3526
  @card_payments = card_payments
3404
3527
  @cartes_bancaires_payments = cartes_bancaires_payments
3405
3528
  @cashapp_payments = cashapp_payments
3529
+ @crypto_payments = crypto_payments
3406
3530
  @eps_payments = eps_payments
3407
3531
  @fpx_payments = fpx_payments
3408
3532
  @gb_bank_transfer_payments = gb_bank_transfer_payments
@@ -3428,6 +3552,7 @@ module Stripe
3428
3552
  @pay_by_bank_payments = pay_by_bank_payments
3429
3553
  @payco_payments = payco_payments
3430
3554
  @paynow_payments = paynow_payments
3555
+ @pix_payments = pix_payments
3431
3556
  @promptpay_payments = promptpay_payments
3432
3557
  @revolut_pay_payments = revolut_pay_payments
3433
3558
  @samsung_pay_payments = samsung_pay_payments
@@ -3661,6 +3786,21 @@ module Stripe
3661
3786
  end
3662
3787
  end
3663
3788
 
3789
+ class RegistrationDate < Stripe::RequestParams
3790
+ # The day of registration, between 1 and 31.
3791
+ attr_accessor :day
3792
+ # The month of registration, between 1 and 12.
3793
+ attr_accessor :month
3794
+ # The four-digit year of registration.
3795
+ attr_accessor :year
3796
+
3797
+ def initialize(day: nil, month: nil, year: nil)
3798
+ @day = day
3799
+ @month = month
3800
+ @year = year
3801
+ end
3802
+ end
3803
+
3664
3804
  class Verification < Stripe::RequestParams
3665
3805
  class Document < Stripe::RequestParams
3666
3806
  # The back of a document returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `additional_verification`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size.
@@ -3710,6 +3850,8 @@ module Stripe
3710
3850
  attr_accessor :ownership_exemption_reason
3711
3851
  # The company's phone number (used for verification).
3712
3852
  attr_accessor :phone
3853
+ # When the business was incorporated or registered.
3854
+ attr_accessor :registration_date
3713
3855
  # The identification number given to a company when it is registered or incorporated, if distinct from the identification number used for filing taxes. (Examples are the CIN for companies and LLP IN for partnerships in India, and the Company Registration Number in Hong Kong).
3714
3856
  attr_accessor :registration_number
3715
3857
  # The category identifying the legal structure of the company or legal entity. See [Business structure](/connect/identity-verification#business-structure) for more details. Pass an empty string to unset this value.
@@ -3739,6 +3881,7 @@ module Stripe
3739
3881
  ownership_declaration: nil,
3740
3882
  ownership_exemption_reason: nil,
3741
3883
  phone: nil,
3884
+ registration_date: nil,
3742
3885
  registration_number: nil,
3743
3886
  structure: nil,
3744
3887
  tax_id: nil,
@@ -3761,6 +3904,7 @@ module Stripe
3761
3904
  @ownership_declaration = ownership_declaration
3762
3905
  @ownership_exemption_reason = ownership_exemption_reason
3763
3906
  @phone = phone
3907
+ @registration_date = registration_date
3764
3908
  @registration_number = registration_number
3765
3909
  @structure = structure
3766
3910
  @tax_id = tax_id
@@ -3869,6 +4013,15 @@ module Stripe
3869
4013
  end
3870
4014
  end
3871
4015
 
4016
+ class ProofOfAddress < Stripe::RequestParams
4017
+ # One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`.
4018
+ attr_accessor :files
4019
+
4020
+ def initialize(files: nil)
4021
+ @files = files
4022
+ end
4023
+ end
4024
+
3872
4025
  class ProofOfRegistration < Stripe::RequestParams
3873
4026
  # One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`.
3874
4027
  attr_accessor :files
@@ -3898,6 +4051,8 @@ module Stripe
3898
4051
  attr_accessor :company_registration_verification
3899
4052
  # One or more documents that demonstrate proof of a company's tax ID.
3900
4053
  attr_accessor :company_tax_id_verification
4054
+ # One or more documents that demonstrate proof of address.
4055
+ attr_accessor :proof_of_address
3901
4056
  # One or more documents showing the company’s proof of registration with the national business registry.
3902
4057
  attr_accessor :proof_of_registration
3903
4058
  # One or more documents that demonstrate proof of ultimate beneficial ownership.
@@ -3910,6 +4065,7 @@ module Stripe
3910
4065
  company_ministerial_decree: nil,
3911
4066
  company_registration_verification: nil,
3912
4067
  company_tax_id_verification: nil,
4068
+ proof_of_address: nil,
3913
4069
  proof_of_registration: nil,
3914
4070
  proof_of_ultimate_beneficial_ownership: nil
3915
4071
  )
@@ -3919,6 +4075,7 @@ module Stripe
3919
4075
  @company_ministerial_decree = company_ministerial_decree
3920
4076
  @company_registration_verification = company_registration_verification
3921
4077
  @company_tax_id_verification = company_tax_id_verification
4078
+ @proof_of_address = proof_of_address
3922
4079
  @proof_of_registration = proof_of_registration
3923
4080
  @proof_of_ultimate_beneficial_ownership = proof_of_ultimate_beneficial_ownership
3924
4081
  end
@@ -4361,14 +4518,27 @@ module Stripe
4361
4518
  attr_accessor :interval
4362
4519
  # The day of the month when available funds are paid out, specified as a number between 1--31. Payouts nominally scheduled between the 29th and 31st of the month are instead sent on the last day of a shorter month. Required and applicable only if `interval` is `monthly`.
4363
4520
  attr_accessor :monthly_anchor
4521
+ # The days of the month when available funds are paid out, specified as an array of numbers between 1--31. Payouts nominally scheduled between the 29th and 31st of the month are instead sent on the last day of a shorter month. Required and applicable only if `interval` is `monthly` and `monthly_anchor` is not set.
4522
+ attr_accessor :monthly_payout_days
4364
4523
  # The day of the week when available funds are paid out, specified as `monday`, `tuesday`, etc. (required and applicable only if `interval` is `weekly`.)
4365
4524
  attr_accessor :weekly_anchor
4366
-
4367
- def initialize(delay_days: nil, interval: nil, monthly_anchor: nil, weekly_anchor: nil)
4525
+ # The days of the week when available funds are paid out, specified as an array, e.g., [`monday`, `tuesday`]. (required and applicable only if `interval` is `weekly` and `weekly_anchor` is not set.)
4526
+ attr_accessor :weekly_payout_days
4527
+
4528
+ def initialize(
4529
+ delay_days: nil,
4530
+ interval: nil,
4531
+ monthly_anchor: nil,
4532
+ monthly_payout_days: nil,
4533
+ weekly_anchor: nil,
4534
+ weekly_payout_days: nil
4535
+ )
4368
4536
  @delay_days = delay_days
4369
4537
  @interval = interval
4370
4538
  @monthly_anchor = monthly_anchor
4539
+ @monthly_payout_days = monthly_payout_days
4371
4540
  @weekly_anchor = weekly_anchor
4541
+ @weekly_payout_days = weekly_payout_days
4372
4542
  end
4373
4543
  end
4374
4544
  # A Boolean indicating whether Stripe should try to reclaim negative balances from an attached bank account. For details, see [Understanding Connect Account Balances](/connect/account-balances).
@@ -4668,21 +4838,21 @@ module Stripe
4668
4838
  # Always true for a deleted object
4669
4839
  attr_reader :deleted
4670
4840
 
4671
- # With [Connect](https://stripe.com/docs/connect), you can create Stripe accounts for your users.
4841
+ # With [Connect](https://docs.stripe.com/docs/connect), you can create Stripe accounts for your users.
4672
4842
  # To do this, you'll first need to [register your platform](https://dashboard.stripe.com/account/applications/settings).
4673
4843
  #
4674
- # If you've already collected information for your connected accounts, you [can prefill that information](https://stripe.com/docs/connect/best-practices#onboarding) when
4844
+ # If you've already collected information for your connected accounts, you [can prefill that information](https://docs.stripe.com/docs/connect/best-practices#onboarding) when
4675
4845
  # creating the account. Connect Onboarding won't ask for the prefilled information during account onboarding.
4676
4846
  # You can prefill any information on the account.
4677
4847
  def self.create(params = {}, opts = {})
4678
4848
  request_stripe_object(method: :post, path: "/v1/accounts", params: params, opts: opts)
4679
4849
  end
4680
4850
 
4681
- # With [Connect](https://stripe.com/connect), you can delete accounts you manage.
4851
+ # With [Connect](https://docs.stripe.com/connect), you can delete accounts you manage.
4682
4852
  #
4683
4853
  # Test-mode accounts can be deleted at any time.
4684
4854
  #
4685
- # Live-mode accounts where Stripe is responsible for negative account balances cannot be deleted, which includes Standard accounts. Live-mode accounts where your platform is liable for negative account balances, which includes Custom and Express accounts, can be deleted when all [balances](https://stripe.com/api/balance/balance_object) are zero.
4855
+ # Live-mode accounts where Stripe is responsible for negative account balances cannot be deleted, which includes Standard accounts. Live-mode accounts where your platform is liable for negative account balances, which includes Custom and Express accounts, can be deleted when all [balances](https://docs.stripe.com/api/balance/balance_object) are zero.
4686
4856
  #
4687
4857
  # If you want to delete your own account, use the [account information tab in your account settings](https://dashboard.stripe.com/settings/account) instead.
4688
4858
  def self.delete(account, params = {}, opts = {})
@@ -4694,11 +4864,11 @@ module Stripe
4694
4864
  )
4695
4865
  end
4696
4866
 
4697
- # With [Connect](https://stripe.com/connect), you can delete accounts you manage.
4867
+ # With [Connect](https://docs.stripe.com/connect), you can delete accounts you manage.
4698
4868
  #
4699
4869
  # Test-mode accounts can be deleted at any time.
4700
4870
  #
4701
- # Live-mode accounts where Stripe is responsible for negative account balances cannot be deleted, which includes Standard accounts. Live-mode accounts where your platform is liable for negative account balances, which includes Custom and Express accounts, can be deleted when all [balances](https://stripe.com/api/balance/balance_object) are zero.
4871
+ # Live-mode accounts where Stripe is responsible for negative account balances cannot be deleted, which includes Standard accounts. Live-mode accounts where your platform is liable for negative account balances, which includes Custom and Express accounts, can be deleted when all [balances](https://docs.stripe.com/api/balance/balance_object) are zero.
4702
4872
  #
4703
4873
  # If you want to delete your own account, use the [account information tab in your account settings](https://dashboard.stripe.com/settings/account) instead.
4704
4874
  def delete(params = {}, opts = {})
@@ -4710,7 +4880,7 @@ module Stripe
4710
4880
  )
4711
4881
  end
4712
4882
 
4713
- # Returns a list of accounts connected to your platform via [Connect](https://stripe.com/docs/connect). If you're not a platform, the list is empty.
4883
+ # Returns a list of accounts connected to your platform via [Connect](https://docs.stripe.com/docs/connect). If you're not a platform, the list is empty.
4714
4884
  def self.list(params = {}, opts = {})
4715
4885
  request_stripe_object(method: :get, path: "/v1/accounts", params: params, opts: opts)
4716
4886
  end
@@ -4735,7 +4905,7 @@ module Stripe
4735
4905
  )
4736
4906
  end
4737
4907
 
4738
- # With [Connect](https://stripe.com/connect), you can reject accounts that you have flagged as suspicious.
4908
+ # With [Connect](https://docs.stripe.com/connect), you can reject accounts that you have flagged as suspicious.
4739
4909
  #
4740
4910
  # Only accounts where your platform is liable for negative account balances, which includes Custom and Express accounts, can be rejected. Test-mode accounts can be rejected at any time. Live-mode accounts can only be rejected after all balances are zero.
4741
4911
  def reject(params = {}, opts = {})
@@ -4747,7 +4917,7 @@ module Stripe
4747
4917
  )
4748
4918
  end
4749
4919
 
4750
- # With [Connect](https://stripe.com/connect), you can reject accounts that you have flagged as suspicious.
4920
+ # With [Connect](https://docs.stripe.com/connect), you can reject accounts that you have flagged as suspicious.
4751
4921
  #
4752
4922
  # Only accounts where your platform is liable for negative account balances, which includes Custom and Express accounts, can be rejected. Test-mode accounts can be rejected at any time. Live-mode accounts can only be rejected after all balances are zero.
4753
4923
  def self.reject(account, params = {}, opts = {})
@@ -4759,19 +4929,19 @@ module Stripe
4759
4929
  )
4760
4930
  end
4761
4931
 
4762
- # Updates a [connected account](https://stripe.com/connect/accounts) by setting the values of the parameters passed. Any parameters not provided are
4932
+ # Updates a [connected account](https://docs.stripe.com/connect/accounts) by setting the values of the parameters passed. Any parameters not provided are
4763
4933
  # left unchanged.
4764
4934
  #
4765
- # For accounts where [controller.requirement_collection](https://stripe.com/api/accounts/object#account_object-controller-requirement_collection)
4935
+ # For accounts where [controller.requirement_collection](https://docs.stripe.com/api/accounts/object#account_object-controller-requirement_collection)
4766
4936
  # is application, which includes Custom accounts, you can update any information on the account.
4767
4937
  #
4768
- # For accounts where [controller.requirement_collection](https://stripe.com/api/accounts/object#account_object-controller-requirement_collection)
4938
+ # For accounts where [controller.requirement_collection](https://docs.stripe.com/api/accounts/object#account_object-controller-requirement_collection)
4769
4939
  # is stripe, which includes Standard and Express accounts, you can update all information until you create
4770
- # an [Account Link or <a href="/api/account_sessions">Account Session](https://stripe.com/api/account_links) to start Connect onboarding,
4940
+ # an [Account Link or <a href="/api/account_sessions">Account Session](https://docs.stripe.com/api/account_links) to start Connect onboarding,
4771
4941
  # after which some properties can no longer be updated.
4772
4942
  #
4773
4943
  # To update your own account, use the [Dashboard](https://dashboard.stripe.com/settings/account). Refer to our
4774
- # [Connect](https://stripe.com/docs/connect/updating-accounts) documentation to learn more about updating accounts.
4944
+ # [Connect](https://docs.stripe.com/docs/connect/updating-accounts) documentation to learn more about updating accounts.
4775
4945
  def self.update(account, params = {}, opts = {})
4776
4946
  request_stripe_object(
4777
4947
  method: :post,
@@ -4804,7 +4974,7 @@ module Stripe
4804
4974
  opts = id
4805
4975
  id = nil
4806
4976
  end
4807
- super(id, opts)
4977
+ super
4808
4978
  end
4809
4979
 
4810
4980
  # We are not adding a helper for capabilities here as the Account object
@@ -4844,7 +5014,7 @@ module Stripe
4844
5014
  entity_update[:additional_owners] =
4845
5015
  serialize_additional_owners(entity, owners)
4846
5016
  end
4847
- if (individual = @values[:individual]) && (individual.is_a?(Person) && !update_hash.key?(:individual))
5017
+ if (individual = @values[:individual]) && individual.is_a?(Person) && !update_hash.key?(:individual)
4848
5018
  update_hash[:individual] = individual.serialize_params(options)
4849
5019
  end
4850
5020
  update_hash