stripe 5.38.0 → 15.2.1

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 (708) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +742 -0
  3. data/CONTRIBUTING.md +25 -0
  4. data/Gemfile +12 -4
  5. data/Makefile +22 -0
  6. data/OPENAPI_VERSION +1 -0
  7. data/README.md +137 -27
  8. data/Rakefile +3 -6
  9. data/VERSION +1 -1
  10. data/examples/README.md +16 -0
  11. data/examples/example_template.rb +36 -0
  12. data/examples/meter_event_stream.rb +57 -0
  13. data/examples/thinevent_webhook_handler.rb +39 -0
  14. data/{bin → exe}/stripe-console +1 -1
  15. data/justfile +43 -0
  16. data/lib/data/ca-certificates.crt +1241 -1937
  17. data/lib/stripe/api_operations/create.rb +6 -2
  18. data/lib/stripe/api_operations/delete.rb +12 -7
  19. data/lib/stripe/api_operations/list.rb +6 -9
  20. data/lib/stripe/api_operations/nested_resource.rb +59 -31
  21. data/lib/stripe/api_operations/request.rb +30 -65
  22. data/lib/stripe/api_operations/save.rb +20 -10
  23. data/lib/stripe/api_operations/search.rb +21 -0
  24. data/lib/stripe/api_operations/singleton_save.rb +90 -0
  25. data/lib/stripe/api_requestor.rb +1136 -0
  26. data/lib/stripe/api_resource.rb +49 -34
  27. data/lib/stripe/api_resource_test_helpers.rb +53 -0
  28. data/lib/stripe/{resources/usage_record.rb → api_version.rb} +2 -2
  29. data/lib/stripe/connection_manager.rb +28 -11
  30. data/lib/stripe/errors.rb +11 -20
  31. data/lib/stripe/event_types.rb +15 -0
  32. data/lib/stripe/events/v1_billing_meter_error_report_triggered_event.rb +23 -0
  33. data/lib/stripe/events/v1_billing_meter_no_meter_found_event.rb +13 -0
  34. data/lib/stripe/events/v2_core_event_destination_ping_event.rb +21 -0
  35. data/lib/stripe/instrumentation.rb +37 -15
  36. data/lib/stripe/list_object.rb +5 -3
  37. data/lib/stripe/multipart_encoder.rb +7 -7
  38. data/lib/stripe/oauth.rb +14 -21
  39. data/lib/stripe/object_types.rb +157 -91
  40. data/lib/stripe/request_options.rb +129 -0
  41. data/lib/stripe/request_params.rb +24 -0
  42. data/lib/stripe/resources/account.rb +4854 -30
  43. data/lib/stripe/resources/account_link.rb +66 -0
  44. data/lib/stripe/resources/account_session.rb +868 -0
  45. data/lib/stripe/resources/alipay_account.rb +1 -1
  46. data/lib/stripe/resources/apple_pay_domain.rb +91 -0
  47. data/lib/stripe/resources/application.rb +20 -0
  48. data/lib/stripe/resources/application_fee.rb +96 -2
  49. data/lib/stripe/resources/application_fee_refund.rb +26 -2
  50. data/lib/stripe/resources/apps/secret.rb +196 -0
  51. data/lib/stripe/resources/balance.rb +178 -0
  52. data/lib/stripe/resources/balance_transaction.rb +124 -0
  53. data/lib/stripe/resources/bank_account.rb +137 -6
  54. data/lib/stripe/resources/billing/alert.rb +222 -0
  55. data/lib/stripe/resources/billing/alert_triggered.rb +26 -0
  56. data/lib/stripe/resources/billing/credit_balance_summary.rb +54 -0
  57. data/lib/stripe/resources/billing/credit_balance_transaction.rb +133 -0
  58. data/lib/stripe/resources/billing/credit_grant.rb +307 -0
  59. data/lib/stripe/resources/billing/meter.rb +254 -0
  60. data/lib/stripe/resources/billing/meter_event.rb +61 -0
  61. data/lib/stripe/resources/billing/meter_event_adjustment.rb +69 -0
  62. data/lib/stripe/resources/billing/meter_event_summary.rb +32 -0
  63. data/lib/stripe/resources/billing_portal/configuration.rb +587 -0
  64. data/lib/stripe/resources/billing_portal/session.rb +298 -0
  65. data/lib/stripe/resources/capability.rb +91 -2
  66. data/lib/stripe/resources/card.rb +111 -3
  67. data/lib/stripe/resources/cash_balance.rb +43 -0
  68. data/lib/stripe/resources/charge.rb +1682 -2
  69. data/lib/stripe/resources/checkout/session.rb +3666 -2
  70. data/lib/stripe/resources/climate/order.rb +234 -0
  71. data/lib/stripe/resources/climate/product.rb +74 -0
  72. data/lib/stripe/resources/climate/supplier.rb +71 -0
  73. data/lib/stripe/resources/confirmation_token.rb +1498 -0
  74. data/lib/stripe/resources/connect_collection_transfer.rb +24 -0
  75. data/lib/stripe/resources/country_spec.rb +68 -0
  76. data/lib/stripe/resources/coupon.rb +236 -0
  77. data/lib/stripe/resources/credit_note.rb +709 -9
  78. data/lib/stripe/resources/credit_note_line_item.rb +71 -0
  79. data/lib/stripe/resources/customer.rb +1015 -16
  80. data/lib/stripe/resources/customer_balance_transaction.rb +38 -1
  81. data/lib/stripe/resources/customer_cash_balance_transaction.rb +124 -0
  82. data/lib/stripe/resources/customer_session.rb +188 -0
  83. data/lib/stripe/resources/discount.rb +37 -0
  84. data/lib/stripe/resources/dispute.rb +650 -2
  85. data/lib/stripe/resources/entitlements/active_entitlement.rb +63 -0
  86. data/lib/stripe/resources/entitlements/active_entitlement_summary.rb +23 -0
  87. data/lib/stripe/resources/entitlements/feature.rb +130 -0
  88. data/lib/stripe/resources/ephemeral_key.rb +44 -0
  89. data/lib/stripe/resources/event.rb +130 -0
  90. data/lib/stripe/resources/exchange_rate.rb +58 -0
  91. data/lib/stripe/resources/file.rb +139 -15
  92. data/lib/stripe/resources/file_link.rb +129 -0
  93. data/lib/stripe/resources/financial_connections/account.rb +363 -0
  94. data/lib/stripe/resources/financial_connections/account_owner.rb +31 -0
  95. data/lib/stripe/resources/financial_connections/account_ownership.rb +23 -0
  96. data/lib/stripe/resources/financial_connections/session.rb +121 -0
  97. data/lib/stripe/resources/financial_connections/transaction.rb +118 -0
  98. data/lib/stripe/resources/forwarding/request.rb +208 -0
  99. data/lib/stripe/resources/funding_instructions.rb +332 -0
  100. data/lib/stripe/resources/identity/verification_report.rb +287 -0
  101. data/lib/stripe/resources/identity/verification_session.rb +474 -4
  102. data/lib/stripe/resources/invoice.rb +3525 -17
  103. data/lib/stripe/resources/invoice_item.rb +453 -0
  104. data/lib/stripe/resources/invoice_line_item.rb +372 -1
  105. data/lib/stripe/resources/invoice_payment.rb +112 -0
  106. data/lib/stripe/resources/invoice_rendering_template.rb +120 -0
  107. data/lib/stripe/resources/issuing/authorization.rb +1313 -4
  108. data/lib/stripe/resources/issuing/card.rb +785 -4
  109. data/lib/stripe/resources/issuing/cardholder.rb +684 -0
  110. data/lib/stripe/resources/issuing/dispute.rb +828 -2
  111. data/lib/stripe/resources/issuing/personalization_design.rb +395 -0
  112. data/lib/stripe/resources/issuing/physical_bundle.rb +80 -0
  113. data/lib/stripe/resources/issuing/token.rb +198 -0
  114. data/lib/stripe/resources/issuing/transaction.rb +991 -0
  115. data/lib/stripe/resources/line_item.rb +51 -0
  116. data/lib/stripe/resources/login_link.rb +12 -0
  117. data/lib/stripe/resources/mandate.rb +146 -0
  118. data/lib/stripe/resources/payment_intent.rb +8876 -6
  119. data/lib/stripe/resources/payment_link.rb +1692 -0
  120. data/lib/stripe/resources/payment_method.rb +1570 -4
  121. data/lib/stripe/resources/payment_method_configuration.rb +3189 -0
  122. data/lib/stripe/resources/payment_method_domain.rb +236 -0
  123. data/lib/stripe/resources/payout.rb +271 -4
  124. data/lib/stripe/resources/person.rb +295 -1
  125. data/lib/stripe/resources/plan.rb +352 -0
  126. data/lib/stripe/resources/price.rb +642 -0
  127. data/lib/stripe/resources/product.rb +534 -0
  128. data/lib/stripe/resources/product_feature.rb +25 -0
  129. data/lib/stripe/resources/promotion_code.rb +237 -0
  130. data/lib/stripe/resources/quote.rb +1015 -38
  131. data/lib/stripe/resources/radar/early_fraud_warning.rb +85 -0
  132. data/lib/stripe/resources/radar/value_list.rb +171 -0
  133. data/lib/stripe/resources/radar/value_list_item.rb +131 -0
  134. data/lib/stripe/resources/refund.rb +494 -0
  135. data/lib/stripe/resources/reporting/report_run.rb +172 -0
  136. data/lib/stripe/resources/reporting/report_type.rb +48 -1
  137. data/lib/stripe/resources/reserve_transaction.rb +22 -0
  138. data/lib/stripe/resources/reversal.rb +38 -2
  139. data/lib/stripe/resources/review.rb +122 -2
  140. data/lib/stripe/resources/setup_attempt.rb +380 -0
  141. data/lib/stripe/resources/setup_intent.rb +3432 -4
  142. data/lib/stripe/resources/shipping_rate.rb +287 -0
  143. data/lib/stripe/resources/sigma/scheduled_query_run.rb +62 -0
  144. data/lib/stripe/resources/source.rb +1250 -10
  145. data/lib/stripe/resources/source_mandate_notification.rb +66 -0
  146. data/lib/stripe/resources/source_transaction.rb +93 -0
  147. data/lib/stripe/resources/subscription.rb +1871 -3
  148. data/lib/stripe/resources/subscription_item.rb +399 -10
  149. data/lib/stripe/resources/subscription_schedule.rb +1455 -4
  150. data/lib/stripe/resources/tax/calculation.rb +430 -0
  151. data/lib/stripe/resources/tax/calculation_line_item.rb +71 -0
  152. data/lib/stripe/resources/tax/registration.rb +2667 -0
  153. data/lib/stripe/resources/tax/settings.rb +134 -0
  154. data/lib/stripe/resources/tax/transaction.rb +314 -0
  155. data/lib/stripe/resources/tax/transaction_line_item.rb +44 -0
  156. data/lib/stripe/resources/tax_code.rb +35 -0
  157. data/lib/stripe/resources/tax_deducted_at_source.rb +22 -0
  158. data/lib/stripe/resources/tax_id.rb +144 -11
  159. data/lib/stripe/resources/tax_rate.rb +217 -0
  160. data/lib/stripe/resources/terminal/configuration.rb +1328 -0
  161. data/lib/stripe/resources/terminal/connection_token.rb +34 -0
  162. data/lib/stripe/resources/terminal/location.rb +222 -0
  163. data/lib/stripe/resources/terminal/reader.rb +886 -0
  164. data/lib/stripe/resources/test_helpers/test_clock.rb +156 -0
  165. data/lib/stripe/resources/token.rb +1249 -0
  166. data/lib/stripe/resources/topup.rb +204 -2
  167. data/lib/stripe/resources/transfer.rb +173 -6
  168. data/lib/stripe/resources/treasury/credit_reversal.rb +120 -0
  169. data/lib/stripe/resources/treasury/debit_reversal.rb +131 -0
  170. data/lib/stripe/resources/treasury/financial_account.rb +833 -0
  171. data/lib/stripe/resources/treasury/financial_account_features.rb +204 -0
  172. data/lib/stripe/resources/treasury/inbound_transfer.rb +356 -0
  173. data/lib/stripe/resources/treasury/outbound_payment.rb +638 -0
  174. data/lib/stripe/resources/treasury/outbound_transfer.rb +493 -0
  175. data/lib/stripe/resources/treasury/received_credit.rb +284 -0
  176. data/lib/stripe/resources/treasury/received_debit.rb +243 -0
  177. data/lib/stripe/resources/treasury/transaction.rb +193 -0
  178. data/lib/stripe/resources/treasury/transaction_entry.rb +178 -0
  179. data/lib/stripe/resources/v2/amount.rb +9 -0
  180. data/lib/stripe/resources/v2/billing/meter_event.rb +34 -0
  181. data/lib/stripe/resources/v2/billing/meter_event_adjustment.rb +36 -0
  182. data/lib/stripe/resources/v2/billing/meter_event_session.rb +29 -0
  183. data/lib/stripe/resources/v2/event.rb +41 -0
  184. data/lib/stripe/resources/v2/event_destination.rb +73 -0
  185. data/lib/stripe/resources/webhook_endpoint.rb +167 -0
  186. data/lib/stripe/resources.rb +70 -12
  187. data/lib/stripe/search_result_object.rb +89 -0
  188. data/lib/stripe/services/account_capability_service.rb +71 -0
  189. data/lib/stripe/services/account_external_account_service.rb +317 -0
  190. data/lib/stripe/services/account_link_service.rb +63 -0
  191. data/lib/stripe/services/account_login_link_service.rb +28 -0
  192. data/lib/stripe/services/account_person_service.rb +1019 -0
  193. data/lib/stripe/services/account_service.rb +4171 -0
  194. data/lib/stripe/services/account_session_service.rb +569 -0
  195. data/lib/stripe/services/apple_pay_domain_service.rb +100 -0
  196. data/lib/stripe/services/application_fee_refund_service.rb +114 -0
  197. data/lib/stripe/services/application_fee_service.rb +92 -0
  198. data/lib/stripe/services/apps/secret_service.rb +168 -0
  199. data/lib/stripe/services/apps_service.rb +13 -0
  200. data/lib/stripe/services/balance_service.rb +21 -0
  201. data/lib/stripe/services/balance_transaction_service.rb +101 -0
  202. data/lib/stripe/services/billing/alert_service.rb +187 -0
  203. data/lib/stripe/services/billing/credit_balance_summary_service.rb +67 -0
  204. data/lib/stripe/services/billing/credit_balance_transaction_service.rb +70 -0
  205. data/lib/stripe/services/billing/credit_grant_service.rb +240 -0
  206. data/lib/stripe/services/billing/meter_event_adjustment_service.rb +45 -0
  207. data/lib/stripe/services/billing/meter_event_service.rb +40 -0
  208. data/lib/stripe/services/billing/meter_event_summary_service.rb +58 -0
  209. data/lib/stripe/services/billing/meter_service.rb +211 -0
  210. data/lib/stripe/services/billing_portal/configuration_service.rb +496 -0
  211. data/lib/stripe/services/billing_portal/session_service.rb +192 -0
  212. data/lib/stripe/services/billing_portal_service.rb +14 -0
  213. data/lib/stripe/services/billing_service.rb +20 -0
  214. data/lib/stripe/services/charge_service.rb +471 -0
  215. data/lib/stripe/services/checkout/session_line_item_service.rb +37 -0
  216. data/lib/stripe/services/checkout/session_service.rb +2495 -0
  217. data/lib/stripe/services/checkout_service.rb +13 -0
  218. data/lib/stripe/services/climate/order_service.rb +170 -0
  219. data/lib/stripe/services/climate/product_service.rb +57 -0
  220. data/lib/stripe/services/climate/supplier_service.rb +57 -0
  221. data/lib/stripe/services/climate_service.rb +15 -0
  222. data/lib/stripe/services/confirmation_token_service.rb +26 -0
  223. data/lib/stripe/services/country_spec_service.rb +55 -0
  224. data/lib/stripe/services/coupon_service.rb +202 -0
  225. data/lib/stripe/services/credit_note_line_item_service.rb +35 -0
  226. data/lib/stripe/services/credit_note_preview_lines_service.rb +169 -0
  227. data/lib/stripe/services/credit_note_service.rb +457 -0
  228. data/lib/stripe/services/customer_balance_transaction_service.rb +113 -0
  229. data/lib/stripe/services/customer_cash_balance_service.rb +57 -0
  230. data/lib/stripe/services/customer_cash_balance_transaction_service.rb +55 -0
  231. data/lib/stripe/services/customer_funding_instructions_service.rb +61 -0
  232. data/lib/stripe/services/customer_payment_method_service.rb +68 -0
  233. data/lib/stripe/services/customer_payment_source_service.rb +255 -0
  234. data/lib/stripe/services/customer_service.rb +664 -0
  235. data/lib/stripe/services/customer_session_service.rb +113 -0
  236. data/lib/stripe/services/customer_tax_id_service.rb +94 -0
  237. data/lib/stripe/services/dispute_service.rb +422 -0
  238. data/lib/stripe/services/entitlements/active_entitlement_service.rb +66 -0
  239. data/lib/stripe/services/entitlements/feature_service.rb +128 -0
  240. data/lib/stripe/services/entitlements_service.rb +14 -0
  241. data/lib/stripe/services/ephemeral_key_service.rb +64 -0
  242. data/lib/stripe/services/event_service.rb +87 -0
  243. data/lib/stripe/services/exchange_rate_service.rb +55 -0
  244. data/lib/stripe/services/file_link_service.rb +132 -0
  245. data/lib/stripe/services/file_service.rb +124 -0
  246. data/lib/stripe/services/financial_connections/account_owner_service.rb +46 -0
  247. data/lib/stripe/services/financial_connections/account_service.rb +177 -0
  248. data/lib/stripe/services/financial_connections/session_service.rb +98 -0
  249. data/lib/stripe/services/financial_connections/transaction_service.rb +100 -0
  250. data/lib/stripe/services/financial_connections_service.rb +15 -0
  251. data/lib/stripe/services/forwarding/request_service.rb +147 -0
  252. data/lib/stripe/services/forwarding_service.rb +13 -0
  253. data/lib/stripe/services/identity/verification_report_service.rb +95 -0
  254. data/lib/stripe/services/identity/verification_session_service.rb +337 -0
  255. data/lib/stripe/services/identity_service.rb +14 -0
  256. data/lib/stripe/services/invoice_item_service.rb +394 -0
  257. data/lib/stripe/services/invoice_line_item_service.rb +252 -0
  258. data/lib/stripe/services/invoice_payment_service.rb +83 -0
  259. data/lib/stripe/services/invoice_rendering_template_service.rb +101 -0
  260. data/lib/stripe/services/invoice_service.rb +2900 -0
  261. data/lib/stripe/services/issuing/authorization_service.rb +169 -0
  262. data/lib/stripe/services/issuing/card_service.rb +507 -0
  263. data/lib/stripe/services/issuing/cardholder_service.rb +577 -0
  264. data/lib/stripe/services/issuing/dispute_service.rb +696 -0
  265. data/lib/stripe/services/issuing/personalization_design_service.rb +245 -0
  266. data/lib/stripe/services/issuing/physical_bundle_service.rb +70 -0
  267. data/lib/stripe/services/issuing/token_service.rb +114 -0
  268. data/lib/stripe/services/issuing/transaction_service.rb +118 -0
  269. data/lib/stripe/services/issuing_service.rb +20 -0
  270. data/lib/stripe/services/mandate_service.rb +26 -0
  271. data/lib/stripe/services/oauth_service.rb +63 -0
  272. data/lib/stripe/services/payment_intent_service.rb +7202 -0
  273. data/lib/stripe/services/payment_link_line_item_service.rb +35 -0
  274. data/lib/stripe/services/payment_link_service.rb +1333 -0
  275. data/lib/stripe/services/payment_method_configuration_service.rb +2306 -0
  276. data/lib/stripe/services/payment_method_domain_service.rb +142 -0
  277. data/lib/stripe/services/payment_method_service.rb +843 -0
  278. data/lib/stripe/services/payout_service.rb +225 -0
  279. data/lib/stripe/services/plan_service.rb +297 -0
  280. data/lib/stripe/services/price_service.rb +545 -0
  281. data/lib/stripe/services/product_feature_service.rb +91 -0
  282. data/lib/stripe/services/product_service.rb +494 -0
  283. data/lib/stripe/services/promotion_code_service.rb +228 -0
  284. data/lib/stripe/services/quote_computed_upfront_line_items_service.rb +35 -0
  285. data/lib/stripe/services/quote_line_item_service.rb +35 -0
  286. data/lib/stripe/services/quote_service.rb +703 -0
  287. data/lib/stripe/services/radar/early_fraud_warning_service.rb +93 -0
  288. data/lib/stripe/services/radar/value_list_item_service.rb +130 -0
  289. data/lib/stripe/services/radar/value_list_service.rb +165 -0
  290. data/lib/stripe/services/radar_service.rb +15 -0
  291. data/lib/stripe/services/refund_service.rb +200 -0
  292. data/lib/stripe/services/reporting/report_run_service.rb +147 -0
  293. data/lib/stripe/services/reporting/report_type_service.rb +48 -0
  294. data/lib/stripe/services/reporting_service.rb +14 -0
  295. data/lib/stripe/services/review_service.rb +89 -0
  296. data/lib/stripe/services/setup_attempt_service.rb +68 -0
  297. data/lib/stripe/services/setup_intent_service.rb +3107 -0
  298. data/lib/stripe/services/shipping_rate_service.rb +250 -0
  299. data/lib/stripe/services/sigma/scheduled_query_run_service.rb +57 -0
  300. data/lib/stripe/services/sigma_service.rb +13 -0
  301. data/lib/stripe/services/source_service.rb +665 -0
  302. data/lib/stripe/services/source_transaction_service.rb +35 -0
  303. data/lib/stripe/services/subscription_item_service.rb +372 -0
  304. data/lib/stripe/services/subscription_schedule_service.rb +1224 -0
  305. data/lib/stripe/services/subscription_service.rb +1590 -0
  306. data/lib/stripe/services/tax/calculation_line_item_service.rb +37 -0
  307. data/lib/stripe/services/tax/calculation_service.rb +246 -0
  308. data/lib/stripe/services/tax/registration_service.rb +1774 -0
  309. data/lib/stripe/services/tax/settings_service.rb +104 -0
  310. data/lib/stripe/services/tax/transaction_line_item_service.rb +37 -0
  311. data/lib/stripe/services/tax/transaction_service.rb +159 -0
  312. data/lib/stripe/services/tax_code_service.rb +49 -0
  313. data/lib/stripe/services/tax_id_service.rb +116 -0
  314. data/lib/stripe/services/tax_rate_service.rb +193 -0
  315. data/lib/stripe/services/tax_service.rb +16 -0
  316. data/lib/stripe/services/terminal/configuration_service.rb +1059 -0
  317. data/lib/stripe/services/terminal/connection_token_service.rb +31 -0
  318. data/lib/stripe/services/terminal/location_service.rb +207 -0
  319. data/lib/stripe/services/terminal/reader_service.rb +488 -0
  320. data/lib/stripe/services/terminal_service.rb +16 -0
  321. data/lib/stripe/services/test_helpers/confirmation_token_service.rb +655 -0
  322. data/lib/stripe/services/test_helpers/customer_service.rb +37 -0
  323. data/lib/stripe/services/test_helpers/issuing/authorization_service.rb +832 -0
  324. data/lib/stripe/services/test_helpers/issuing/card_service.rb +110 -0
  325. data/lib/stripe/services/test_helpers/issuing/personalization_design_service.rb +84 -0
  326. data/lib/stripe/services/test_helpers/issuing/transaction_service.rb +675 -0
  327. data/lib/stripe/services/test_helpers/issuing_service.rb +19 -0
  328. data/lib/stripe/services/test_helpers/refund_service.rb +28 -0
  329. data/lib/stripe/services/test_helpers/terminal/reader_service.rb +108 -0
  330. data/lib/stripe/services/test_helpers/terminal_service.rb +15 -0
  331. data/lib/stripe/services/test_helpers/test_clock_service.rb +119 -0
  332. data/lib/stripe/services/test_helpers/treasury/inbound_transfer_service.rb +81 -0
  333. data/lib/stripe/services/test_helpers/treasury/outbound_payment_service.rb +141 -0
  334. data/lib/stripe/services/test_helpers/treasury/outbound_transfer_service.rb +141 -0
  335. data/lib/stripe/services/test_helpers/treasury/received_credit_service.rb +81 -0
  336. data/lib/stripe/services/test_helpers/treasury/received_debit_service.rb +81 -0
  337. data/lib/stripe/services/test_helpers/treasury_service.rb +19 -0
  338. data/lib/stripe/services/test_helpers_service.rb +19 -0
  339. data/lib/stripe/services/token_service.rb +1224 -0
  340. data/lib/stripe/services/topup_service.rb +191 -0
  341. data/lib/stripe/services/transfer_reversal_service.rb +122 -0
  342. data/lib/stripe/services/transfer_service.rb +166 -0
  343. data/lib/stripe/services/treasury/credit_reversal_service.rb +100 -0
  344. data/lib/stripe/services/treasury/debit_reversal_service.rb +104 -0
  345. data/lib/stripe/services/treasury/financial_account_features_service.rb +196 -0
  346. data/lib/stripe/services/treasury/financial_account_service.rb +554 -0
  347. data/lib/stripe/services/treasury/inbound_transfer_service.rb +140 -0
  348. data/lib/stripe/services/treasury/outbound_payment_service.rb +310 -0
  349. data/lib/stripe/services/treasury/outbound_transfer_service.rb +176 -0
  350. data/lib/stripe/services/treasury/received_credit_service.rb +82 -0
  351. data/lib/stripe/services/treasury/received_debit_service.rb +70 -0
  352. data/lib/stripe/services/treasury/transaction_entry_service.rb +117 -0
  353. data/lib/stripe/services/treasury/transaction_service.rb +125 -0
  354. data/lib/stripe/services/treasury_service.rb +22 -0
  355. data/lib/stripe/services/v1_services.rb +90 -0
  356. data/lib/stripe/services/v2/billing/meter_event_adjustment_service.rb +44 -0
  357. data/lib/stripe/services/v2/billing/meter_event_service.rb +46 -0
  358. data/lib/stripe/services/v2/billing/meter_event_session_service.rb +23 -0
  359. data/lib/stripe/services/v2/billing/meter_event_stream_service.rb +56 -0
  360. data/lib/stripe/services/v2/billing_service.rb +18 -0
  361. data/lib/stripe/services/v2/core/event_destination_service.rb +235 -0
  362. data/lib/stripe/services/v2/core/event_service.rb +48 -0
  363. data/lib/stripe/services/v2/core_service.rb +16 -0
  364. data/lib/stripe/services/v2_services.rb +14 -0
  365. data/lib/stripe/services/webhook_endpoint_service.rb +156 -0
  366. data/lib/stripe/services.rb +180 -0
  367. data/lib/stripe/singleton_api_resource.rb +3 -3
  368. data/lib/stripe/stripe_client.rb +56 -1021
  369. data/lib/stripe/stripe_configuration.rb +63 -42
  370. data/lib/stripe/stripe_object.rb +75 -39
  371. data/lib/stripe/stripe_response.rb +1 -3
  372. data/lib/stripe/stripe_service.rb +32 -0
  373. data/lib/stripe/thin_event.rb +37 -0
  374. data/lib/stripe/util.rb +161 -39
  375. data/lib/stripe/v2_list_object.rb +84 -0
  376. data/lib/stripe/version.rb +1 -1
  377. data/lib/stripe/webhook.rb +3 -2
  378. data/lib/stripe.rb +44 -1
  379. data/rbi/stripe/resources/account.rbi +4926 -0
  380. data/rbi/stripe/resources/account_link.rbi +74 -0
  381. data/rbi/stripe/resources/account_session.rbi +1013 -0
  382. data/rbi/stripe/resources/apple_pay_domain.rbi +88 -0
  383. data/rbi/stripe/resources/application.rbi +20 -0
  384. data/rbi/stripe/resources/application_fee.rbi +118 -0
  385. data/rbi/stripe/resources/application_fee_refund.rbi +37 -0
  386. data/rbi/stripe/resources/apps/secret.rbi +195 -0
  387. data/rbi/stripe/resources/balance.rbi +235 -0
  388. data/rbi/stripe/resources/balance_transaction.rbi +147 -0
  389. data/rbi/stripe/resources/bank_account.rbi +127 -0
  390. data/rbi/stripe/resources/billing/alert.rbi +201 -0
  391. data/rbi/stripe/resources/billing/alert_triggered.rbi +28 -0
  392. data/rbi/stripe/resources/billing/credit_balance_summary.rbi +63 -0
  393. data/rbi/stripe/resources/billing/credit_balance_transaction.rbi +147 -0
  394. data/rbi/stripe/resources/billing/credit_grant.rbi +291 -0
  395. data/rbi/stripe/resources/billing/meter.rbi +226 -0
  396. data/rbi/stripe/resources/billing/meter_event.rbi +64 -0
  397. data/rbi/stripe/resources/billing/meter_event_adjustment.rbi +64 -0
  398. data/rbi/stripe/resources/billing/meter_event_summary.rbi +35 -0
  399. data/rbi/stripe/resources/billing_portal/configuration.rbi +645 -0
  400. data/rbi/stripe/resources/billing_portal/session.rbi +345 -0
  401. data/rbi/stripe/resources/capability.rbi +125 -0
  402. data/rbi/stripe/resources/card.rbi +125 -0
  403. data/rbi/stripe/resources/cash_balance.rbi +32 -0
  404. data/rbi/stripe/resources/charge.rbi +2069 -0
  405. data/rbi/stripe/resources/checkout/session.rbi +4004 -0
  406. data/rbi/stripe/resources/climate/order.rbi +245 -0
  407. data/rbi/stripe/resources/climate/product.rbi +75 -0
  408. data/rbi/stripe/resources/climate/supplier.rbi +72 -0
  409. data/rbi/stripe/resources/confirmation_token.rbi +1807 -0
  410. data/rbi/stripe/resources/connect_collection_transfer.rbi +26 -0
  411. data/rbi/stripe/resources/country_spec.rbi +85 -0
  412. data/rbi/stripe/resources/coupon.rbi +250 -0
  413. data/rbi/stripe/resources/credit_note.rbi +752 -0
  414. data/rbi/stripe/resources/credit_note_line_item.rbi +101 -0
  415. data/rbi/stripe/resources/customer.rbi +1005 -0
  416. data/rbi/stripe/resources/customer_balance_transaction.rbi +56 -0
  417. data/rbi/stripe/resources/customer_cash_balance_transaction.rbi +151 -0
  418. data/rbi/stripe/resources/customer_session.rbi +200 -0
  419. data/rbi/stripe/resources/discount.rbi +53 -0
  420. data/rbi/stripe/resources/dispute.rbi +761 -0
  421. data/rbi/stripe/resources/entitlements/active_entitlement.rbi +58 -0
  422. data/rbi/stripe/resources/entitlements/active_entitlement_summary.rbi +23 -0
  423. data/rbi/stripe/resources/entitlements/feature.rbi +117 -0
  424. data/rbi/stripe/resources/ephemeral_key.rbi +44 -0
  425. data/rbi/stripe/resources/event.rbi +149 -0
  426. data/rbi/stripe/resources/exchange_rate.rbi +66 -0
  427. data/rbi/stripe/resources/file.rbi +143 -0
  428. data/rbi/stripe/resources/file_link.rbi +141 -0
  429. data/rbi/stripe/resources/financial_connections/account.rbi +339 -0
  430. data/rbi/stripe/resources/financial_connections/account_owner.rbi +35 -0
  431. data/rbi/stripe/resources/financial_connections/account_ownership.rbi +23 -0
  432. data/rbi/stripe/resources/financial_connections/session.rbi +123 -0
  433. data/rbi/stripe/resources/financial_connections/transaction.rbi +124 -0
  434. data/rbi/stripe/resources/forwarding/request.rbi +216 -0
  435. data/rbi/stripe/resources/funding_instructions.rbi +437 -0
  436. data/rbi/stripe/resources/identity/verification_report.rbi +360 -0
  437. data/rbi/stripe/resources/identity/verification_session.rbi +526 -0
  438. data/rbi/stripe/resources/invoice.rbi +3812 -0
  439. data/rbi/stripe/resources/invoice_item.rbi +473 -0
  440. data/rbi/stripe/resources/invoice_line_item.rbi +432 -0
  441. data/rbi/stripe/resources/invoice_payment.rbi +121 -0
  442. data/rbi/stripe/resources/invoice_rendering_template.rbi +104 -0
  443. data/rbi/stripe/resources/issuing/authorization.rbi +1283 -0
  444. data/rbi/stripe/resources/issuing/card.rbi +741 -0
  445. data/rbi/stripe/resources/issuing/cardholder.rbi +744 -0
  446. data/rbi/stripe/resources/issuing/dispute.rbi +913 -0
  447. data/rbi/stripe/resources/issuing/personalization_design.rbi +338 -0
  448. data/rbi/stripe/resources/issuing/physical_bundle.rbi +79 -0
  449. data/rbi/stripe/resources/issuing/token.rbi +226 -0
  450. data/rbi/stripe/resources/issuing/transaction.rbi +1061 -0
  451. data/rbi/stripe/resources/line_item.rbi +72 -0
  452. data/rbi/stripe/resources/login_link.rbi +19 -0
  453. data/rbi/stripe/resources/mandate.rbi +187 -0
  454. data/rbi/stripe/resources/payment_intent.rbi +9647 -0
  455. data/rbi/stripe/resources/payment_link.rbi +1801 -0
  456. data/rbi/stripe/resources/payment_method.rbi +1761 -0
  457. data/rbi/stripe/resources/payment_method_configuration.rbi +3550 -0
  458. data/rbi/stripe/resources/payment_method_domain.rbi +228 -0
  459. data/rbi/stripe/resources/payout.rbi +300 -0
  460. data/rbi/stripe/resources/person.rbi +401 -0
  461. data/rbi/stripe/resources/plan.rbi +371 -0
  462. data/rbi/stripe/resources/price.rbi +694 -0
  463. data/rbi/stripe/resources/product.rbi +555 -0
  464. data/rbi/stripe/resources/product_feature.rbi +26 -0
  465. data/rbi/stripe/resources/promotion_code.rbi +261 -0
  466. data/rbi/stripe/resources/quote.rbi +1126 -0
  467. data/rbi/stripe/resources/radar/early_fraud_warning.rbi +98 -0
  468. data/rbi/stripe/resources/radar/value_list.rbi +168 -0
  469. data/rbi/stripe/resources/radar/value_list_item.rbi +129 -0
  470. data/rbi/stripe/resources/refund.rbi +523 -0
  471. data/rbi/stripe/resources/reporting/report_run.rbi +191 -0
  472. data/rbi/stripe/resources/reporting/report_type.rbi +57 -0
  473. data/rbi/stripe/resources/reserve_transaction.rbi +23 -0
  474. data/rbi/stripe/resources/reversal.rbi +51 -0
  475. data/rbi/stripe/resources/review.rbi +154 -0
  476. data/rbi/stripe/resources/setup_attempt.rbi +477 -0
  477. data/rbi/stripe/resources/setup_intent.rbi +3655 -0
  478. data/rbi/stripe/resources/shipping_rate.rbi +305 -0
  479. data/rbi/stripe/resources/sigma/scheduled_query_run.rbi +75 -0
  480. data/rbi/stripe/resources/source.rbi +1496 -0
  481. data/rbi/stripe/resources/source_mandate_notification.rbi +77 -0
  482. data/rbi/stripe/resources/source_transaction.rbi +127 -0
  483. data/rbi/stripe/resources/subscription.rbi +2027 -0
  484. data/rbi/stripe/resources/subscription_item.rbi +404 -0
  485. data/rbi/stripe/resources/subscription_schedule.rbi +1623 -0
  486. data/rbi/stripe/resources/tax/calculation.rbi +478 -0
  487. data/rbi/stripe/resources/tax/calculation_line_item.rbi +91 -0
  488. data/rbi/stripe/resources/tax/registration.rbi +2713 -0
  489. data/rbi/stripe/resources/tax/settings.rbi +141 -0
  490. data/rbi/stripe/resources/tax/transaction.rbi +351 -0
  491. data/rbi/stripe/resources/tax/transaction_line_item.rbi +54 -0
  492. data/rbi/stripe/resources/tax_code.rbi +44 -0
  493. data/rbi/stripe/resources/tax_deducted_at_source.rbi +23 -0
  494. data/rbi/stripe/resources/tax_id.rbi +165 -0
  495. data/rbi/stripe/resources/tax_rate.rbi +239 -0
  496. data/rbi/stripe/resources/terminal/configuration.rbi +1386 -0
  497. data/rbi/stripe/resources/terminal/connection_token.rbi +37 -0
  498. data/rbi/stripe/resources/terminal/location.rbi +222 -0
  499. data/rbi/stripe/resources/terminal/reader.rbi +847 -0
  500. data/rbi/stripe/resources/test_helpers/test_clock.rbi +132 -0
  501. data/rbi/stripe/resources/token.rbi +1283 -0
  502. data/rbi/stripe/resources/topup.rbi +222 -0
  503. data/rbi/stripe/resources/transfer.rbi +199 -0
  504. data/rbi/stripe/resources/treasury/credit_reversal.rbi +119 -0
  505. data/rbi/stripe/resources/treasury/debit_reversal.rbi +131 -0
  506. data/rbi/stripe/resources/treasury/financial_account.rbi +865 -0
  507. data/rbi/stripe/resources/treasury/financial_account_features.rbi +260 -0
  508. data/rbi/stripe/resources/treasury/inbound_transfer.rbi +295 -0
  509. data/rbi/stripe/resources/treasury/outbound_payment.rbi +592 -0
  510. data/rbi/stripe/resources/treasury/outbound_transfer.rbi +431 -0
  511. data/rbi/stripe/resources/treasury/received_credit.rbi +302 -0
  512. data/rbi/stripe/resources/treasury/received_debit.rbi +256 -0
  513. data/rbi/stripe/resources/treasury/transaction.rbi +215 -0
  514. data/rbi/stripe/resources/treasury/transaction_entry.rbi +192 -0
  515. data/rbi/stripe/resources/v2/amount.rbi +14 -0
  516. data/rbi/stripe/resources/v2/billing/meter_event.rbi +37 -0
  517. data/rbi/stripe/resources/v2/billing/meter_event_adjustment.rbi +41 -0
  518. data/rbi/stripe/resources/v2/billing/meter_event_session.rbi +31 -0
  519. data/rbi/stripe/resources/v2/event.rbi +48 -0
  520. data/rbi/stripe/resources/v2/event_destination.rbi +91 -0
  521. data/rbi/stripe/resources/webhook_endpoint.rbi +168 -0
  522. data/rbi/stripe/services/account_capability_service.rbi +51 -0
  523. data/rbi/stripe/services/account_external_account_service.rbi +304 -0
  524. data/rbi/stripe/services/account_link_service.rbi +58 -0
  525. data/rbi/stripe/services/account_login_link_service.rbi +22 -0
  526. data/rbi/stripe/services/account_person_service.rbi +1011 -0
  527. data/rbi/stripe/services/account_service.rbi +4213 -0
  528. data/rbi/stripe/services/account_session_service.rbi +646 -0
  529. data/rbi/stripe/services/apple_pay_domain_service.rbi +76 -0
  530. data/rbi/stripe/services/application_fee_refund_service.rbi +93 -0
  531. data/rbi/stripe/services/application_fee_service.rbi +78 -0
  532. data/rbi/stripe/services/apps/secret_service.rbi +151 -0
  533. data/{lib/stripe/resources/usage_record_summary.rb → rbi/stripe/services/apps_service.rbi} +4 -3
  534. data/rbi/stripe/services/balance_service.rbi +21 -0
  535. data/rbi/stripe/services/balance_transaction_service.rbi +93 -0
  536. data/rbi/stripe/services/billing/alert_service.rbi +152 -0
  537. data/rbi/stripe/services/billing/credit_balance_summary_service.rbi +68 -0
  538. data/rbi/stripe/services/billing/credit_balance_transaction_service.rbi +59 -0
  539. data/rbi/stripe/services/billing/credit_grant_service.rbi +211 -0
  540. data/rbi/stripe/services/billing/meter_event_adjustment_service.rbi +42 -0
  541. data/rbi/stripe/services/billing/meter_event_service.rbi +42 -0
  542. data/rbi/stripe/services/billing/meter_event_summary_service.rbi +54 -0
  543. data/rbi/stripe/services/billing/meter_service.rbi +163 -0
  544. data/rbi/stripe/services/billing_portal/configuration_service.rbi +511 -0
  545. data/rbi/stripe/services/billing_portal/session_service.rbi +204 -0
  546. data/rbi/stripe/services/billing_portal_service.rbi +10 -0
  547. data/rbi/stripe/services/billing_service.rbi +15 -0
  548. data/rbi/stripe/services/charge_service.rbi +448 -0
  549. data/rbi/stripe/services/checkout/session_line_item_service.rbi +33 -0
  550. data/rbi/stripe/services/checkout/session_service.rbi +2614 -0
  551. data/rbi/stripe/services/checkout_service.rbi +9 -0
  552. data/rbi/stripe/services/climate/order_service.rbi +142 -0
  553. data/rbi/stripe/services/climate/product_service.rbi +46 -0
  554. data/rbi/stripe/services/climate/supplier_service.rbi +46 -0
  555. data/rbi/stripe/services/climate_service.rbi +11 -0
  556. data/rbi/stripe/services/confirmation_token_service.rbi +20 -0
  557. data/rbi/stripe/services/country_spec_service.rbi +44 -0
  558. data/rbi/stripe/services/coupon_service.rbi +194 -0
  559. data/rbi/stripe/services/credit_note_line_item_service.rbi +31 -0
  560. data/rbi/stripe/services/credit_note_preview_lines_service.rbi +167 -0
  561. data/rbi/stripe/services/credit_note_service.rbi +415 -0
  562. data/rbi/stripe/services/customer_balance_transaction_service.rbi +92 -0
  563. data/rbi/stripe/services/customer_cash_balance_service.rbi +45 -0
  564. data/rbi/stripe/services/customer_cash_balance_transaction_service.rbi +44 -0
  565. data/rbi/stripe/services/customer_funding_instructions_service.rbi +59 -0
  566. data/rbi/stripe/services/customer_payment_method_service.rbi +57 -0
  567. data/rbi/stripe/services/customer_payment_source_service.rbi +232 -0
  568. data/rbi/stripe/services/customer_service.rbi +647 -0
  569. data/rbi/stripe/services/customer_session_service.rbi +116 -0
  570. data/rbi/stripe/services/customer_tax_id_service.rbi +70 -0
  571. data/rbi/stripe/services/dispute_service.rbi +424 -0
  572. data/rbi/stripe/services/entitlements/active_entitlement_service.rbi +55 -0
  573. data/rbi/stripe/services/entitlements/feature_service.rbi +107 -0
  574. data/rbi/stripe/services/entitlements_service.rbi +10 -0
  575. data/rbi/stripe/services/ephemeral_key_service.rbi +53 -0
  576. data/rbi/stripe/services/event_service.rbi +83 -0
  577. data/rbi/stripe/services/exchange_rate_service.rbi +44 -0
  578. data/rbi/stripe/services/file_link_service.rbi +124 -0
  579. data/rbi/stripe/services/file_service.rbi +116 -0
  580. data/rbi/stripe/services/financial_connections/account_owner_service.rbi +42 -0
  581. data/rbi/stripe/services/financial_connections/account_service.rbi +133 -0
  582. data/rbi/stripe/services/financial_connections/session_service.rbi +88 -0
  583. data/rbi/stripe/services/financial_connections/transaction_service.rbi +92 -0
  584. data/rbi/stripe/services/financial_connections_service.rbi +11 -0
  585. data/rbi/stripe/services/forwarding/request_service.rbi +134 -0
  586. data/rbi/stripe/services/forwarding_service.rbi +9 -0
  587. data/rbi/stripe/services/identity/verification_report_service.rbi +87 -0
  588. data/rbi/stripe/services/identity/verification_session_service.rbi +323 -0
  589. data/rbi/stripe/services/identity_service.rbi +10 -0
  590. data/rbi/stripe/services/invoice_item_service.rbi +366 -0
  591. data/rbi/stripe/services/invoice_line_item_service.rbi +259 -0
  592. data/rbi/stripe/services/invoice_payment_service.rbi +71 -0
  593. data/rbi/stripe/services/invoice_rendering_template_service.rbi +82 -0
  594. data/rbi/stripe/services/invoice_service.rbi +2981 -0
  595. data/rbi/stripe/services/issuing/authorization_service.rbi +146 -0
  596. data/rbi/stripe/services/issuing/card_service.rbi +495 -0
  597. data/rbi/stripe/services/issuing/cardholder_service.rbi +587 -0
  598. data/rbi/stripe/services/issuing/dispute_service.rbi +707 -0
  599. data/rbi/stripe/services/issuing/personalization_design_service.rbi +243 -0
  600. data/rbi/stripe/services/issuing/physical_bundle_service.rbi +59 -0
  601. data/rbi/stripe/services/issuing/token_service.rbi +99 -0
  602. data/rbi/stripe/services/issuing/transaction_service.rbi +105 -0
  603. data/rbi/stripe/services/issuing_service.rbi +16 -0
  604. data/rbi/stripe/services/mandate_service.rbi +20 -0
  605. data/rbi/stripe/services/payment_intent_service.rbi +7659 -0
  606. data/rbi/stripe/services/payment_link_line_item_service.rbi +31 -0
  607. data/rbi/stripe/services/payment_link_service.rbi +1352 -0
  608. data/rbi/stripe/services/payment_method_configuration_service.rbi +2487 -0
  609. data/rbi/stripe/services/payment_method_domain_service.rbi +112 -0
  610. data/rbi/stripe/services/payment_method_service.rbi +776 -0
  611. data/rbi/stripe/services/payout_service.rbi +205 -0
  612. data/rbi/stripe/services/plan_service.rbi +282 -0
  613. data/rbi/stripe/services/price_service.rbi +546 -0
  614. data/rbi/stripe/services/product_feature_service.rbi +67 -0
  615. data/rbi/stripe/services/product_service.rbi +477 -0
  616. data/rbi/stripe/services/promotion_code_service.rbi +214 -0
  617. data/rbi/stripe/services/quote_computed_upfront_line_items_service.rbi +31 -0
  618. data/rbi/stripe/services/quote_line_item_service.rbi +31 -0
  619. data/rbi/stripe/services/quote_service.rbi +686 -0
  620. data/rbi/stripe/services/radar/early_fraud_warning_service.rbi +85 -0
  621. data/rbi/stripe/services/radar/value_list_item_service.rbi +109 -0
  622. data/rbi/stripe/services/radar/value_list_service.rbi +141 -0
  623. data/rbi/stripe/services/radar_service.rbi +11 -0
  624. data/rbi/stripe/services/refund_service.rbi +185 -0
  625. data/rbi/stripe/services/reporting/report_run_service.rbi +135 -0
  626. data/rbi/stripe/services/reporting/report_type_service.rbi +35 -0
  627. data/rbi/stripe/services/reporting_service.rbi +10 -0
  628. data/rbi/stripe/services/review_service.rbi +84 -0
  629. data/rbi/stripe/services/setup_attempt_service.rbi +65 -0
  630. data/rbi/stripe/services/setup_intent_service.rbi +3391 -0
  631. data/rbi/stripe/services/shipping_rate_service.rbi +241 -0
  632. data/rbi/stripe/services/sigma/scheduled_query_run_service.rbi +46 -0
  633. data/rbi/stripe/services/sigma_service.rbi +9 -0
  634. data/rbi/stripe/services/source_service.rbi +663 -0
  635. data/rbi/stripe/services/source_transaction_service.rbi +31 -0
  636. data/rbi/stripe/services/subscription_item_service.rbi +350 -0
  637. data/rbi/stripe/services/subscription_schedule_service.rbi +1290 -0
  638. data/rbi/stripe/services/subscription_service.rbi +1648 -0
  639. data/rbi/stripe/services/tax/calculation_line_item_service.rbi +33 -0
  640. data/rbi/stripe/services/tax/calculation_service.rbi +234 -0
  641. data/rbi/stripe/services/tax/registration_service.rbi +1845 -0
  642. data/rbi/stripe/services/tax/settings_service.rbi +93 -0
  643. data/rbi/stripe/services/tax/transaction_line_item_service.rbi +33 -0
  644. data/rbi/stripe/services/tax/transaction_service.rbi +146 -0
  645. data/rbi/stripe/services/tax_code_service.rbi +44 -0
  646. data/rbi/stripe/services/tax_id_service.rbi +110 -0
  647. data/rbi/stripe/services/tax_rate_service.rbi +185 -0
  648. data/rbi/stripe/services/tax_service.rbi +12 -0
  649. data/rbi/stripe/services/terminal/configuration_service.rbi +1118 -0
  650. data/rbi/stripe/services/terminal/connection_token_service.rbi +25 -0
  651. data/rbi/stripe/services/terminal/location_service.rbi +182 -0
  652. data/rbi/stripe/services/terminal/reader_service.rbi +455 -0
  653. data/rbi/stripe/services/terminal_service.rbi +12 -0
  654. data/rbi/stripe/services/test_helpers/confirmation_token_service.rbi +739 -0
  655. data/rbi/stripe/services/test_helpers/customer_service.rbi +33 -0
  656. data/rbi/stripe/services/test_helpers/issuing/authorization_service.rbi +848 -0
  657. data/rbi/stripe/services/test_helpers/issuing/card_service.rbi +76 -0
  658. data/rbi/stripe/services/test_helpers/issuing/personalization_design_service.rbi +69 -0
  659. data/rbi/stripe/services/test_helpers/issuing/transaction_service.rbi +711 -0
  660. data/rbi/stripe/services/test_helpers/issuing_service.rbi +14 -0
  661. data/rbi/stripe/services/test_helpers/refund_service.rbi +22 -0
  662. data/rbi/stripe/services/test_helpers/terminal/reader_service.rbi +93 -0
  663. data/rbi/stripe/services/test_helpers/terminal_service.rbi +11 -0
  664. data/rbi/stripe/services/test_helpers/test_clock_service.rbi +90 -0
  665. data/rbi/stripe/services/test_helpers/treasury/inbound_transfer_service.rbi +64 -0
  666. data/rbi/stripe/services/test_helpers/treasury/outbound_payment_service.rbi +125 -0
  667. data/rbi/stripe/services/test_helpers/treasury/outbound_transfer_service.rbi +125 -0
  668. data/rbi/stripe/services/test_helpers/treasury/received_credit_service.rbi +87 -0
  669. data/rbi/stripe/services/test_helpers/treasury/received_debit_service.rbi +87 -0
  670. data/rbi/stripe/services/test_helpers/treasury_service.rbi +15 -0
  671. data/rbi/stripe/services/test_helpers_service.rbi +15 -0
  672. data/rbi/stripe/services/token_service.rbi +1257 -0
  673. data/rbi/stripe/services/topup_service.rbi +176 -0
  674. data/rbi/stripe/services/transfer_reversal_service.rbi +101 -0
  675. data/rbi/stripe/services/transfer_service.rbi +152 -0
  676. data/rbi/stripe/services/treasury/credit_reversal_service.rbi +84 -0
  677. data/rbi/stripe/services/treasury/debit_reversal_service.rbi +88 -0
  678. data/rbi/stripe/services/treasury/financial_account_features_service.rbi +198 -0
  679. data/rbi/stripe/services/treasury/financial_account_service.rbi +562 -0
  680. data/rbi/stripe/services/treasury/inbound_transfer_service.rbi +117 -0
  681. data/rbi/stripe/services/treasury/outbound_payment_service.rbi +304 -0
  682. data/rbi/stripe/services/treasury/outbound_transfer_service.rbi +157 -0
  683. data/rbi/stripe/services/treasury/received_credit_service.rbi +72 -0
  684. data/rbi/stripe/services/treasury/received_debit_service.rbi +59 -0
  685. data/rbi/stripe/services/treasury/transaction_entry_service.rbi +111 -0
  686. data/rbi/stripe/services/treasury/transaction_service.rbi +122 -0
  687. data/rbi/stripe/services/treasury_service.rbi +18 -0
  688. data/rbi/stripe/services/v1_services.rbi +77 -0
  689. data/rbi/stripe/services/v2/billing/meter_event_adjustment_service.rbi +39 -0
  690. data/rbi/stripe/services/v2/billing/meter_event_service.rbi +42 -0
  691. data/rbi/stripe/services/v2/billing/meter_event_session_service.rbi +18 -0
  692. data/rbi/stripe/services/v2/billing/meter_event_stream_service.rbi +55 -0
  693. data/rbi/stripe/services/v2/billing_service.rbi +14 -0
  694. data/rbi/stripe/services/v2/core/event_destination_service.rbi +192 -0
  695. data/rbi/stripe/services/v2/core/event_service.rbi +36 -0
  696. data/rbi/stripe/services/v2/core_service.rbi +12 -0
  697. data/rbi/stripe/services/v2_services.rbi +10 -0
  698. data/rbi/stripe/services/webhook_endpoint_service.rbi +129 -0
  699. data/stripe.gemspec +10 -7
  700. metadata +599 -18
  701. data/lib/stripe/resources/bitcoin_receiver.rb +0 -24
  702. data/lib/stripe/resources/bitcoin_transaction.rb +0 -16
  703. data/lib/stripe/resources/issuing/card_details.rb +0 -9
  704. data/lib/stripe/resources/order.rb +0 -33
  705. data/lib/stripe/resources/order_return.rb +0 -10
  706. data/lib/stripe/resources/recipient.rb +0 -14
  707. data/lib/stripe/resources/sku.rb +0 -13
  708. data/lib/stripe/resources/three_d_secure.rb +0 -14
@@ -0,0 +1,4171 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ class AccountService < StripeService
6
+ attr_reader :capabilities, :external_accounts, :login_links, :persons
7
+
8
+ def initialize(requestor)
9
+ super
10
+ @capabilities = Stripe::AccountCapabilityService.new(@requestor)
11
+ @external_accounts = Stripe::AccountExternalAccountService.new(@requestor)
12
+ @login_links = Stripe::AccountLoginLinkService.new(@requestor)
13
+ @persons = Stripe::AccountPersonService.new(@requestor)
14
+ end
15
+
16
+ class DeleteParams < Stripe::RequestParams; end
17
+
18
+ class RetrieveParams < Stripe::RequestParams
19
+ # Specifies which fields in the response should be expanded.
20
+ attr_accessor :expand
21
+
22
+ def initialize(expand: nil)
23
+ @expand = expand
24
+ end
25
+ end
26
+
27
+ class UpdateParams < Stripe::RequestParams
28
+ class BankAccount < Stripe::RequestParams
29
+ # Attribute for param field object
30
+ attr_accessor :object
31
+ # The name of the person or business that owns the bank account.This field is required when attaching the bank account to a `Customer` object.
32
+ attr_accessor :account_holder_name
33
+ # The type of entity that holds the account. It can be `company` or `individual`. This field is required when attaching the bank account to a `Customer` object.
34
+ attr_accessor :account_holder_type
35
+ # The account number for the bank account, in string form. Must be a checking account.
36
+ attr_accessor :account_number
37
+ # The country in which the bank account is located.
38
+ attr_accessor :country
39
+ # The currency the bank account is in. This must be a country/currency pairing that [Stripe supports.](docs/payouts)
40
+ attr_accessor :currency
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.
42
+ attr_accessor :routing_number
43
+
44
+ def initialize(
45
+ object: nil,
46
+ account_holder_name: nil,
47
+ account_holder_type: nil,
48
+ account_number: nil,
49
+ country: nil,
50
+ currency: nil,
51
+ routing_number: nil
52
+ )
53
+ @object = object
54
+ @account_holder_name = account_holder_name
55
+ @account_holder_type = account_holder_type
56
+ @account_number = account_number
57
+ @country = country
58
+ @currency = currency
59
+ @routing_number = routing_number
60
+ end
61
+ end
62
+
63
+ class BusinessProfile < Stripe::RequestParams
64
+ class AnnualRevenue < Stripe::RequestParams
65
+ # A non-negative integer representing the amount in the [smallest currency unit](/currencies#zero-decimal).
66
+ attr_accessor :amount
67
+ # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
68
+ attr_accessor :currency
69
+ # The close-out date of the preceding fiscal year in ISO 8601 format. E.g. 2023-12-31 for the 31st of December, 2023.
70
+ attr_accessor :fiscal_year_end
71
+
72
+ def initialize(amount: nil, currency: nil, fiscal_year_end: nil)
73
+ @amount = amount
74
+ @currency = currency
75
+ @fiscal_year_end = fiscal_year_end
76
+ end
77
+ end
78
+
79
+ class MonthlyEstimatedRevenue < Stripe::RequestParams
80
+ # A non-negative integer representing how much to charge in the [smallest currency unit](/currencies#zero-decimal).
81
+ attr_accessor :amount
82
+ # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
83
+ attr_accessor :currency
84
+
85
+ def initialize(amount: nil, currency: nil)
86
+ @amount = amount
87
+ @currency = currency
88
+ end
89
+ end
90
+
91
+ class SupportAddress < Stripe::RequestParams
92
+ # City, district, suburb, town, or village.
93
+ attr_accessor :city
94
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
95
+ attr_accessor :country
96
+ # Address line 1 (e.g., street, PO Box, or company name).
97
+ attr_accessor :line1
98
+ # Address line 2 (e.g., apartment, suite, unit, or building).
99
+ attr_accessor :line2
100
+ # ZIP or postal code.
101
+ attr_accessor :postal_code
102
+ # State, county, province, or region.
103
+ attr_accessor :state
104
+
105
+ def initialize(
106
+ city: nil,
107
+ country: nil,
108
+ line1: nil,
109
+ line2: nil,
110
+ postal_code: nil,
111
+ state: nil
112
+ )
113
+ @city = city
114
+ @country = country
115
+ @line1 = line1
116
+ @line2 = line2
117
+ @postal_code = postal_code
118
+ @state = state
119
+ end
120
+ end
121
+ # The applicant's gross annual revenue for its preceding fiscal year.
122
+ attr_accessor :annual_revenue
123
+ # An estimated upper bound of employees, contractors, vendors, etc. currently working for the business.
124
+ attr_accessor :estimated_worker_count
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.
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
129
+ # An estimate of the monthly revenue of the business. Only accepted for accounts in Brazil and India.
130
+ attr_accessor :monthly_estimated_revenue
131
+ # The customer-facing business name.
132
+ attr_accessor :name
133
+ # Internal-only description of the product sold by, or service provided by, the business. Used by Stripe for risk and underwriting purposes.
134
+ attr_accessor :product_description
135
+ # A publicly available mailing address for sending support issues to.
136
+ attr_accessor :support_address
137
+ # A publicly available email address for sending support issues to.
138
+ attr_accessor :support_email
139
+ # A publicly available phone number to call with support issues.
140
+ attr_accessor :support_phone
141
+ # A publicly available website for handling support issues.
142
+ attr_accessor :support_url
143
+ # The business's publicly available website.
144
+ attr_accessor :url
145
+
146
+ def initialize(
147
+ annual_revenue: nil,
148
+ estimated_worker_count: nil,
149
+ mcc: nil,
150
+ minority_owned_business_designation: nil,
151
+ monthly_estimated_revenue: nil,
152
+ name: nil,
153
+ product_description: nil,
154
+ support_address: nil,
155
+ support_email: nil,
156
+ support_phone: nil,
157
+ support_url: nil,
158
+ url: nil
159
+ )
160
+ @annual_revenue = annual_revenue
161
+ @estimated_worker_count = estimated_worker_count
162
+ @mcc = mcc
163
+ @minority_owned_business_designation = minority_owned_business_designation
164
+ @monthly_estimated_revenue = monthly_estimated_revenue
165
+ @name = name
166
+ @product_description = product_description
167
+ @support_address = support_address
168
+ @support_email = support_email
169
+ @support_phone = support_phone
170
+ @support_url = support_url
171
+ @url = url
172
+ end
173
+ end
174
+
175
+ class Capabilities < Stripe::RequestParams
176
+ class AcssDebitPayments < Stripe::RequestParams
177
+ # 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.
178
+ attr_accessor :requested
179
+
180
+ def initialize(requested: nil)
181
+ @requested = requested
182
+ end
183
+ end
184
+
185
+ class AffirmPayments < Stripe::RequestParams
186
+ # 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.
187
+ attr_accessor :requested
188
+
189
+ def initialize(requested: nil)
190
+ @requested = requested
191
+ end
192
+ end
193
+
194
+ class AfterpayClearpayPayments < Stripe::RequestParams
195
+ # 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.
196
+ attr_accessor :requested
197
+
198
+ def initialize(requested: nil)
199
+ @requested = requested
200
+ end
201
+ end
202
+
203
+ class AlmaPayments < Stripe::RequestParams
204
+ # 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.
205
+ attr_accessor :requested
206
+
207
+ def initialize(requested: nil)
208
+ @requested = requested
209
+ end
210
+ end
211
+
212
+ class AmazonPayPayments < Stripe::RequestParams
213
+ # 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.
214
+ attr_accessor :requested
215
+
216
+ def initialize(requested: nil)
217
+ @requested = requested
218
+ end
219
+ end
220
+
221
+ class AuBecsDebitPayments < Stripe::RequestParams
222
+ # 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.
223
+ attr_accessor :requested
224
+
225
+ def initialize(requested: nil)
226
+ @requested = requested
227
+ end
228
+ end
229
+
230
+ class BacsDebitPayments < Stripe::RequestParams
231
+ # 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.
232
+ attr_accessor :requested
233
+
234
+ def initialize(requested: nil)
235
+ @requested = requested
236
+ end
237
+ end
238
+
239
+ class BancontactPayments < Stripe::RequestParams
240
+ # 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.
241
+ attr_accessor :requested
242
+
243
+ def initialize(requested: nil)
244
+ @requested = requested
245
+ end
246
+ end
247
+
248
+ class BankTransferPayments < Stripe::RequestParams
249
+ # 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.
250
+ attr_accessor :requested
251
+
252
+ def initialize(requested: nil)
253
+ @requested = requested
254
+ end
255
+ end
256
+
257
+ class BilliePayments < Stripe::RequestParams
258
+ # 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.
259
+ attr_accessor :requested
260
+
261
+ def initialize(requested: nil)
262
+ @requested = requested
263
+ end
264
+ end
265
+
266
+ class BlikPayments < Stripe::RequestParams
267
+ # 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.
268
+ attr_accessor :requested
269
+
270
+ def initialize(requested: nil)
271
+ @requested = requested
272
+ end
273
+ end
274
+
275
+ class BoletoPayments < Stripe::RequestParams
276
+ # 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.
277
+ attr_accessor :requested
278
+
279
+ def initialize(requested: nil)
280
+ @requested = requested
281
+ end
282
+ end
283
+
284
+ class CardIssuing < Stripe::RequestParams
285
+ # 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.
286
+ attr_accessor :requested
287
+
288
+ def initialize(requested: nil)
289
+ @requested = requested
290
+ end
291
+ end
292
+
293
+ class CardPayments < Stripe::RequestParams
294
+ # 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.
295
+ attr_accessor :requested
296
+
297
+ def initialize(requested: nil)
298
+ @requested = requested
299
+ end
300
+ end
301
+
302
+ class CartesBancairesPayments < Stripe::RequestParams
303
+ # 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.
304
+ attr_accessor :requested
305
+
306
+ def initialize(requested: nil)
307
+ @requested = requested
308
+ end
309
+ end
310
+
311
+ class CashappPayments < Stripe::RequestParams
312
+ # 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.
313
+ attr_accessor :requested
314
+
315
+ def initialize(requested: nil)
316
+ @requested = requested
317
+ end
318
+ end
319
+
320
+ class EpsPayments < 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
+
329
+ class FpxPayments < Stripe::RequestParams
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.
331
+ attr_accessor :requested
332
+
333
+ def initialize(requested: nil)
334
+ @requested = requested
335
+ end
336
+ end
337
+
338
+ class GbBankTransferPayments < Stripe::RequestParams
339
+ # 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.
340
+ attr_accessor :requested
341
+
342
+ def initialize(requested: nil)
343
+ @requested = requested
344
+ end
345
+ end
346
+
347
+ class GiropayPayments < Stripe::RequestParams
348
+ # 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.
349
+ attr_accessor :requested
350
+
351
+ def initialize(requested: nil)
352
+ @requested = requested
353
+ end
354
+ end
355
+
356
+ class GrabpayPayments < Stripe::RequestParams
357
+ # 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.
358
+ attr_accessor :requested
359
+
360
+ def initialize(requested: nil)
361
+ @requested = requested
362
+ end
363
+ end
364
+
365
+ class IdealPayments < Stripe::RequestParams
366
+ # 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.
367
+ attr_accessor :requested
368
+
369
+ def initialize(requested: nil)
370
+ @requested = requested
371
+ end
372
+ end
373
+
374
+ class IndiaInternationalPayments < Stripe::RequestParams
375
+ # 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.
376
+ attr_accessor :requested
377
+
378
+ def initialize(requested: nil)
379
+ @requested = requested
380
+ end
381
+ end
382
+
383
+ class JcbPayments < Stripe::RequestParams
384
+ # 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.
385
+ attr_accessor :requested
386
+
387
+ def initialize(requested: nil)
388
+ @requested = requested
389
+ end
390
+ end
391
+
392
+ class JpBankTransferPayments < Stripe::RequestParams
393
+ # 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.
394
+ attr_accessor :requested
395
+
396
+ def initialize(requested: nil)
397
+ @requested = requested
398
+ end
399
+ end
400
+
401
+ class KakaoPayPayments < Stripe::RequestParams
402
+ # 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.
403
+ attr_accessor :requested
404
+
405
+ def initialize(requested: nil)
406
+ @requested = requested
407
+ end
408
+ end
409
+
410
+ class KlarnaPayments < Stripe::RequestParams
411
+ # 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.
412
+ attr_accessor :requested
413
+
414
+ def initialize(requested: nil)
415
+ @requested = requested
416
+ end
417
+ end
418
+
419
+ class KonbiniPayments < Stripe::RequestParams
420
+ # 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.
421
+ attr_accessor :requested
422
+
423
+ def initialize(requested: nil)
424
+ @requested = requested
425
+ end
426
+ end
427
+
428
+ class KrCardPayments < Stripe::RequestParams
429
+ # 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.
430
+ attr_accessor :requested
431
+
432
+ def initialize(requested: nil)
433
+ @requested = requested
434
+ end
435
+ end
436
+
437
+ class LegacyPayments < Stripe::RequestParams
438
+ # 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.
439
+ attr_accessor :requested
440
+
441
+ def initialize(requested: nil)
442
+ @requested = requested
443
+ end
444
+ end
445
+
446
+ class LinkPayments < Stripe::RequestParams
447
+ # 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.
448
+ attr_accessor :requested
449
+
450
+ def initialize(requested: nil)
451
+ @requested = requested
452
+ end
453
+ end
454
+
455
+ class MobilepayPayments < Stripe::RequestParams
456
+ # 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.
457
+ attr_accessor :requested
458
+
459
+ def initialize(requested: nil)
460
+ @requested = requested
461
+ end
462
+ end
463
+
464
+ class MultibancoPayments < Stripe::RequestParams
465
+ # 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.
466
+ attr_accessor :requested
467
+
468
+ def initialize(requested: nil)
469
+ @requested = requested
470
+ end
471
+ end
472
+
473
+ class MxBankTransferPayments < Stripe::RequestParams
474
+ # 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.
475
+ attr_accessor :requested
476
+
477
+ def initialize(requested: nil)
478
+ @requested = requested
479
+ end
480
+ end
481
+
482
+ class NaverPayPayments < Stripe::RequestParams
483
+ # 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.
484
+ attr_accessor :requested
485
+
486
+ def initialize(requested: nil)
487
+ @requested = requested
488
+ end
489
+ end
490
+
491
+ class NzBankAccountBecsDebitPayments < Stripe::RequestParams
492
+ # 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.
493
+ attr_accessor :requested
494
+
495
+ def initialize(requested: nil)
496
+ @requested = requested
497
+ end
498
+ end
499
+
500
+ class OxxoPayments < Stripe::RequestParams
501
+ # 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.
502
+ attr_accessor :requested
503
+
504
+ def initialize(requested: nil)
505
+ @requested = requested
506
+ end
507
+ end
508
+
509
+ class P24Payments < Stripe::RequestParams
510
+ # 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.
511
+ attr_accessor :requested
512
+
513
+ def initialize(requested: nil)
514
+ @requested = requested
515
+ end
516
+ end
517
+
518
+ class PayByBankPayments < Stripe::RequestParams
519
+ # 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.
520
+ attr_accessor :requested
521
+
522
+ def initialize(requested: nil)
523
+ @requested = requested
524
+ end
525
+ end
526
+
527
+ class PaycoPayments < Stripe::RequestParams
528
+ # 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.
529
+ attr_accessor :requested
530
+
531
+ def initialize(requested: nil)
532
+ @requested = requested
533
+ end
534
+ end
535
+
536
+ class PaynowPayments < Stripe::RequestParams
537
+ # 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.
538
+ attr_accessor :requested
539
+
540
+ def initialize(requested: nil)
541
+ @requested = requested
542
+ end
543
+ end
544
+
545
+ class PixPayments < Stripe::RequestParams
546
+ # 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.
547
+ attr_accessor :requested
548
+
549
+ def initialize(requested: nil)
550
+ @requested = requested
551
+ end
552
+ end
553
+
554
+ class PromptpayPayments < 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
+
563
+ class RevolutPayPayments < Stripe::RequestParams
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.
565
+ attr_accessor :requested
566
+
567
+ def initialize(requested: nil)
568
+ @requested = requested
569
+ end
570
+ end
571
+
572
+ class SamsungPayPayments < Stripe::RequestParams
573
+ # 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.
574
+ attr_accessor :requested
575
+
576
+ def initialize(requested: nil)
577
+ @requested = requested
578
+ end
579
+ end
580
+
581
+ class SatispayPayments < Stripe::RequestParams
582
+ # 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.
583
+ attr_accessor :requested
584
+
585
+ def initialize(requested: nil)
586
+ @requested = requested
587
+ end
588
+ end
589
+
590
+ class SepaBankTransferPayments < Stripe::RequestParams
591
+ # 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.
592
+ attr_accessor :requested
593
+
594
+ def initialize(requested: nil)
595
+ @requested = requested
596
+ end
597
+ end
598
+
599
+ class SepaDebitPayments < Stripe::RequestParams
600
+ # 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.
601
+ attr_accessor :requested
602
+
603
+ def initialize(requested: nil)
604
+ @requested = requested
605
+ end
606
+ end
607
+
608
+ class SofortPayments < Stripe::RequestParams
609
+ # 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.
610
+ attr_accessor :requested
611
+
612
+ def initialize(requested: nil)
613
+ @requested = requested
614
+ end
615
+ end
616
+
617
+ class SwishPayments < Stripe::RequestParams
618
+ # 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.
619
+ attr_accessor :requested
620
+
621
+ def initialize(requested: nil)
622
+ @requested = requested
623
+ end
624
+ end
625
+
626
+ class TaxReportingUs1099K < Stripe::RequestParams
627
+ # 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.
628
+ attr_accessor :requested
629
+
630
+ def initialize(requested: nil)
631
+ @requested = requested
632
+ end
633
+ end
634
+
635
+ class TaxReportingUs1099Misc < Stripe::RequestParams
636
+ # 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.
637
+ attr_accessor :requested
638
+
639
+ def initialize(requested: nil)
640
+ @requested = requested
641
+ end
642
+ end
643
+
644
+ class Transfers < Stripe::RequestParams
645
+ # 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.
646
+ attr_accessor :requested
647
+
648
+ def initialize(requested: nil)
649
+ @requested = requested
650
+ end
651
+ end
652
+
653
+ class Treasury < Stripe::RequestParams
654
+ # 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.
655
+ attr_accessor :requested
656
+
657
+ def initialize(requested: nil)
658
+ @requested = requested
659
+ end
660
+ end
661
+
662
+ class TwintPayments < Stripe::RequestParams
663
+ # 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.
664
+ attr_accessor :requested
665
+
666
+ def initialize(requested: nil)
667
+ @requested = requested
668
+ end
669
+ end
670
+
671
+ class UsBankAccountAchPayments < Stripe::RequestParams
672
+ # 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.
673
+ attr_accessor :requested
674
+
675
+ def initialize(requested: nil)
676
+ @requested = requested
677
+ end
678
+ end
679
+
680
+ class UsBankTransferPayments < Stripe::RequestParams
681
+ # 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.
682
+ attr_accessor :requested
683
+
684
+ def initialize(requested: nil)
685
+ @requested = requested
686
+ end
687
+ end
688
+
689
+ class ZipPayments < Stripe::RequestParams
690
+ # 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.
691
+ attr_accessor :requested
692
+
693
+ def initialize(requested: nil)
694
+ @requested = requested
695
+ end
696
+ end
697
+ # The acss_debit_payments capability.
698
+ attr_accessor :acss_debit_payments
699
+ # The affirm_payments capability.
700
+ attr_accessor :affirm_payments
701
+ # The afterpay_clearpay_payments capability.
702
+ attr_accessor :afterpay_clearpay_payments
703
+ # The alma_payments capability.
704
+ attr_accessor :alma_payments
705
+ # The amazon_pay_payments capability.
706
+ attr_accessor :amazon_pay_payments
707
+ # The au_becs_debit_payments capability.
708
+ attr_accessor :au_becs_debit_payments
709
+ # The bacs_debit_payments capability.
710
+ attr_accessor :bacs_debit_payments
711
+ # The bancontact_payments capability.
712
+ attr_accessor :bancontact_payments
713
+ # The bank_transfer_payments capability.
714
+ attr_accessor :bank_transfer_payments
715
+ # The billie_payments capability.
716
+ attr_accessor :billie_payments
717
+ # The blik_payments capability.
718
+ attr_accessor :blik_payments
719
+ # The boleto_payments capability.
720
+ attr_accessor :boleto_payments
721
+ # The card_issuing capability.
722
+ attr_accessor :card_issuing
723
+ # The card_payments capability.
724
+ attr_accessor :card_payments
725
+ # The cartes_bancaires_payments capability.
726
+ attr_accessor :cartes_bancaires_payments
727
+ # The cashapp_payments capability.
728
+ attr_accessor :cashapp_payments
729
+ # The eps_payments capability.
730
+ attr_accessor :eps_payments
731
+ # The fpx_payments capability.
732
+ attr_accessor :fpx_payments
733
+ # The gb_bank_transfer_payments capability.
734
+ attr_accessor :gb_bank_transfer_payments
735
+ # The giropay_payments capability.
736
+ attr_accessor :giropay_payments
737
+ # The grabpay_payments capability.
738
+ attr_accessor :grabpay_payments
739
+ # The ideal_payments capability.
740
+ attr_accessor :ideal_payments
741
+ # The india_international_payments capability.
742
+ attr_accessor :india_international_payments
743
+ # The jcb_payments capability.
744
+ attr_accessor :jcb_payments
745
+ # The jp_bank_transfer_payments capability.
746
+ attr_accessor :jp_bank_transfer_payments
747
+ # The kakao_pay_payments capability.
748
+ attr_accessor :kakao_pay_payments
749
+ # The klarna_payments capability.
750
+ attr_accessor :klarna_payments
751
+ # The konbini_payments capability.
752
+ attr_accessor :konbini_payments
753
+ # The kr_card_payments capability.
754
+ attr_accessor :kr_card_payments
755
+ # The legacy_payments capability.
756
+ attr_accessor :legacy_payments
757
+ # The link_payments capability.
758
+ attr_accessor :link_payments
759
+ # The mobilepay_payments capability.
760
+ attr_accessor :mobilepay_payments
761
+ # The multibanco_payments capability.
762
+ attr_accessor :multibanco_payments
763
+ # The mx_bank_transfer_payments capability.
764
+ attr_accessor :mx_bank_transfer_payments
765
+ # The naver_pay_payments capability.
766
+ attr_accessor :naver_pay_payments
767
+ # The nz_bank_account_becs_debit_payments capability.
768
+ attr_accessor :nz_bank_account_becs_debit_payments
769
+ # The oxxo_payments capability.
770
+ attr_accessor :oxxo_payments
771
+ # The p24_payments capability.
772
+ attr_accessor :p24_payments
773
+ # The pay_by_bank_payments capability.
774
+ attr_accessor :pay_by_bank_payments
775
+ # The payco_payments capability.
776
+ attr_accessor :payco_payments
777
+ # The paynow_payments capability.
778
+ attr_accessor :paynow_payments
779
+ # The pix_payments capability.
780
+ attr_accessor :pix_payments
781
+ # The promptpay_payments capability.
782
+ attr_accessor :promptpay_payments
783
+ # The revolut_pay_payments capability.
784
+ attr_accessor :revolut_pay_payments
785
+ # The samsung_pay_payments capability.
786
+ attr_accessor :samsung_pay_payments
787
+ # The satispay_payments capability.
788
+ attr_accessor :satispay_payments
789
+ # The sepa_bank_transfer_payments capability.
790
+ attr_accessor :sepa_bank_transfer_payments
791
+ # The sepa_debit_payments capability.
792
+ attr_accessor :sepa_debit_payments
793
+ # The sofort_payments capability.
794
+ attr_accessor :sofort_payments
795
+ # The swish_payments capability.
796
+ attr_accessor :swish_payments
797
+ # The tax_reporting_us_1099_k capability.
798
+ attr_accessor :tax_reporting_us_1099_k
799
+ # The tax_reporting_us_1099_misc capability.
800
+ attr_accessor :tax_reporting_us_1099_misc
801
+ # The transfers capability.
802
+ attr_accessor :transfers
803
+ # The treasury capability.
804
+ attr_accessor :treasury
805
+ # The twint_payments capability.
806
+ attr_accessor :twint_payments
807
+ # The us_bank_account_ach_payments capability.
808
+ attr_accessor :us_bank_account_ach_payments
809
+ # The us_bank_transfer_payments capability.
810
+ attr_accessor :us_bank_transfer_payments
811
+ # The zip_payments capability.
812
+ attr_accessor :zip_payments
813
+
814
+ def initialize(
815
+ acss_debit_payments: nil,
816
+ affirm_payments: nil,
817
+ afterpay_clearpay_payments: nil,
818
+ alma_payments: nil,
819
+ amazon_pay_payments: nil,
820
+ au_becs_debit_payments: nil,
821
+ bacs_debit_payments: nil,
822
+ bancontact_payments: nil,
823
+ bank_transfer_payments: nil,
824
+ billie_payments: nil,
825
+ blik_payments: nil,
826
+ boleto_payments: nil,
827
+ card_issuing: nil,
828
+ card_payments: nil,
829
+ cartes_bancaires_payments: nil,
830
+ cashapp_payments: nil,
831
+ eps_payments: nil,
832
+ fpx_payments: nil,
833
+ gb_bank_transfer_payments: nil,
834
+ giropay_payments: nil,
835
+ grabpay_payments: nil,
836
+ ideal_payments: nil,
837
+ india_international_payments: nil,
838
+ jcb_payments: nil,
839
+ jp_bank_transfer_payments: nil,
840
+ kakao_pay_payments: nil,
841
+ klarna_payments: nil,
842
+ konbini_payments: nil,
843
+ kr_card_payments: nil,
844
+ legacy_payments: nil,
845
+ link_payments: nil,
846
+ mobilepay_payments: nil,
847
+ multibanco_payments: nil,
848
+ mx_bank_transfer_payments: nil,
849
+ naver_pay_payments: nil,
850
+ nz_bank_account_becs_debit_payments: nil,
851
+ oxxo_payments: nil,
852
+ p24_payments: nil,
853
+ pay_by_bank_payments: nil,
854
+ payco_payments: nil,
855
+ paynow_payments: nil,
856
+ pix_payments: nil,
857
+ promptpay_payments: nil,
858
+ revolut_pay_payments: nil,
859
+ samsung_pay_payments: nil,
860
+ satispay_payments: nil,
861
+ sepa_bank_transfer_payments: nil,
862
+ sepa_debit_payments: nil,
863
+ sofort_payments: nil,
864
+ swish_payments: nil,
865
+ tax_reporting_us_1099_k: nil,
866
+ tax_reporting_us_1099_misc: nil,
867
+ transfers: nil,
868
+ treasury: nil,
869
+ twint_payments: nil,
870
+ us_bank_account_ach_payments: nil,
871
+ us_bank_transfer_payments: nil,
872
+ zip_payments: nil
873
+ )
874
+ @acss_debit_payments = acss_debit_payments
875
+ @affirm_payments = affirm_payments
876
+ @afterpay_clearpay_payments = afterpay_clearpay_payments
877
+ @alma_payments = alma_payments
878
+ @amazon_pay_payments = amazon_pay_payments
879
+ @au_becs_debit_payments = au_becs_debit_payments
880
+ @bacs_debit_payments = bacs_debit_payments
881
+ @bancontact_payments = bancontact_payments
882
+ @bank_transfer_payments = bank_transfer_payments
883
+ @billie_payments = billie_payments
884
+ @blik_payments = blik_payments
885
+ @boleto_payments = boleto_payments
886
+ @card_issuing = card_issuing
887
+ @card_payments = card_payments
888
+ @cartes_bancaires_payments = cartes_bancaires_payments
889
+ @cashapp_payments = cashapp_payments
890
+ @eps_payments = eps_payments
891
+ @fpx_payments = fpx_payments
892
+ @gb_bank_transfer_payments = gb_bank_transfer_payments
893
+ @giropay_payments = giropay_payments
894
+ @grabpay_payments = grabpay_payments
895
+ @ideal_payments = ideal_payments
896
+ @india_international_payments = india_international_payments
897
+ @jcb_payments = jcb_payments
898
+ @jp_bank_transfer_payments = jp_bank_transfer_payments
899
+ @kakao_pay_payments = kakao_pay_payments
900
+ @klarna_payments = klarna_payments
901
+ @konbini_payments = konbini_payments
902
+ @kr_card_payments = kr_card_payments
903
+ @legacy_payments = legacy_payments
904
+ @link_payments = link_payments
905
+ @mobilepay_payments = mobilepay_payments
906
+ @multibanco_payments = multibanco_payments
907
+ @mx_bank_transfer_payments = mx_bank_transfer_payments
908
+ @naver_pay_payments = naver_pay_payments
909
+ @nz_bank_account_becs_debit_payments = nz_bank_account_becs_debit_payments
910
+ @oxxo_payments = oxxo_payments
911
+ @p24_payments = p24_payments
912
+ @pay_by_bank_payments = pay_by_bank_payments
913
+ @payco_payments = payco_payments
914
+ @paynow_payments = paynow_payments
915
+ @pix_payments = pix_payments
916
+ @promptpay_payments = promptpay_payments
917
+ @revolut_pay_payments = revolut_pay_payments
918
+ @samsung_pay_payments = samsung_pay_payments
919
+ @satispay_payments = satispay_payments
920
+ @sepa_bank_transfer_payments = sepa_bank_transfer_payments
921
+ @sepa_debit_payments = sepa_debit_payments
922
+ @sofort_payments = sofort_payments
923
+ @swish_payments = swish_payments
924
+ @tax_reporting_us_1099_k = tax_reporting_us_1099_k
925
+ @tax_reporting_us_1099_misc = tax_reporting_us_1099_misc
926
+ @transfers = transfers
927
+ @treasury = treasury
928
+ @twint_payments = twint_payments
929
+ @us_bank_account_ach_payments = us_bank_account_ach_payments
930
+ @us_bank_transfer_payments = us_bank_transfer_payments
931
+ @zip_payments = zip_payments
932
+ end
933
+ end
934
+
935
+ class Card < Stripe::RequestParams
936
+ # Attribute for param field object
937
+ attr_accessor :object
938
+ # Attribute for param field address_city
939
+ attr_accessor :address_city
940
+ # Attribute for param field address_country
941
+ attr_accessor :address_country
942
+ # Attribute for param field address_line1
943
+ attr_accessor :address_line1
944
+ # Attribute for param field address_line2
945
+ attr_accessor :address_line2
946
+ # Attribute for param field address_state
947
+ attr_accessor :address_state
948
+ # Attribute for param field address_zip
949
+ attr_accessor :address_zip
950
+ # Attribute for param field currency
951
+ attr_accessor :currency
952
+ # Attribute for param field cvc
953
+ attr_accessor :cvc
954
+ # Attribute for param field exp_month
955
+ attr_accessor :exp_month
956
+ # Attribute for param field exp_year
957
+ attr_accessor :exp_year
958
+ # Attribute for param field name
959
+ attr_accessor :name
960
+ # Attribute for param field number
961
+ attr_accessor :number
962
+ # Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
963
+ attr_accessor :metadata
964
+ # Attribute for param field default_for_currency
965
+ attr_accessor :default_for_currency
966
+
967
+ def initialize(
968
+ object: nil,
969
+ address_city: nil,
970
+ address_country: nil,
971
+ address_line1: nil,
972
+ address_line2: nil,
973
+ address_state: nil,
974
+ address_zip: nil,
975
+ currency: nil,
976
+ cvc: nil,
977
+ exp_month: nil,
978
+ exp_year: nil,
979
+ name: nil,
980
+ number: nil,
981
+ metadata: nil,
982
+ default_for_currency: nil
983
+ )
984
+ @object = object
985
+ @address_city = address_city
986
+ @address_country = address_country
987
+ @address_line1 = address_line1
988
+ @address_line2 = address_line2
989
+ @address_state = address_state
990
+ @address_zip = address_zip
991
+ @currency = currency
992
+ @cvc = cvc
993
+ @exp_month = exp_month
994
+ @exp_year = exp_year
995
+ @name = name
996
+ @number = number
997
+ @metadata = metadata
998
+ @default_for_currency = default_for_currency
999
+ end
1000
+ end
1001
+
1002
+ class CardToken < Stripe::RequestParams
1003
+ # Attribute for param field object
1004
+ attr_accessor :object
1005
+ # Attribute for param field currency
1006
+ attr_accessor :currency
1007
+ # Attribute for param field token
1008
+ attr_accessor :token
1009
+
1010
+ def initialize(object: nil, currency: nil, token: nil)
1011
+ @object = object
1012
+ @currency = currency
1013
+ @token = token
1014
+ end
1015
+ end
1016
+
1017
+ class Company < Stripe::RequestParams
1018
+ class Address < Stripe::RequestParams
1019
+ # City, district, suburb, town, or village.
1020
+ attr_accessor :city
1021
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1022
+ attr_accessor :country
1023
+ # Address line 1 (e.g., street, PO Box, or company name).
1024
+ attr_accessor :line1
1025
+ # Address line 2 (e.g., apartment, suite, unit, or building).
1026
+ attr_accessor :line2
1027
+ # ZIP or postal code.
1028
+ attr_accessor :postal_code
1029
+ # State, county, province, or region.
1030
+ attr_accessor :state
1031
+
1032
+ def initialize(
1033
+ city: nil,
1034
+ country: nil,
1035
+ line1: nil,
1036
+ line2: nil,
1037
+ postal_code: nil,
1038
+ state: nil
1039
+ )
1040
+ @city = city
1041
+ @country = country
1042
+ @line1 = line1
1043
+ @line2 = line2
1044
+ @postal_code = postal_code
1045
+ @state = state
1046
+ end
1047
+ end
1048
+
1049
+ class AddressKana < Stripe::RequestParams
1050
+ # City or ward.
1051
+ attr_accessor :city
1052
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1053
+ attr_accessor :country
1054
+ # Block or building number.
1055
+ attr_accessor :line1
1056
+ # Building details.
1057
+ attr_accessor :line2
1058
+ # Postal code.
1059
+ attr_accessor :postal_code
1060
+ # Prefecture.
1061
+ attr_accessor :state
1062
+ # Town or cho-me.
1063
+ attr_accessor :town
1064
+
1065
+ def initialize(
1066
+ city: nil,
1067
+ country: nil,
1068
+ line1: nil,
1069
+ line2: nil,
1070
+ postal_code: nil,
1071
+ state: nil,
1072
+ town: nil
1073
+ )
1074
+ @city = city
1075
+ @country = country
1076
+ @line1 = line1
1077
+ @line2 = line2
1078
+ @postal_code = postal_code
1079
+ @state = state
1080
+ @town = town
1081
+ end
1082
+ end
1083
+
1084
+ class AddressKanji < Stripe::RequestParams
1085
+ # City or ward.
1086
+ attr_accessor :city
1087
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1088
+ attr_accessor :country
1089
+ # Block or building number.
1090
+ attr_accessor :line1
1091
+ # Building details.
1092
+ attr_accessor :line2
1093
+ # Postal code.
1094
+ attr_accessor :postal_code
1095
+ # Prefecture.
1096
+ attr_accessor :state
1097
+ # Town or cho-me.
1098
+ attr_accessor :town
1099
+
1100
+ def initialize(
1101
+ city: nil,
1102
+ country: nil,
1103
+ line1: nil,
1104
+ line2: nil,
1105
+ postal_code: nil,
1106
+ state: nil,
1107
+ town: nil
1108
+ )
1109
+ @city = city
1110
+ @country = country
1111
+ @line1 = line1
1112
+ @line2 = line2
1113
+ @postal_code = postal_code
1114
+ @state = state
1115
+ @town = town
1116
+ end
1117
+ end
1118
+
1119
+ class DirectorshipDeclaration < Stripe::RequestParams
1120
+ # The Unix timestamp marking when the directorship declaration attestation was made.
1121
+ attr_accessor :date
1122
+ # The IP address from which the directorship declaration attestation was made.
1123
+ attr_accessor :ip
1124
+ # The user agent of the browser from which the directorship declaration attestation was made.
1125
+ attr_accessor :user_agent
1126
+
1127
+ def initialize(date: nil, ip: nil, user_agent: nil)
1128
+ @date = date
1129
+ @ip = ip
1130
+ @user_agent = user_agent
1131
+ end
1132
+ end
1133
+
1134
+ class OwnershipDeclaration < Stripe::RequestParams
1135
+ # The Unix timestamp marking when the beneficial owner attestation was made.
1136
+ attr_accessor :date
1137
+ # The IP address from which the beneficial owner attestation was made.
1138
+ attr_accessor :ip
1139
+ # The user agent of the browser from which the beneficial owner attestation was made.
1140
+ attr_accessor :user_agent
1141
+
1142
+ def initialize(date: nil, ip: nil, user_agent: nil)
1143
+ @date = date
1144
+ @ip = ip
1145
+ @user_agent = user_agent
1146
+ end
1147
+ end
1148
+
1149
+ class RegistrationDate < Stripe::RequestParams
1150
+ # The day of registration, between 1 and 31.
1151
+ attr_accessor :day
1152
+ # The month of registration, between 1 and 12.
1153
+ attr_accessor :month
1154
+ # The four-digit year of registration.
1155
+ attr_accessor :year
1156
+
1157
+ def initialize(day: nil, month: nil, year: nil)
1158
+ @day = day
1159
+ @month = month
1160
+ @year = year
1161
+ end
1162
+ end
1163
+
1164
+ class Verification < Stripe::RequestParams
1165
+ class Document < Stripe::RequestParams
1166
+ # 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.
1167
+ attr_accessor :back
1168
+ # The front 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.
1169
+ attr_accessor :front
1170
+
1171
+ def initialize(back: nil, front: nil)
1172
+ @back = back
1173
+ @front = front
1174
+ end
1175
+ end
1176
+ # A document verifying the business.
1177
+ attr_accessor :document
1178
+
1179
+ def initialize(document: nil)
1180
+ @document = document
1181
+ end
1182
+ end
1183
+ # The company's primary address.
1184
+ attr_accessor :address
1185
+ # The Kana variation of the company's primary address (Japan only).
1186
+ attr_accessor :address_kana
1187
+ # The Kanji variation of the company's primary address (Japan only).
1188
+ attr_accessor :address_kanji
1189
+ # Whether the company's directors have been provided. Set this Boolean to `true` after creating all the company's directors with [the Persons API](/api/persons) for accounts with a `relationship.director` requirement. This value is not automatically set to `true` after creating directors, so it needs to be updated to indicate all directors have been provided.
1190
+ attr_accessor :directors_provided
1191
+ # This hash is used to attest that the directors information provided to Stripe is both current and correct.
1192
+ attr_accessor :directorship_declaration
1193
+ # Whether the company's executives have been provided. Set this Boolean to `true` after creating all the company's executives with [the Persons API](/api/persons) for accounts with a `relationship.executive` requirement.
1194
+ attr_accessor :executives_provided
1195
+ # The export license ID number of the company, also referred as Import Export Code (India only).
1196
+ attr_accessor :export_license_id
1197
+ # The purpose code to use for export transactions (India only).
1198
+ attr_accessor :export_purpose_code
1199
+ # The company's legal name.
1200
+ attr_accessor :name
1201
+ # The Kana variation of the company's legal name (Japan only).
1202
+ attr_accessor :name_kana
1203
+ # The Kanji variation of the company's legal name (Japan only).
1204
+ attr_accessor :name_kanji
1205
+ # Whether the company's owners have been provided. Set this Boolean to `true` after creating all the company's owners with [the Persons API](/api/persons) for accounts with a `relationship.owner` requirement.
1206
+ attr_accessor :owners_provided
1207
+ # This hash is used to attest that the beneficial owner information provided to Stripe is both current and correct.
1208
+ attr_accessor :ownership_declaration
1209
+ # This value is used to determine if a business is exempt from providing ultimate beneficial owners. See [this support article](https://support.stripe.com/questions/exemption-from-providing-ownership-details) and [changelog](https://docs.stripe.com/changelog/acacia/2025-01-27/ownership-exemption-reason-accounts-api) for more details.
1210
+ attr_accessor :ownership_exemption_reason
1211
+ # The company's phone number (used for verification).
1212
+ attr_accessor :phone
1213
+ # Attribute for param field registration_date
1214
+ attr_accessor :registration_date
1215
+ # 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).
1216
+ attr_accessor :registration_number
1217
+ # 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.
1218
+ attr_accessor :structure
1219
+ # The business ID number of the company, as appropriate for the company’s country. (Examples are an Employer ID Number in the U.S., a Business Number in Canada, or a Company Number in the UK.)
1220
+ attr_accessor :tax_id
1221
+ # The jurisdiction in which the `tax_id` is registered (Germany-based companies only).
1222
+ attr_accessor :tax_id_registrar
1223
+ # The VAT number of the company.
1224
+ attr_accessor :vat_id
1225
+ # Information on the verification state of the company.
1226
+ attr_accessor :verification
1227
+
1228
+ def initialize(
1229
+ address: nil,
1230
+ address_kana: nil,
1231
+ address_kanji: nil,
1232
+ directors_provided: nil,
1233
+ directorship_declaration: nil,
1234
+ executives_provided: nil,
1235
+ export_license_id: nil,
1236
+ export_purpose_code: nil,
1237
+ name: nil,
1238
+ name_kana: nil,
1239
+ name_kanji: nil,
1240
+ owners_provided: nil,
1241
+ ownership_declaration: nil,
1242
+ ownership_exemption_reason: nil,
1243
+ phone: nil,
1244
+ registration_date: nil,
1245
+ registration_number: nil,
1246
+ structure: nil,
1247
+ tax_id: nil,
1248
+ tax_id_registrar: nil,
1249
+ vat_id: nil,
1250
+ verification: nil
1251
+ )
1252
+ @address = address
1253
+ @address_kana = address_kana
1254
+ @address_kanji = address_kanji
1255
+ @directors_provided = directors_provided
1256
+ @directorship_declaration = directorship_declaration
1257
+ @executives_provided = executives_provided
1258
+ @export_license_id = export_license_id
1259
+ @export_purpose_code = export_purpose_code
1260
+ @name = name
1261
+ @name_kana = name_kana
1262
+ @name_kanji = name_kanji
1263
+ @owners_provided = owners_provided
1264
+ @ownership_declaration = ownership_declaration
1265
+ @ownership_exemption_reason = ownership_exemption_reason
1266
+ @phone = phone
1267
+ @registration_date = registration_date
1268
+ @registration_number = registration_number
1269
+ @structure = structure
1270
+ @tax_id = tax_id
1271
+ @tax_id_registrar = tax_id_registrar
1272
+ @vat_id = vat_id
1273
+ @verification = verification
1274
+ end
1275
+ end
1276
+
1277
+ class Documents < Stripe::RequestParams
1278
+ class BankAccountOwnershipVerification < Stripe::RequestParams
1279
+ # One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`.
1280
+ attr_accessor :files
1281
+
1282
+ def initialize(files: nil)
1283
+ @files = files
1284
+ end
1285
+ end
1286
+
1287
+ class CompanyLicense < Stripe::RequestParams
1288
+ # One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`.
1289
+ attr_accessor :files
1290
+
1291
+ def initialize(files: nil)
1292
+ @files = files
1293
+ end
1294
+ end
1295
+
1296
+ class CompanyMemorandumOfAssociation < Stripe::RequestParams
1297
+ # One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`.
1298
+ attr_accessor :files
1299
+
1300
+ def initialize(files: nil)
1301
+ @files = files
1302
+ end
1303
+ end
1304
+
1305
+ class CompanyMinisterialDecree < Stripe::RequestParams
1306
+ # One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`.
1307
+ attr_accessor :files
1308
+
1309
+ def initialize(files: nil)
1310
+ @files = files
1311
+ end
1312
+ end
1313
+
1314
+ class CompanyRegistrationVerification < Stripe::RequestParams
1315
+ # One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`.
1316
+ attr_accessor :files
1317
+
1318
+ def initialize(files: nil)
1319
+ @files = files
1320
+ end
1321
+ end
1322
+
1323
+ class CompanyTaxIdVerification < Stripe::RequestParams
1324
+ # One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`.
1325
+ attr_accessor :files
1326
+
1327
+ def initialize(files: nil)
1328
+ @files = files
1329
+ end
1330
+ end
1331
+
1332
+ class ProofOfRegistration < Stripe::RequestParams
1333
+ # One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`.
1334
+ attr_accessor :files
1335
+
1336
+ def initialize(files: nil)
1337
+ @files = files
1338
+ end
1339
+ end
1340
+
1341
+ class ProofOfUltimateBeneficialOwnership < Stripe::RequestParams
1342
+ # One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`.
1343
+ attr_accessor :files
1344
+
1345
+ def initialize(files: nil)
1346
+ @files = files
1347
+ end
1348
+ end
1349
+ # One or more documents that support the [Bank account ownership verification](https://support.stripe.com/questions/bank-account-ownership-verification) requirement. Must be a document associated with the account’s primary active bank account that displays the last 4 digits of the account number, either a statement or a check.
1350
+ attr_accessor :bank_account_ownership_verification
1351
+ # One or more documents that demonstrate proof of a company's license to operate.
1352
+ attr_accessor :company_license
1353
+ # One or more documents showing the company's Memorandum of Association.
1354
+ attr_accessor :company_memorandum_of_association
1355
+ # (Certain countries only) One or more documents showing the ministerial decree legalizing the company's establishment.
1356
+ attr_accessor :company_ministerial_decree
1357
+ # One or more documents that demonstrate proof of a company's registration with the appropriate local authorities.
1358
+ attr_accessor :company_registration_verification
1359
+ # One or more documents that demonstrate proof of a company's tax ID.
1360
+ attr_accessor :company_tax_id_verification
1361
+ # One or more documents showing the company’s proof of registration with the national business registry.
1362
+ attr_accessor :proof_of_registration
1363
+ # One or more documents that demonstrate proof of ultimate beneficial ownership.
1364
+ attr_accessor :proof_of_ultimate_beneficial_ownership
1365
+
1366
+ def initialize(
1367
+ bank_account_ownership_verification: nil,
1368
+ company_license: nil,
1369
+ company_memorandum_of_association: nil,
1370
+ company_ministerial_decree: nil,
1371
+ company_registration_verification: nil,
1372
+ company_tax_id_verification: nil,
1373
+ proof_of_registration: nil,
1374
+ proof_of_ultimate_beneficial_ownership: nil
1375
+ )
1376
+ @bank_account_ownership_verification = bank_account_ownership_verification
1377
+ @company_license = company_license
1378
+ @company_memorandum_of_association = company_memorandum_of_association
1379
+ @company_ministerial_decree = company_ministerial_decree
1380
+ @company_registration_verification = company_registration_verification
1381
+ @company_tax_id_verification = company_tax_id_verification
1382
+ @proof_of_registration = proof_of_registration
1383
+ @proof_of_ultimate_beneficial_ownership = proof_of_ultimate_beneficial_ownership
1384
+ end
1385
+ end
1386
+
1387
+ class Groups < Stripe::RequestParams
1388
+ # The group the account is in to determine their payments pricing, and null if the account is on customized pricing. [See the Platform pricing tool documentation](https://stripe.com/docs/connect/platform-pricing-tools) for details.
1389
+ attr_accessor :payments_pricing
1390
+
1391
+ def initialize(payments_pricing: nil)
1392
+ @payments_pricing = payments_pricing
1393
+ end
1394
+ end
1395
+
1396
+ class Individual < Stripe::RequestParams
1397
+ class Address < Stripe::RequestParams
1398
+ # City, district, suburb, town, or village.
1399
+ attr_accessor :city
1400
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1401
+ attr_accessor :country
1402
+ # Address line 1 (e.g., street, PO Box, or company name).
1403
+ attr_accessor :line1
1404
+ # Address line 2 (e.g., apartment, suite, unit, or building).
1405
+ attr_accessor :line2
1406
+ # ZIP or postal code.
1407
+ attr_accessor :postal_code
1408
+ # State, county, province, or region.
1409
+ attr_accessor :state
1410
+
1411
+ def initialize(
1412
+ city: nil,
1413
+ country: nil,
1414
+ line1: nil,
1415
+ line2: nil,
1416
+ postal_code: nil,
1417
+ state: nil
1418
+ )
1419
+ @city = city
1420
+ @country = country
1421
+ @line1 = line1
1422
+ @line2 = line2
1423
+ @postal_code = postal_code
1424
+ @state = state
1425
+ end
1426
+ end
1427
+
1428
+ class AddressKana < Stripe::RequestParams
1429
+ # City or ward.
1430
+ attr_accessor :city
1431
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1432
+ attr_accessor :country
1433
+ # Block or building number.
1434
+ attr_accessor :line1
1435
+ # Building details.
1436
+ attr_accessor :line2
1437
+ # Postal code.
1438
+ attr_accessor :postal_code
1439
+ # Prefecture.
1440
+ attr_accessor :state
1441
+ # Town or cho-me.
1442
+ attr_accessor :town
1443
+
1444
+ def initialize(
1445
+ city: nil,
1446
+ country: nil,
1447
+ line1: nil,
1448
+ line2: nil,
1449
+ postal_code: nil,
1450
+ state: nil,
1451
+ town: nil
1452
+ )
1453
+ @city = city
1454
+ @country = country
1455
+ @line1 = line1
1456
+ @line2 = line2
1457
+ @postal_code = postal_code
1458
+ @state = state
1459
+ @town = town
1460
+ end
1461
+ end
1462
+
1463
+ class AddressKanji < Stripe::RequestParams
1464
+ # City or ward.
1465
+ attr_accessor :city
1466
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1467
+ attr_accessor :country
1468
+ # Block or building number.
1469
+ attr_accessor :line1
1470
+ # Building details.
1471
+ attr_accessor :line2
1472
+ # Postal code.
1473
+ attr_accessor :postal_code
1474
+ # Prefecture.
1475
+ attr_accessor :state
1476
+ # Town or cho-me.
1477
+ attr_accessor :town
1478
+
1479
+ def initialize(
1480
+ city: nil,
1481
+ country: nil,
1482
+ line1: nil,
1483
+ line2: nil,
1484
+ postal_code: nil,
1485
+ state: nil,
1486
+ town: nil
1487
+ )
1488
+ @city = city
1489
+ @country = country
1490
+ @line1 = line1
1491
+ @line2 = line2
1492
+ @postal_code = postal_code
1493
+ @state = state
1494
+ @town = town
1495
+ end
1496
+ end
1497
+
1498
+ class Dob < Stripe::RequestParams
1499
+ # The day of birth, between 1 and 31.
1500
+ attr_accessor :day
1501
+ # The month of birth, between 1 and 12.
1502
+ attr_accessor :month
1503
+ # The four-digit year of birth.
1504
+ attr_accessor :year
1505
+
1506
+ def initialize(day: nil, month: nil, year: nil)
1507
+ @day = day
1508
+ @month = month
1509
+ @year = year
1510
+ end
1511
+ end
1512
+
1513
+ class RegisteredAddress < Stripe::RequestParams
1514
+ # City, district, suburb, town, or village.
1515
+ attr_accessor :city
1516
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1517
+ attr_accessor :country
1518
+ # Address line 1 (e.g., street, PO Box, or company name).
1519
+ attr_accessor :line1
1520
+ # Address line 2 (e.g., apartment, suite, unit, or building).
1521
+ attr_accessor :line2
1522
+ # ZIP or postal code.
1523
+ attr_accessor :postal_code
1524
+ # State, county, province, or region.
1525
+ attr_accessor :state
1526
+
1527
+ def initialize(
1528
+ city: nil,
1529
+ country: nil,
1530
+ line1: nil,
1531
+ line2: nil,
1532
+ postal_code: nil,
1533
+ state: nil
1534
+ )
1535
+ @city = city
1536
+ @country = country
1537
+ @line1 = line1
1538
+ @line2 = line2
1539
+ @postal_code = postal_code
1540
+ @state = state
1541
+ end
1542
+ end
1543
+
1544
+ class Relationship < Stripe::RequestParams
1545
+ # Whether the person is a director of the account's legal entity. Directors are typically members of the governing board of the company, or responsible for ensuring the company meets its regulatory obligations.
1546
+ attr_accessor :director
1547
+ # Whether the person has significant responsibility to control, manage, or direct the organization.
1548
+ attr_accessor :executive
1549
+ # Whether the person is an owner of the account’s legal entity.
1550
+ attr_accessor :owner
1551
+ # The percent owned by the person of the account's legal entity.
1552
+ attr_accessor :percent_ownership
1553
+ # The person's title (e.g., CEO, Support Engineer).
1554
+ attr_accessor :title
1555
+
1556
+ def initialize(
1557
+ director: nil,
1558
+ executive: nil,
1559
+ owner: nil,
1560
+ percent_ownership: nil,
1561
+ title: nil
1562
+ )
1563
+ @director = director
1564
+ @executive = executive
1565
+ @owner = owner
1566
+ @percent_ownership = percent_ownership
1567
+ @title = title
1568
+ end
1569
+ end
1570
+
1571
+ class Verification < Stripe::RequestParams
1572
+ class AdditionalDocument < Stripe::RequestParams
1573
+ # The back of an ID returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `identity_document`. 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.
1574
+ attr_accessor :back
1575
+ # The front of an ID returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `identity_document`. 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.
1576
+ attr_accessor :front
1577
+
1578
+ def initialize(back: nil, front: nil)
1579
+ @back = back
1580
+ @front = front
1581
+ end
1582
+ end
1583
+
1584
+ class Document < Stripe::RequestParams
1585
+ # The back of an ID returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `identity_document`. 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.
1586
+ attr_accessor :back
1587
+ # The front of an ID returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `identity_document`. 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.
1588
+ attr_accessor :front
1589
+
1590
+ def initialize(back: nil, front: nil)
1591
+ @back = back
1592
+ @front = front
1593
+ end
1594
+ end
1595
+ # A document showing address, either a passport, local ID card, or utility bill from a well-known utility company.
1596
+ attr_accessor :additional_document
1597
+ # An identifying document, either a passport or local ID card.
1598
+ attr_accessor :document
1599
+
1600
+ def initialize(additional_document: nil, document: nil)
1601
+ @additional_document = additional_document
1602
+ @document = document
1603
+ end
1604
+ end
1605
+ # The individual's primary address.
1606
+ attr_accessor :address
1607
+ # The Kana variation of the individual's primary address (Japan only).
1608
+ attr_accessor :address_kana
1609
+ # The Kanji variation of the individual's primary address (Japan only).
1610
+ attr_accessor :address_kanji
1611
+ # The individual's date of birth.
1612
+ attr_accessor :dob
1613
+ # The individual's email address.
1614
+ attr_accessor :email
1615
+ # The individual's first name.
1616
+ attr_accessor :first_name
1617
+ # The Kana variation of the individual's first name (Japan only).
1618
+ attr_accessor :first_name_kana
1619
+ # The Kanji variation of the individual's first name (Japan only).
1620
+ attr_accessor :first_name_kanji
1621
+ # A list of alternate names or aliases that the individual is known by.
1622
+ attr_accessor :full_name_aliases
1623
+ # The individual's gender
1624
+ attr_accessor :gender
1625
+ # The government-issued ID number of the individual, as appropriate for the representative's country. (Examples are a Social Security Number in the U.S., or a Social Insurance Number in Canada). Instead of the number itself, you can also provide a [PII token created with Stripe.js](/js/tokens/create_token?type=pii).
1626
+ attr_accessor :id_number
1627
+ # The government-issued secondary ID number of the individual, as appropriate for the representative's country, will be used for enhanced verification checks. In Thailand, this would be the laser code found on the back of an ID card. Instead of the number itself, you can also provide a [PII token created with Stripe.js](/js/tokens/create_token?type=pii).
1628
+ attr_accessor :id_number_secondary
1629
+ # The individual's last name.
1630
+ attr_accessor :last_name
1631
+ # The Kana variation of the individual's last name (Japan only).
1632
+ attr_accessor :last_name_kana
1633
+ # The Kanji variation of the individual's last name (Japan only).
1634
+ attr_accessor :last_name_kanji
1635
+ # The individual's maiden name.
1636
+ attr_accessor :maiden_name
1637
+ # Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
1638
+ attr_accessor :metadata
1639
+ # The individual's phone number.
1640
+ attr_accessor :phone
1641
+ # Indicates if the person or any of their representatives, family members, or other closely related persons, declares that they hold or have held an important public job or function, in any jurisdiction.
1642
+ attr_accessor :political_exposure
1643
+ # The individual's registered address.
1644
+ attr_accessor :registered_address
1645
+ # Describes the person’s relationship to the account.
1646
+ attr_accessor :relationship
1647
+ # The last four digits of the individual's Social Security Number (U.S. only).
1648
+ attr_accessor :ssn_last_4
1649
+ # The individual's verification document information.
1650
+ attr_accessor :verification
1651
+
1652
+ def initialize(
1653
+ address: nil,
1654
+ address_kana: nil,
1655
+ address_kanji: nil,
1656
+ dob: nil,
1657
+ email: nil,
1658
+ first_name: nil,
1659
+ first_name_kana: nil,
1660
+ first_name_kanji: nil,
1661
+ full_name_aliases: nil,
1662
+ gender: nil,
1663
+ id_number: nil,
1664
+ id_number_secondary: nil,
1665
+ last_name: nil,
1666
+ last_name_kana: nil,
1667
+ last_name_kanji: nil,
1668
+ maiden_name: nil,
1669
+ metadata: nil,
1670
+ phone: nil,
1671
+ political_exposure: nil,
1672
+ registered_address: nil,
1673
+ relationship: nil,
1674
+ ssn_last_4: nil,
1675
+ verification: nil
1676
+ )
1677
+ @address = address
1678
+ @address_kana = address_kana
1679
+ @address_kanji = address_kanji
1680
+ @dob = dob
1681
+ @email = email
1682
+ @first_name = first_name
1683
+ @first_name_kana = first_name_kana
1684
+ @first_name_kanji = first_name_kanji
1685
+ @full_name_aliases = full_name_aliases
1686
+ @gender = gender
1687
+ @id_number = id_number
1688
+ @id_number_secondary = id_number_secondary
1689
+ @last_name = last_name
1690
+ @last_name_kana = last_name_kana
1691
+ @last_name_kanji = last_name_kanji
1692
+ @maiden_name = maiden_name
1693
+ @metadata = metadata
1694
+ @phone = phone
1695
+ @political_exposure = political_exposure
1696
+ @registered_address = registered_address
1697
+ @relationship = relationship
1698
+ @ssn_last_4 = ssn_last_4
1699
+ @verification = verification
1700
+ end
1701
+ end
1702
+
1703
+ class Settings < Stripe::RequestParams
1704
+ class BacsDebitPayments < Stripe::RequestParams
1705
+ # The Bacs Direct Debit Display Name for this account. For payments made with Bacs Direct Debit, this name appears on the mandate as the statement descriptor. Mobile banking apps display it as the name of the business. To use custom branding, set the Bacs Direct Debit Display Name during or right after creation. Custom branding incurs an additional monthly fee for the platform. If you don't set the display name before requesting Bacs capability, it's automatically set as "Stripe" and the account is onboarded to Stripe branding, which is free.
1706
+ attr_accessor :display_name
1707
+
1708
+ def initialize(display_name: nil)
1709
+ @display_name = display_name
1710
+ end
1711
+ end
1712
+
1713
+ class Branding < Stripe::RequestParams
1714
+ # (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) An icon for the account. Must be square and at least 128px x 128px.
1715
+ attr_accessor :icon
1716
+ # (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) A logo for the account that will be used in Checkout instead of the icon and without the account's name next to it if provided. Must be at least 128px x 128px.
1717
+ attr_accessor :logo
1718
+ # A CSS hex color value representing the primary branding color for this account.
1719
+ attr_accessor :primary_color
1720
+ # A CSS hex color value representing the secondary branding color for this account.
1721
+ attr_accessor :secondary_color
1722
+
1723
+ def initialize(icon: nil, logo: nil, primary_color: nil, secondary_color: nil)
1724
+ @icon = icon
1725
+ @logo = logo
1726
+ @primary_color = primary_color
1727
+ @secondary_color = secondary_color
1728
+ end
1729
+ end
1730
+
1731
+ class CardIssuing < Stripe::RequestParams
1732
+ class TosAcceptance < Stripe::RequestParams
1733
+ # The Unix timestamp marking when the account representative accepted the service agreement.
1734
+ attr_accessor :date
1735
+ # The IP address from which the account representative accepted the service agreement.
1736
+ attr_accessor :ip
1737
+ # The user agent of the browser from which the account representative accepted the service agreement.
1738
+ attr_accessor :user_agent
1739
+
1740
+ def initialize(date: nil, ip: nil, user_agent: nil)
1741
+ @date = date
1742
+ @ip = ip
1743
+ @user_agent = user_agent
1744
+ end
1745
+ end
1746
+ # Details on the account's acceptance of the [Stripe Issuing Terms and Disclosures](/issuing/connect/tos_acceptance).
1747
+ attr_accessor :tos_acceptance
1748
+
1749
+ def initialize(tos_acceptance: nil)
1750
+ @tos_acceptance = tos_acceptance
1751
+ end
1752
+ end
1753
+
1754
+ class CardPayments < Stripe::RequestParams
1755
+ class DeclineOn < Stripe::RequestParams
1756
+ # Whether Stripe automatically declines charges with an incorrect ZIP or postal code. This setting only applies when a ZIP or postal code is provided and they fail bank verification.
1757
+ attr_accessor :avs_failure
1758
+ # Whether Stripe automatically declines charges with an incorrect CVC. This setting only applies when a CVC is provided and it fails bank verification.
1759
+ attr_accessor :cvc_failure
1760
+
1761
+ def initialize(avs_failure: nil, cvc_failure: nil)
1762
+ @avs_failure = avs_failure
1763
+ @cvc_failure = cvc_failure
1764
+ end
1765
+ end
1766
+ # Automatically declines certain charge types regardless of whether the card issuer accepted or declined the charge.
1767
+ attr_accessor :decline_on
1768
+ # The default text that appears on credit card statements when a charge is made. This field prefixes any dynamic `statement_descriptor` specified on the charge. `statement_descriptor_prefix` is useful for maximizing descriptor space for the dynamic portion.
1769
+ attr_accessor :statement_descriptor_prefix
1770
+ # The Kana variation of the default text that appears on credit card statements when a charge is made (Japan only). This field prefixes any dynamic `statement_descriptor_suffix_kana` specified on the charge. `statement_descriptor_prefix_kana` is useful for maximizing descriptor space for the dynamic portion.
1771
+ attr_accessor :statement_descriptor_prefix_kana
1772
+ # The Kanji variation of the default text that appears on credit card statements when a charge is made (Japan only). This field prefixes any dynamic `statement_descriptor_suffix_kanji` specified on the charge. `statement_descriptor_prefix_kanji` is useful for maximizing descriptor space for the dynamic portion.
1773
+ attr_accessor :statement_descriptor_prefix_kanji
1774
+
1775
+ def initialize(
1776
+ decline_on: nil,
1777
+ statement_descriptor_prefix: nil,
1778
+ statement_descriptor_prefix_kana: nil,
1779
+ statement_descriptor_prefix_kanji: nil
1780
+ )
1781
+ @decline_on = decline_on
1782
+ @statement_descriptor_prefix = statement_descriptor_prefix
1783
+ @statement_descriptor_prefix_kana = statement_descriptor_prefix_kana
1784
+ @statement_descriptor_prefix_kanji = statement_descriptor_prefix_kanji
1785
+ end
1786
+ end
1787
+
1788
+ class Invoices < Stripe::RequestParams
1789
+ # The list of default Account Tax IDs to automatically include on invoices. Account Tax IDs get added when an invoice is finalized.
1790
+ attr_accessor :default_account_tax_ids
1791
+ # Whether payment methods should be saved when a payment is completed for a one-time invoices on a hosted invoice page.
1792
+ attr_accessor :hosted_payment_method_save
1793
+
1794
+ def initialize(default_account_tax_ids: nil, hosted_payment_method_save: nil)
1795
+ @default_account_tax_ids = default_account_tax_ids
1796
+ @hosted_payment_method_save = hosted_payment_method_save
1797
+ end
1798
+ end
1799
+
1800
+ class Payments < Stripe::RequestParams
1801
+ # The default text that appears on statements for non-card charges outside of Japan. For card charges, if you don't set a `statement_descriptor_prefix`, this text is also used as the statement descriptor prefix. In that case, if concatenating the statement descriptor suffix causes the combined statement descriptor to exceed 22 characters, we truncate the `statement_descriptor` text to limit the full descriptor to 22 characters. For more information about statement descriptors and their requirements, see the [account settings documentation](https://docs.stripe.com/get-started/account/statement-descriptors).
1802
+ attr_accessor :statement_descriptor
1803
+ # The Kana variation of `statement_descriptor` used for charges in Japan. Japanese statement descriptors have [special requirements](https://docs.stripe.com/get-started/account/statement-descriptors#set-japanese-statement-descriptors).
1804
+ attr_accessor :statement_descriptor_kana
1805
+ # The Kanji variation of `statement_descriptor` used for charges in Japan. Japanese statement descriptors have [special requirements](https://docs.stripe.com/get-started/account/statement-descriptors#set-japanese-statement-descriptors).
1806
+ attr_accessor :statement_descriptor_kanji
1807
+
1808
+ def initialize(
1809
+ statement_descriptor: nil,
1810
+ statement_descriptor_kana: nil,
1811
+ statement_descriptor_kanji: nil
1812
+ )
1813
+ @statement_descriptor = statement_descriptor
1814
+ @statement_descriptor_kana = statement_descriptor_kana
1815
+ @statement_descriptor_kanji = statement_descriptor_kanji
1816
+ end
1817
+ end
1818
+
1819
+ class Payouts < Stripe::RequestParams
1820
+ class Schedule < Stripe::RequestParams
1821
+ # The number of days charge funds are held before being paid out. May also be set to `minimum`, representing the lowest available value for the account country. Default is `minimum`. The `delay_days` parameter remains at the last configured value if `interval` is `manual`. [Learn more about controlling payout delay days](/connect/manage-payout-schedule).
1822
+ attr_accessor :delay_days
1823
+ # How frequently available funds are paid out. One of: `daily`, `manual`, `weekly`, or `monthly`. Default is `daily`.
1824
+ attr_accessor :interval
1825
+ # 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`.
1826
+ attr_accessor :monthly_anchor
1827
+ # The day of the week when available funds are paid out, specified as `monday`, `tuesday`, etc. (required and applicable only if `interval` is `weekly`.)
1828
+ attr_accessor :weekly_anchor
1829
+
1830
+ def initialize(delay_days: nil, interval: nil, monthly_anchor: nil, weekly_anchor: nil)
1831
+ @delay_days = delay_days
1832
+ @interval = interval
1833
+ @monthly_anchor = monthly_anchor
1834
+ @weekly_anchor = weekly_anchor
1835
+ end
1836
+ end
1837
+ # 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).
1838
+ attr_accessor :debit_negative_balances
1839
+ # Details on when funds from charges are available, and when they are paid out to an external account. For details, see our [Setting Bank and Debit Card Payouts](/connect/bank-transfers#payout-information) documentation.
1840
+ attr_accessor :schedule
1841
+ # The text that appears on the bank account statement for payouts. If not set, this defaults to the platform's bank descriptor as set in the Dashboard.
1842
+ attr_accessor :statement_descriptor
1843
+
1844
+ def initialize(debit_negative_balances: nil, schedule: nil, statement_descriptor: nil)
1845
+ @debit_negative_balances = debit_negative_balances
1846
+ @schedule = schedule
1847
+ @statement_descriptor = statement_descriptor
1848
+ end
1849
+ end
1850
+
1851
+ class Treasury < Stripe::RequestParams
1852
+ class TosAcceptance < Stripe::RequestParams
1853
+ # The Unix timestamp marking when the account representative accepted the service agreement.
1854
+ attr_accessor :date
1855
+ # The IP address from which the account representative accepted the service agreement.
1856
+ attr_accessor :ip
1857
+ # The user agent of the browser from which the account representative accepted the service agreement.
1858
+ attr_accessor :user_agent
1859
+
1860
+ def initialize(date: nil, ip: nil, user_agent: nil)
1861
+ @date = date
1862
+ @ip = ip
1863
+ @user_agent = user_agent
1864
+ end
1865
+ end
1866
+ # Details on the account's acceptance of the Stripe Treasury Services Agreement.
1867
+ attr_accessor :tos_acceptance
1868
+
1869
+ def initialize(tos_acceptance: nil)
1870
+ @tos_acceptance = tos_acceptance
1871
+ end
1872
+ end
1873
+ # Settings specific to Bacs Direct Debit payments.
1874
+ attr_accessor :bacs_debit_payments
1875
+ # Settings used to apply the account's branding to email receipts, invoices, Checkout, and other products.
1876
+ attr_accessor :branding
1877
+ # Settings specific to the account's use of the Card Issuing product.
1878
+ attr_accessor :card_issuing
1879
+ # Settings specific to card charging on the account.
1880
+ attr_accessor :card_payments
1881
+ # Settings specific to the account's use of Invoices.
1882
+ attr_accessor :invoices
1883
+ # Settings that apply across payment methods for charging on the account.
1884
+ attr_accessor :payments
1885
+ # Settings specific to the account's payouts.
1886
+ attr_accessor :payouts
1887
+ # Settings specific to the account's Treasury FinancialAccounts.
1888
+ attr_accessor :treasury
1889
+
1890
+ def initialize(
1891
+ bacs_debit_payments: nil,
1892
+ branding: nil,
1893
+ card_issuing: nil,
1894
+ card_payments: nil,
1895
+ invoices: nil,
1896
+ payments: nil,
1897
+ payouts: nil,
1898
+ treasury: nil
1899
+ )
1900
+ @bacs_debit_payments = bacs_debit_payments
1901
+ @branding = branding
1902
+ @card_issuing = card_issuing
1903
+ @card_payments = card_payments
1904
+ @invoices = invoices
1905
+ @payments = payments
1906
+ @payouts = payouts
1907
+ @treasury = treasury
1908
+ end
1909
+ end
1910
+
1911
+ class TosAcceptance < Stripe::RequestParams
1912
+ # The Unix timestamp marking when the account representative accepted their service agreement.
1913
+ attr_accessor :date
1914
+ # The IP address from which the account representative accepted their service agreement.
1915
+ attr_accessor :ip
1916
+ # The user's service agreement type.
1917
+ attr_accessor :service_agreement
1918
+ # The user agent of the browser from which the account representative accepted their service agreement.
1919
+ attr_accessor :user_agent
1920
+
1921
+ def initialize(date: nil, ip: nil, service_agreement: nil, user_agent: nil)
1922
+ @date = date
1923
+ @ip = ip
1924
+ @service_agreement = service_agreement
1925
+ @user_agent = user_agent
1926
+ end
1927
+ end
1928
+ # An [account token](https://stripe.com/docs/api#create_account_token), used to securely provide details to the account.
1929
+ attr_accessor :account_token
1930
+ # Business information about the account.
1931
+ attr_accessor :business_profile
1932
+ # The business type. Once you create an [Account Link](/api/account_links) or [Account Session](/api/account_sessions), this property can only be updated for accounts where [controller.requirement_collection](/api/accounts/object#account_object-controller-requirement_collection) is `application`, which includes Custom accounts.
1933
+ attr_accessor :business_type
1934
+ # Each key of the dictionary represents a capability, and each capability
1935
+ # maps to its settings (for example, whether it has been requested or not). Each
1936
+ # capability is inactive until you have provided its specific
1937
+ # requirements and Stripe has verified them. An account might have some
1938
+ # of its requested capabilities be active and some be inactive.
1939
+ #
1940
+ # Required when [account.controller.stripe_dashboard.type](/api/accounts/create#create_account-controller-dashboard-type)
1941
+ # is `none`, which includes Custom accounts.
1942
+ attr_accessor :capabilities
1943
+ # Information about the company or business. This field is available for any `business_type`. Once you create an [Account Link](/api/account_links) or [Account Session](/api/account_sessions), this property can only be updated for accounts where [controller.requirement_collection](/api/accounts/object#account_object-controller-requirement_collection) is `application`, which includes Custom accounts.
1944
+ attr_accessor :company
1945
+ # Three-letter ISO currency code representing the default currency for the account. This must be a currency that [Stripe supports in the account's country](https://docs.stripe.com/payouts).
1946
+ attr_accessor :default_currency
1947
+ # Documents that may be submitted to satisfy various informational requests.
1948
+ attr_accessor :documents
1949
+ # The email address of the account holder. This is only to make the account easier to identify to you. If [controller.requirement_collection](/api/accounts/object#account_object-controller-requirement_collection) is `application`, which includes Custom accounts, Stripe doesn't email the account without your consent.
1950
+ attr_accessor :email
1951
+ # Specifies which fields in the response should be expanded.
1952
+ attr_accessor :expand
1953
+ # A card or bank account to attach to the account for receiving [payouts](/connect/bank-debit-card-payouts) (you won’t be able to use it for top-ups). You can provide either a token, like the ones returned by [Stripe.js](/js), or a dictionary, as documented in the `external_account` parameter for [bank account](/api#account_create_bank_account) creation. <br><br>By default, providing an external account sets it as the new default external account for its currency, and deletes the old default if one exists. To add additional external accounts without replacing the existing default for the currency, use the [bank account](/api#account_create_bank_account) or [card creation](/api#account_create_card) APIs. After you create an [Account Link](/api/account_links) or [Account Session](/api/account_sessions), this property can only be updated for accounts where [controller.requirement_collection](/api/accounts/object#account_object-controller-requirement_collection) is `application`, which includes Custom accounts.
1954
+ attr_accessor :external_account
1955
+ # A hash of account group type to tokens. These are account groups this account should be added to.
1956
+ attr_accessor :groups
1957
+ # Information about the person represented by the account. This field is null unless `business_type` is set to `individual`. Once you create an [Account Link](/api/account_links) or [Account Session](/api/account_sessions), this property can only be updated for accounts where [controller.requirement_collection](/api/accounts/object#account_object-controller-requirement_collection) is `application`, which includes Custom accounts.
1958
+ attr_accessor :individual
1959
+ # Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
1960
+ attr_accessor :metadata
1961
+ # Options for customizing how the account functions within Stripe.
1962
+ attr_accessor :settings
1963
+ # Details on the account's acceptance of the [Stripe Services Agreement](/connect/updating-accounts#tos-acceptance). This property can only be updated for accounts where [controller.requirement_collection](/api/accounts/object#account_object-controller-requirement_collection) is `application`, which includes Custom accounts. This property defaults to a `full` service agreement when empty.
1964
+ attr_accessor :tos_acceptance
1965
+
1966
+ def initialize(
1967
+ account_token: nil,
1968
+ business_profile: nil,
1969
+ business_type: nil,
1970
+ capabilities: nil,
1971
+ company: nil,
1972
+ default_currency: nil,
1973
+ documents: nil,
1974
+ email: nil,
1975
+ expand: nil,
1976
+ external_account: nil,
1977
+ groups: nil,
1978
+ individual: nil,
1979
+ metadata: nil,
1980
+ settings: nil,
1981
+ tos_acceptance: nil
1982
+ )
1983
+ @account_token = account_token
1984
+ @business_profile = business_profile
1985
+ @business_type = business_type
1986
+ @capabilities = capabilities
1987
+ @company = company
1988
+ @default_currency = default_currency
1989
+ @documents = documents
1990
+ @email = email
1991
+ @expand = expand
1992
+ @external_account = external_account
1993
+ @groups = groups
1994
+ @individual = individual
1995
+ @metadata = metadata
1996
+ @settings = settings
1997
+ @tos_acceptance = tos_acceptance
1998
+ end
1999
+ end
2000
+
2001
+ class RetrieveCurrentParams < Stripe::RequestParams
2002
+ # Specifies which fields in the response should be expanded.
2003
+ attr_accessor :expand
2004
+
2005
+ def initialize(expand: nil)
2006
+ @expand = expand
2007
+ end
2008
+ end
2009
+
2010
+ class ListParams < Stripe::RequestParams
2011
+ class Created < Stripe::RequestParams
2012
+ # Minimum value to filter by (exclusive)
2013
+ attr_accessor :gt
2014
+ # Minimum value to filter by (inclusive)
2015
+ attr_accessor :gte
2016
+ # Maximum value to filter by (exclusive)
2017
+ attr_accessor :lt
2018
+ # Maximum value to filter by (inclusive)
2019
+ attr_accessor :lte
2020
+
2021
+ def initialize(gt: nil, gte: nil, lt: nil, lte: nil)
2022
+ @gt = gt
2023
+ @gte = gte
2024
+ @lt = lt
2025
+ @lte = lte
2026
+ end
2027
+ end
2028
+ # Only return connected accounts that were created during the given date interval.
2029
+ attr_accessor :created
2030
+ # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.
2031
+ attr_accessor :ending_before
2032
+ # Specifies which fields in the response should be expanded.
2033
+ attr_accessor :expand
2034
+ # A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
2035
+ attr_accessor :limit
2036
+ # A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.
2037
+ attr_accessor :starting_after
2038
+
2039
+ def initialize(created: nil, ending_before: nil, expand: nil, limit: nil, starting_after: nil)
2040
+ @created = created
2041
+ @ending_before = ending_before
2042
+ @expand = expand
2043
+ @limit = limit
2044
+ @starting_after = starting_after
2045
+ end
2046
+ end
2047
+
2048
+ class CreateParams < Stripe::RequestParams
2049
+ class BankAccount < Stripe::RequestParams
2050
+ # Attribute for param field object
2051
+ attr_accessor :object
2052
+ # The name of the person or business that owns the bank account.This field is required when attaching the bank account to a `Customer` object.
2053
+ attr_accessor :account_holder_name
2054
+ # The type of entity that holds the account. It can be `company` or `individual`. This field is required when attaching the bank account to a `Customer` object.
2055
+ attr_accessor :account_holder_type
2056
+ # The account number for the bank account, in string form. Must be a checking account.
2057
+ attr_accessor :account_number
2058
+ # The country in which the bank account is located.
2059
+ attr_accessor :country
2060
+ # The currency the bank account is in. This must be a country/currency pairing that [Stripe supports.](docs/payouts)
2061
+ attr_accessor :currency
2062
+ # 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.
2063
+ attr_accessor :routing_number
2064
+
2065
+ def initialize(
2066
+ object: nil,
2067
+ account_holder_name: nil,
2068
+ account_holder_type: nil,
2069
+ account_number: nil,
2070
+ country: nil,
2071
+ currency: nil,
2072
+ routing_number: nil
2073
+ )
2074
+ @object = object
2075
+ @account_holder_name = account_holder_name
2076
+ @account_holder_type = account_holder_type
2077
+ @account_number = account_number
2078
+ @country = country
2079
+ @currency = currency
2080
+ @routing_number = routing_number
2081
+ end
2082
+ end
2083
+
2084
+ class BusinessProfile < Stripe::RequestParams
2085
+ class AnnualRevenue < Stripe::RequestParams
2086
+ # A non-negative integer representing the amount in the [smallest currency unit](/currencies#zero-decimal).
2087
+ attr_accessor :amount
2088
+ # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
2089
+ attr_accessor :currency
2090
+ # The close-out date of the preceding fiscal year in ISO 8601 format. E.g. 2023-12-31 for the 31st of December, 2023.
2091
+ attr_accessor :fiscal_year_end
2092
+
2093
+ def initialize(amount: nil, currency: nil, fiscal_year_end: nil)
2094
+ @amount = amount
2095
+ @currency = currency
2096
+ @fiscal_year_end = fiscal_year_end
2097
+ end
2098
+ end
2099
+
2100
+ class MonthlyEstimatedRevenue < Stripe::RequestParams
2101
+ # A non-negative integer representing how much to charge in the [smallest currency unit](/currencies#zero-decimal).
2102
+ attr_accessor :amount
2103
+ # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
2104
+ attr_accessor :currency
2105
+
2106
+ def initialize(amount: nil, currency: nil)
2107
+ @amount = amount
2108
+ @currency = currency
2109
+ end
2110
+ end
2111
+
2112
+ class SupportAddress < Stripe::RequestParams
2113
+ # City, district, suburb, town, or village.
2114
+ attr_accessor :city
2115
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
2116
+ attr_accessor :country
2117
+ # Address line 1 (e.g., street, PO Box, or company name).
2118
+ attr_accessor :line1
2119
+ # Address line 2 (e.g., apartment, suite, unit, or building).
2120
+ attr_accessor :line2
2121
+ # ZIP or postal code.
2122
+ attr_accessor :postal_code
2123
+ # State, county, province, or region.
2124
+ attr_accessor :state
2125
+
2126
+ def initialize(
2127
+ city: nil,
2128
+ country: nil,
2129
+ line1: nil,
2130
+ line2: nil,
2131
+ postal_code: nil,
2132
+ state: nil
2133
+ )
2134
+ @city = city
2135
+ @country = country
2136
+ @line1 = line1
2137
+ @line2 = line2
2138
+ @postal_code = postal_code
2139
+ @state = state
2140
+ end
2141
+ end
2142
+ # The applicant's gross annual revenue for its preceding fiscal year.
2143
+ attr_accessor :annual_revenue
2144
+ # An estimated upper bound of employees, contractors, vendors, etc. currently working for the business.
2145
+ attr_accessor :estimated_worker_count
2146
+ # [The merchant category code for the account](/connect/setting-mcc). MCCs are used to classify businesses based on the goods or services they provide.
2147
+ attr_accessor :mcc
2148
+ # Whether the business is a minority-owned, women-owned, and/or LGBTQI+-owned business.
2149
+ attr_accessor :minority_owned_business_designation
2150
+ # An estimate of the monthly revenue of the business. Only accepted for accounts in Brazil and India.
2151
+ attr_accessor :monthly_estimated_revenue
2152
+ # The customer-facing business name.
2153
+ attr_accessor :name
2154
+ # Internal-only description of the product sold by, or service provided by, the business. Used by Stripe for risk and underwriting purposes.
2155
+ attr_accessor :product_description
2156
+ # A publicly available mailing address for sending support issues to.
2157
+ attr_accessor :support_address
2158
+ # A publicly available email address for sending support issues to.
2159
+ attr_accessor :support_email
2160
+ # A publicly available phone number to call with support issues.
2161
+ attr_accessor :support_phone
2162
+ # A publicly available website for handling support issues.
2163
+ attr_accessor :support_url
2164
+ # The business's publicly available website.
2165
+ attr_accessor :url
2166
+
2167
+ def initialize(
2168
+ annual_revenue: nil,
2169
+ estimated_worker_count: nil,
2170
+ mcc: nil,
2171
+ minority_owned_business_designation: nil,
2172
+ monthly_estimated_revenue: nil,
2173
+ name: nil,
2174
+ product_description: nil,
2175
+ support_address: nil,
2176
+ support_email: nil,
2177
+ support_phone: nil,
2178
+ support_url: nil,
2179
+ url: nil
2180
+ )
2181
+ @annual_revenue = annual_revenue
2182
+ @estimated_worker_count = estimated_worker_count
2183
+ @mcc = mcc
2184
+ @minority_owned_business_designation = minority_owned_business_designation
2185
+ @monthly_estimated_revenue = monthly_estimated_revenue
2186
+ @name = name
2187
+ @product_description = product_description
2188
+ @support_address = support_address
2189
+ @support_email = support_email
2190
+ @support_phone = support_phone
2191
+ @support_url = support_url
2192
+ @url = url
2193
+ end
2194
+ end
2195
+
2196
+ class Capabilities < Stripe::RequestParams
2197
+ class AcssDebitPayments < Stripe::RequestParams
2198
+ # 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.
2199
+ attr_accessor :requested
2200
+
2201
+ def initialize(requested: nil)
2202
+ @requested = requested
2203
+ end
2204
+ end
2205
+
2206
+ class AffirmPayments < Stripe::RequestParams
2207
+ # 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.
2208
+ attr_accessor :requested
2209
+
2210
+ def initialize(requested: nil)
2211
+ @requested = requested
2212
+ end
2213
+ end
2214
+
2215
+ class AfterpayClearpayPayments < Stripe::RequestParams
2216
+ # 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.
2217
+ attr_accessor :requested
2218
+
2219
+ def initialize(requested: nil)
2220
+ @requested = requested
2221
+ end
2222
+ end
2223
+
2224
+ class AlmaPayments < Stripe::RequestParams
2225
+ # 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.
2226
+ attr_accessor :requested
2227
+
2228
+ def initialize(requested: nil)
2229
+ @requested = requested
2230
+ end
2231
+ end
2232
+
2233
+ class AmazonPayPayments < Stripe::RequestParams
2234
+ # 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.
2235
+ attr_accessor :requested
2236
+
2237
+ def initialize(requested: nil)
2238
+ @requested = requested
2239
+ end
2240
+ end
2241
+
2242
+ class AuBecsDebitPayments < Stripe::RequestParams
2243
+ # 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.
2244
+ attr_accessor :requested
2245
+
2246
+ def initialize(requested: nil)
2247
+ @requested = requested
2248
+ end
2249
+ end
2250
+
2251
+ class BacsDebitPayments < Stripe::RequestParams
2252
+ # 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.
2253
+ attr_accessor :requested
2254
+
2255
+ def initialize(requested: nil)
2256
+ @requested = requested
2257
+ end
2258
+ end
2259
+
2260
+ class BancontactPayments < Stripe::RequestParams
2261
+ # 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.
2262
+ attr_accessor :requested
2263
+
2264
+ def initialize(requested: nil)
2265
+ @requested = requested
2266
+ end
2267
+ end
2268
+
2269
+ class BankTransferPayments < Stripe::RequestParams
2270
+ # 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.
2271
+ attr_accessor :requested
2272
+
2273
+ def initialize(requested: nil)
2274
+ @requested = requested
2275
+ end
2276
+ end
2277
+
2278
+ class BilliePayments < Stripe::RequestParams
2279
+ # 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.
2280
+ attr_accessor :requested
2281
+
2282
+ def initialize(requested: nil)
2283
+ @requested = requested
2284
+ end
2285
+ end
2286
+
2287
+ class BlikPayments < Stripe::RequestParams
2288
+ # 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.
2289
+ attr_accessor :requested
2290
+
2291
+ def initialize(requested: nil)
2292
+ @requested = requested
2293
+ end
2294
+ end
2295
+
2296
+ class BoletoPayments < Stripe::RequestParams
2297
+ # 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.
2298
+ attr_accessor :requested
2299
+
2300
+ def initialize(requested: nil)
2301
+ @requested = requested
2302
+ end
2303
+ end
2304
+
2305
+ class CardIssuing < Stripe::RequestParams
2306
+ # 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.
2307
+ attr_accessor :requested
2308
+
2309
+ def initialize(requested: nil)
2310
+ @requested = requested
2311
+ end
2312
+ end
2313
+
2314
+ class CardPayments < Stripe::RequestParams
2315
+ # 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.
2316
+ attr_accessor :requested
2317
+
2318
+ def initialize(requested: nil)
2319
+ @requested = requested
2320
+ end
2321
+ end
2322
+
2323
+ class CartesBancairesPayments < Stripe::RequestParams
2324
+ # 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.
2325
+ attr_accessor :requested
2326
+
2327
+ def initialize(requested: nil)
2328
+ @requested = requested
2329
+ end
2330
+ end
2331
+
2332
+ class CashappPayments < Stripe::RequestParams
2333
+ # 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.
2334
+ attr_accessor :requested
2335
+
2336
+ def initialize(requested: nil)
2337
+ @requested = requested
2338
+ end
2339
+ end
2340
+
2341
+ class EpsPayments < Stripe::RequestParams
2342
+ # 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.
2343
+ attr_accessor :requested
2344
+
2345
+ def initialize(requested: nil)
2346
+ @requested = requested
2347
+ end
2348
+ end
2349
+
2350
+ class FpxPayments < Stripe::RequestParams
2351
+ # 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.
2352
+ attr_accessor :requested
2353
+
2354
+ def initialize(requested: nil)
2355
+ @requested = requested
2356
+ end
2357
+ end
2358
+
2359
+ class GbBankTransferPayments < Stripe::RequestParams
2360
+ # 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.
2361
+ attr_accessor :requested
2362
+
2363
+ def initialize(requested: nil)
2364
+ @requested = requested
2365
+ end
2366
+ end
2367
+
2368
+ class GiropayPayments < Stripe::RequestParams
2369
+ # 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.
2370
+ attr_accessor :requested
2371
+
2372
+ def initialize(requested: nil)
2373
+ @requested = requested
2374
+ end
2375
+ end
2376
+
2377
+ class GrabpayPayments < Stripe::RequestParams
2378
+ # 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.
2379
+ attr_accessor :requested
2380
+
2381
+ def initialize(requested: nil)
2382
+ @requested = requested
2383
+ end
2384
+ end
2385
+
2386
+ class IdealPayments < Stripe::RequestParams
2387
+ # 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.
2388
+ attr_accessor :requested
2389
+
2390
+ def initialize(requested: nil)
2391
+ @requested = requested
2392
+ end
2393
+ end
2394
+
2395
+ class IndiaInternationalPayments < Stripe::RequestParams
2396
+ # 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.
2397
+ attr_accessor :requested
2398
+
2399
+ def initialize(requested: nil)
2400
+ @requested = requested
2401
+ end
2402
+ end
2403
+
2404
+ class JcbPayments < Stripe::RequestParams
2405
+ # 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.
2406
+ attr_accessor :requested
2407
+
2408
+ def initialize(requested: nil)
2409
+ @requested = requested
2410
+ end
2411
+ end
2412
+
2413
+ class JpBankTransferPayments < Stripe::RequestParams
2414
+ # 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.
2415
+ attr_accessor :requested
2416
+
2417
+ def initialize(requested: nil)
2418
+ @requested = requested
2419
+ end
2420
+ end
2421
+
2422
+ class KakaoPayPayments < Stripe::RequestParams
2423
+ # 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.
2424
+ attr_accessor :requested
2425
+
2426
+ def initialize(requested: nil)
2427
+ @requested = requested
2428
+ end
2429
+ end
2430
+
2431
+ class KlarnaPayments < Stripe::RequestParams
2432
+ # 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.
2433
+ attr_accessor :requested
2434
+
2435
+ def initialize(requested: nil)
2436
+ @requested = requested
2437
+ end
2438
+ end
2439
+
2440
+ class KonbiniPayments < Stripe::RequestParams
2441
+ # 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.
2442
+ attr_accessor :requested
2443
+
2444
+ def initialize(requested: nil)
2445
+ @requested = requested
2446
+ end
2447
+ end
2448
+
2449
+ class KrCardPayments < Stripe::RequestParams
2450
+ # 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.
2451
+ attr_accessor :requested
2452
+
2453
+ def initialize(requested: nil)
2454
+ @requested = requested
2455
+ end
2456
+ end
2457
+
2458
+ class LegacyPayments < Stripe::RequestParams
2459
+ # 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.
2460
+ attr_accessor :requested
2461
+
2462
+ def initialize(requested: nil)
2463
+ @requested = requested
2464
+ end
2465
+ end
2466
+
2467
+ class LinkPayments < Stripe::RequestParams
2468
+ # 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.
2469
+ attr_accessor :requested
2470
+
2471
+ def initialize(requested: nil)
2472
+ @requested = requested
2473
+ end
2474
+ end
2475
+
2476
+ class MobilepayPayments < Stripe::RequestParams
2477
+ # 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.
2478
+ attr_accessor :requested
2479
+
2480
+ def initialize(requested: nil)
2481
+ @requested = requested
2482
+ end
2483
+ end
2484
+
2485
+ class MultibancoPayments < Stripe::RequestParams
2486
+ # 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.
2487
+ attr_accessor :requested
2488
+
2489
+ def initialize(requested: nil)
2490
+ @requested = requested
2491
+ end
2492
+ end
2493
+
2494
+ class MxBankTransferPayments < Stripe::RequestParams
2495
+ # 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.
2496
+ attr_accessor :requested
2497
+
2498
+ def initialize(requested: nil)
2499
+ @requested = requested
2500
+ end
2501
+ end
2502
+
2503
+ class NaverPayPayments < Stripe::RequestParams
2504
+ # 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.
2505
+ attr_accessor :requested
2506
+
2507
+ def initialize(requested: nil)
2508
+ @requested = requested
2509
+ end
2510
+ end
2511
+
2512
+ class NzBankAccountBecsDebitPayments < Stripe::RequestParams
2513
+ # 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.
2514
+ attr_accessor :requested
2515
+
2516
+ def initialize(requested: nil)
2517
+ @requested = requested
2518
+ end
2519
+ end
2520
+
2521
+ class OxxoPayments < Stripe::RequestParams
2522
+ # 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.
2523
+ attr_accessor :requested
2524
+
2525
+ def initialize(requested: nil)
2526
+ @requested = requested
2527
+ end
2528
+ end
2529
+
2530
+ class P24Payments < Stripe::RequestParams
2531
+ # 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.
2532
+ attr_accessor :requested
2533
+
2534
+ def initialize(requested: nil)
2535
+ @requested = requested
2536
+ end
2537
+ end
2538
+
2539
+ class PayByBankPayments < Stripe::RequestParams
2540
+ # 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.
2541
+ attr_accessor :requested
2542
+
2543
+ def initialize(requested: nil)
2544
+ @requested = requested
2545
+ end
2546
+ end
2547
+
2548
+ class PaycoPayments < Stripe::RequestParams
2549
+ # 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.
2550
+ attr_accessor :requested
2551
+
2552
+ def initialize(requested: nil)
2553
+ @requested = requested
2554
+ end
2555
+ end
2556
+
2557
+ class PaynowPayments < Stripe::RequestParams
2558
+ # 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.
2559
+ attr_accessor :requested
2560
+
2561
+ def initialize(requested: nil)
2562
+ @requested = requested
2563
+ end
2564
+ end
2565
+
2566
+ class PixPayments < Stripe::RequestParams
2567
+ # 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.
2568
+ attr_accessor :requested
2569
+
2570
+ def initialize(requested: nil)
2571
+ @requested = requested
2572
+ end
2573
+ end
2574
+
2575
+ class PromptpayPayments < Stripe::RequestParams
2576
+ # 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.
2577
+ attr_accessor :requested
2578
+
2579
+ def initialize(requested: nil)
2580
+ @requested = requested
2581
+ end
2582
+ end
2583
+
2584
+ class RevolutPayPayments < Stripe::RequestParams
2585
+ # 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.
2586
+ attr_accessor :requested
2587
+
2588
+ def initialize(requested: nil)
2589
+ @requested = requested
2590
+ end
2591
+ end
2592
+
2593
+ class SamsungPayPayments < Stripe::RequestParams
2594
+ # 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.
2595
+ attr_accessor :requested
2596
+
2597
+ def initialize(requested: nil)
2598
+ @requested = requested
2599
+ end
2600
+ end
2601
+
2602
+ class SatispayPayments < Stripe::RequestParams
2603
+ # 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.
2604
+ attr_accessor :requested
2605
+
2606
+ def initialize(requested: nil)
2607
+ @requested = requested
2608
+ end
2609
+ end
2610
+
2611
+ class SepaBankTransferPayments < Stripe::RequestParams
2612
+ # 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.
2613
+ attr_accessor :requested
2614
+
2615
+ def initialize(requested: nil)
2616
+ @requested = requested
2617
+ end
2618
+ end
2619
+
2620
+ class SepaDebitPayments < Stripe::RequestParams
2621
+ # 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.
2622
+ attr_accessor :requested
2623
+
2624
+ def initialize(requested: nil)
2625
+ @requested = requested
2626
+ end
2627
+ end
2628
+
2629
+ class SofortPayments < Stripe::RequestParams
2630
+ # 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.
2631
+ attr_accessor :requested
2632
+
2633
+ def initialize(requested: nil)
2634
+ @requested = requested
2635
+ end
2636
+ end
2637
+
2638
+ class SwishPayments < Stripe::RequestParams
2639
+ # 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.
2640
+ attr_accessor :requested
2641
+
2642
+ def initialize(requested: nil)
2643
+ @requested = requested
2644
+ end
2645
+ end
2646
+
2647
+ class TaxReportingUs1099K < Stripe::RequestParams
2648
+ # 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.
2649
+ attr_accessor :requested
2650
+
2651
+ def initialize(requested: nil)
2652
+ @requested = requested
2653
+ end
2654
+ end
2655
+
2656
+ class TaxReportingUs1099Misc < Stripe::RequestParams
2657
+ # 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.
2658
+ attr_accessor :requested
2659
+
2660
+ def initialize(requested: nil)
2661
+ @requested = requested
2662
+ end
2663
+ end
2664
+
2665
+ class Transfers < Stripe::RequestParams
2666
+ # 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.
2667
+ attr_accessor :requested
2668
+
2669
+ def initialize(requested: nil)
2670
+ @requested = requested
2671
+ end
2672
+ end
2673
+
2674
+ class Treasury < Stripe::RequestParams
2675
+ # 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.
2676
+ attr_accessor :requested
2677
+
2678
+ def initialize(requested: nil)
2679
+ @requested = requested
2680
+ end
2681
+ end
2682
+
2683
+ class TwintPayments < Stripe::RequestParams
2684
+ # 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.
2685
+ attr_accessor :requested
2686
+
2687
+ def initialize(requested: nil)
2688
+ @requested = requested
2689
+ end
2690
+ end
2691
+
2692
+ class UsBankAccountAchPayments < Stripe::RequestParams
2693
+ # 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.
2694
+ attr_accessor :requested
2695
+
2696
+ def initialize(requested: nil)
2697
+ @requested = requested
2698
+ end
2699
+ end
2700
+
2701
+ class UsBankTransferPayments < Stripe::RequestParams
2702
+ # 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.
2703
+ attr_accessor :requested
2704
+
2705
+ def initialize(requested: nil)
2706
+ @requested = requested
2707
+ end
2708
+ end
2709
+
2710
+ class ZipPayments < Stripe::RequestParams
2711
+ # 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.
2712
+ attr_accessor :requested
2713
+
2714
+ def initialize(requested: nil)
2715
+ @requested = requested
2716
+ end
2717
+ end
2718
+ # The acss_debit_payments capability.
2719
+ attr_accessor :acss_debit_payments
2720
+ # The affirm_payments capability.
2721
+ attr_accessor :affirm_payments
2722
+ # The afterpay_clearpay_payments capability.
2723
+ attr_accessor :afterpay_clearpay_payments
2724
+ # The alma_payments capability.
2725
+ attr_accessor :alma_payments
2726
+ # The amazon_pay_payments capability.
2727
+ attr_accessor :amazon_pay_payments
2728
+ # The au_becs_debit_payments capability.
2729
+ attr_accessor :au_becs_debit_payments
2730
+ # The bacs_debit_payments capability.
2731
+ attr_accessor :bacs_debit_payments
2732
+ # The bancontact_payments capability.
2733
+ attr_accessor :bancontact_payments
2734
+ # The bank_transfer_payments capability.
2735
+ attr_accessor :bank_transfer_payments
2736
+ # The billie_payments capability.
2737
+ attr_accessor :billie_payments
2738
+ # The blik_payments capability.
2739
+ attr_accessor :blik_payments
2740
+ # The boleto_payments capability.
2741
+ attr_accessor :boleto_payments
2742
+ # The card_issuing capability.
2743
+ attr_accessor :card_issuing
2744
+ # The card_payments capability.
2745
+ attr_accessor :card_payments
2746
+ # The cartes_bancaires_payments capability.
2747
+ attr_accessor :cartes_bancaires_payments
2748
+ # The cashapp_payments capability.
2749
+ attr_accessor :cashapp_payments
2750
+ # The eps_payments capability.
2751
+ attr_accessor :eps_payments
2752
+ # The fpx_payments capability.
2753
+ attr_accessor :fpx_payments
2754
+ # The gb_bank_transfer_payments capability.
2755
+ attr_accessor :gb_bank_transfer_payments
2756
+ # The giropay_payments capability.
2757
+ attr_accessor :giropay_payments
2758
+ # The grabpay_payments capability.
2759
+ attr_accessor :grabpay_payments
2760
+ # The ideal_payments capability.
2761
+ attr_accessor :ideal_payments
2762
+ # The india_international_payments capability.
2763
+ attr_accessor :india_international_payments
2764
+ # The jcb_payments capability.
2765
+ attr_accessor :jcb_payments
2766
+ # The jp_bank_transfer_payments capability.
2767
+ attr_accessor :jp_bank_transfer_payments
2768
+ # The kakao_pay_payments capability.
2769
+ attr_accessor :kakao_pay_payments
2770
+ # The klarna_payments capability.
2771
+ attr_accessor :klarna_payments
2772
+ # The konbini_payments capability.
2773
+ attr_accessor :konbini_payments
2774
+ # The kr_card_payments capability.
2775
+ attr_accessor :kr_card_payments
2776
+ # The legacy_payments capability.
2777
+ attr_accessor :legacy_payments
2778
+ # The link_payments capability.
2779
+ attr_accessor :link_payments
2780
+ # The mobilepay_payments capability.
2781
+ attr_accessor :mobilepay_payments
2782
+ # The multibanco_payments capability.
2783
+ attr_accessor :multibanco_payments
2784
+ # The mx_bank_transfer_payments capability.
2785
+ attr_accessor :mx_bank_transfer_payments
2786
+ # The naver_pay_payments capability.
2787
+ attr_accessor :naver_pay_payments
2788
+ # The nz_bank_account_becs_debit_payments capability.
2789
+ attr_accessor :nz_bank_account_becs_debit_payments
2790
+ # The oxxo_payments capability.
2791
+ attr_accessor :oxxo_payments
2792
+ # The p24_payments capability.
2793
+ attr_accessor :p24_payments
2794
+ # The pay_by_bank_payments capability.
2795
+ attr_accessor :pay_by_bank_payments
2796
+ # The payco_payments capability.
2797
+ attr_accessor :payco_payments
2798
+ # The paynow_payments capability.
2799
+ attr_accessor :paynow_payments
2800
+ # The pix_payments capability.
2801
+ attr_accessor :pix_payments
2802
+ # The promptpay_payments capability.
2803
+ attr_accessor :promptpay_payments
2804
+ # The revolut_pay_payments capability.
2805
+ attr_accessor :revolut_pay_payments
2806
+ # The samsung_pay_payments capability.
2807
+ attr_accessor :samsung_pay_payments
2808
+ # The satispay_payments capability.
2809
+ attr_accessor :satispay_payments
2810
+ # The sepa_bank_transfer_payments capability.
2811
+ attr_accessor :sepa_bank_transfer_payments
2812
+ # The sepa_debit_payments capability.
2813
+ attr_accessor :sepa_debit_payments
2814
+ # The sofort_payments capability.
2815
+ attr_accessor :sofort_payments
2816
+ # The swish_payments capability.
2817
+ attr_accessor :swish_payments
2818
+ # The tax_reporting_us_1099_k capability.
2819
+ attr_accessor :tax_reporting_us_1099_k
2820
+ # The tax_reporting_us_1099_misc capability.
2821
+ attr_accessor :tax_reporting_us_1099_misc
2822
+ # The transfers capability.
2823
+ attr_accessor :transfers
2824
+ # The treasury capability.
2825
+ attr_accessor :treasury
2826
+ # The twint_payments capability.
2827
+ attr_accessor :twint_payments
2828
+ # The us_bank_account_ach_payments capability.
2829
+ attr_accessor :us_bank_account_ach_payments
2830
+ # The us_bank_transfer_payments capability.
2831
+ attr_accessor :us_bank_transfer_payments
2832
+ # The zip_payments capability.
2833
+ attr_accessor :zip_payments
2834
+
2835
+ def initialize(
2836
+ acss_debit_payments: nil,
2837
+ affirm_payments: nil,
2838
+ afterpay_clearpay_payments: nil,
2839
+ alma_payments: nil,
2840
+ amazon_pay_payments: nil,
2841
+ au_becs_debit_payments: nil,
2842
+ bacs_debit_payments: nil,
2843
+ bancontact_payments: nil,
2844
+ bank_transfer_payments: nil,
2845
+ billie_payments: nil,
2846
+ blik_payments: nil,
2847
+ boleto_payments: nil,
2848
+ card_issuing: nil,
2849
+ card_payments: nil,
2850
+ cartes_bancaires_payments: nil,
2851
+ cashapp_payments: nil,
2852
+ eps_payments: nil,
2853
+ fpx_payments: nil,
2854
+ gb_bank_transfer_payments: nil,
2855
+ giropay_payments: nil,
2856
+ grabpay_payments: nil,
2857
+ ideal_payments: nil,
2858
+ india_international_payments: nil,
2859
+ jcb_payments: nil,
2860
+ jp_bank_transfer_payments: nil,
2861
+ kakao_pay_payments: nil,
2862
+ klarna_payments: nil,
2863
+ konbini_payments: nil,
2864
+ kr_card_payments: nil,
2865
+ legacy_payments: nil,
2866
+ link_payments: nil,
2867
+ mobilepay_payments: nil,
2868
+ multibanco_payments: nil,
2869
+ mx_bank_transfer_payments: nil,
2870
+ naver_pay_payments: nil,
2871
+ nz_bank_account_becs_debit_payments: nil,
2872
+ oxxo_payments: nil,
2873
+ p24_payments: nil,
2874
+ pay_by_bank_payments: nil,
2875
+ payco_payments: nil,
2876
+ paynow_payments: nil,
2877
+ pix_payments: nil,
2878
+ promptpay_payments: nil,
2879
+ revolut_pay_payments: nil,
2880
+ samsung_pay_payments: nil,
2881
+ satispay_payments: nil,
2882
+ sepa_bank_transfer_payments: nil,
2883
+ sepa_debit_payments: nil,
2884
+ sofort_payments: nil,
2885
+ swish_payments: nil,
2886
+ tax_reporting_us_1099_k: nil,
2887
+ tax_reporting_us_1099_misc: nil,
2888
+ transfers: nil,
2889
+ treasury: nil,
2890
+ twint_payments: nil,
2891
+ us_bank_account_ach_payments: nil,
2892
+ us_bank_transfer_payments: nil,
2893
+ zip_payments: nil
2894
+ )
2895
+ @acss_debit_payments = acss_debit_payments
2896
+ @affirm_payments = affirm_payments
2897
+ @afterpay_clearpay_payments = afterpay_clearpay_payments
2898
+ @alma_payments = alma_payments
2899
+ @amazon_pay_payments = amazon_pay_payments
2900
+ @au_becs_debit_payments = au_becs_debit_payments
2901
+ @bacs_debit_payments = bacs_debit_payments
2902
+ @bancontact_payments = bancontact_payments
2903
+ @bank_transfer_payments = bank_transfer_payments
2904
+ @billie_payments = billie_payments
2905
+ @blik_payments = blik_payments
2906
+ @boleto_payments = boleto_payments
2907
+ @card_issuing = card_issuing
2908
+ @card_payments = card_payments
2909
+ @cartes_bancaires_payments = cartes_bancaires_payments
2910
+ @cashapp_payments = cashapp_payments
2911
+ @eps_payments = eps_payments
2912
+ @fpx_payments = fpx_payments
2913
+ @gb_bank_transfer_payments = gb_bank_transfer_payments
2914
+ @giropay_payments = giropay_payments
2915
+ @grabpay_payments = grabpay_payments
2916
+ @ideal_payments = ideal_payments
2917
+ @india_international_payments = india_international_payments
2918
+ @jcb_payments = jcb_payments
2919
+ @jp_bank_transfer_payments = jp_bank_transfer_payments
2920
+ @kakao_pay_payments = kakao_pay_payments
2921
+ @klarna_payments = klarna_payments
2922
+ @konbini_payments = konbini_payments
2923
+ @kr_card_payments = kr_card_payments
2924
+ @legacy_payments = legacy_payments
2925
+ @link_payments = link_payments
2926
+ @mobilepay_payments = mobilepay_payments
2927
+ @multibanco_payments = multibanco_payments
2928
+ @mx_bank_transfer_payments = mx_bank_transfer_payments
2929
+ @naver_pay_payments = naver_pay_payments
2930
+ @nz_bank_account_becs_debit_payments = nz_bank_account_becs_debit_payments
2931
+ @oxxo_payments = oxxo_payments
2932
+ @p24_payments = p24_payments
2933
+ @pay_by_bank_payments = pay_by_bank_payments
2934
+ @payco_payments = payco_payments
2935
+ @paynow_payments = paynow_payments
2936
+ @pix_payments = pix_payments
2937
+ @promptpay_payments = promptpay_payments
2938
+ @revolut_pay_payments = revolut_pay_payments
2939
+ @samsung_pay_payments = samsung_pay_payments
2940
+ @satispay_payments = satispay_payments
2941
+ @sepa_bank_transfer_payments = sepa_bank_transfer_payments
2942
+ @sepa_debit_payments = sepa_debit_payments
2943
+ @sofort_payments = sofort_payments
2944
+ @swish_payments = swish_payments
2945
+ @tax_reporting_us_1099_k = tax_reporting_us_1099_k
2946
+ @tax_reporting_us_1099_misc = tax_reporting_us_1099_misc
2947
+ @transfers = transfers
2948
+ @treasury = treasury
2949
+ @twint_payments = twint_payments
2950
+ @us_bank_account_ach_payments = us_bank_account_ach_payments
2951
+ @us_bank_transfer_payments = us_bank_transfer_payments
2952
+ @zip_payments = zip_payments
2953
+ end
2954
+ end
2955
+
2956
+ class Card < Stripe::RequestParams
2957
+ # Attribute for param field object
2958
+ attr_accessor :object
2959
+ # Attribute for param field address_city
2960
+ attr_accessor :address_city
2961
+ # Attribute for param field address_country
2962
+ attr_accessor :address_country
2963
+ # Attribute for param field address_line1
2964
+ attr_accessor :address_line1
2965
+ # Attribute for param field address_line2
2966
+ attr_accessor :address_line2
2967
+ # Attribute for param field address_state
2968
+ attr_accessor :address_state
2969
+ # Attribute for param field address_zip
2970
+ attr_accessor :address_zip
2971
+ # Attribute for param field currency
2972
+ attr_accessor :currency
2973
+ # Attribute for param field cvc
2974
+ attr_accessor :cvc
2975
+ # Attribute for param field exp_month
2976
+ attr_accessor :exp_month
2977
+ # Attribute for param field exp_year
2978
+ attr_accessor :exp_year
2979
+ # Attribute for param field name
2980
+ attr_accessor :name
2981
+ # Attribute for param field number
2982
+ attr_accessor :number
2983
+ # Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
2984
+ attr_accessor :metadata
2985
+ # Attribute for param field default_for_currency
2986
+ attr_accessor :default_for_currency
2987
+
2988
+ def initialize(
2989
+ object: nil,
2990
+ address_city: nil,
2991
+ address_country: nil,
2992
+ address_line1: nil,
2993
+ address_line2: nil,
2994
+ address_state: nil,
2995
+ address_zip: nil,
2996
+ currency: nil,
2997
+ cvc: nil,
2998
+ exp_month: nil,
2999
+ exp_year: nil,
3000
+ name: nil,
3001
+ number: nil,
3002
+ metadata: nil,
3003
+ default_for_currency: nil
3004
+ )
3005
+ @object = object
3006
+ @address_city = address_city
3007
+ @address_country = address_country
3008
+ @address_line1 = address_line1
3009
+ @address_line2 = address_line2
3010
+ @address_state = address_state
3011
+ @address_zip = address_zip
3012
+ @currency = currency
3013
+ @cvc = cvc
3014
+ @exp_month = exp_month
3015
+ @exp_year = exp_year
3016
+ @name = name
3017
+ @number = number
3018
+ @metadata = metadata
3019
+ @default_for_currency = default_for_currency
3020
+ end
3021
+ end
3022
+
3023
+ class CardToken < Stripe::RequestParams
3024
+ # Attribute for param field object
3025
+ attr_accessor :object
3026
+ # Attribute for param field currency
3027
+ attr_accessor :currency
3028
+ # Attribute for param field token
3029
+ attr_accessor :token
3030
+
3031
+ def initialize(object: nil, currency: nil, token: nil)
3032
+ @object = object
3033
+ @currency = currency
3034
+ @token = token
3035
+ end
3036
+ end
3037
+
3038
+ class Company < Stripe::RequestParams
3039
+ class Address < Stripe::RequestParams
3040
+ # City, district, suburb, town, or village.
3041
+ attr_accessor :city
3042
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
3043
+ attr_accessor :country
3044
+ # Address line 1 (e.g., street, PO Box, or company name).
3045
+ attr_accessor :line1
3046
+ # Address line 2 (e.g., apartment, suite, unit, or building).
3047
+ attr_accessor :line2
3048
+ # ZIP or postal code.
3049
+ attr_accessor :postal_code
3050
+ # State, county, province, or region.
3051
+ attr_accessor :state
3052
+
3053
+ def initialize(
3054
+ city: nil,
3055
+ country: nil,
3056
+ line1: nil,
3057
+ line2: nil,
3058
+ postal_code: nil,
3059
+ state: nil
3060
+ )
3061
+ @city = city
3062
+ @country = country
3063
+ @line1 = line1
3064
+ @line2 = line2
3065
+ @postal_code = postal_code
3066
+ @state = state
3067
+ end
3068
+ end
3069
+
3070
+ class AddressKana < Stripe::RequestParams
3071
+ # City or ward.
3072
+ attr_accessor :city
3073
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
3074
+ attr_accessor :country
3075
+ # Block or building number.
3076
+ attr_accessor :line1
3077
+ # Building details.
3078
+ attr_accessor :line2
3079
+ # Postal code.
3080
+ attr_accessor :postal_code
3081
+ # Prefecture.
3082
+ attr_accessor :state
3083
+ # Town or cho-me.
3084
+ attr_accessor :town
3085
+
3086
+ def initialize(
3087
+ city: nil,
3088
+ country: nil,
3089
+ line1: nil,
3090
+ line2: nil,
3091
+ postal_code: nil,
3092
+ state: nil,
3093
+ town: nil
3094
+ )
3095
+ @city = city
3096
+ @country = country
3097
+ @line1 = line1
3098
+ @line2 = line2
3099
+ @postal_code = postal_code
3100
+ @state = state
3101
+ @town = town
3102
+ end
3103
+ end
3104
+
3105
+ class AddressKanji < Stripe::RequestParams
3106
+ # City or ward.
3107
+ attr_accessor :city
3108
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
3109
+ attr_accessor :country
3110
+ # Block or building number.
3111
+ attr_accessor :line1
3112
+ # Building details.
3113
+ attr_accessor :line2
3114
+ # Postal code.
3115
+ attr_accessor :postal_code
3116
+ # Prefecture.
3117
+ attr_accessor :state
3118
+ # Town or cho-me.
3119
+ attr_accessor :town
3120
+
3121
+ def initialize(
3122
+ city: nil,
3123
+ country: nil,
3124
+ line1: nil,
3125
+ line2: nil,
3126
+ postal_code: nil,
3127
+ state: nil,
3128
+ town: nil
3129
+ )
3130
+ @city = city
3131
+ @country = country
3132
+ @line1 = line1
3133
+ @line2 = line2
3134
+ @postal_code = postal_code
3135
+ @state = state
3136
+ @town = town
3137
+ end
3138
+ end
3139
+
3140
+ class DirectorshipDeclaration < Stripe::RequestParams
3141
+ # The Unix timestamp marking when the directorship declaration attestation was made.
3142
+ attr_accessor :date
3143
+ # The IP address from which the directorship declaration attestation was made.
3144
+ attr_accessor :ip
3145
+ # The user agent of the browser from which the directorship declaration attestation was made.
3146
+ attr_accessor :user_agent
3147
+
3148
+ def initialize(date: nil, ip: nil, user_agent: nil)
3149
+ @date = date
3150
+ @ip = ip
3151
+ @user_agent = user_agent
3152
+ end
3153
+ end
3154
+
3155
+ class OwnershipDeclaration < Stripe::RequestParams
3156
+ # The Unix timestamp marking when the beneficial owner attestation was made.
3157
+ attr_accessor :date
3158
+ # The IP address from which the beneficial owner attestation was made.
3159
+ attr_accessor :ip
3160
+ # The user agent of the browser from which the beneficial owner attestation was made.
3161
+ attr_accessor :user_agent
3162
+
3163
+ def initialize(date: nil, ip: nil, user_agent: nil)
3164
+ @date = date
3165
+ @ip = ip
3166
+ @user_agent = user_agent
3167
+ end
3168
+ end
3169
+
3170
+ class RegistrationDate < Stripe::RequestParams
3171
+ # The day of registration, between 1 and 31.
3172
+ attr_accessor :day
3173
+ # The month of registration, between 1 and 12.
3174
+ attr_accessor :month
3175
+ # The four-digit year of registration.
3176
+ attr_accessor :year
3177
+
3178
+ def initialize(day: nil, month: nil, year: nil)
3179
+ @day = day
3180
+ @month = month
3181
+ @year = year
3182
+ end
3183
+ end
3184
+
3185
+ class Verification < Stripe::RequestParams
3186
+ class Document < Stripe::RequestParams
3187
+ # 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.
3188
+ attr_accessor :back
3189
+ # The front 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.
3190
+ attr_accessor :front
3191
+
3192
+ def initialize(back: nil, front: nil)
3193
+ @back = back
3194
+ @front = front
3195
+ end
3196
+ end
3197
+ # A document verifying the business.
3198
+ attr_accessor :document
3199
+
3200
+ def initialize(document: nil)
3201
+ @document = document
3202
+ end
3203
+ end
3204
+ # The company's primary address.
3205
+ attr_accessor :address
3206
+ # The Kana variation of the company's primary address (Japan only).
3207
+ attr_accessor :address_kana
3208
+ # The Kanji variation of the company's primary address (Japan only).
3209
+ attr_accessor :address_kanji
3210
+ # Whether the company's directors have been provided. Set this Boolean to `true` after creating all the company's directors with [the Persons API](/api/persons) for accounts with a `relationship.director` requirement. This value is not automatically set to `true` after creating directors, so it needs to be updated to indicate all directors have been provided.
3211
+ attr_accessor :directors_provided
3212
+ # This hash is used to attest that the directors information provided to Stripe is both current and correct.
3213
+ attr_accessor :directorship_declaration
3214
+ # Whether the company's executives have been provided. Set this Boolean to `true` after creating all the company's executives with [the Persons API](/api/persons) for accounts with a `relationship.executive` requirement.
3215
+ attr_accessor :executives_provided
3216
+ # The export license ID number of the company, also referred as Import Export Code (India only).
3217
+ attr_accessor :export_license_id
3218
+ # The purpose code to use for export transactions (India only).
3219
+ attr_accessor :export_purpose_code
3220
+ # The company's legal name.
3221
+ attr_accessor :name
3222
+ # The Kana variation of the company's legal name (Japan only).
3223
+ attr_accessor :name_kana
3224
+ # The Kanji variation of the company's legal name (Japan only).
3225
+ attr_accessor :name_kanji
3226
+ # Whether the company's owners have been provided. Set this Boolean to `true` after creating all the company's owners with [the Persons API](/api/persons) for accounts with a `relationship.owner` requirement.
3227
+ attr_accessor :owners_provided
3228
+ # This hash is used to attest that the beneficial owner information provided to Stripe is both current and correct.
3229
+ attr_accessor :ownership_declaration
3230
+ # This value is used to determine if a business is exempt from providing ultimate beneficial owners. See [this support article](https://support.stripe.com/questions/exemption-from-providing-ownership-details) and [changelog](https://docs.stripe.com/changelog/acacia/2025-01-27/ownership-exemption-reason-accounts-api) for more details.
3231
+ attr_accessor :ownership_exemption_reason
3232
+ # The company's phone number (used for verification).
3233
+ attr_accessor :phone
3234
+ # Attribute for param field registration_date
3235
+ attr_accessor :registration_date
3236
+ # 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).
3237
+ attr_accessor :registration_number
3238
+ # 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.
3239
+ attr_accessor :structure
3240
+ # The business ID number of the company, as appropriate for the company’s country. (Examples are an Employer ID Number in the U.S., a Business Number in Canada, or a Company Number in the UK.)
3241
+ attr_accessor :tax_id
3242
+ # The jurisdiction in which the `tax_id` is registered (Germany-based companies only).
3243
+ attr_accessor :tax_id_registrar
3244
+ # The VAT number of the company.
3245
+ attr_accessor :vat_id
3246
+ # Information on the verification state of the company.
3247
+ attr_accessor :verification
3248
+
3249
+ def initialize(
3250
+ address: nil,
3251
+ address_kana: nil,
3252
+ address_kanji: nil,
3253
+ directors_provided: nil,
3254
+ directorship_declaration: nil,
3255
+ executives_provided: nil,
3256
+ export_license_id: nil,
3257
+ export_purpose_code: nil,
3258
+ name: nil,
3259
+ name_kana: nil,
3260
+ name_kanji: nil,
3261
+ owners_provided: nil,
3262
+ ownership_declaration: nil,
3263
+ ownership_exemption_reason: nil,
3264
+ phone: nil,
3265
+ registration_date: nil,
3266
+ registration_number: nil,
3267
+ structure: nil,
3268
+ tax_id: nil,
3269
+ tax_id_registrar: nil,
3270
+ vat_id: nil,
3271
+ verification: nil
3272
+ )
3273
+ @address = address
3274
+ @address_kana = address_kana
3275
+ @address_kanji = address_kanji
3276
+ @directors_provided = directors_provided
3277
+ @directorship_declaration = directorship_declaration
3278
+ @executives_provided = executives_provided
3279
+ @export_license_id = export_license_id
3280
+ @export_purpose_code = export_purpose_code
3281
+ @name = name
3282
+ @name_kana = name_kana
3283
+ @name_kanji = name_kanji
3284
+ @owners_provided = owners_provided
3285
+ @ownership_declaration = ownership_declaration
3286
+ @ownership_exemption_reason = ownership_exemption_reason
3287
+ @phone = phone
3288
+ @registration_date = registration_date
3289
+ @registration_number = registration_number
3290
+ @structure = structure
3291
+ @tax_id = tax_id
3292
+ @tax_id_registrar = tax_id_registrar
3293
+ @vat_id = vat_id
3294
+ @verification = verification
3295
+ end
3296
+ end
3297
+
3298
+ class Controller < Stripe::RequestParams
3299
+ class Fees < Stripe::RequestParams
3300
+ # A value indicating the responsible payer of Stripe fees on this account. Defaults to `account`. Learn more about [fee behavior on connected accounts](https://docs.stripe.com/connect/direct-charges-fee-payer-behavior).
3301
+ attr_accessor :payer
3302
+
3303
+ def initialize(payer: nil)
3304
+ @payer = payer
3305
+ end
3306
+ end
3307
+
3308
+ class Losses < Stripe::RequestParams
3309
+ # A value indicating who is liable when this account can't pay back negative balances resulting from payments. Defaults to `stripe`.
3310
+ attr_accessor :payments
3311
+
3312
+ def initialize(payments: nil)
3313
+ @payments = payments
3314
+ end
3315
+ end
3316
+
3317
+ class StripeDashboard < Stripe::RequestParams
3318
+ # Whether this account should have access to the full Stripe Dashboard (`full`), to the Express Dashboard (`express`), or to no Stripe-hosted dashboard (`none`). Defaults to `full`.
3319
+ attr_accessor :type
3320
+
3321
+ def initialize(type: nil)
3322
+ @type = type
3323
+ end
3324
+ end
3325
+ # A hash of configuration for who pays Stripe fees for product usage on this account.
3326
+ attr_accessor :fees
3327
+ # A hash of configuration for products that have negative balance liability, and whether Stripe or a Connect application is responsible for them.
3328
+ attr_accessor :losses
3329
+ # A value indicating responsibility for collecting updated information when requirements on the account are due or change. Defaults to `stripe`.
3330
+ attr_accessor :requirement_collection
3331
+ # A hash of configuration for Stripe-hosted dashboards.
3332
+ attr_accessor :stripe_dashboard
3333
+
3334
+ def initialize(fees: nil, losses: nil, requirement_collection: nil, stripe_dashboard: nil)
3335
+ @fees = fees
3336
+ @losses = losses
3337
+ @requirement_collection = requirement_collection
3338
+ @stripe_dashboard = stripe_dashboard
3339
+ end
3340
+ end
3341
+
3342
+ class Documents < Stripe::RequestParams
3343
+ class BankAccountOwnershipVerification < Stripe::RequestParams
3344
+ # One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`.
3345
+ attr_accessor :files
3346
+
3347
+ def initialize(files: nil)
3348
+ @files = files
3349
+ end
3350
+ end
3351
+
3352
+ class CompanyLicense < Stripe::RequestParams
3353
+ # One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`.
3354
+ attr_accessor :files
3355
+
3356
+ def initialize(files: nil)
3357
+ @files = files
3358
+ end
3359
+ end
3360
+
3361
+ class CompanyMemorandumOfAssociation < Stripe::RequestParams
3362
+ # One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`.
3363
+ attr_accessor :files
3364
+
3365
+ def initialize(files: nil)
3366
+ @files = files
3367
+ end
3368
+ end
3369
+
3370
+ class CompanyMinisterialDecree < Stripe::RequestParams
3371
+ # One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`.
3372
+ attr_accessor :files
3373
+
3374
+ def initialize(files: nil)
3375
+ @files = files
3376
+ end
3377
+ end
3378
+
3379
+ class CompanyRegistrationVerification < Stripe::RequestParams
3380
+ # One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`.
3381
+ attr_accessor :files
3382
+
3383
+ def initialize(files: nil)
3384
+ @files = files
3385
+ end
3386
+ end
3387
+
3388
+ class CompanyTaxIdVerification < Stripe::RequestParams
3389
+ # One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`.
3390
+ attr_accessor :files
3391
+
3392
+ def initialize(files: nil)
3393
+ @files = files
3394
+ end
3395
+ end
3396
+
3397
+ class ProofOfRegistration < Stripe::RequestParams
3398
+ # One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`.
3399
+ attr_accessor :files
3400
+
3401
+ def initialize(files: nil)
3402
+ @files = files
3403
+ end
3404
+ end
3405
+
3406
+ class ProofOfUltimateBeneficialOwnership < Stripe::RequestParams
3407
+ # One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`.
3408
+ attr_accessor :files
3409
+
3410
+ def initialize(files: nil)
3411
+ @files = files
3412
+ end
3413
+ end
3414
+ # One or more documents that support the [Bank account ownership verification](https://support.stripe.com/questions/bank-account-ownership-verification) requirement. Must be a document associated with the account’s primary active bank account that displays the last 4 digits of the account number, either a statement or a check.
3415
+ attr_accessor :bank_account_ownership_verification
3416
+ # One or more documents that demonstrate proof of a company's license to operate.
3417
+ attr_accessor :company_license
3418
+ # One or more documents showing the company's Memorandum of Association.
3419
+ attr_accessor :company_memorandum_of_association
3420
+ # (Certain countries only) One or more documents showing the ministerial decree legalizing the company's establishment.
3421
+ attr_accessor :company_ministerial_decree
3422
+ # One or more documents that demonstrate proof of a company's registration with the appropriate local authorities.
3423
+ attr_accessor :company_registration_verification
3424
+ # One or more documents that demonstrate proof of a company's tax ID.
3425
+ attr_accessor :company_tax_id_verification
3426
+ # One or more documents showing the company’s proof of registration with the national business registry.
3427
+ attr_accessor :proof_of_registration
3428
+ # One or more documents that demonstrate proof of ultimate beneficial ownership.
3429
+ attr_accessor :proof_of_ultimate_beneficial_ownership
3430
+
3431
+ def initialize(
3432
+ bank_account_ownership_verification: nil,
3433
+ company_license: nil,
3434
+ company_memorandum_of_association: nil,
3435
+ company_ministerial_decree: nil,
3436
+ company_registration_verification: nil,
3437
+ company_tax_id_verification: nil,
3438
+ proof_of_registration: nil,
3439
+ proof_of_ultimate_beneficial_ownership: nil
3440
+ )
3441
+ @bank_account_ownership_verification = bank_account_ownership_verification
3442
+ @company_license = company_license
3443
+ @company_memorandum_of_association = company_memorandum_of_association
3444
+ @company_ministerial_decree = company_ministerial_decree
3445
+ @company_registration_verification = company_registration_verification
3446
+ @company_tax_id_verification = company_tax_id_verification
3447
+ @proof_of_registration = proof_of_registration
3448
+ @proof_of_ultimate_beneficial_ownership = proof_of_ultimate_beneficial_ownership
3449
+ end
3450
+ end
3451
+
3452
+ class Groups < Stripe::RequestParams
3453
+ # The group the account is in to determine their payments pricing, and null if the account is on customized pricing. [See the Platform pricing tool documentation](https://stripe.com/docs/connect/platform-pricing-tools) for details.
3454
+ attr_accessor :payments_pricing
3455
+
3456
+ def initialize(payments_pricing: nil)
3457
+ @payments_pricing = payments_pricing
3458
+ end
3459
+ end
3460
+
3461
+ class Individual < Stripe::RequestParams
3462
+ class Address < Stripe::RequestParams
3463
+ # City, district, suburb, town, or village.
3464
+ attr_accessor :city
3465
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
3466
+ attr_accessor :country
3467
+ # Address line 1 (e.g., street, PO Box, or company name).
3468
+ attr_accessor :line1
3469
+ # Address line 2 (e.g., apartment, suite, unit, or building).
3470
+ attr_accessor :line2
3471
+ # ZIP or postal code.
3472
+ attr_accessor :postal_code
3473
+ # State, county, province, or region.
3474
+ attr_accessor :state
3475
+
3476
+ def initialize(
3477
+ city: nil,
3478
+ country: nil,
3479
+ line1: nil,
3480
+ line2: nil,
3481
+ postal_code: nil,
3482
+ state: nil
3483
+ )
3484
+ @city = city
3485
+ @country = country
3486
+ @line1 = line1
3487
+ @line2 = line2
3488
+ @postal_code = postal_code
3489
+ @state = state
3490
+ end
3491
+ end
3492
+
3493
+ class AddressKana < Stripe::RequestParams
3494
+ # City or ward.
3495
+ attr_accessor :city
3496
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
3497
+ attr_accessor :country
3498
+ # Block or building number.
3499
+ attr_accessor :line1
3500
+ # Building details.
3501
+ attr_accessor :line2
3502
+ # Postal code.
3503
+ attr_accessor :postal_code
3504
+ # Prefecture.
3505
+ attr_accessor :state
3506
+ # Town or cho-me.
3507
+ attr_accessor :town
3508
+
3509
+ def initialize(
3510
+ city: nil,
3511
+ country: nil,
3512
+ line1: nil,
3513
+ line2: nil,
3514
+ postal_code: nil,
3515
+ state: nil,
3516
+ town: nil
3517
+ )
3518
+ @city = city
3519
+ @country = country
3520
+ @line1 = line1
3521
+ @line2 = line2
3522
+ @postal_code = postal_code
3523
+ @state = state
3524
+ @town = town
3525
+ end
3526
+ end
3527
+
3528
+ class AddressKanji < Stripe::RequestParams
3529
+ # City or ward.
3530
+ attr_accessor :city
3531
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
3532
+ attr_accessor :country
3533
+ # Block or building number.
3534
+ attr_accessor :line1
3535
+ # Building details.
3536
+ attr_accessor :line2
3537
+ # Postal code.
3538
+ attr_accessor :postal_code
3539
+ # Prefecture.
3540
+ attr_accessor :state
3541
+ # Town or cho-me.
3542
+ attr_accessor :town
3543
+
3544
+ def initialize(
3545
+ city: nil,
3546
+ country: nil,
3547
+ line1: nil,
3548
+ line2: nil,
3549
+ postal_code: nil,
3550
+ state: nil,
3551
+ town: nil
3552
+ )
3553
+ @city = city
3554
+ @country = country
3555
+ @line1 = line1
3556
+ @line2 = line2
3557
+ @postal_code = postal_code
3558
+ @state = state
3559
+ @town = town
3560
+ end
3561
+ end
3562
+
3563
+ class Dob < Stripe::RequestParams
3564
+ # The day of birth, between 1 and 31.
3565
+ attr_accessor :day
3566
+ # The month of birth, between 1 and 12.
3567
+ attr_accessor :month
3568
+ # The four-digit year of birth.
3569
+ attr_accessor :year
3570
+
3571
+ def initialize(day: nil, month: nil, year: nil)
3572
+ @day = day
3573
+ @month = month
3574
+ @year = year
3575
+ end
3576
+ end
3577
+
3578
+ class RegisteredAddress < Stripe::RequestParams
3579
+ # City, district, suburb, town, or village.
3580
+ attr_accessor :city
3581
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
3582
+ attr_accessor :country
3583
+ # Address line 1 (e.g., street, PO Box, or company name).
3584
+ attr_accessor :line1
3585
+ # Address line 2 (e.g., apartment, suite, unit, or building).
3586
+ attr_accessor :line2
3587
+ # ZIP or postal code.
3588
+ attr_accessor :postal_code
3589
+ # State, county, province, or region.
3590
+ attr_accessor :state
3591
+
3592
+ def initialize(
3593
+ city: nil,
3594
+ country: nil,
3595
+ line1: nil,
3596
+ line2: nil,
3597
+ postal_code: nil,
3598
+ state: nil
3599
+ )
3600
+ @city = city
3601
+ @country = country
3602
+ @line1 = line1
3603
+ @line2 = line2
3604
+ @postal_code = postal_code
3605
+ @state = state
3606
+ end
3607
+ end
3608
+
3609
+ class Relationship < Stripe::RequestParams
3610
+ # Whether the person is a director of the account's legal entity. Directors are typically members of the governing board of the company, or responsible for ensuring the company meets its regulatory obligations.
3611
+ attr_accessor :director
3612
+ # Whether the person has significant responsibility to control, manage, or direct the organization.
3613
+ attr_accessor :executive
3614
+ # Whether the person is an owner of the account’s legal entity.
3615
+ attr_accessor :owner
3616
+ # The percent owned by the person of the account's legal entity.
3617
+ attr_accessor :percent_ownership
3618
+ # The person's title (e.g., CEO, Support Engineer).
3619
+ attr_accessor :title
3620
+
3621
+ def initialize(
3622
+ director: nil,
3623
+ executive: nil,
3624
+ owner: nil,
3625
+ percent_ownership: nil,
3626
+ title: nil
3627
+ )
3628
+ @director = director
3629
+ @executive = executive
3630
+ @owner = owner
3631
+ @percent_ownership = percent_ownership
3632
+ @title = title
3633
+ end
3634
+ end
3635
+
3636
+ class Verification < Stripe::RequestParams
3637
+ class AdditionalDocument < Stripe::RequestParams
3638
+ # The back of an ID returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `identity_document`. 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.
3639
+ attr_accessor :back
3640
+ # The front of an ID returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `identity_document`. 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.
3641
+ attr_accessor :front
3642
+
3643
+ def initialize(back: nil, front: nil)
3644
+ @back = back
3645
+ @front = front
3646
+ end
3647
+ end
3648
+
3649
+ class Document < Stripe::RequestParams
3650
+ # The back of an ID returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `identity_document`. 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.
3651
+ attr_accessor :back
3652
+ # The front of an ID returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `identity_document`. 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.
3653
+ attr_accessor :front
3654
+
3655
+ def initialize(back: nil, front: nil)
3656
+ @back = back
3657
+ @front = front
3658
+ end
3659
+ end
3660
+ # A document showing address, either a passport, local ID card, or utility bill from a well-known utility company.
3661
+ attr_accessor :additional_document
3662
+ # An identifying document, either a passport or local ID card.
3663
+ attr_accessor :document
3664
+
3665
+ def initialize(additional_document: nil, document: nil)
3666
+ @additional_document = additional_document
3667
+ @document = document
3668
+ end
3669
+ end
3670
+ # The individual's primary address.
3671
+ attr_accessor :address
3672
+ # The Kana variation of the individual's primary address (Japan only).
3673
+ attr_accessor :address_kana
3674
+ # The Kanji variation of the individual's primary address (Japan only).
3675
+ attr_accessor :address_kanji
3676
+ # The individual's date of birth.
3677
+ attr_accessor :dob
3678
+ # The individual's email address.
3679
+ attr_accessor :email
3680
+ # The individual's first name.
3681
+ attr_accessor :first_name
3682
+ # The Kana variation of the individual's first name (Japan only).
3683
+ attr_accessor :first_name_kana
3684
+ # The Kanji variation of the individual's first name (Japan only).
3685
+ attr_accessor :first_name_kanji
3686
+ # A list of alternate names or aliases that the individual is known by.
3687
+ attr_accessor :full_name_aliases
3688
+ # The individual's gender
3689
+ attr_accessor :gender
3690
+ # The government-issued ID number of the individual, as appropriate for the representative's country. (Examples are a Social Security Number in the U.S., or a Social Insurance Number in Canada). Instead of the number itself, you can also provide a [PII token created with Stripe.js](/js/tokens/create_token?type=pii).
3691
+ attr_accessor :id_number
3692
+ # The government-issued secondary ID number of the individual, as appropriate for the representative's country, will be used for enhanced verification checks. In Thailand, this would be the laser code found on the back of an ID card. Instead of the number itself, you can also provide a [PII token created with Stripe.js](/js/tokens/create_token?type=pii).
3693
+ attr_accessor :id_number_secondary
3694
+ # The individual's last name.
3695
+ attr_accessor :last_name
3696
+ # The Kana variation of the individual's last name (Japan only).
3697
+ attr_accessor :last_name_kana
3698
+ # The Kanji variation of the individual's last name (Japan only).
3699
+ attr_accessor :last_name_kanji
3700
+ # The individual's maiden name.
3701
+ attr_accessor :maiden_name
3702
+ # Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
3703
+ attr_accessor :metadata
3704
+ # The individual's phone number.
3705
+ attr_accessor :phone
3706
+ # Indicates if the person or any of their representatives, family members, or other closely related persons, declares that they hold or have held an important public job or function, in any jurisdiction.
3707
+ attr_accessor :political_exposure
3708
+ # The individual's registered address.
3709
+ attr_accessor :registered_address
3710
+ # Describes the person’s relationship to the account.
3711
+ attr_accessor :relationship
3712
+ # The last four digits of the individual's Social Security Number (U.S. only).
3713
+ attr_accessor :ssn_last_4
3714
+ # The individual's verification document information.
3715
+ attr_accessor :verification
3716
+
3717
+ def initialize(
3718
+ address: nil,
3719
+ address_kana: nil,
3720
+ address_kanji: nil,
3721
+ dob: nil,
3722
+ email: nil,
3723
+ first_name: nil,
3724
+ first_name_kana: nil,
3725
+ first_name_kanji: nil,
3726
+ full_name_aliases: nil,
3727
+ gender: nil,
3728
+ id_number: nil,
3729
+ id_number_secondary: nil,
3730
+ last_name: nil,
3731
+ last_name_kana: nil,
3732
+ last_name_kanji: nil,
3733
+ maiden_name: nil,
3734
+ metadata: nil,
3735
+ phone: nil,
3736
+ political_exposure: nil,
3737
+ registered_address: nil,
3738
+ relationship: nil,
3739
+ ssn_last_4: nil,
3740
+ verification: nil
3741
+ )
3742
+ @address = address
3743
+ @address_kana = address_kana
3744
+ @address_kanji = address_kanji
3745
+ @dob = dob
3746
+ @email = email
3747
+ @first_name = first_name
3748
+ @first_name_kana = first_name_kana
3749
+ @first_name_kanji = first_name_kanji
3750
+ @full_name_aliases = full_name_aliases
3751
+ @gender = gender
3752
+ @id_number = id_number
3753
+ @id_number_secondary = id_number_secondary
3754
+ @last_name = last_name
3755
+ @last_name_kana = last_name_kana
3756
+ @last_name_kanji = last_name_kanji
3757
+ @maiden_name = maiden_name
3758
+ @metadata = metadata
3759
+ @phone = phone
3760
+ @political_exposure = political_exposure
3761
+ @registered_address = registered_address
3762
+ @relationship = relationship
3763
+ @ssn_last_4 = ssn_last_4
3764
+ @verification = verification
3765
+ end
3766
+ end
3767
+
3768
+ class Settings < Stripe::RequestParams
3769
+ class BacsDebitPayments < Stripe::RequestParams
3770
+ # The Bacs Direct Debit Display Name for this account. For payments made with Bacs Direct Debit, this name appears on the mandate as the statement descriptor. Mobile banking apps display it as the name of the business. To use custom branding, set the Bacs Direct Debit Display Name during or right after creation. Custom branding incurs an additional monthly fee for the platform. If you don't set the display name before requesting Bacs capability, it's automatically set as "Stripe" and the account is onboarded to Stripe branding, which is free.
3771
+ attr_accessor :display_name
3772
+
3773
+ def initialize(display_name: nil)
3774
+ @display_name = display_name
3775
+ end
3776
+ end
3777
+
3778
+ class Branding < Stripe::RequestParams
3779
+ # (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) An icon for the account. Must be square and at least 128px x 128px.
3780
+ attr_accessor :icon
3781
+ # (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) A logo for the account that will be used in Checkout instead of the icon and without the account's name next to it if provided. Must be at least 128px x 128px.
3782
+ attr_accessor :logo
3783
+ # A CSS hex color value representing the primary branding color for this account.
3784
+ attr_accessor :primary_color
3785
+ # A CSS hex color value representing the secondary branding color for this account.
3786
+ attr_accessor :secondary_color
3787
+
3788
+ def initialize(icon: nil, logo: nil, primary_color: nil, secondary_color: nil)
3789
+ @icon = icon
3790
+ @logo = logo
3791
+ @primary_color = primary_color
3792
+ @secondary_color = secondary_color
3793
+ end
3794
+ end
3795
+
3796
+ class CardIssuing < Stripe::RequestParams
3797
+ class TosAcceptance < Stripe::RequestParams
3798
+ # The Unix timestamp marking when the account representative accepted the service agreement.
3799
+ attr_accessor :date
3800
+ # The IP address from which the account representative accepted the service agreement.
3801
+ attr_accessor :ip
3802
+ # The user agent of the browser from which the account representative accepted the service agreement.
3803
+ attr_accessor :user_agent
3804
+
3805
+ def initialize(date: nil, ip: nil, user_agent: nil)
3806
+ @date = date
3807
+ @ip = ip
3808
+ @user_agent = user_agent
3809
+ end
3810
+ end
3811
+ # Details on the account's acceptance of the [Stripe Issuing Terms and Disclosures](/issuing/connect/tos_acceptance).
3812
+ attr_accessor :tos_acceptance
3813
+
3814
+ def initialize(tos_acceptance: nil)
3815
+ @tos_acceptance = tos_acceptance
3816
+ end
3817
+ end
3818
+
3819
+ class CardPayments < Stripe::RequestParams
3820
+ class DeclineOn < Stripe::RequestParams
3821
+ # Whether Stripe automatically declines charges with an incorrect ZIP or postal code. This setting only applies when a ZIP or postal code is provided and they fail bank verification.
3822
+ attr_accessor :avs_failure
3823
+ # Whether Stripe automatically declines charges with an incorrect CVC. This setting only applies when a CVC is provided and it fails bank verification.
3824
+ attr_accessor :cvc_failure
3825
+
3826
+ def initialize(avs_failure: nil, cvc_failure: nil)
3827
+ @avs_failure = avs_failure
3828
+ @cvc_failure = cvc_failure
3829
+ end
3830
+ end
3831
+ # Automatically declines certain charge types regardless of whether the card issuer accepted or declined the charge.
3832
+ attr_accessor :decline_on
3833
+ # The default text that appears on credit card statements when a charge is made. This field prefixes any dynamic `statement_descriptor` specified on the charge. `statement_descriptor_prefix` is useful for maximizing descriptor space for the dynamic portion.
3834
+ attr_accessor :statement_descriptor_prefix
3835
+ # The Kana variation of the default text that appears on credit card statements when a charge is made (Japan only). This field prefixes any dynamic `statement_descriptor_suffix_kana` specified on the charge. `statement_descriptor_prefix_kana` is useful for maximizing descriptor space for the dynamic portion.
3836
+ attr_accessor :statement_descriptor_prefix_kana
3837
+ # The Kanji variation of the default text that appears on credit card statements when a charge is made (Japan only). This field prefixes any dynamic `statement_descriptor_suffix_kanji` specified on the charge. `statement_descriptor_prefix_kanji` is useful for maximizing descriptor space for the dynamic portion.
3838
+ attr_accessor :statement_descriptor_prefix_kanji
3839
+
3840
+ def initialize(
3841
+ decline_on: nil,
3842
+ statement_descriptor_prefix: nil,
3843
+ statement_descriptor_prefix_kana: nil,
3844
+ statement_descriptor_prefix_kanji: nil
3845
+ )
3846
+ @decline_on = decline_on
3847
+ @statement_descriptor_prefix = statement_descriptor_prefix
3848
+ @statement_descriptor_prefix_kana = statement_descriptor_prefix_kana
3849
+ @statement_descriptor_prefix_kanji = statement_descriptor_prefix_kanji
3850
+ end
3851
+ end
3852
+
3853
+ class Invoices < Stripe::RequestParams
3854
+ # Whether payment methods should be saved when a payment is completed for a one-time invoices on a hosted invoice page.
3855
+ attr_accessor :hosted_payment_method_save
3856
+
3857
+ def initialize(hosted_payment_method_save: nil)
3858
+ @hosted_payment_method_save = hosted_payment_method_save
3859
+ end
3860
+ end
3861
+
3862
+ class Payments < Stripe::RequestParams
3863
+ # The default text that appears on statements for non-card charges outside of Japan. For card charges, if you don't set a `statement_descriptor_prefix`, this text is also used as the statement descriptor prefix. In that case, if concatenating the statement descriptor suffix causes the combined statement descriptor to exceed 22 characters, we truncate the `statement_descriptor` text to limit the full descriptor to 22 characters. For more information about statement descriptors and their requirements, see the [account settings documentation](https://docs.stripe.com/get-started/account/statement-descriptors).
3864
+ attr_accessor :statement_descriptor
3865
+ # The Kana variation of `statement_descriptor` used for charges in Japan. Japanese statement descriptors have [special requirements](https://docs.stripe.com/get-started/account/statement-descriptors#set-japanese-statement-descriptors).
3866
+ attr_accessor :statement_descriptor_kana
3867
+ # The Kanji variation of `statement_descriptor` used for charges in Japan. Japanese statement descriptors have [special requirements](https://docs.stripe.com/get-started/account/statement-descriptors#set-japanese-statement-descriptors).
3868
+ attr_accessor :statement_descriptor_kanji
3869
+
3870
+ def initialize(
3871
+ statement_descriptor: nil,
3872
+ statement_descriptor_kana: nil,
3873
+ statement_descriptor_kanji: nil
3874
+ )
3875
+ @statement_descriptor = statement_descriptor
3876
+ @statement_descriptor_kana = statement_descriptor_kana
3877
+ @statement_descriptor_kanji = statement_descriptor_kanji
3878
+ end
3879
+ end
3880
+
3881
+ class Payouts < Stripe::RequestParams
3882
+ class Schedule < Stripe::RequestParams
3883
+ # The number of days charge funds are held before being paid out. May also be set to `minimum`, representing the lowest available value for the account country. Default is `minimum`. The `delay_days` parameter remains at the last configured value if `interval` is `manual`. [Learn more about controlling payout delay days](/connect/manage-payout-schedule).
3884
+ attr_accessor :delay_days
3885
+ # How frequently available funds are paid out. One of: `daily`, `manual`, `weekly`, or `monthly`. Default is `daily`.
3886
+ attr_accessor :interval
3887
+ # 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`.
3888
+ attr_accessor :monthly_anchor
3889
+ # The day of the week when available funds are paid out, specified as `monday`, `tuesday`, etc. (required and applicable only if `interval` is `weekly`.)
3890
+ attr_accessor :weekly_anchor
3891
+
3892
+ def initialize(delay_days: nil, interval: nil, monthly_anchor: nil, weekly_anchor: nil)
3893
+ @delay_days = delay_days
3894
+ @interval = interval
3895
+ @monthly_anchor = monthly_anchor
3896
+ @weekly_anchor = weekly_anchor
3897
+ end
3898
+ end
3899
+ # 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).
3900
+ attr_accessor :debit_negative_balances
3901
+ # Details on when funds from charges are available, and when they are paid out to an external account. For details, see our [Setting Bank and Debit Card Payouts](/connect/bank-transfers#payout-information) documentation.
3902
+ attr_accessor :schedule
3903
+ # The text that appears on the bank account statement for payouts. If not set, this defaults to the platform's bank descriptor as set in the Dashboard.
3904
+ attr_accessor :statement_descriptor
3905
+
3906
+ def initialize(debit_negative_balances: nil, schedule: nil, statement_descriptor: nil)
3907
+ @debit_negative_balances = debit_negative_balances
3908
+ @schedule = schedule
3909
+ @statement_descriptor = statement_descriptor
3910
+ end
3911
+ end
3912
+
3913
+ class Treasury < Stripe::RequestParams
3914
+ class TosAcceptance < Stripe::RequestParams
3915
+ # The Unix timestamp marking when the account representative accepted the service agreement.
3916
+ attr_accessor :date
3917
+ # The IP address from which the account representative accepted the service agreement.
3918
+ attr_accessor :ip
3919
+ # The user agent of the browser from which the account representative accepted the service agreement.
3920
+ attr_accessor :user_agent
3921
+
3922
+ def initialize(date: nil, ip: nil, user_agent: nil)
3923
+ @date = date
3924
+ @ip = ip
3925
+ @user_agent = user_agent
3926
+ end
3927
+ end
3928
+ # Details on the account's acceptance of the Stripe Treasury Services Agreement.
3929
+ attr_accessor :tos_acceptance
3930
+
3931
+ def initialize(tos_acceptance: nil)
3932
+ @tos_acceptance = tos_acceptance
3933
+ end
3934
+ end
3935
+ # Settings specific to Bacs Direct Debit.
3936
+ attr_accessor :bacs_debit_payments
3937
+ # Settings used to apply the account's branding to email receipts, invoices, Checkout, and other products.
3938
+ attr_accessor :branding
3939
+ # Settings specific to the account's use of the Card Issuing product.
3940
+ attr_accessor :card_issuing
3941
+ # Settings specific to card charging on the account.
3942
+ attr_accessor :card_payments
3943
+ # Settings specific to the account’s use of Invoices.
3944
+ attr_accessor :invoices
3945
+ # Settings that apply across payment methods for charging on the account.
3946
+ attr_accessor :payments
3947
+ # Settings specific to the account's payouts.
3948
+ attr_accessor :payouts
3949
+ # Settings specific to the account's Treasury FinancialAccounts.
3950
+ attr_accessor :treasury
3951
+
3952
+ def initialize(
3953
+ bacs_debit_payments: nil,
3954
+ branding: nil,
3955
+ card_issuing: nil,
3956
+ card_payments: nil,
3957
+ invoices: nil,
3958
+ payments: nil,
3959
+ payouts: nil,
3960
+ treasury: nil
3961
+ )
3962
+ @bacs_debit_payments = bacs_debit_payments
3963
+ @branding = branding
3964
+ @card_issuing = card_issuing
3965
+ @card_payments = card_payments
3966
+ @invoices = invoices
3967
+ @payments = payments
3968
+ @payouts = payouts
3969
+ @treasury = treasury
3970
+ end
3971
+ end
3972
+
3973
+ class TosAcceptance < Stripe::RequestParams
3974
+ # The Unix timestamp marking when the account representative accepted their service agreement.
3975
+ attr_accessor :date
3976
+ # The IP address from which the account representative accepted their service agreement.
3977
+ attr_accessor :ip
3978
+ # The user's service agreement type.
3979
+ attr_accessor :service_agreement
3980
+ # The user agent of the browser from which the account representative accepted their service agreement.
3981
+ attr_accessor :user_agent
3982
+
3983
+ def initialize(date: nil, ip: nil, service_agreement: nil, user_agent: nil)
3984
+ @date = date
3985
+ @ip = ip
3986
+ @service_agreement = service_agreement
3987
+ @user_agent = user_agent
3988
+ end
3989
+ end
3990
+ # An [account token](https://stripe.com/docs/api#create_account_token), used to securely provide details to the account.
3991
+ attr_accessor :account_token
3992
+ # Business information about the account.
3993
+ attr_accessor :business_profile
3994
+ # The business type. Once you create an [Account Link](/api/account_links) or [Account Session](/api/account_sessions), this property can only be updated for accounts where [controller.requirement_collection](/api/accounts/object#account_object-controller-requirement_collection) is `application`, which includes Custom accounts.
3995
+ attr_accessor :business_type
3996
+ # Each key of the dictionary represents a capability, and each capability
3997
+ # maps to its settings (for example, whether it has been requested or not). Each
3998
+ # capability is inactive until you have provided its specific
3999
+ # requirements and Stripe has verified them. An account might have some
4000
+ # of its requested capabilities be active and some be inactive.
4001
+ #
4002
+ # Required when [account.controller.stripe_dashboard.type](/api/accounts/create#create_account-controller-dashboard-type)
4003
+ # is `none`, which includes Custom accounts.
4004
+ attr_accessor :capabilities
4005
+ # Information about the company or business. This field is available for any `business_type`. Once you create an [Account Link](/api/account_links) or [Account Session](/api/account_sessions), this property can only be updated for accounts where [controller.requirement_collection](/api/accounts/object#account_object-controller-requirement_collection) is `application`, which includes Custom accounts.
4006
+ attr_accessor :company
4007
+ # A hash of configuration describing the account controller's attributes.
4008
+ attr_accessor :controller
4009
+ # The country in which the account holder resides, or in which the business is legally established. This should be an ISO 3166-1 alpha-2 country code. For example, if you are in the United States and the business for which you're creating an account is legally represented in Canada, you would use `CA` as the country for the account being created. Available countries include [Stripe's global markets](https://stripe.com/global) as well as countries where [cross-border payouts](https://stripe.com/docs/connect/cross-border-payouts) are supported.
4010
+ attr_accessor :country
4011
+ # Three-letter ISO currency code representing the default currency for the account. This must be a currency that [Stripe supports in the account's country](https://docs.stripe.com/payouts).
4012
+ attr_accessor :default_currency
4013
+ # Documents that may be submitted to satisfy various informational requests.
4014
+ attr_accessor :documents
4015
+ # The email address of the account holder. This is only to make the account easier to identify to you. If [controller.requirement_collection](/api/accounts/object#account_object-controller-requirement_collection) is `application`, which includes Custom accounts, Stripe doesn't email the account without your consent.
4016
+ attr_accessor :email
4017
+ # Specifies which fields in the response should be expanded.
4018
+ attr_accessor :expand
4019
+ # A card or bank account to attach to the account for receiving [payouts](/connect/bank-debit-card-payouts) (you won’t be able to use it for top-ups). You can provide either a token, like the ones returned by [Stripe.js](/js), or a dictionary, as documented in the `external_account` parameter for [bank account](/api#account_create_bank_account) creation. <br><br>By default, providing an external account sets it as the new default external account for its currency, and deletes the old default if one exists. To add additional external accounts without replacing the existing default for the currency, use the [bank account](/api#account_create_bank_account) or [card creation](/api#account_create_card) APIs. After you create an [Account Link](/api/account_links) or [Account Session](/api/account_sessions), this property can only be updated for accounts where [controller.requirement_collection](/api/accounts/object#account_object-controller-requirement_collection) is `application`, which includes Custom accounts.
4020
+ attr_accessor :external_account
4021
+ # A hash of account group type to tokens. These are account groups this account should be added to.
4022
+ attr_accessor :groups
4023
+ # Information about the person represented by the account. This field is null unless `business_type` is set to `individual`. Once you create an [Account Link](/api/account_links) or [Account Session](/api/account_sessions), this property can only be updated for accounts where [controller.requirement_collection](/api/accounts/object#account_object-controller-requirement_collection) is `application`, which includes Custom accounts.
4024
+ attr_accessor :individual
4025
+ # Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
4026
+ attr_accessor :metadata
4027
+ # Options for customizing how the account functions within Stripe.
4028
+ attr_accessor :settings
4029
+ # Details on the account's acceptance of the [Stripe Services Agreement](/connect/updating-accounts#tos-acceptance). This property can only be updated for accounts where [controller.requirement_collection](/api/accounts/object#account_object-controller-requirement_collection) is `application`, which includes Custom accounts. This property defaults to a `full` service agreement when empty.
4030
+ attr_accessor :tos_acceptance
4031
+ # The type of Stripe account to create. May be one of `custom`, `express` or `standard`.
4032
+ attr_accessor :type
4033
+
4034
+ def initialize(
4035
+ account_token: nil,
4036
+ business_profile: nil,
4037
+ business_type: nil,
4038
+ capabilities: nil,
4039
+ company: nil,
4040
+ controller: nil,
4041
+ country: nil,
4042
+ default_currency: nil,
4043
+ documents: nil,
4044
+ email: nil,
4045
+ expand: nil,
4046
+ external_account: nil,
4047
+ groups: nil,
4048
+ individual: nil,
4049
+ metadata: nil,
4050
+ settings: nil,
4051
+ tos_acceptance: nil,
4052
+ type: nil
4053
+ )
4054
+ @account_token = account_token
4055
+ @business_profile = business_profile
4056
+ @business_type = business_type
4057
+ @capabilities = capabilities
4058
+ @company = company
4059
+ @controller = controller
4060
+ @country = country
4061
+ @default_currency = default_currency
4062
+ @documents = documents
4063
+ @email = email
4064
+ @expand = expand
4065
+ @external_account = external_account
4066
+ @groups = groups
4067
+ @individual = individual
4068
+ @metadata = metadata
4069
+ @settings = settings
4070
+ @tos_acceptance = tos_acceptance
4071
+ @type = type
4072
+ end
4073
+ end
4074
+
4075
+ class RejectParams < Stripe::RequestParams
4076
+ # Specifies which fields in the response should be expanded.
4077
+ attr_accessor :expand
4078
+ # The reason for rejecting the account. Can be `fraud`, `terms_of_service`, or `other`.
4079
+ attr_accessor :reason
4080
+
4081
+ def initialize(expand: nil, reason: nil)
4082
+ @expand = expand
4083
+ @reason = reason
4084
+ end
4085
+ end
4086
+
4087
+ # With [Connect](https://docs.stripe.com/docs/connect), you can create Stripe accounts for your users.
4088
+ # To do this, you'll first need to [register your platform](https://dashboard.stripe.com/account/applications/settings).
4089
+ #
4090
+ # 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
4091
+ # creating the account. Connect Onboarding won't ask for the prefilled information during account onboarding.
4092
+ # You can prefill any information on the account.
4093
+ def create(params = {}, opts = {})
4094
+ request(method: :post, path: "/v1/accounts", params: params, opts: opts, base_address: :api)
4095
+ end
4096
+
4097
+ # With [Connect](https://docs.stripe.com/connect), you can delete accounts you manage.
4098
+ #
4099
+ # Test-mode accounts can be deleted at any time.
4100
+ #
4101
+ # 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.
4102
+ #
4103
+ # If you want to delete your own account, use the [account information tab in your account settings](https://dashboard.stripe.com/settings/account) instead.
4104
+ def delete(account, params = {}, opts = {})
4105
+ request(
4106
+ method: :delete,
4107
+ path: format("/v1/accounts/%<account>s", { account: CGI.escape(account) }),
4108
+ params: params,
4109
+ opts: opts,
4110
+ base_address: :api
4111
+ )
4112
+ end
4113
+
4114
+ # 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.
4115
+ def list(params = {}, opts = {})
4116
+ request(method: :get, path: "/v1/accounts", params: params, opts: opts, base_address: :api)
4117
+ end
4118
+
4119
+ # With [Connect](https://docs.stripe.com/connect), you can reject accounts that you have flagged as suspicious.
4120
+ #
4121
+ # 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.
4122
+ def reject(account, params = {}, opts = {})
4123
+ request(
4124
+ method: :post,
4125
+ path: format("/v1/accounts/%<account>s/reject", { account: CGI.escape(account) }),
4126
+ params: params,
4127
+ opts: opts,
4128
+ base_address: :api
4129
+ )
4130
+ end
4131
+
4132
+ # Retrieves the details of an account.
4133
+ def retrieve(account, params = {}, opts = {})
4134
+ request(
4135
+ method: :get,
4136
+ path: format("/v1/accounts/%<account>s", { account: CGI.escape(account) }),
4137
+ params: params,
4138
+ opts: opts,
4139
+ base_address: :api
4140
+ )
4141
+ end
4142
+
4143
+ # Retrieves the details of an account.
4144
+ def retrieve_current(params = {}, opts = {})
4145
+ request(method: :get, path: "/v1/account", params: params, opts: opts, base_address: :api)
4146
+ end
4147
+
4148
+ # Updates a [connected account](https://docs.stripe.com/connect/accounts) by setting the values of the parameters passed. Any parameters not provided are
4149
+ # left unchanged.
4150
+ #
4151
+ # For accounts where [controller.requirement_collection](https://docs.stripe.com/api/accounts/object#account_object-controller-requirement_collection)
4152
+ # is application, which includes Custom accounts, you can update any information on the account.
4153
+ #
4154
+ # For accounts where [controller.requirement_collection](https://docs.stripe.com/api/accounts/object#account_object-controller-requirement_collection)
4155
+ # is stripe, which includes Standard and Express accounts, you can update all information until you create
4156
+ # an [Account Link or <a href="/api/account_sessions">Account Session](https://docs.stripe.com/api/account_links) to start Connect onboarding,
4157
+ # after which some properties can no longer be updated.
4158
+ #
4159
+ # To update your own account, use the [Dashboard](https://dashboard.stripe.com/settings/account). Refer to our
4160
+ # [Connect](https://docs.stripe.com/docs/connect/updating-accounts) documentation to learn more about updating accounts.
4161
+ def update(account, params = {}, opts = {})
4162
+ request(
4163
+ method: :post,
4164
+ path: format("/v1/accounts/%<account>s", { account: CGI.escape(account) }),
4165
+ params: params,
4166
+ opts: opts,
4167
+ base_address: :api
4168
+ )
4169
+ end
4170
+ end
4171
+ end