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,15 +6,14 @@ module Stripe
6
6
  attr_reader :capabilities, :external_accounts, :login_links, :persons
7
7
 
8
8
  def initialize(requestor)
9
- super(requestor)
9
+ super
10
10
  @capabilities = Stripe::AccountCapabilityService.new(@requestor)
11
11
  @external_accounts = Stripe::AccountExternalAccountService.new(@requestor)
12
12
  @login_links = Stripe::AccountLoginLinkService.new(@requestor)
13
13
  @persons = Stripe::AccountPersonService.new(@requestor)
14
14
  end
15
15
 
16
- class DeleteParams < Stripe::RequestParams
17
- end
16
+ class DeleteParams < Stripe::RequestParams; end
18
17
 
19
18
  class RetrieveParams < Stripe::RequestParams
20
19
  # Specifies which fields in the response should be expanded.
@@ -39,7 +38,7 @@ module Stripe
39
38
  attr_accessor :country
40
39
  # The currency the bank account is in. This must be a country/currency pairing that [Stripe supports.](docs/payouts)
41
40
  attr_accessor :currency
42
- # 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.
41
+ # 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.
43
42
  attr_accessor :routing_number
44
43
 
45
44
  def initialize(
@@ -125,6 +124,8 @@ module Stripe
125
124
  attr_accessor :estimated_worker_count
126
125
  # [The merchant category code for the account](/connect/setting-mcc). MCCs are used to classify businesses based on the goods or services they provide.
127
126
  attr_accessor :mcc
127
+ # Whether the business is a minority-owned, women-owned, and/or LGBTQI+-owned business.
128
+ attr_accessor :minority_owned_business_designation
128
129
  # An estimate of the monthly revenue of the business. Only accepted for accounts in Brazil and India.
129
130
  attr_accessor :monthly_estimated_revenue
130
131
  # The customer-facing business name.
@@ -146,6 +147,7 @@ module Stripe
146
147
  annual_revenue: nil,
147
148
  estimated_worker_count: nil,
148
149
  mcc: nil,
150
+ minority_owned_business_designation: nil,
149
151
  monthly_estimated_revenue: nil,
150
152
  name: nil,
151
153
  product_description: nil,
@@ -158,6 +160,7 @@ module Stripe
158
160
  @annual_revenue = annual_revenue
159
161
  @estimated_worker_count = estimated_worker_count
160
162
  @mcc = mcc
163
+ @minority_owned_business_designation = minority_owned_business_designation
161
164
  @monthly_estimated_revenue = monthly_estimated_revenue
162
165
  @name = name
163
166
  @product_description = product_description
@@ -314,6 +317,15 @@ module Stripe
314
317
  end
315
318
  end
316
319
 
320
+ class CryptoPayments < Stripe::RequestParams
321
+ # 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.
322
+ attr_accessor :requested
323
+
324
+ def initialize(requested: nil)
325
+ @requested = requested
326
+ end
327
+ end
328
+
317
329
  class EpsPayments < Stripe::RequestParams
318
330
  # 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.
319
331
  attr_accessor :requested
@@ -539,6 +551,15 @@ module Stripe
539
551
  end
540
552
  end
541
553
 
554
+ class PixPayments < Stripe::RequestParams
555
+ # 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.
556
+ attr_accessor :requested
557
+
558
+ def initialize(requested: nil)
559
+ @requested = requested
560
+ end
561
+ end
562
+
542
563
  class PromptpayPayments < Stripe::RequestParams
543
564
  # 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.
544
565
  attr_accessor :requested
@@ -714,6 +735,8 @@ module Stripe
714
735
  attr_accessor :cartes_bancaires_payments
715
736
  # The cashapp_payments capability.
716
737
  attr_accessor :cashapp_payments
738
+ # The crypto_payments capability.
739
+ attr_accessor :crypto_payments
717
740
  # The eps_payments capability.
718
741
  attr_accessor :eps_payments
719
742
  # The fpx_payments capability.
@@ -764,6 +787,8 @@ module Stripe
764
787
  attr_accessor :payco_payments
765
788
  # The paynow_payments capability.
766
789
  attr_accessor :paynow_payments
790
+ # The pix_payments capability.
791
+ attr_accessor :pix_payments
767
792
  # The promptpay_payments capability.
768
793
  attr_accessor :promptpay_payments
769
794
  # The revolut_pay_payments capability.
@@ -814,6 +839,7 @@ module Stripe
814
839
  card_payments: nil,
815
840
  cartes_bancaires_payments: nil,
816
841
  cashapp_payments: nil,
842
+ crypto_payments: nil,
817
843
  eps_payments: nil,
818
844
  fpx_payments: nil,
819
845
  gb_bank_transfer_payments: nil,
@@ -839,6 +865,7 @@ module Stripe
839
865
  pay_by_bank_payments: nil,
840
866
  payco_payments: nil,
841
867
  paynow_payments: nil,
868
+ pix_payments: nil,
842
869
  promptpay_payments: nil,
843
870
  revolut_pay_payments: nil,
844
871
  samsung_pay_payments: nil,
@@ -872,6 +899,7 @@ module Stripe
872
899
  @card_payments = card_payments
873
900
  @cartes_bancaires_payments = cartes_bancaires_payments
874
901
  @cashapp_payments = cashapp_payments
902
+ @crypto_payments = crypto_payments
875
903
  @eps_payments = eps_payments
876
904
  @fpx_payments = fpx_payments
877
905
  @gb_bank_transfer_payments = gb_bank_transfer_payments
@@ -897,6 +925,7 @@ module Stripe
897
925
  @pay_by_bank_payments = pay_by_bank_payments
898
926
  @payco_payments = payco_payments
899
927
  @paynow_payments = paynow_payments
928
+ @pix_payments = pix_payments
900
929
  @promptpay_payments = promptpay_payments
901
930
  @revolut_pay_payments = revolut_pay_payments
902
931
  @samsung_pay_payments = samsung_pay_payments
@@ -1130,6 +1159,21 @@ module Stripe
1130
1159
  end
1131
1160
  end
1132
1161
 
1162
+ class RegistrationDate < Stripe::RequestParams
1163
+ # The day of registration, between 1 and 31.
1164
+ attr_accessor :day
1165
+ # The month of registration, between 1 and 12.
1166
+ attr_accessor :month
1167
+ # The four-digit year of registration.
1168
+ attr_accessor :year
1169
+
1170
+ def initialize(day: nil, month: nil, year: nil)
1171
+ @day = day
1172
+ @month = month
1173
+ @year = year
1174
+ end
1175
+ end
1176
+
1133
1177
  class Verification < Stripe::RequestParams
1134
1178
  class Document < Stripe::RequestParams
1135
1179
  # 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.
@@ -1179,6 +1223,8 @@ module Stripe
1179
1223
  attr_accessor :ownership_exemption_reason
1180
1224
  # The company's phone number (used for verification).
1181
1225
  attr_accessor :phone
1226
+ # Attribute for param field registration_date
1227
+ attr_accessor :registration_date
1182
1228
  # 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).
1183
1229
  attr_accessor :registration_number
1184
1230
  # 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.
@@ -1208,6 +1254,7 @@ module Stripe
1208
1254
  ownership_declaration: nil,
1209
1255
  ownership_exemption_reason: nil,
1210
1256
  phone: nil,
1257
+ registration_date: nil,
1211
1258
  registration_number: nil,
1212
1259
  structure: nil,
1213
1260
  tax_id: nil,
@@ -1230,6 +1277,7 @@ module Stripe
1230
1277
  @ownership_declaration = ownership_declaration
1231
1278
  @ownership_exemption_reason = ownership_exemption_reason
1232
1279
  @phone = phone
1280
+ @registration_date = registration_date
1233
1281
  @registration_number = registration_number
1234
1282
  @structure = structure
1235
1283
  @tax_id = tax_id
@@ -1294,6 +1342,15 @@ module Stripe
1294
1342
  end
1295
1343
  end
1296
1344
 
1345
+ class ProofOfAddress < Stripe::RequestParams
1346
+ # One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`.
1347
+ attr_accessor :files
1348
+
1349
+ def initialize(files: nil)
1350
+ @files = files
1351
+ end
1352
+ end
1353
+
1297
1354
  class ProofOfRegistration < Stripe::RequestParams
1298
1355
  # One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`.
1299
1356
  attr_accessor :files
@@ -1323,6 +1380,8 @@ module Stripe
1323
1380
  attr_accessor :company_registration_verification
1324
1381
  # One or more documents that demonstrate proof of a company's tax ID.
1325
1382
  attr_accessor :company_tax_id_verification
1383
+ # One or more documents that demonstrate proof of address.
1384
+ attr_accessor :proof_of_address
1326
1385
  # One or more documents showing the company’s proof of registration with the national business registry.
1327
1386
  attr_accessor :proof_of_registration
1328
1387
  # One or more documents that demonstrate proof of ultimate beneficial ownership.
@@ -1335,6 +1394,7 @@ module Stripe
1335
1394
  company_ministerial_decree: nil,
1336
1395
  company_registration_verification: nil,
1337
1396
  company_tax_id_verification: nil,
1397
+ proof_of_address: nil,
1338
1398
  proof_of_registration: nil,
1339
1399
  proof_of_ultimate_beneficial_ownership: nil
1340
1400
  )
@@ -1344,6 +1404,7 @@ module Stripe
1344
1404
  @company_ministerial_decree = company_ministerial_decree
1345
1405
  @company_registration_verification = company_registration_verification
1346
1406
  @company_tax_id_verification = company_tax_id_verification
1407
+ @proof_of_address = proof_of_address
1347
1408
  @proof_of_registration = proof_of_registration
1348
1409
  @proof_of_ultimate_beneficial_ownership = proof_of_ultimate_beneficial_ownership
1349
1410
  end
@@ -1789,14 +1850,27 @@ module Stripe
1789
1850
  attr_accessor :interval
1790
1851
  # 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`.
1791
1852
  attr_accessor :monthly_anchor
1853
+ # 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.
1854
+ attr_accessor :monthly_payout_days
1792
1855
  # The day of the week when available funds are paid out, specified as `monday`, `tuesday`, etc. (required and applicable only if `interval` is `weekly`.)
1793
1856
  attr_accessor :weekly_anchor
1794
-
1795
- def initialize(delay_days: nil, interval: nil, monthly_anchor: nil, weekly_anchor: nil)
1857
+ # 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.)
1858
+ attr_accessor :weekly_payout_days
1859
+
1860
+ def initialize(
1861
+ delay_days: nil,
1862
+ interval: nil,
1863
+ monthly_anchor: nil,
1864
+ monthly_payout_days: nil,
1865
+ weekly_anchor: nil,
1866
+ weekly_payout_days: nil
1867
+ )
1796
1868
  @delay_days = delay_days
1797
1869
  @interval = interval
1798
1870
  @monthly_anchor = monthly_anchor
1871
+ @monthly_payout_days = monthly_payout_days
1799
1872
  @weekly_anchor = weekly_anchor
1873
+ @weekly_payout_days = weekly_payout_days
1800
1874
  end
1801
1875
  end
1802
1876
  # 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).
@@ -2024,7 +2098,7 @@ module Stripe
2024
2098
  attr_accessor :country
2025
2099
  # The currency the bank account is in. This must be a country/currency pairing that [Stripe supports.](docs/payouts)
2026
2100
  attr_accessor :currency
2027
- # 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.
2101
+ # 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.
2028
2102
  attr_accessor :routing_number
2029
2103
 
2030
2104
  def initialize(
@@ -2110,6 +2184,8 @@ module Stripe
2110
2184
  attr_accessor :estimated_worker_count
2111
2185
  # [The merchant category code for the account](/connect/setting-mcc). MCCs are used to classify businesses based on the goods or services they provide.
2112
2186
  attr_accessor :mcc
2187
+ # Whether the business is a minority-owned, women-owned, and/or LGBTQI+-owned business.
2188
+ attr_accessor :minority_owned_business_designation
2113
2189
  # An estimate of the monthly revenue of the business. Only accepted for accounts in Brazil and India.
2114
2190
  attr_accessor :monthly_estimated_revenue
2115
2191
  # The customer-facing business name.
@@ -2131,6 +2207,7 @@ module Stripe
2131
2207
  annual_revenue: nil,
2132
2208
  estimated_worker_count: nil,
2133
2209
  mcc: nil,
2210
+ minority_owned_business_designation: nil,
2134
2211
  monthly_estimated_revenue: nil,
2135
2212
  name: nil,
2136
2213
  product_description: nil,
@@ -2143,6 +2220,7 @@ module Stripe
2143
2220
  @annual_revenue = annual_revenue
2144
2221
  @estimated_worker_count = estimated_worker_count
2145
2222
  @mcc = mcc
2223
+ @minority_owned_business_designation = minority_owned_business_designation
2146
2224
  @monthly_estimated_revenue = monthly_estimated_revenue
2147
2225
  @name = name
2148
2226
  @product_description = product_description
@@ -2299,6 +2377,15 @@ module Stripe
2299
2377
  end
2300
2378
  end
2301
2379
 
2380
+ class CryptoPayments < Stripe::RequestParams
2381
+ # 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.
2382
+ attr_accessor :requested
2383
+
2384
+ def initialize(requested: nil)
2385
+ @requested = requested
2386
+ end
2387
+ end
2388
+
2302
2389
  class EpsPayments < Stripe::RequestParams
2303
2390
  # 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.
2304
2391
  attr_accessor :requested
@@ -2524,6 +2611,15 @@ module Stripe
2524
2611
  end
2525
2612
  end
2526
2613
 
2614
+ class PixPayments < Stripe::RequestParams
2615
+ # 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.
2616
+ attr_accessor :requested
2617
+
2618
+ def initialize(requested: nil)
2619
+ @requested = requested
2620
+ end
2621
+ end
2622
+
2527
2623
  class PromptpayPayments < Stripe::RequestParams
2528
2624
  # 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.
2529
2625
  attr_accessor :requested
@@ -2699,6 +2795,8 @@ module Stripe
2699
2795
  attr_accessor :cartes_bancaires_payments
2700
2796
  # The cashapp_payments capability.
2701
2797
  attr_accessor :cashapp_payments
2798
+ # The crypto_payments capability.
2799
+ attr_accessor :crypto_payments
2702
2800
  # The eps_payments capability.
2703
2801
  attr_accessor :eps_payments
2704
2802
  # The fpx_payments capability.
@@ -2749,6 +2847,8 @@ module Stripe
2749
2847
  attr_accessor :payco_payments
2750
2848
  # The paynow_payments capability.
2751
2849
  attr_accessor :paynow_payments
2850
+ # The pix_payments capability.
2851
+ attr_accessor :pix_payments
2752
2852
  # The promptpay_payments capability.
2753
2853
  attr_accessor :promptpay_payments
2754
2854
  # The revolut_pay_payments capability.
@@ -2799,6 +2899,7 @@ module Stripe
2799
2899
  card_payments: nil,
2800
2900
  cartes_bancaires_payments: nil,
2801
2901
  cashapp_payments: nil,
2902
+ crypto_payments: nil,
2802
2903
  eps_payments: nil,
2803
2904
  fpx_payments: nil,
2804
2905
  gb_bank_transfer_payments: nil,
@@ -2824,6 +2925,7 @@ module Stripe
2824
2925
  pay_by_bank_payments: nil,
2825
2926
  payco_payments: nil,
2826
2927
  paynow_payments: nil,
2928
+ pix_payments: nil,
2827
2929
  promptpay_payments: nil,
2828
2930
  revolut_pay_payments: nil,
2829
2931
  samsung_pay_payments: nil,
@@ -2857,6 +2959,7 @@ module Stripe
2857
2959
  @card_payments = card_payments
2858
2960
  @cartes_bancaires_payments = cartes_bancaires_payments
2859
2961
  @cashapp_payments = cashapp_payments
2962
+ @crypto_payments = crypto_payments
2860
2963
  @eps_payments = eps_payments
2861
2964
  @fpx_payments = fpx_payments
2862
2965
  @gb_bank_transfer_payments = gb_bank_transfer_payments
@@ -2882,6 +2985,7 @@ module Stripe
2882
2985
  @pay_by_bank_payments = pay_by_bank_payments
2883
2986
  @payco_payments = payco_payments
2884
2987
  @paynow_payments = paynow_payments
2988
+ @pix_payments = pix_payments
2885
2989
  @promptpay_payments = promptpay_payments
2886
2990
  @revolut_pay_payments = revolut_pay_payments
2887
2991
  @samsung_pay_payments = samsung_pay_payments
@@ -3115,6 +3219,21 @@ module Stripe
3115
3219
  end
3116
3220
  end
3117
3221
 
3222
+ class RegistrationDate < Stripe::RequestParams
3223
+ # The day of registration, between 1 and 31.
3224
+ attr_accessor :day
3225
+ # The month of registration, between 1 and 12.
3226
+ attr_accessor :month
3227
+ # The four-digit year of registration.
3228
+ attr_accessor :year
3229
+
3230
+ def initialize(day: nil, month: nil, year: nil)
3231
+ @day = day
3232
+ @month = month
3233
+ @year = year
3234
+ end
3235
+ end
3236
+
3118
3237
  class Verification < Stripe::RequestParams
3119
3238
  class Document < Stripe::RequestParams
3120
3239
  # 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.
@@ -3164,6 +3283,8 @@ module Stripe
3164
3283
  attr_accessor :ownership_exemption_reason
3165
3284
  # The company's phone number (used for verification).
3166
3285
  attr_accessor :phone
3286
+ # When the business was incorporated or registered.
3287
+ attr_accessor :registration_date
3167
3288
  # 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).
3168
3289
  attr_accessor :registration_number
3169
3290
  # 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.
@@ -3193,6 +3314,7 @@ module Stripe
3193
3314
  ownership_declaration: nil,
3194
3315
  ownership_exemption_reason: nil,
3195
3316
  phone: nil,
3317
+ registration_date: nil,
3196
3318
  registration_number: nil,
3197
3319
  structure: nil,
3198
3320
  tax_id: nil,
@@ -3215,6 +3337,7 @@ module Stripe
3215
3337
  @ownership_declaration = ownership_declaration
3216
3338
  @ownership_exemption_reason = ownership_exemption_reason
3217
3339
  @phone = phone
3340
+ @registration_date = registration_date
3218
3341
  @registration_number = registration_number
3219
3342
  @structure = structure
3220
3343
  @tax_id = tax_id
@@ -3323,6 +3446,15 @@ module Stripe
3323
3446
  end
3324
3447
  end
3325
3448
 
3449
+ class ProofOfAddress < Stripe::RequestParams
3450
+ # One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`.
3451
+ attr_accessor :files
3452
+
3453
+ def initialize(files: nil)
3454
+ @files = files
3455
+ end
3456
+ end
3457
+
3326
3458
  class ProofOfRegistration < Stripe::RequestParams
3327
3459
  # One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`.
3328
3460
  attr_accessor :files
@@ -3352,6 +3484,8 @@ module Stripe
3352
3484
  attr_accessor :company_registration_verification
3353
3485
  # One or more documents that demonstrate proof of a company's tax ID.
3354
3486
  attr_accessor :company_tax_id_verification
3487
+ # One or more documents that demonstrate proof of address.
3488
+ attr_accessor :proof_of_address
3355
3489
  # One or more documents showing the company’s proof of registration with the national business registry.
3356
3490
  attr_accessor :proof_of_registration
3357
3491
  # One or more documents that demonstrate proof of ultimate beneficial ownership.
@@ -3364,6 +3498,7 @@ module Stripe
3364
3498
  company_ministerial_decree: nil,
3365
3499
  company_registration_verification: nil,
3366
3500
  company_tax_id_verification: nil,
3501
+ proof_of_address: nil,
3367
3502
  proof_of_registration: nil,
3368
3503
  proof_of_ultimate_beneficial_ownership: nil
3369
3504
  )
@@ -3373,6 +3508,7 @@ module Stripe
3373
3508
  @company_ministerial_decree = company_ministerial_decree
3374
3509
  @company_registration_verification = company_registration_verification
3375
3510
  @company_tax_id_verification = company_tax_id_verification
3511
+ @proof_of_address = proof_of_address
3376
3512
  @proof_of_registration = proof_of_registration
3377
3513
  @proof_of_ultimate_beneficial_ownership = proof_of_ultimate_beneficial_ownership
3378
3514
  end
@@ -3815,14 +3951,27 @@ module Stripe
3815
3951
  attr_accessor :interval
3816
3952
  # 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`.
3817
3953
  attr_accessor :monthly_anchor
3954
+ # 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.
3955
+ attr_accessor :monthly_payout_days
3818
3956
  # The day of the week when available funds are paid out, specified as `monday`, `tuesday`, etc. (required and applicable only if `interval` is `weekly`.)
3819
3957
  attr_accessor :weekly_anchor
3820
-
3821
- def initialize(delay_days: nil, interval: nil, monthly_anchor: nil, weekly_anchor: nil)
3958
+ # 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.)
3959
+ attr_accessor :weekly_payout_days
3960
+
3961
+ def initialize(
3962
+ delay_days: nil,
3963
+ interval: nil,
3964
+ monthly_anchor: nil,
3965
+ monthly_payout_days: nil,
3966
+ weekly_anchor: nil,
3967
+ weekly_payout_days: nil
3968
+ )
3822
3969
  @delay_days = delay_days
3823
3970
  @interval = interval
3824
3971
  @monthly_anchor = monthly_anchor
3972
+ @monthly_payout_days = monthly_payout_days
3825
3973
  @weekly_anchor = weekly_anchor
3974
+ @weekly_payout_days = weekly_payout_days
3826
3975
  end
3827
3976
  end
3828
3977
  # 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).
@@ -4013,21 +4162,21 @@ module Stripe
4013
4162
  end
4014
4163
  end
4015
4164
 
4016
- # With [Connect](https://stripe.com/docs/connect), you can create Stripe accounts for your users.
4165
+ # With [Connect](https://docs.stripe.com/docs/connect), you can create Stripe accounts for your users.
4017
4166
  # To do this, you'll first need to [register your platform](https://dashboard.stripe.com/account/applications/settings).
4018
4167
  #
4019
- # If you've already collected information for your connected accounts, you [can prefill that information](https://stripe.com/docs/connect/best-practices#onboarding) when
4168
+ # 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
4020
4169
  # creating the account. Connect Onboarding won't ask for the prefilled information during account onboarding.
4021
4170
  # You can prefill any information on the account.
4022
4171
  def create(params = {}, opts = {})
4023
4172
  request(method: :post, path: "/v1/accounts", params: params, opts: opts, base_address: :api)
4024
4173
  end
4025
4174
 
4026
- # With [Connect](https://stripe.com/connect), you can delete accounts you manage.
4175
+ # With [Connect](https://docs.stripe.com/connect), you can delete accounts you manage.
4027
4176
  #
4028
4177
  # Test-mode accounts can be deleted at any time.
4029
4178
  #
4030
- # 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.
4179
+ # 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.
4031
4180
  #
4032
4181
  # If you want to delete your own account, use the [account information tab in your account settings](https://dashboard.stripe.com/settings/account) instead.
4033
4182
  def delete(account, params = {}, opts = {})
@@ -4040,12 +4189,12 @@ module Stripe
4040
4189
  )
4041
4190
  end
4042
4191
 
4043
- # 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.
4192
+ # 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.
4044
4193
  def list(params = {}, opts = {})
4045
4194
  request(method: :get, path: "/v1/accounts", params: params, opts: opts, base_address: :api)
4046
4195
  end
4047
4196
 
4048
- # With [Connect](https://stripe.com/connect), you can reject accounts that you have flagged as suspicious.
4197
+ # With [Connect](https://docs.stripe.com/connect), you can reject accounts that you have flagged as suspicious.
4049
4198
  #
4050
4199
  # 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.
4051
4200
  def reject(account, params = {}, opts = {})
@@ -4074,19 +4223,19 @@ module Stripe
4074
4223
  request(method: :get, path: "/v1/account", params: params, opts: opts, base_address: :api)
4075
4224
  end
4076
4225
 
4077
- # Updates a [connected account](https://stripe.com/connect/accounts) by setting the values of the parameters passed. Any parameters not provided are
4226
+ # Updates a [connected account](https://docs.stripe.com/connect/accounts) by setting the values of the parameters passed. Any parameters not provided are
4078
4227
  # left unchanged.
4079
4228
  #
4080
- # For accounts where [controller.requirement_collection](https://stripe.com/api/accounts/object#account_object-controller-requirement_collection)
4229
+ # For accounts where [controller.requirement_collection](https://docs.stripe.com/api/accounts/object#account_object-controller-requirement_collection)
4081
4230
  # is application, which includes Custom accounts, you can update any information on the account.
4082
4231
  #
4083
- # For accounts where [controller.requirement_collection](https://stripe.com/api/accounts/object#account_object-controller-requirement_collection)
4232
+ # For accounts where [controller.requirement_collection](https://docs.stripe.com/api/accounts/object#account_object-controller-requirement_collection)
4084
4233
  # is stripe, which includes Standard and Express accounts, you can update all information until you create
4085
- # an [Account Link or <a href="/api/account_sessions">Account Session](https://stripe.com/api/account_links) to start Connect onboarding,
4234
+ # an [Account Link or <a href="/api/account_sessions">Account Session](https://docs.stripe.com/api/account_links) to start Connect onboarding,
4086
4235
  # after which some properties can no longer be updated.
4087
4236
  #
4088
4237
  # To update your own account, use the [Dashboard](https://dashboard.stripe.com/settings/account). Refer to our
4089
- # [Connect](https://stripe.com/docs/connect/updating-accounts) documentation to learn more about updating accounts.
4238
+ # [Connect](https://docs.stripe.com/docs/connect/updating-accounts) documentation to learn more about updating accounts.
4090
4239
  def update(account, params = {}, opts = {})
4091
4240
  request(
4092
4241
  method: :post,