stripe 5.55.0 → 18.2.0.pre.beta.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 (1336) hide show
  1. checksums.yaml +4 -4
  2. data/{bin → exe}/stripe-console +1 -1
  3. data/lib/data/ca-certificates.crt +1805 -2337
  4. data/lib/stripe/api_operations/create.rb +6 -2
  5. data/lib/stripe/api_operations/delete.rb +12 -7
  6. data/lib/stripe/api_operations/list.rb +6 -9
  7. data/lib/stripe/api_operations/nested_resource.rb +59 -31
  8. data/lib/stripe/api_operations/request.rb +30 -65
  9. data/lib/stripe/api_operations/save.rb +20 -10
  10. data/lib/stripe/api_operations/search.rb +11 -9
  11. data/lib/stripe/api_operations/singleton_save.rb +90 -0
  12. data/lib/stripe/api_requestor.rb +1173 -0
  13. data/lib/stripe/api_resource.rb +51 -18
  14. data/lib/stripe/api_resource_test_helpers.rb +9 -3
  15. data/lib/stripe/{resources/usage_record.rb → api_version.rb} +2 -2
  16. data/lib/stripe/connection_manager.rb +6 -10
  17. data/lib/stripe/errors.rb +74 -20
  18. data/lib/stripe/event_types.rb +242 -0
  19. data/lib/stripe/events/unknown_event_notification.rb +19 -0
  20. data/lib/stripe/events/v1_billing_meter_error_report_triggered_event.rb +123 -0
  21. data/lib/stripe/events/v1_billing_meter_no_meter_found_event.rb +100 -0
  22. data/lib/stripe/events/v2_core_account_closed_event.rb +44 -0
  23. data/lib/stripe/events/v2_core_account_created_event.rb +44 -0
  24. data/lib/stripe/events/v2_core_account_including_configuration_customer_capability_status_updated_event.rb +63 -0
  25. data/lib/stripe/events/v2_core_account_including_configuration_customer_updated_event.rb +44 -0
  26. data/lib/stripe/events/v2_core_account_including_configuration_merchant_capability_status_updated_event.rb +63 -0
  27. data/lib/stripe/events/v2_core_account_including_configuration_merchant_updated_event.rb +44 -0
  28. data/lib/stripe/events/v2_core_account_including_configuration_recipient_capability_status_updated_event.rb +63 -0
  29. data/lib/stripe/events/v2_core_account_including_configuration_recipient_updated_event.rb +44 -0
  30. data/lib/stripe/events/v2_core_account_including_configuration_storer_capability_status_updated_event.rb +63 -0
  31. data/lib/stripe/events/v2_core_account_including_configuration_storer_updated_event.rb +44 -0
  32. data/lib/stripe/events/v2_core_account_including_defaults_updated_event.rb +44 -0
  33. data/lib/stripe/events/v2_core_account_including_identity_updated_event.rb +44 -0
  34. data/lib/stripe/events/v2_core_account_including_requirements_updated_event.rb +44 -0
  35. data/lib/stripe/events/v2_core_account_link_returned_event.rb +42 -0
  36. data/lib/stripe/events/v2_core_account_person_created_event.rb +61 -0
  37. data/lib/stripe/events/v2_core_account_person_deleted_event.rb +61 -0
  38. data/lib/stripe/events/v2_core_account_person_updated_event.rb +61 -0
  39. data/lib/stripe/events/v2_core_account_updated_event.rb +44 -0
  40. data/lib/stripe/events/v2_core_event_destination_ping_event.rb +44 -0
  41. data/lib/stripe/events/v2_core_health_event_generation_failure_resolved_event.rb +78 -0
  42. data/lib/stripe/events/v2_money_management_adjustment_created_event.rb +44 -0
  43. data/lib/stripe/events/v2_money_management_financial_account_created_event.rb +44 -0
  44. data/lib/stripe/events/v2_money_management_financial_account_updated_event.rb +44 -0
  45. data/lib/stripe/events/v2_money_management_financial_address_activated_event.rb +44 -0
  46. data/lib/stripe/events/v2_money_management_financial_address_failed_event.rb +44 -0
  47. data/lib/stripe/events/v2_money_management_inbound_transfer_available_event.rb +61 -0
  48. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_failed_event.rb +44 -0
  49. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_processing_event.rb +44 -0
  50. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_queued_event.rb +44 -0
  51. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_returned_event.rb +44 -0
  52. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_succeeded_event.rb +44 -0
  53. data/lib/stripe/events/v2_money_management_outbound_payment_canceled_event.rb +44 -0
  54. data/lib/stripe/events/v2_money_management_outbound_payment_created_event.rb +44 -0
  55. data/lib/stripe/events/v2_money_management_outbound_payment_failed_event.rb +44 -0
  56. data/lib/stripe/events/v2_money_management_outbound_payment_posted_event.rb +44 -0
  57. data/lib/stripe/events/v2_money_management_outbound_payment_returned_event.rb +44 -0
  58. data/lib/stripe/events/v2_money_management_outbound_payment_updated_event.rb +44 -0
  59. data/lib/stripe/events/v2_money_management_outbound_transfer_canceled_event.rb +44 -0
  60. data/lib/stripe/events/v2_money_management_outbound_transfer_created_event.rb +44 -0
  61. data/lib/stripe/events/v2_money_management_outbound_transfer_failed_event.rb +44 -0
  62. data/lib/stripe/events/v2_money_management_outbound_transfer_posted_event.rb +44 -0
  63. data/lib/stripe/events/v2_money_management_outbound_transfer_returned_event.rb +44 -0
  64. data/lib/stripe/events/v2_money_management_outbound_transfer_updated_event.rb +44 -0
  65. data/lib/stripe/events/v2_money_management_payout_method_created_event.rb +44 -0
  66. data/lib/stripe/events/v2_money_management_payout_method_updated_event.rb +44 -0
  67. data/lib/stripe/events/v2_money_management_received_credit_available_event.rb +61 -0
  68. data/lib/stripe/events/v2_money_management_received_credit_failed_event.rb +44 -0
  69. data/lib/stripe/events/v2_money_management_received_credit_returned_event.rb +44 -0
  70. data/lib/stripe/events/v2_money_management_received_credit_succeeded_event.rb +44 -0
  71. data/lib/stripe/events/v2_money_management_received_debit_canceled_event.rb +44 -0
  72. data/lib/stripe/events/v2_money_management_received_debit_failed_event.rb +44 -0
  73. data/lib/stripe/events/v2_money_management_received_debit_pending_event.rb +44 -0
  74. data/lib/stripe/events/v2_money_management_received_debit_succeeded_event.rb +44 -0
  75. data/lib/stripe/events/v2_money_management_received_debit_updated_event.rb +44 -0
  76. data/lib/stripe/events/v2_money_management_transaction_created_event.rb +61 -0
  77. data/lib/stripe/events/v2_money_management_transaction_updated_event.rb +44 -0
  78. data/lib/stripe/instrumentation.rb +37 -15
  79. data/lib/stripe/list_object.rb +5 -3
  80. data/lib/stripe/multipart_encoder.rb +7 -7
  81. data/lib/stripe/oauth.rb +14 -21
  82. data/lib/stripe/object_types.rb +220 -103
  83. data/lib/stripe/params/account_capability_list_params.rb +13 -0
  84. data/lib/stripe/params/account_capability_retrieve_params.rb +13 -0
  85. data/lib/stripe/params/account_capability_update_params.rb +18 -0
  86. data/lib/stripe/params/account_create_params.rb +2440 -0
  87. data/lib/stripe/params/account_delete_params.rb +6 -0
  88. data/lib/stripe/params/account_external_account_create_params.rb +134 -0
  89. data/lib/stripe/params/account_external_account_delete_params.rb +6 -0
  90. data/lib/stripe/params/account_external_account_list_params.rb +25 -0
  91. data/lib/stripe/params/account_external_account_retrieve_params.rb +13 -0
  92. data/lib/stripe/params/account_external_account_update_params.rb +91 -0
  93. data/lib/stripe/params/account_link_create_params.rb +52 -0
  94. data/lib/stripe/params/account_list_params.rb +42 -0
  95. data/lib/stripe/params/account_login_link_create_params.rb +13 -0
  96. data/lib/stripe/params/account_notice_list_params.rb +25 -0
  97. data/lib/stripe/params/account_notice_retrieve_params.rb +13 -0
  98. data/lib/stripe/params/account_notice_update_params.rb +36 -0
  99. data/lib/stripe/params/account_person_create_params.rb +435 -0
  100. data/lib/stripe/params/account_person_delete_params.rb +6 -0
  101. data/lib/stripe/params/account_person_list_params.rb +61 -0
  102. data/lib/stripe/params/account_person_retrieve_params.rb +13 -0
  103. data/lib/stripe/params/account_person_update_params.rb +435 -0
  104. data/lib/stripe/params/account_persons_params.rb +61 -0
  105. data/lib/stripe/params/account_reject_params.rb +16 -0
  106. data/lib/stripe/params/account_retrieve_current_params.rb +13 -0
  107. data/lib/stripe/params/account_retrieve_params.rb +13 -0
  108. data/lib/stripe/params/account_session_create_params.rb +823 -0
  109. data/lib/stripe/params/account_update_params.rb +2350 -0
  110. data/lib/stripe/params/apple_pay_domain_create_params.rb +16 -0
  111. data/lib/stripe/params/apple_pay_domain_delete_params.rb +6 -0
  112. data/lib/stripe/params/apple_pay_domain_list_params.rb +31 -0
  113. data/lib/stripe/params/apple_pay_domain_retrieve_params.rb +13 -0
  114. data/lib/stripe/params/application_fee_list_params.rb +52 -0
  115. data/lib/stripe/params/application_fee_refund_create_params.rb +19 -0
  116. data/lib/stripe/params/application_fee_refund_list_params.rb +22 -0
  117. data/lib/stripe/params/application_fee_refund_retrieve_params.rb +13 -0
  118. data/lib/stripe/params/application_fee_refund_update_params.rb +16 -0
  119. data/lib/stripe/params/application_fee_retrieve_params.rb +13 -0
  120. data/lib/stripe/params/apps/secret_create_params.rb +38 -0
  121. data/lib/stripe/params/apps/secret_delete_where_params.rb +32 -0
  122. data/lib/stripe/params/apps/secret_find_params.rb +32 -0
  123. data/lib/stripe/params/apps/secret_list_params.rb +38 -0
  124. data/lib/stripe/params/balance_retrieve_params.rb +13 -0
  125. data/lib/stripe/params/balance_settings_retrieve_params.rb +13 -0
  126. data/lib/stripe/params/balance_settings_update_params.rb +67 -0
  127. data/lib/stripe/params/balance_transaction_list_params.rb +64 -0
  128. data/lib/stripe/params/balance_transaction_retrieve_params.rb +13 -0
  129. data/lib/stripe/params/billing/alert_activate_params.rb +15 -0
  130. data/lib/stripe/params/billing/alert_archive_params.rb +15 -0
  131. data/lib/stripe/params/billing/alert_create_params.rb +52 -0
  132. data/lib/stripe/params/billing/alert_deactivate_params.rb +15 -0
  133. data/lib/stripe/params/billing/alert_list_params.rb +37 -0
  134. data/lib/stripe/params/billing/alert_retrieve_params.rb +15 -0
  135. data/lib/stripe/params/billing/analytics/meter_usage_retrieve_params.rb +65 -0
  136. data/lib/stripe/params/billing/credit_balance_summary_retrieve_params.rb +57 -0
  137. data/lib/stripe/params/billing/credit_balance_transaction_list_params.rb +41 -0
  138. data/lib/stripe/params/billing/credit_balance_transaction_retrieve_params.rb +15 -0
  139. data/lib/stripe/params/billing/credit_grant_create_params.rb +107 -0
  140. data/lib/stripe/params/billing/credit_grant_expire_params.rb +15 -0
  141. data/lib/stripe/params/billing/credit_grant_list_params.rb +37 -0
  142. data/lib/stripe/params/billing/credit_grant_retrieve_params.rb +15 -0
  143. data/lib/stripe/params/billing/credit_grant_update_params.rb +21 -0
  144. data/lib/stripe/params/billing/credit_grant_void_grant_params.rb +15 -0
  145. data/lib/stripe/params/billing/meter_create_params.rb +70 -0
  146. data/lib/stripe/params/billing/meter_deactivate_params.rb +15 -0
  147. data/lib/stripe/params/billing/meter_event_adjustment_create_params.rb +32 -0
  148. data/lib/stripe/params/billing/meter_event_create_params.rb +27 -0
  149. data/lib/stripe/params/billing/meter_event_summary_list_params.rb +45 -0
  150. data/lib/stripe/params/billing/meter_list_params.rb +27 -0
  151. data/lib/stripe/params/billing/meter_reactivate_params.rb +15 -0
  152. data/lib/stripe/params/billing/meter_retrieve_params.rb +15 -0
  153. data/lib/stripe/params/billing/meter_update_params.rb +18 -0
  154. data/lib/stripe/params/billing_portal/configuration_create_params.rb +232 -0
  155. data/lib/stripe/params/billing_portal/configuration_list_params.rb +37 -0
  156. data/lib/stripe/params/billing_portal/configuration_retrieve_params.rb +15 -0
  157. data/lib/stripe/params/billing_portal/configuration_update_params.rb +238 -0
  158. data/lib/stripe/params/billing_portal/session_create_params.rb +183 -0
  159. data/lib/stripe/params/capital/financing_offer_list_params.rb +58 -0
  160. data/lib/stripe/params/capital/financing_offer_mark_delivered_params.rb +15 -0
  161. data/lib/stripe/params/capital/financing_offer_retrieve_params.rb +15 -0
  162. data/lib/stripe/params/capital/financing_summary_retrieve_params.rb +15 -0
  163. data/lib/stripe/params/capital/financing_transaction_list_params.rb +45 -0
  164. data/lib/stripe/params/capital/financing_transaction_retrieve_params.rb +15 -0
  165. data/lib/stripe/params/charge_capture_params.rb +1705 -0
  166. data/lib/stripe/params/charge_create_params.rb +172 -0
  167. data/lib/stripe/params/charge_list_params.rb +60 -0
  168. data/lib/stripe/params/charge_retrieve_params.rb +13 -0
  169. data/lib/stripe/params/charge_search_params.rb +22 -0
  170. data/lib/stripe/params/charge_update_params.rb +1750 -0
  171. data/lib/stripe/params/checkout/session_create_params.rb +2654 -0
  172. data/lib/stripe/params/checkout/session_expire_params.rb +15 -0
  173. data/lib/stripe/params/checkout/session_line_item_list_params.rb +24 -0
  174. data/lib/stripe/params/checkout/session_list_line_items_params.rb +24 -0
  175. data/lib/stripe/params/checkout/session_list_params.rb +87 -0
  176. data/lib/stripe/params/checkout/session_retrieve_params.rb +15 -0
  177. data/lib/stripe/params/checkout/session_update_params.rb +466 -0
  178. data/lib/stripe/params/climate/order_cancel_params.rb +15 -0
  179. data/lib/stripe/params/climate/order_create_params.rb +49 -0
  180. data/lib/stripe/params/climate/order_list_params.rb +24 -0
  181. data/lib/stripe/params/climate/order_retrieve_params.rb +15 -0
  182. data/lib/stripe/params/climate/order_update_params.rb +29 -0
  183. data/lib/stripe/params/climate/product_list_params.rb +24 -0
  184. data/lib/stripe/params/climate/product_retrieve_params.rb +15 -0
  185. data/lib/stripe/params/climate/supplier_list_params.rb +24 -0
  186. data/lib/stripe/params/climate/supplier_retrieve_params.rb +15 -0
  187. data/lib/stripe/params/confirmation_token_create_params.rb +747 -0
  188. data/lib/stripe/params/confirmation_token_retrieve_params.rb +13 -0
  189. data/lib/stripe/params/country_spec_list_params.rb +22 -0
  190. data/lib/stripe/params/country_spec_retrieve_params.rb +13 -0
  191. data/lib/stripe/params/coupon_create_params.rb +96 -0
  192. data/lib/stripe/params/coupon_delete_params.rb +6 -0
  193. data/lib/stripe/params/coupon_list_params.rb +42 -0
  194. data/lib/stripe/params/coupon_retrieve_params.rb +13 -0
  195. data/lib/stripe/params/coupon_update_params.rb +30 -0
  196. data/lib/stripe/params/credit_note_create_params.rb +161 -0
  197. data/lib/stripe/params/credit_note_line_item_list_params.rb +22 -0
  198. data/lib/stripe/params/credit_note_list_params.rb +60 -0
  199. data/lib/stripe/params/credit_note_list_preview_line_items_params.rb +173 -0
  200. data/lib/stripe/params/credit_note_preview_lines_list_params.rb +173 -0
  201. data/lib/stripe/params/credit_note_preview_params.rb +161 -0
  202. data/lib/stripe/params/credit_note_retrieve_params.rb +13 -0
  203. data/lib/stripe/params/credit_note_update_params.rb +19 -0
  204. data/lib/stripe/params/credit_note_void_credit_note_params.rb +13 -0
  205. data/lib/stripe/params/customer_balance_transaction_create_params.rb +25 -0
  206. data/lib/stripe/params/customer_balance_transaction_list_params.rb +52 -0
  207. data/lib/stripe/params/customer_balance_transaction_retrieve_params.rb +13 -0
  208. data/lib/stripe/params/customer_balance_transaction_update_params.rb +19 -0
  209. data/lib/stripe/params/customer_cash_balance_retrieve_params.rb +13 -0
  210. data/lib/stripe/params/customer_cash_balance_transaction_list_params.rb +22 -0
  211. data/lib/stripe/params/customer_cash_balance_transaction_retrieve_params.rb +13 -0
  212. data/lib/stripe/params/customer_cash_balance_update_params.rb +24 -0
  213. data/lib/stripe/params/customer_create_funding_instructions_params.rb +46 -0
  214. data/lib/stripe/params/customer_create_params.rb +259 -0
  215. data/lib/stripe/params/customer_delete_discount_params.rb +6 -0
  216. data/lib/stripe/params/customer_delete_params.rb +6 -0
  217. data/lib/stripe/params/customer_fund_cash_balance_params.rb +22 -0
  218. data/lib/stripe/params/customer_funding_instructions_create_params.rb +46 -0
  219. data/lib/stripe/params/customer_list_params.rb +56 -0
  220. data/lib/stripe/params/customer_list_payment_methods_params.rb +35 -0
  221. data/lib/stripe/params/customer_payment_method_list_params.rb +35 -0
  222. data/lib/stripe/params/customer_payment_method_retrieve_params.rb +13 -0
  223. data/lib/stripe/params/customer_payment_source_create_params.rb +22 -0
  224. data/lib/stripe/params/customer_payment_source_delete_params.rb +13 -0
  225. data/lib/stripe/params/customer_payment_source_list_params.rb +25 -0
  226. data/lib/stripe/params/customer_payment_source_retrieve_params.rb +13 -0
  227. data/lib/stripe/params/customer_payment_source_update_params.rb +114 -0
  228. data/lib/stripe/params/customer_payment_source_verify_params.rb +16 -0
  229. data/lib/stripe/params/customer_retrieve_params.rb +13 -0
  230. data/lib/stripe/params/customer_retrieve_payment_method_params.rb +13 -0
  231. data/lib/stripe/params/customer_search_params.rb +22 -0
  232. data/lib/stripe/params/customer_session_create_params.rb +219 -0
  233. data/lib/stripe/params/customer_tax_id_create_params.rb +19 -0
  234. data/lib/stripe/params/customer_tax_id_delete_params.rb +6 -0
  235. data/lib/stripe/params/customer_tax_id_list_params.rb +22 -0
  236. data/lib/stripe/params/customer_tax_id_retrieve_params.rb +13 -0
  237. data/lib/stripe/params/customer_update_params.rb +243 -0
  238. data/lib/stripe/params/dispute_close_params.rb +13 -0
  239. data/lib/stripe/params/dispute_list_params.rb +56 -0
  240. data/lib/stripe/params/dispute_retrieve_params.rb +13 -0
  241. data/lib/stripe/params/dispute_update_params.rb +317 -0
  242. data/lib/stripe/params/entitlements/active_entitlement_list_params.rb +33 -0
  243. data/lib/stripe/params/entitlements/active_entitlement_retrieve_params.rb +15 -0
  244. data/lib/stripe/params/entitlements/feature_create_params.rb +24 -0
  245. data/lib/stripe/params/entitlements/feature_list_params.rb +37 -0
  246. data/lib/stripe/params/entitlements/feature_retrieve_params.rb +15 -0
  247. data/lib/stripe/params/entitlements/feature_update_params.rb +24 -0
  248. data/lib/stripe/params/ephemeral_key_create_params.rb +31 -0
  249. data/lib/stripe/params/ephemeral_key_delete_params.rb +13 -0
  250. data/lib/stripe/params/event_list_params.rb +60 -0
  251. data/lib/stripe/params/event_retrieve_params.rb +13 -0
  252. data/lib/stripe/params/exchange_rate_list_params.rb +22 -0
  253. data/lib/stripe/params/exchange_rate_retrieve_params.rb +13 -0
  254. data/lib/stripe/params/external_account_create_params.rb +134 -0
  255. data/lib/stripe/params/external_account_delete_params.rb +6 -0
  256. data/lib/stripe/params/external_account_list_params.rb +25 -0
  257. data/lib/stripe/params/external_account_retrieve_params.rb +13 -0
  258. data/lib/stripe/params/external_account_update_params.rb +91 -0
  259. data/lib/stripe/params/file_create_params.rb +36 -0
  260. data/lib/stripe/params/file_link_create_params.rb +22 -0
  261. data/lib/stripe/params/file_link_list_params.rb +56 -0
  262. data/lib/stripe/params/file_link_retrieve_params.rb +13 -0
  263. data/lib/stripe/params/file_link_update_params.rb +19 -0
  264. data/lib/stripe/params/file_list_params.rb +52 -0
  265. data/lib/stripe/params/file_retrieve_params.rb +13 -0
  266. data/lib/stripe/params/financial_connections/account_disconnect_params.rb +15 -0
  267. data/lib/stripe/params/financial_connections/account_inferred_balance_list_params.rb +24 -0
  268. data/lib/stripe/params/financial_connections/account_list_owners_params.rb +33 -0
  269. data/lib/stripe/params/financial_connections/account_list_params.rb +51 -0
  270. data/lib/stripe/params/financial_connections/account_owner_list_params.rb +33 -0
  271. data/lib/stripe/params/financial_connections/account_refresh_account_params.rb +18 -0
  272. data/lib/stripe/params/financial_connections/account_refresh_params.rb +18 -0
  273. data/lib/stripe/params/financial_connections/account_retrieve_params.rb +15 -0
  274. data/lib/stripe/params/financial_connections/account_subscribe_params.rb +18 -0
  275. data/lib/stripe/params/financial_connections/account_unsubscribe_params.rb +18 -0
  276. data/lib/stripe/params/financial_connections/institution_list_params.rb +24 -0
  277. data/lib/stripe/params/financial_connections/institution_retrieve_params.rb +15 -0
  278. data/lib/stripe/params/financial_connections/session_create_params.rb +97 -0
  279. data/lib/stripe/params/financial_connections/session_retrieve_params.rb +15 -0
  280. data/lib/stripe/params/financial_connections/transaction_list_params.rb +67 -0
  281. data/lib/stripe/params/financial_connections/transaction_retrieve_params.rb +15 -0
  282. data/lib/stripe/params/forwarding/request_create_params.rb +59 -0
  283. data/lib/stripe/params/forwarding/request_list_params.rb +44 -0
  284. data/lib/stripe/params/forwarding/request_retrieve_params.rb +15 -0
  285. data/lib/stripe/params/fx_quote_create_params.rb +73 -0
  286. data/lib/stripe/params/fx_quote_list_params.rb +22 -0
  287. data/lib/stripe/params/fx_quote_retrieve_params.rb +13 -0
  288. data/lib/stripe/params/identity/verification_report_list_params.rb +62 -0
  289. data/lib/stripe/params/identity/verification_report_retrieve_params.rb +15 -0
  290. data/lib/stripe/params/identity/verification_session_cancel_params.rb +15 -0
  291. data/lib/stripe/params/identity/verification_session_create_params.rb +111 -0
  292. data/lib/stripe/params/identity/verification_session_list_params.rb +66 -0
  293. data/lib/stripe/params/identity/verification_session_redact_params.rb +15 -0
  294. data/lib/stripe/params/identity/verification_session_retrieve_params.rb +15 -0
  295. data/lib/stripe/params/identity/verification_session_update_params.rb +69 -0
  296. data/lib/stripe/params/invoice_add_lines_params.rb +263 -0
  297. data/lib/stripe/params/invoice_attach_payment_params.rb +61 -0
  298. data/lib/stripe/params/invoice_create_params.rb +723 -0
  299. data/lib/stripe/params/invoice_create_preview_params.rb +1810 -0
  300. data/lib/stripe/params/invoice_delete_params.rb +6 -0
  301. data/lib/stripe/params/invoice_finalize_invoice_params.rb +16 -0
  302. data/lib/stripe/params/invoice_item_create_params.rb +181 -0
  303. data/lib/stripe/params/invoice_item_delete_params.rb +6 -0
  304. data/lib/stripe/params/invoice_item_list_params.rb +64 -0
  305. data/lib/stripe/params/invoice_item_retrieve_params.rb +13 -0
  306. data/lib/stripe/params/invoice_item_update_params.rb +161 -0
  307. data/lib/stripe/params/invoice_line_item_list_params.rb +22 -0
  308. data/lib/stripe/params/invoice_line_item_update_params.rb +249 -0
  309. data/lib/stripe/params/invoice_list_params.rb +90 -0
  310. data/lib/stripe/params/invoice_mark_uncollectible_params.rb +13 -0
  311. data/lib/stripe/params/invoice_pay_params.rb +41 -0
  312. data/lib/stripe/params/invoice_payment_list_params.rb +75 -0
  313. data/lib/stripe/params/invoice_payment_retrieve_params.rb +13 -0
  314. data/lib/stripe/params/invoice_remove_lines_params.rb +30 -0
  315. data/lib/stripe/params/invoice_rendering_template_archive_params.rb +13 -0
  316. data/lib/stripe/params/invoice_rendering_template_list_params.rb +25 -0
  317. data/lib/stripe/params/invoice_rendering_template_retrieve_params.rb +16 -0
  318. data/lib/stripe/params/invoice_rendering_template_unarchive_params.rb +13 -0
  319. data/lib/stripe/params/invoice_retrieve_params.rb +13 -0
  320. data/lib/stripe/params/invoice_search_params.rb +22 -0
  321. data/lib/stripe/params/invoice_send_invoice_params.rb +13 -0
  322. data/lib/stripe/params/invoice_update_lines_params.rb +263 -0
  323. data/lib/stripe/params/invoice_update_params.rb +687 -0
  324. data/lib/stripe/params/invoice_void_invoice_params.rb +13 -0
  325. data/lib/stripe/params/issuing/authorization_approve_params.rb +21 -0
  326. data/lib/stripe/params/issuing/authorization_capture_params.rb +265 -0
  327. data/lib/stripe/params/issuing/authorization_create_params.rb +372 -0
  328. data/lib/stripe/params/issuing/authorization_decline_params.rb +18 -0
  329. data/lib/stripe/params/issuing/authorization_expire_params.rb +15 -0
  330. data/lib/stripe/params/issuing/authorization_finalize_amount_params.rb +143 -0
  331. data/lib/stripe/params/issuing/authorization_increment_params.rb +21 -0
  332. data/lib/stripe/params/issuing/authorization_list_params.rb +62 -0
  333. data/lib/stripe/params/issuing/authorization_respond_params.rb +18 -0
  334. data/lib/stripe/params/issuing/authorization_retrieve_params.rb +15 -0
  335. data/lib/stripe/params/issuing/authorization_reverse_params.rb +18 -0
  336. data/lib/stripe/params/issuing/authorization_update_params.rb +18 -0
  337. data/lib/stripe/params/issuing/card_create_params.rb +213 -0
  338. data/lib/stripe/params/issuing/card_deliver_card_params.rb +15 -0
  339. data/lib/stripe/params/issuing/card_fail_card_params.rb +15 -0
  340. data/lib/stripe/params/issuing/card_list_params.rb +78 -0
  341. data/lib/stripe/params/issuing/card_retrieve_params.rb +15 -0
  342. data/lib/stripe/params/issuing/card_return_card_params.rb +15 -0
  343. data/lib/stripe/params/issuing/card_ship_card_params.rb +15 -0
  344. data/lib/stripe/params/issuing/card_submit_card_params.rb +15 -0
  345. data/lib/stripe/params/issuing/card_update_params.rb +181 -0
  346. data/lib/stripe/params/issuing/cardholder_create_params.rb +239 -0
  347. data/lib/stripe/params/issuing/cardholder_list_params.rb +66 -0
  348. data/lib/stripe/params/issuing/cardholder_retrieve_params.rb +15 -0
  349. data/lib/stripe/params/issuing/cardholder_update_params.rb +230 -0
  350. data/lib/stripe/params/issuing/credit_underwriting_record_correct_params.rb +163 -0
  351. data/lib/stripe/params/issuing/credit_underwriting_record_create_from_application_params.rb +50 -0
  352. data/lib/stripe/params/issuing/credit_underwriting_record_create_from_proactive_review_params.rb +128 -0
  353. data/lib/stripe/params/issuing/credit_underwriting_record_list_params.rb +24 -0
  354. data/lib/stripe/params/issuing/credit_underwriting_record_report_decision_params.rb +86 -0
  355. data/lib/stripe/params/issuing/credit_underwriting_record_retrieve_params.rb +15 -0
  356. data/lib/stripe/params/issuing/dispute_create_params.rb +297 -0
  357. data/lib/stripe/params/issuing/dispute_list_params.rb +58 -0
  358. data/lib/stripe/params/issuing/dispute_retrieve_params.rb +15 -0
  359. data/lib/stripe/params/issuing/dispute_settlement_detail_list_params.rb +33 -0
  360. data/lib/stripe/params/issuing/dispute_settlement_detail_retrieve_params.rb +15 -0
  361. data/lib/stripe/params/issuing/dispute_submit_params.rb +18 -0
  362. data/lib/stripe/params/issuing/dispute_update_params.rb +275 -0
  363. data/lib/stripe/params/issuing/fraud_liability_debit_list_params.rb +44 -0
  364. data/lib/stripe/params/issuing/fraud_liability_debit_retrieve_params.rb +15 -0
  365. data/lib/stripe/params/issuing/personalization_design_activate_params.rb +15 -0
  366. data/lib/stripe/params/issuing/personalization_design_create_params.rb +75 -0
  367. data/lib/stripe/params/issuing/personalization_design_deactivate_params.rb +15 -0
  368. data/lib/stripe/params/issuing/personalization_design_list_params.rb +52 -0
  369. data/lib/stripe/params/issuing/personalization_design_reject_params.rb +29 -0
  370. data/lib/stripe/params/issuing/personalization_design_retrieve_params.rb +15 -0
  371. data/lib/stripe/params/issuing/personalization_design_update_params.rb +75 -0
  372. data/lib/stripe/params/issuing/physical_bundle_list_params.rb +37 -0
  373. data/lib/stripe/params/issuing/physical_bundle_retrieve_params.rb +15 -0
  374. data/lib/stripe/params/issuing/token_list_params.rb +58 -0
  375. data/lib/stripe/params/issuing/token_retrieve_params.rb +15 -0
  376. data/lib/stripe/params/issuing/token_update_params.rb +18 -0
  377. data/lib/stripe/params/issuing/transaction_create_force_capture_params.rb +316 -0
  378. data/lib/stripe/params/issuing/transaction_create_unlinked_refund_params.rb +316 -0
  379. data/lib/stripe/params/issuing/transaction_list_params.rb +66 -0
  380. data/lib/stripe/params/issuing/transaction_refund_params.rb +18 -0
  381. data/lib/stripe/params/issuing/transaction_retrieve_params.rb +15 -0
  382. data/lib/stripe/params/issuing/transaction_update_params.rb +18 -0
  383. data/lib/stripe/params/mandate_list_params.rb +39 -0
  384. data/lib/stripe/params/mandate_retrieve_params.rb +13 -0
  385. data/lib/stripe/params/margin_create_params.rb +25 -0
  386. data/lib/stripe/params/margin_list_params.rb +25 -0
  387. data/lib/stripe/params/margin_retrieve_params.rb +13 -0
  388. data/lib/stripe/params/margin_update_params.rb +22 -0
  389. data/lib/stripe/params/order_cancel_params.rb +13 -0
  390. data/lib/stripe/params/order_create_params.rb +2061 -0
  391. data/lib/stripe/params/order_line_item_list_params.rb +22 -0
  392. data/lib/stripe/params/order_list_line_items_params.rb +22 -0
  393. data/lib/stripe/params/order_list_params.rb +25 -0
  394. data/lib/stripe/params/order_reopen_params.rb +13 -0
  395. data/lib/stripe/params/order_retrieve_params.rb +13 -0
  396. data/lib/stripe/params/order_submit_params.rb +16 -0
  397. data/lib/stripe/params/order_update_params.rb +2065 -0
  398. data/lib/stripe/params/payment_attempt_record_list_params.rb +22 -0
  399. data/lib/stripe/params/payment_attempt_record_retrieve_params.rb +13 -0
  400. data/lib/stripe/params/payment_intent_amount_details_line_item_list_params.rb +22 -0
  401. data/lib/stripe/params/payment_intent_apply_customer_balance_params.rb +23 -0
  402. data/lib/stripe/params/payment_intent_cancel_params.rb +16 -0
  403. data/lib/stripe/params/payment_intent_capture_params.rb +1906 -0
  404. data/lib/stripe/params/payment_intent_confirm_params.rb +5647 -0
  405. data/lib/stripe/params/payment_intent_create_params.rb +5756 -0
  406. data/lib/stripe/params/payment_intent_decrement_authorization_params.rb +73 -0
  407. data/lib/stripe/params/payment_intent_increment_authorization_params.rb +295 -0
  408. data/lib/stripe/params/payment_intent_list_params.rb +56 -0
  409. data/lib/stripe/params/payment_intent_retrieve_params.rb +16 -0
  410. data/lib/stripe/params/payment_intent_search_params.rb +22 -0
  411. data/lib/stripe/params/payment_intent_trigger_action_params.rb +27 -0
  412. data/lib/stripe/params/payment_intent_update_params.rb +5660 -0
  413. data/lib/stripe/params/payment_intent_verify_microdeposits_params.rb +19 -0
  414. data/lib/stripe/params/payment_link_create_params.rb +815 -0
  415. data/lib/stripe/params/payment_link_line_item_list_params.rb +22 -0
  416. data/lib/stripe/params/payment_link_list_line_items_params.rb +22 -0
  417. data/lib/stripe/params/payment_link_list_params.rb +25 -0
  418. data/lib/stripe/params/payment_link_retrieve_params.rb +13 -0
  419. data/lib/stripe/params/payment_link_update_params.rb +603 -0
  420. data/lib/stripe/params/payment_method_attach_params.rb +19 -0
  421. data/lib/stripe/params/payment_method_configuration_create_params.rb +1303 -0
  422. data/lib/stripe/params/payment_method_configuration_list_params.rb +31 -0
  423. data/lib/stripe/params/payment_method_configuration_retrieve_params.rb +13 -0
  424. data/lib/stripe/params/payment_method_configuration_update_params.rb +1303 -0
  425. data/lib/stripe/params/payment_method_create_params.rb +694 -0
  426. data/lib/stripe/params/payment_method_detach_params.rb +13 -0
  427. data/lib/stripe/params/payment_method_domain_create_params.rb +19 -0
  428. data/lib/stripe/params/payment_method_domain_list_params.rb +35 -0
  429. data/lib/stripe/params/payment_method_domain_retrieve_params.rb +13 -0
  430. data/lib/stripe/params/payment_method_domain_update_params.rb +16 -0
  431. data/lib/stripe/params/payment_method_domain_validate_params.rb +13 -0
  432. data/lib/stripe/params/payment_method_list_params.rb +43 -0
  433. data/lib/stripe/params/payment_method_retrieve_params.rb +13 -0
  434. data/lib/stripe/params/payment_method_update_params.rb +139 -0
  435. data/lib/stripe/params/payment_record_report_payment_attempt_canceled_params.rb +19 -0
  436. data/lib/stripe/params/payment_record_report_payment_attempt_failed_params.rb +19 -0
  437. data/lib/stripe/params/payment_record_report_payment_attempt_guaranteed_params.rb +19 -0
  438. data/lib/stripe/params/payment_record_report_payment_attempt_informational_params.rb +93 -0
  439. data/lib/stripe/params/payment_record_report_payment_attempt_params.rb +186 -0
  440. data/lib/stripe/params/payment_record_report_payment_params.rb +252 -0
  441. data/lib/stripe/params/payment_record_report_refund_params.rb +79 -0
  442. data/lib/stripe/params/payment_record_retrieve_params.rb +13 -0
  443. data/lib/stripe/params/payout_cancel_params.rb +13 -0
  444. data/lib/stripe/params/payout_create_params.rb +51 -0
  445. data/lib/stripe/params/payout_list_params.rb +78 -0
  446. data/lib/stripe/params/payout_retrieve_params.rb +13 -0
  447. data/lib/stripe/params/payout_reverse_params.rb +16 -0
  448. data/lib/stripe/params/payout_update_params.rb +16 -0
  449. data/lib/stripe/params/plan_create_params.rb +158 -0
  450. data/lib/stripe/params/plan_delete_params.rb +6 -0
  451. data/lib/stripe/params/plan_list_params.rb +56 -0
  452. data/lib/stripe/params/plan_retrieve_params.rb +13 -0
  453. data/lib/stripe/params/plan_update_params.rb +35 -0
  454. data/lib/stripe/params/price_create_params.rb +278 -0
  455. data/lib/stripe/params/price_list_params.rb +87 -0
  456. data/lib/stripe/params/price_retrieve_params.rb +13 -0
  457. data/lib/stripe/params/price_search_params.rb +22 -0
  458. data/lib/stripe/params/price_update_params.rb +132 -0
  459. data/lib/stripe/params/privacy/redaction_job_cancel_params.rb +15 -0
  460. data/lib/stripe/params/privacy/redaction_job_create_params.rb +67 -0
  461. data/lib/stripe/params/privacy/redaction_job_list_params.rb +27 -0
  462. data/lib/stripe/params/privacy/redaction_job_retrieve_params.rb +15 -0
  463. data/lib/stripe/params/privacy/redaction_job_run_params.rb +15 -0
  464. data/lib/stripe/params/privacy/redaction_job_update_params.rb +18 -0
  465. data/lib/stripe/params/privacy/redaction_job_validate_params.rb +15 -0
  466. data/lib/stripe/params/privacy/redaction_job_validation_error_list_params.rb +24 -0
  467. data/lib/stripe/params/product_create_params.rb +243 -0
  468. data/lib/stripe/params/product_delete_params.rb +6 -0
  469. data/lib/stripe/params/product_feature_create_params.rb +16 -0
  470. data/lib/stripe/params/product_feature_delete_params.rb +6 -0
  471. data/lib/stripe/params/product_feature_list_params.rb +22 -0
  472. data/lib/stripe/params/product_feature_retrieve_params.rb +13 -0
  473. data/lib/stripe/params/product_list_params.rb +68 -0
  474. data/lib/stripe/params/product_retrieve_params.rb +13 -0
  475. data/lib/stripe/params/product_search_params.rb +22 -0
  476. data/lib/stripe/params/product_update_params.rb +96 -0
  477. data/lib/stripe/params/promotion_code_create_params.rb +95 -0
  478. data/lib/stripe/params/promotion_code_list_params.rb +68 -0
  479. data/lib/stripe/params/promotion_code_retrieve_params.rb +13 -0
  480. data/lib/stripe/params/promotion_code_update_params.rb +38 -0
  481. data/lib/stripe/params/quote_accept_params.rb +13 -0
  482. data/lib/stripe/params/quote_cancel_params.rb +13 -0
  483. data/lib/stripe/params/quote_computed_upfront_line_items_list_params.rb +22 -0
  484. data/lib/stripe/params/quote_create_params.rb +1103 -0
  485. data/lib/stripe/params/quote_finalize_quote_params.rb +16 -0
  486. data/lib/stripe/params/quote_line_item_list_params.rb +22 -0
  487. data/lib/stripe/params/quote_line_list_params.rb +22 -0
  488. data/lib/stripe/params/quote_list_computed_upfront_line_items_params.rb +22 -0
  489. data/lib/stripe/params/quote_list_line_items_params.rb +22 -0
  490. data/lib/stripe/params/quote_list_lines_params.rb +22 -0
  491. data/lib/stripe/params/quote_list_params.rb +47 -0
  492. data/lib/stripe/params/quote_list_preview_invoice_lines_params.rb +22 -0
  493. data/lib/stripe/params/quote_mark_draft_params.rb +13 -0
  494. data/lib/stripe/params/quote_mark_stale_params.rb +16 -0
  495. data/lib/stripe/params/quote_pdf_params.rb +13 -0
  496. data/lib/stripe/params/quote_preview_invoice_list_params.rb +22 -0
  497. data/lib/stripe/params/quote_preview_subscription_schedule_list_params.rb +22 -0
  498. data/lib/stripe/params/quote_reestimate_params.rb +13 -0
  499. data/lib/stripe/params/quote_retrieve_params.rb +13 -0
  500. data/lib/stripe/params/quote_update_params.rb +1072 -0
  501. data/lib/stripe/params/radar/early_fraud_warning_list_params.rb +58 -0
  502. data/lib/stripe/params/radar/early_fraud_warning_retrieve_params.rb +15 -0
  503. data/lib/stripe/params/radar/value_list_create_params.rb +27 -0
  504. data/lib/stripe/{resources/usage_record_summary.rb → params/radar/value_list_delete_params.rb} +2 -2
  505. data/lib/stripe/params/radar/value_list_item_create_params.rb +21 -0
  506. data/lib/stripe/params/radar/value_list_item_delete_params.rb +8 -0
  507. data/lib/stripe/params/radar/value_list_item_list_params.rb +58 -0
  508. data/lib/stripe/params/radar/value_list_item_retrieve_params.rb +15 -0
  509. data/lib/stripe/params/radar/value_list_list_params.rb +58 -0
  510. data/lib/stripe/params/radar/value_list_retrieve_params.rb +15 -0
  511. data/lib/stripe/params/radar/value_list_update_params.rb +24 -0
  512. data/lib/stripe/params/refund_cancel_params.rb +13 -0
  513. data/lib/stripe/params/refund_create_params.rb +59 -0
  514. data/lib/stripe/params/refund_expire_params.rb +13 -0
  515. data/lib/stripe/params/refund_list_params.rb +56 -0
  516. data/lib/stripe/params/refund_retrieve_params.rb +13 -0
  517. data/lib/stripe/params/refund_update_params.rb +16 -0
  518. data/lib/stripe/params/reporting/report_run_create_params.rb +59 -0
  519. data/lib/stripe/params/reporting/report_run_list_params.rb +44 -0
  520. data/lib/stripe/params/reporting/report_run_retrieve_params.rb +15 -0
  521. data/lib/stripe/params/reporting/report_type_list_params.rb +15 -0
  522. data/lib/stripe/params/reporting/report_type_retrieve_params.rb +15 -0
  523. data/lib/stripe/params/reserve/hold_list_params.rb +53 -0
  524. data/lib/stripe/params/reserve/hold_retrieve_params.rb +15 -0
  525. data/lib/stripe/params/reserve/plan_retrieve_params.rb +15 -0
  526. data/lib/stripe/params/reserve/release_list_params.rb +41 -0
  527. data/lib/stripe/params/reserve/release_retrieve_params.rb +15 -0
  528. data/lib/stripe/params/review_approve_params.rb +13 -0
  529. data/lib/stripe/params/review_list_params.rb +42 -0
  530. data/lib/stripe/params/review_retrieve_params.rb +13 -0
  531. data/lib/stripe/params/setup_attempt_list_params.rb +55 -0
  532. data/lib/stripe/params/setup_intent_cancel_params.rb +16 -0
  533. data/lib/stripe/params/setup_intent_confirm_params.rb +1272 -0
  534. data/lib/stripe/params/setup_intent_create_params.rb +1362 -0
  535. data/lib/stripe/params/setup_intent_list_params.rb +66 -0
  536. data/lib/stripe/params/setup_intent_retrieve_params.rb +16 -0
  537. data/lib/stripe/params/setup_intent_update_params.rb +1257 -0
  538. data/lib/stripe/params/setup_intent_verify_microdeposits_params.rb +19 -0
  539. data/lib/stripe/params/shipping_rate_create_params.rb +103 -0
  540. data/lib/stripe/params/shipping_rate_list_params.rb +56 -0
  541. data/lib/stripe/params/shipping_rate_retrieve_params.rb +13 -0
  542. data/lib/stripe/params/shipping_rate_update_params.rb +44 -0
  543. data/lib/stripe/params/sigma/scheduled_query_run_list_params.rb +24 -0
  544. data/lib/stripe/params/sigma/scheduled_query_run_retrieve_params.rb +15 -0
  545. data/lib/stripe/params/source_create_params.rb +317 -0
  546. data/lib/stripe/params/source_detach_params.rb +13 -0
  547. data/lib/stripe/params/source_retrieve_params.rb +16 -0
  548. data/lib/stripe/params/source_transaction_list_params.rb +22 -0
  549. data/lib/stripe/params/source_update_params.rb +259 -0
  550. data/lib/stripe/params/source_verify_params.rb +16 -0
  551. data/lib/stripe/params/subscription_attach_cadence_params.rb +16 -0
  552. data/lib/stripe/params/subscription_cancel_params.rb +33 -0
  553. data/lib/stripe/params/subscription_create_params.rb +982 -0
  554. data/lib/stripe/params/subscription_delete_discount_params.rb +6 -0
  555. data/lib/stripe/params/subscription_item_create_params.rb +178 -0
  556. data/lib/stripe/params/subscription_item_delete_params.rb +19 -0
  557. data/lib/stripe/params/subscription_item_list_params.rb +31 -0
  558. data/lib/stripe/params/subscription_item_retrieve_params.rb +13 -0
  559. data/lib/stripe/params/subscription_item_update_params.rb +162 -0
  560. data/lib/stripe/params/subscription_list_params.rb +133 -0
  561. data/lib/stripe/params/subscription_migrate_params.rb +35 -0
  562. data/lib/stripe/params/subscription_resume_params.rb +27 -0
  563. data/lib/stripe/params/subscription_retrieve_params.rb +13 -0
  564. data/lib/stripe/params/subscription_schedule_amend_params.rb +570 -0
  565. data/lib/stripe/params/subscription_schedule_cancel_params.rb +19 -0
  566. data/lib/stripe/params/subscription_schedule_create_params.rb +752 -0
  567. data/lib/stripe/params/subscription_schedule_list_params.rb +126 -0
  568. data/lib/stripe/params/subscription_schedule_release_params.rb +16 -0
  569. data/lib/stripe/params/subscription_schedule_retrieve_params.rb +13 -0
  570. data/lib/stripe/params/subscription_schedule_update_params.rb +720 -0
  571. data/lib/stripe/params/subscription_search_params.rb +22 -0
  572. data/lib/stripe/params/subscription_update_params.rb +941 -0
  573. data/lib/stripe/params/tax/association_find_params.rb +18 -0
  574. data/lib/stripe/params/tax/calculation_create_params.rb +206 -0
  575. data/lib/stripe/params/tax/calculation_line_item_list_params.rb +24 -0
  576. data/lib/stripe/params/tax/calculation_list_line_items_params.rb +24 -0
  577. data/lib/stripe/params/tax/calculation_retrieve_params.rb +15 -0
  578. data/lib/stripe/params/tax/form_list_params.rb +51 -0
  579. data/lib/stripe/params/tax/form_pdf_params.rb +15 -0
  580. data/lib/stripe/params/tax/form_retrieve_params.rb +15 -0
  581. data/lib/stripe/params/tax/registration_create_params.rb +2031 -0
  582. data/lib/stripe/params/tax/registration_list_params.rb +27 -0
  583. data/lib/stripe/params/tax/registration_retrieve_params.rb +15 -0
  584. data/lib/stripe/params/tax/registration_update_params.rb +21 -0
  585. data/lib/stripe/params/tax/settings_retrieve_params.rb +15 -0
  586. data/lib/stripe/params/tax/settings_update_params.rb +71 -0
  587. data/lib/stripe/params/tax/transaction_create_from_calculation_params.rb +27 -0
  588. data/lib/stripe/params/tax/transaction_create_reversal_params.rb +87 -0
  589. data/lib/stripe/params/tax/transaction_line_item_list_params.rb +24 -0
  590. data/lib/stripe/params/tax/transaction_list_line_items_params.rb +24 -0
  591. data/lib/stripe/params/tax/transaction_retrieve_params.rb +15 -0
  592. data/lib/stripe/params/tax_code_list_params.rb +22 -0
  593. data/lib/stripe/params/tax_code_retrieve_params.rb +13 -0
  594. data/lib/stripe/params/tax_id_create_params.rb +39 -0
  595. data/lib/stripe/params/tax_id_delete_params.rb +6 -0
  596. data/lib/stripe/params/tax_id_list_params.rb +42 -0
  597. data/lib/stripe/params/tax_id_retrieve_params.rb +13 -0
  598. data/lib/stripe/params/tax_rate_create_params.rb +55 -0
  599. data/lib/stripe/params/tax_rate_list_params.rb +56 -0
  600. data/lib/stripe/params/tax_rate_retrieve_params.rb +13 -0
  601. data/lib/stripe/params/tax_rate_update_params.rb +47 -0
  602. data/lib/stripe/params/terminal/configuration_create_params.rb +625 -0
  603. data/lib/stripe/params/terminal/configuration_delete_params.rb +8 -0
  604. data/lib/stripe/params/terminal/configuration_list_params.rb +33 -0
  605. data/lib/stripe/params/terminal/configuration_retrieve_params.rb +15 -0
  606. data/lib/stripe/params/terminal/configuration_update_params.rb +625 -0
  607. data/lib/stripe/params/terminal/connection_token_create_params.rb +18 -0
  608. data/lib/stripe/params/terminal/location_create_params.rb +153 -0
  609. data/lib/stripe/params/terminal/location_delete_params.rb +8 -0
  610. data/lib/stripe/params/terminal/location_list_params.rb +24 -0
  611. data/lib/stripe/params/terminal/location_retrieve_params.rb +15 -0
  612. data/lib/stripe/params/terminal/location_update_params.rb +153 -0
  613. data/lib/stripe/params/terminal/onboarding_link_create_params.rb +43 -0
  614. data/lib/stripe/params/terminal/reader_cancel_action_params.rb +15 -0
  615. data/lib/stripe/params/terminal/reader_collect_inputs_params.rb +96 -0
  616. data/lib/stripe/params/terminal/reader_collect_payment_method_params.rb +51 -0
  617. data/lib/stripe/params/terminal/reader_collected_data_retrieve_params.rb +15 -0
  618. data/lib/stripe/params/terminal/reader_confirm_payment_intent_params.rb +29 -0
  619. data/lib/stripe/params/terminal/reader_create_params.rb +27 -0
  620. data/lib/stripe/params/terminal/reader_delete_params.rb +8 -0
  621. data/lib/stripe/params/terminal/reader_list_params.rb +45 -0
  622. data/lib/stripe/params/terminal/reader_present_payment_method_params.rb +72 -0
  623. data/lib/stripe/params/terminal/reader_process_payment_intent_params.rb +55 -0
  624. data/lib/stripe/params/terminal/reader_process_setup_intent_params.rb +32 -0
  625. data/lib/stripe/params/terminal/reader_refund_payment_params.rb +53 -0
  626. data/lib/stripe/params/terminal/reader_retrieve_params.rb +15 -0
  627. data/lib/stripe/params/terminal/reader_set_reader_display_params.rb +52 -0
  628. data/lib/stripe/params/terminal/reader_succeed_input_collection_params.rb +18 -0
  629. data/lib/stripe/params/terminal/reader_timeout_input_collection_params.rb +15 -0
  630. data/lib/stripe/params/terminal/reader_update_params.rb +21 -0
  631. data/lib/stripe/params/test_helpers/confirmation_token_create_params.rb +749 -0
  632. data/lib/stripe/params/test_helpers/customer_fund_cash_balance_params.rb +24 -0
  633. data/lib/stripe/params/test_helpers/issuing/authorization_capture_params.rb +267 -0
  634. data/lib/stripe/params/test_helpers/issuing/authorization_create_params.rb +374 -0
  635. data/lib/stripe/params/test_helpers/issuing/authorization_expire_params.rb +17 -0
  636. data/lib/stripe/params/test_helpers/issuing/authorization_finalize_amount_params.rb +145 -0
  637. data/lib/stripe/params/test_helpers/issuing/authorization_increment_params.rb +23 -0
  638. data/lib/stripe/params/test_helpers/issuing/authorization_respond_params.rb +20 -0
  639. data/lib/stripe/params/test_helpers/issuing/authorization_reverse_params.rb +20 -0
  640. data/lib/stripe/params/test_helpers/issuing/card_deliver_card_params.rb +17 -0
  641. data/lib/stripe/params/test_helpers/issuing/card_fail_card_params.rb +17 -0
  642. data/lib/stripe/params/test_helpers/issuing/card_return_card_params.rb +17 -0
  643. data/lib/stripe/params/test_helpers/issuing/card_ship_card_params.rb +17 -0
  644. data/lib/stripe/params/test_helpers/issuing/card_submit_card_params.rb +17 -0
  645. data/lib/stripe/params/test_helpers/issuing/personalization_design_activate_params.rb +17 -0
  646. data/lib/stripe/params/test_helpers/issuing/personalization_design_deactivate_params.rb +17 -0
  647. data/lib/stripe/params/test_helpers/issuing/personalization_design_reject_params.rb +31 -0
  648. data/lib/stripe/params/test_helpers/issuing/transaction_create_force_capture_params.rb +318 -0
  649. data/lib/stripe/params/test_helpers/issuing/transaction_create_unlinked_refund_params.rb +318 -0
  650. data/lib/stripe/params/test_helpers/issuing/transaction_refund_params.rb +20 -0
  651. data/lib/stripe/params/test_helpers/refund_expire_params.rb +15 -0
  652. data/lib/stripe/params/test_helpers/terminal/reader_present_payment_method_params.rb +74 -0
  653. data/lib/stripe/params/test_helpers/terminal/reader_succeed_input_collection_params.rb +20 -0
  654. data/lib/stripe/params/test_helpers/terminal/reader_timeout_input_collection_params.rb +17 -0
  655. data/lib/stripe/params/test_helpers/test_clock_advance_params.rb +18 -0
  656. data/lib/stripe/params/test_helpers/test_clock_create_params.rb +21 -0
  657. data/lib/stripe/params/test_helpers/test_clock_delete_params.rb +8 -0
  658. data/lib/stripe/params/test_helpers/test_clock_list_params.rb +24 -0
  659. data/lib/stripe/params/test_helpers/test_clock_retrieve_params.rb +15 -0
  660. data/lib/stripe/params/test_helpers/treasury/inbound_transfer_fail_params.rb +28 -0
  661. data/lib/stripe/params/test_helpers/treasury/inbound_transfer_return_inbound_transfer_params.rb +17 -0
  662. data/lib/stripe/params/test_helpers/treasury/inbound_transfer_succeed_params.rb +17 -0
  663. data/lib/stripe/params/test_helpers/treasury/outbound_payment_fail_params.rb +17 -0
  664. data/lib/stripe/params/test_helpers/treasury/outbound_payment_post_params.rb +17 -0
  665. data/lib/stripe/params/test_helpers/treasury/outbound_payment_return_outbound_payment_params.rb +28 -0
  666. data/lib/stripe/params/test_helpers/treasury/outbound_payment_update_params.rb +57 -0
  667. data/lib/stripe/params/test_helpers/treasury/outbound_transfer_fail_params.rb +17 -0
  668. data/lib/stripe/params/test_helpers/treasury/outbound_transfer_post_params.rb +17 -0
  669. data/lib/stripe/params/test_helpers/treasury/outbound_transfer_return_outbound_transfer_params.rb +28 -0
  670. data/lib/stripe/params/test_helpers/treasury/outbound_transfer_update_params.rb +57 -0
  671. data/lib/stripe/params/test_helpers/treasury/received_credit_create_params.rb +92 -0
  672. data/lib/stripe/params/test_helpers/treasury/received_debit_create_params.rb +92 -0
  673. data/lib/stripe/params/token_create_params.rb +1210 -0
  674. data/lib/stripe/params/token_retrieve_params.rb +13 -0
  675. data/lib/stripe/params/topup_cancel_params.rb +13 -0
  676. data/lib/stripe/params/topup_create_params.rb +43 -0
  677. data/lib/stripe/params/topup_list_params.rb +74 -0
  678. data/lib/stripe/params/topup_retrieve_params.rb +13 -0
  679. data/lib/stripe/params/topup_update_params.rb +19 -0
  680. data/lib/stripe/params/transfer_create_params.rb +51 -0
  681. data/lib/stripe/params/transfer_list_params.rb +56 -0
  682. data/lib/stripe/params/transfer_retrieve_params.rb +13 -0
  683. data/lib/stripe/params/transfer_reversal_create_params.rb +31 -0
  684. data/lib/stripe/params/transfer_reversal_list_params.rb +22 -0
  685. data/lib/stripe/params/transfer_reversal_retrieve_params.rb +13 -0
  686. data/lib/stripe/params/transfer_reversal_update_params.rb +16 -0
  687. data/lib/stripe/params/transfer_update_params.rb +19 -0
  688. data/lib/stripe/params/treasury/credit_reversal_create_params.rb +21 -0
  689. data/lib/stripe/params/treasury/credit_reversal_list_params.rb +41 -0
  690. data/lib/stripe/params/treasury/credit_reversal_retrieve_params.rb +15 -0
  691. data/lib/stripe/params/treasury/debit_reversal_create_params.rb +21 -0
  692. data/lib/stripe/params/treasury/debit_reversal_list_params.rb +45 -0
  693. data/lib/stripe/params/treasury/debit_reversal_retrieve_params.rb +15 -0
  694. data/lib/stripe/params/treasury/financial_account_close_params.rb +32 -0
  695. data/lib/stripe/params/treasury/financial_account_create_params.rb +208 -0
  696. data/lib/stripe/params/treasury/financial_account_features_retrieve_params.rb +15 -0
  697. data/lib/stripe/params/treasury/financial_account_features_update_params.rb +166 -0
  698. data/lib/stripe/params/treasury/financial_account_list_params.rb +54 -0
  699. data/lib/stripe/params/treasury/financial_account_retrieve_features_params.rb +15 -0
  700. data/lib/stripe/params/treasury/financial_account_retrieve_params.rb +15 -0
  701. data/lib/stripe/params/treasury/financial_account_update_features_params.rb +166 -0
  702. data/lib/stripe/params/treasury/financial_account_update_params.rb +223 -0
  703. data/lib/stripe/params/treasury/inbound_transfer_cancel_params.rb +15 -0
  704. data/lib/stripe/params/treasury/inbound_transfer_create_params.rb +45 -0
  705. data/lib/stripe/params/treasury/inbound_transfer_fail_params.rb +26 -0
  706. data/lib/stripe/params/treasury/inbound_transfer_list_params.rb +37 -0
  707. data/lib/stripe/params/treasury/inbound_transfer_retrieve_params.rb +15 -0
  708. data/lib/stripe/params/treasury/inbound_transfer_return_inbound_transfer_params.rb +15 -0
  709. data/lib/stripe/params/treasury/inbound_transfer_succeed_params.rb +15 -0
  710. data/lib/stripe/params/treasury/outbound_payment_cancel_params.rb +15 -0
  711. data/lib/stripe/params/treasury/outbound_payment_create_params.rb +190 -0
  712. data/lib/stripe/params/treasury/outbound_payment_fail_params.rb +15 -0
  713. data/lib/stripe/params/treasury/outbound_payment_list_params.rb +62 -0
  714. data/lib/stripe/params/treasury/outbound_payment_post_params.rb +15 -0
  715. data/lib/stripe/params/treasury/outbound_payment_retrieve_params.rb +15 -0
  716. data/lib/stripe/params/treasury/outbound_payment_return_outbound_payment_params.rb +26 -0
  717. data/lib/stripe/params/treasury/outbound_payment_update_params.rb +55 -0
  718. data/lib/stripe/params/treasury/outbound_transfer_cancel_params.rb +15 -0
  719. data/lib/stripe/params/treasury/outbound_transfer_create_params.rb +105 -0
  720. data/lib/stripe/params/treasury/outbound_transfer_fail_params.rb +15 -0
  721. data/lib/stripe/params/treasury/outbound_transfer_list_params.rb +37 -0
  722. data/lib/stripe/params/treasury/outbound_transfer_post_params.rb +15 -0
  723. data/lib/stripe/params/treasury/outbound_transfer_retrieve_params.rb +15 -0
  724. data/lib/stripe/params/treasury/outbound_transfer_return_outbound_transfer_params.rb +26 -0
  725. data/lib/stripe/params/treasury/outbound_transfer_update_params.rb +55 -0
  726. data/lib/stripe/params/treasury/received_credit_create_params.rb +90 -0
  727. data/lib/stripe/params/treasury/received_credit_list_params.rb +49 -0
  728. data/lib/stripe/params/treasury/received_credit_retrieve_params.rb +15 -0
  729. data/lib/stripe/params/treasury/received_debit_create_params.rb +90 -0
  730. data/lib/stripe/params/treasury/received_debit_list_params.rb +37 -0
  731. data/lib/stripe/params/treasury/received_debit_retrieve_params.rb +15 -0
  732. data/lib/stripe/params/treasury/transaction_entry_list_params.rb +84 -0
  733. data/lib/stripe/params/treasury/transaction_entry_retrieve_params.rb +15 -0
  734. data/lib/stripe/params/treasury/transaction_list_params.rb +92 -0
  735. data/lib/stripe/params/treasury/transaction_retrieve_params.rb +15 -0
  736. data/lib/stripe/params/v2/billing/bill_setting_create_params.rb +74 -0
  737. data/lib/stripe/params/v2/billing/bill_setting_list_params.rb +21 -0
  738. data/lib/stripe/params/v2/billing/bill_setting_retrieve_params.rb +10 -0
  739. data/lib/stripe/params/v2/billing/bill_setting_update_params.rb +80 -0
  740. data/lib/stripe/params/v2/billing/bill_settings/version_list_params.rb +19 -0
  741. data/lib/stripe/params/v2/billing/bill_settings/version_retrieve_params.rb +12 -0
  742. data/lib/stripe/{resources/issuing/card_details.rb → params/v2/billing/cadence_cancel_params.rb} +3 -3
  743. data/lib/stripe/params/v2/billing/cadence_create_params.rb +253 -0
  744. data/lib/stripe/params/v2/billing/cadence_list_params.rb +43 -0
  745. data/lib/stripe/params/v2/billing/cadence_retrieve_params.rb +17 -0
  746. data/lib/stripe/params/v2/billing/cadence_update_params.rb +75 -0
  747. data/lib/stripe/params/v2/billing/collection_setting_create_params.rb +223 -0
  748. data/lib/stripe/params/v2/billing/collection_setting_list_params.rb +21 -0
  749. data/lib/stripe/params/v2/billing/collection_setting_retrieve_params.rb +10 -0
  750. data/lib/stripe/params/v2/billing/collection_setting_update_params.rb +229 -0
  751. data/lib/stripe/params/v2/billing/collection_settings/version_list_params.rb +19 -0
  752. data/lib/stripe/params/v2/billing/collection_settings/version_retrieve_params.rb +12 -0
  753. data/lib/stripe/params/v2/billing/meter_event_adjustment_create_params.rb +31 -0
  754. data/lib/stripe/params/v2/billing/meter_event_create_params.rb +33 -0
  755. data/lib/stripe/params/v2/billing/meter_event_session_create_params.rb +10 -0
  756. data/lib/stripe/params/v2/billing/meter_event_stream_create_params.rb +41 -0
  757. data/lib/stripe/params/v2/billing/profile_create_params.rb +37 -0
  758. data/lib/stripe/params/v2/billing/profile_list_params.rb +40 -0
  759. data/lib/stripe/params/v2/billing/profile_retrieve_params.rb +10 -0
  760. data/lib/stripe/params/v2/billing/profile_update_params.rb +35 -0
  761. data/lib/stripe/params/v2/core/account_close_params.rb +17 -0
  762. data/lib/stripe/params/v2/core/account_create_params.rb +2363 -0
  763. data/lib/stripe/params/v2/core/account_link_create_params.rb +101 -0
  764. data/lib/stripe/params/v2/core/account_list_params.rb +23 -0
  765. data/lib/stripe/params/v2/core/account_retrieve_params.rb +17 -0
  766. data/lib/stripe/params/v2/core/account_token_create_params.rb +1023 -0
  767. data/lib/stripe/params/v2/core/account_token_retrieve_params.rb +10 -0
  768. data/lib/stripe/params/v2/core/account_update_params.rb +2409 -0
  769. data/lib/stripe/params/v2/core/accounts/person_create_params.rb +497 -0
  770. data/lib/stripe/params/v2/core/accounts/person_delete_params.rb +12 -0
  771. data/lib/stripe/params/v2/core/accounts/person_list_params.rb +19 -0
  772. data/lib/stripe/params/v2/core/accounts/person_retrieve_params.rb +12 -0
  773. data/lib/stripe/params/v2/core/accounts/person_token_create_params.rb +487 -0
  774. data/lib/stripe/params/v2/core/accounts/person_token_retrieve_params.rb +12 -0
  775. data/lib/stripe/params/v2/core/accounts/person_update_params.rb +497 -0
  776. data/lib/stripe/params/v2/core/event_destination_create_params.rb +79 -0
  777. data/lib/stripe/params/v2/core/event_destination_delete_params.rb +10 -0
  778. data/lib/stripe/params/v2/core/event_destination_disable_params.rb +10 -0
  779. data/lib/stripe/params/v2/core/event_destination_enable_params.rb +10 -0
  780. data/lib/stripe/params/v2/core/event_destination_list_params.rb +20 -0
  781. data/lib/stripe/params/v2/core/event_destination_ping_params.rb +10 -0
  782. data/lib/stripe/params/v2/core/event_destination_retrieve_params.rb +17 -0
  783. data/lib/stripe/params/v2/core/event_destination_update_params.rb +47 -0
  784. data/lib/stripe/params/v2/core/event_list_params.rb +45 -0
  785. data/lib/stripe/params/v2/core/event_retrieve_params.rb +10 -0
  786. data/lib/stripe/params/v2/core/vault/gb_bank_account_acknowledge_confirmation_of_payee_params.rb +12 -0
  787. data/lib/stripe/params/v2/core/vault/gb_bank_account_archive_params.rb +12 -0
  788. data/lib/stripe/params/v2/core/vault/gb_bank_account_create_params.rb +50 -0
  789. data/lib/stripe/params/v2/core/vault/gb_bank_account_initiate_confirmation_of_payee_params.rb +22 -0
  790. data/lib/stripe/params/v2/core/vault/gb_bank_account_list_params.rb +19 -0
  791. data/lib/stripe/params/v2/core/vault/gb_bank_account_retrieve_params.rb +12 -0
  792. data/lib/stripe/params/v2/core/vault/us_bank_account_archive_params.rb +12 -0
  793. data/lib/stripe/params/v2/core/vault/us_bank_account_confirm_microdeposits_params.rb +22 -0
  794. data/lib/stripe/params/v2/core/vault/us_bank_account_create_params.rb +33 -0
  795. data/lib/stripe/params/v2/core/vault/us_bank_account_list_params.rb +22 -0
  796. data/lib/stripe/params/v2/core/vault/us_bank_account_retrieve_params.rb +12 -0
  797. data/lib/stripe/params/v2/core/vault/us_bank_account_send_microdeposits_params.rb +12 -0
  798. data/lib/stripe/params/v2/core/vault/us_bank_account_update_params.rb +22 -0
  799. data/lib/stripe/params/v2/money_management/adjustment_list_params.rb +48 -0
  800. data/lib/stripe/params/v2/money_management/adjustment_retrieve_params.rb +10 -0
  801. data/lib/stripe/params/v2/money_management/financial_account_close_params.rb +28 -0
  802. data/lib/stripe/params/v2/money_management/financial_account_create_params.rb +34 -0
  803. data/lib/stripe/params/v2/money_management/financial_account_list_params.rb +20 -0
  804. data/lib/stripe/params/v2/money_management/financial_account_retrieve_params.rb +10 -0
  805. data/lib/stripe/params/v2/money_management/financial_account_update_params.rb +20 -0
  806. data/lib/stripe/params/v2/money_management/financial_address_create_params.rb +20 -0
  807. data/lib/stripe/params/v2/money_management/financial_address_list_params.rb +23 -0
  808. data/lib/stripe/params/v2/money_management/financial_address_retrieve_params.rb +17 -0
  809. data/lib/stripe/params/v2/money_management/inbound_transfer_create_params.rb +62 -0
  810. data/lib/stripe/params/v2/money_management/inbound_transfer_list_params.rb +44 -0
  811. data/lib/stripe/params/v2/money_management/inbound_transfer_retrieve_params.rb +10 -0
  812. data/lib/stripe/params/v2/money_management/outbound_payment_cancel_params.rb +10 -0
  813. data/lib/stripe/params/v2/money_management/outbound_payment_create_params.rb +110 -0
  814. data/lib/stripe/params/v2/money_management/outbound_payment_list_params.rb +52 -0
  815. data/lib/stripe/params/v2/money_management/outbound_payment_quote_create_params.rb +79 -0
  816. data/lib/stripe/params/v2/money_management/outbound_payment_quote_retrieve_params.rb +10 -0
  817. data/lib/stripe/params/v2/money_management/outbound_payment_retrieve_params.rb +10 -0
  818. data/lib/stripe/params/v2/money_management/outbound_setup_intent_cancel_params.rb +10 -0
  819. data/lib/stripe/params/v2/money_management/outbound_setup_intent_create_params.rb +85 -0
  820. data/lib/stripe/params/v2/money_management/outbound_setup_intent_list_params.rb +17 -0
  821. data/lib/stripe/params/v2/money_management/outbound_setup_intent_retrieve_params.rb +10 -0
  822. data/lib/stripe/params/v2/money_management/outbound_setup_intent_update_params.rb +80 -0
  823. data/lib/stripe/params/v2/money_management/outbound_transfer_cancel_params.rb +10 -0
  824. data/lib/stripe/params/v2/money_management/outbound_transfer_create_params.rb +89 -0
  825. data/lib/stripe/params/v2/money_management/outbound_transfer_list_params.rb +48 -0
  826. data/lib/stripe/params/v2/money_management/outbound_transfer_retrieve_params.rb +10 -0
  827. data/lib/stripe/params/v2/money_management/payout_method_archive_params.rb +10 -0
  828. data/lib/stripe/params/v2/money_management/payout_method_list_params.rb +31 -0
  829. data/lib/stripe/params/v2/money_management/payout_method_retrieve_params.rb +10 -0
  830. data/lib/stripe/params/v2/money_management/payout_method_unarchive_params.rb +10 -0
  831. data/lib/stripe/params/v2/money_management/payout_methods_bank_account_spec_retrieve_params.rb +17 -0
  832. data/lib/stripe/params/v2/money_management/received_credit_list_params.rb +44 -0
  833. data/lib/stripe/params/v2/money_management/received_credit_retrieve_params.rb +10 -0
  834. data/lib/stripe/params/v2/money_management/received_debit_list_params.rb +17 -0
  835. data/lib/stripe/params/v2/money_management/received_debit_retrieve_params.rb +10 -0
  836. data/lib/stripe/params/v2/money_management/transaction_entry_list_params.rb +43 -0
  837. data/lib/stripe/params/v2/money_management/transaction_entry_retrieve_params.rb +10 -0
  838. data/lib/stripe/params/v2/money_management/transaction_list_params.rb +47 -0
  839. data/lib/stripe/params/v2/money_management/transaction_retrieve_params.rb +10 -0
  840. data/lib/stripe/params/v2/test_helpers/financial_address_credit_params.rb +34 -0
  841. data/lib/stripe/params/v2/test_helpers/financial_address_generate_microdeposits_params.rb +10 -0
  842. data/lib/stripe/params/webhook_endpoint_create_params.rb +39 -0
  843. data/lib/stripe/params/webhook_endpoint_delete_params.rb +6 -0
  844. data/lib/stripe/params/webhook_endpoint_list_params.rb +22 -0
  845. data/lib/stripe/params/webhook_endpoint_retrieve_params.rb +13 -0
  846. data/lib/stripe/params/webhook_endpoint_update_params.rb +35 -0
  847. data/lib/stripe/params.rb +767 -0
  848. data/lib/stripe/request_options.rb +138 -0
  849. data/lib/stripe/request_params.rb +24 -0
  850. data/lib/stripe/resources/account.rb +1320 -26
  851. data/lib/stripe/resources/account_link.rb +29 -0
  852. data/lib/stripe/resources/account_notice.rb +94 -0
  853. data/lib/stripe/resources/account_session.rb +764 -0
  854. data/lib/stripe/resources/alipay_account.rb +1 -1
  855. data/lib/stripe/resources/apple_pay_domain.rb +59 -0
  856. data/lib/stripe/resources/application.rb +28 -0
  857. data/lib/stripe/resources/application_fee.rb +64 -2
  858. data/lib/stripe/resources/application_fee_refund.rb +34 -2
  859. data/lib/stripe/resources/apps/secret.rb +96 -0
  860. data/lib/stripe/resources/balance.rb +332 -0
  861. data/lib/stripe/resources/balance_settings.rb +92 -0
  862. data/lib/stripe/resources/balance_transaction.rb +80 -0
  863. data/lib/stripe/resources/bank_account.rb +177 -6
  864. data/lib/stripe/resources/billing/alert.rb +142 -0
  865. data/lib/stripe/resources/billing/alert_triggered.rb +34 -0
  866. data/lib/stripe/resources/billing/analytics/meter_usage.rb +33 -0
  867. data/lib/stripe/resources/billing/analytics/meter_usage_row.rb +38 -0
  868. data/lib/stripe/resources/billing/credit_balance_summary.rb +104 -0
  869. data/lib/stripe/resources/billing/credit_balance_transaction.rb +177 -0
  870. data/lib/stripe/resources/billing/credit_grant.rb +200 -0
  871. data/lib/stripe/resources/billing/meter.rb +178 -0
  872. data/lib/stripe/resources/billing/meter_event.rb +49 -0
  873. data/lib/stripe/resources/billing/meter_event_adjustment.rb +59 -0
  874. data/lib/stripe/resources/billing/meter_event_summary.rb +40 -0
  875. data/lib/stripe/resources/billing_portal/configuration.rb +292 -0
  876. data/lib/stripe/resources/billing_portal/session.rb +228 -0
  877. data/lib/stripe/resources/capability.rb +147 -2
  878. data/lib/stripe/resources/capital/financing_offer.rb +142 -0
  879. data/lib/stripe/resources/capital/financing_summary.rb +82 -0
  880. data/lib/stripe/resources/capital/financing_transaction.rb +99 -0
  881. data/lib/stripe/resources/card.rb +129 -3
  882. data/lib/stripe/resources/cash_balance.rb +39 -0
  883. data/lib/stripe/resources/charge.rb +2516 -3
  884. data/lib/stripe/resources/checkout/session.rb +2454 -4
  885. data/lib/stripe/resources/climate/order.rb +173 -0
  886. data/lib/stripe/resources/climate/product.rb +72 -0
  887. data/lib/stripe/resources/climate/supplier.rb +69 -0
  888. data/lib/stripe/resources/confirmation_token.rb +1873 -0
  889. data/lib/stripe/resources/connect_collection_transfer.rb +32 -0
  890. data/lib/stripe/resources/country_spec.rb +82 -0
  891. data/lib/stripe/resources/coupon.rb +143 -0
  892. data/lib/stripe/resources/credit_note.rb +290 -8
  893. data/lib/stripe/resources/credit_note_line_item.rb +133 -0
  894. data/lib/stripe/resources/customer.rb +403 -27
  895. data/lib/stripe/resources/customer_balance_transaction.rb +48 -1
  896. data/lib/stripe/resources/customer_cash_balance_transaction.rb +234 -0
  897. data/lib/stripe/resources/customer_session.rb +264 -0
  898. data/lib/stripe/resources/discount.rb +58 -0
  899. data/lib/stripe/resources/dispute.rb +466 -2
  900. data/lib/stripe/resources/entitlements/active_entitlement.rb +45 -0
  901. data/lib/stripe/resources/entitlements/active_entitlement_summary.rb +31 -0
  902. data/lib/stripe/resources/entitlements/feature.rb +72 -0
  903. data/lib/stripe/resources/ephemeral_key.rb +44 -0
  904. data/lib/stripe/resources/event.rb +149 -0
  905. data/lib/stripe/resources/exchange_rate.rb +59 -0
  906. data/lib/stripe/resources/file.rb +65 -12
  907. data/lib/stripe/resources/file_link.rb +53 -0
  908. data/lib/stripe/resources/financial_connections/account.rb +342 -5
  909. data/lib/stripe/resources/financial_connections/account_inferred_balance.rb +35 -0
  910. data/lib/stripe/resources/financial_connections/account_owner.rb +29 -0
  911. data/lib/stripe/resources/financial_connections/account_ownership.rb +21 -0
  912. data/lib/stripe/resources/financial_connections/institution.rb +127 -0
  913. data/lib/stripe/resources/financial_connections/session.rb +140 -0
  914. data/lib/stripe/resources/financial_connections/transaction.rb +73 -0
  915. data/lib/stripe/resources/forwarding/request.rb +163 -0
  916. data/lib/stripe/resources/funding_instructions.rb +510 -1
  917. data/lib/stripe/resources/fx_quote.rb +147 -0
  918. data/lib/stripe/resources/identity/verification_report.rb +396 -0
  919. data/lib/stripe/resources/identity/verification_session.rb +397 -4
  920. data/lib/stripe/resources/invoice.rb +1393 -20
  921. data/lib/stripe/resources/invoice_item.rb +214 -0
  922. data/lib/stripe/resources/invoice_line_item.rb +341 -1
  923. data/lib/stripe/resources/invoice_payment.rb +92 -0
  924. data/lib/stripe/resources/invoice_rendering_template.rb +90 -0
  925. data/lib/stripe/resources/issuing/authorization.rb +650 -4
  926. data/lib/stripe/resources/issuing/card.rb +410 -4
  927. data/lib/stripe/resources/issuing/cardholder.rb +278 -0
  928. data/lib/stripe/resources/issuing/credit_underwriting_record.rb +263 -0
  929. data/lib/stripe/resources/issuing/dispute.rb +301 -2
  930. data/lib/stripe/resources/issuing/dispute_settlement_detail.rb +71 -0
  931. data/lib/stripe/resources/issuing/fraud_liability_debit.rb +51 -0
  932. data/lib/stripe/resources/issuing/personalization_design.rb +206 -0
  933. data/lib/stripe/resources/issuing/physical_bundle.rb +65 -0
  934. data/lib/stripe/resources/issuing/settlement.rb +61 -0
  935. data/lib/stripe/resources/issuing/token.rb +195 -0
  936. data/lib/stripe/resources/issuing/transaction.rb +444 -0
  937. data/lib/stripe/resources/line_item.rb +142 -0
  938. data/lib/stripe/resources/login_link.rb +20 -0
  939. data/lib/stripe/resources/mandate.rb +433 -0
  940. data/lib/stripe/resources/margin.rb +64 -0
  941. data/lib/stripe/resources/order.rb +960 -6
  942. data/lib/stripe/resources/payment_attempt_record.rb +2165 -0
  943. data/lib/stripe/resources/payment_intent.rb +3886 -14
  944. data/lib/stripe/resources/payment_intent_amount_details_line_item.rb +138 -0
  945. data/lib/stripe/resources/payment_link.rb +772 -2
  946. data/lib/stripe/resources/payment_method.rb +1792 -4
  947. data/lib/stripe/resources/payment_method_configuration.rb +2090 -0
  948. data/lib/stripe/resources/payment_method_domain.rb +280 -0
  949. data/lib/stripe/resources/payment_record.rb +2295 -0
  950. data/lib/stripe/resources/payout.rb +139 -4
  951. data/lib/stripe/resources/person.rb +475 -1
  952. data/lib/stripe/resources/plan.rb +137 -0
  953. data/lib/stripe/resources/price.rb +240 -1
  954. data/lib/stripe/resources/privacy/redaction_job.rb +187 -0
  955. data/lib/stripe/resources/privacy/redaction_job_validation_error.rb +49 -0
  956. data/lib/stripe/resources/product.rb +138 -1
  957. data/lib/stripe/resources/product_feature.rb +33 -0
  958. data/lib/stripe/resources/promotion_code.rb +110 -0
  959. data/lib/stripe/resources/quote.rb +1173 -36
  960. data/lib/stripe/resources/quote_line.rb +521 -0
  961. data/lib/stripe/resources/quote_preview_invoice.rb +1182 -0
  962. data/lib/stripe/resources/quote_preview_subscription_schedule.rb +732 -0
  963. data/lib/stripe/resources/radar/early_fraud_warning.rb +42 -0
  964. data/lib/stripe/resources/radar/value_list.rb +87 -0
  965. data/lib/stripe/resources/radar/value_list_item.rb +71 -0
  966. data/lib/stripe/resources/refund.rb +748 -4
  967. data/lib/stripe/resources/reporting/report_run.rb +91 -0
  968. data/lib/stripe/resources/reporting/report_type.rb +48 -1
  969. data/lib/stripe/resources/reserve/hold.rb +74 -0
  970. data/lib/stripe/resources/reserve/plan.rb +78 -0
  971. data/lib/stripe/resources/reserve/release.rb +77 -0
  972. data/lib/stripe/resources/reserve_transaction.rb +30 -0
  973. data/lib/stripe/resources/reversal.rb +46 -2
  974. data/lib/stripe/resources/review.rb +99 -2
  975. data/lib/stripe/resources/setup_attempt.rb +664 -0
  976. data/lib/stripe/resources/setup_intent.rb +816 -6
  977. data/lib/stripe/resources/shipping_rate.rb +132 -0
  978. data/lib/stripe/resources/sigma/scheduled_query_run.rb +60 -0
  979. data/lib/stripe/resources/source.rb +973 -10
  980. data/lib/stripe/resources/source_mandate_notification.rb +98 -0
  981. data/lib/stripe/resources/source_transaction.rb +146 -0
  982. data/lib/stripe/resources/subscription.rb +979 -5
  983. data/lib/stripe/resources/subscription_item.rb +132 -10
  984. data/lib/stripe/resources/subscription_schedule.rb +780 -4
  985. data/lib/stripe/resources/tax/association.rb +86 -0
  986. data/lib/stripe/resources/tax/calculation.rb +321 -0
  987. data/lib/stripe/resources/tax/calculation_line_item.rb +103 -0
  988. data/lib/stripe/resources/tax/form.rb +264 -0
  989. data/lib/stripe/resources/tax/registration.rb +2259 -0
  990. data/lib/stripe/resources/tax/settings.rb +131 -0
  991. data/lib/stripe/resources/tax/transaction.rb +287 -0
  992. data/lib/stripe/resources/tax/transaction_line_item.rb +60 -0
  993. data/lib/stripe/resources/tax_code.rb +26 -0
  994. data/lib/stripe/resources/tax_deducted_at_source.rb +30 -0
  995. data/lib/stripe/resources/tax_id.rb +103 -11
  996. data/lib/stripe/resources/tax_rate.rb +87 -0
  997. data/lib/stripe/resources/terminal/configuration.rb +724 -0
  998. data/lib/stripe/resources/terminal/connection_token.rb +31 -0
  999. data/lib/stripe/resources/terminal/location.rb +168 -0
  1000. data/lib/stripe/resources/terminal/onboarding_link.rb +71 -0
  1001. data/lib/stripe/resources/terminal/reader.rb +752 -10
  1002. data/lib/stripe/resources/terminal/reader_collected_data.rb +47 -0
  1003. data/lib/stripe/resources/test_helpers/test_clock.rb +110 -2
  1004. data/lib/stripe/resources/token.rb +66 -0
  1005. data/lib/stripe/resources/topup.rb +80 -2
  1006. data/lib/stripe/resources/transfer.rb +74 -6
  1007. data/lib/stripe/resources/treasury/credit_reversal.rb +86 -0
  1008. data/lib/stripe/resources/treasury/debit_reversal.rb +101 -0
  1009. data/lib/stripe/resources/treasury/financial_account.rb +255 -0
  1010. data/lib/stripe/resources/treasury/financial_account_features.rb +398 -0
  1011. data/lib/stripe/resources/treasury/inbound_transfer.rb +308 -0
  1012. data/lib/stripe/resources/treasury/outbound_payment.rb +408 -0
  1013. data/lib/stripe/resources/treasury/outbound_transfer.rb +418 -0
  1014. data/lib/stripe/resources/treasury/received_credit.rb +291 -0
  1015. data/lib/stripe/resources/treasury/received_debit.rb +256 -0
  1016. data/lib/stripe/resources/treasury/transaction.rb +143 -0
  1017. data/lib/stripe/resources/treasury/transaction_entry.rb +124 -0
  1018. data/lib/stripe/resources/v2/amount.rb +9 -0
  1019. data/lib/stripe/resources/v2/billing/bill_setting.rb +102 -0
  1020. data/lib/stripe/resources/v2/billing/bill_setting_version.rb +90 -0
  1021. data/lib/stripe/resources/v2/billing/cadence.rb +609 -0
  1022. data/lib/stripe/resources/v2/billing/collection_setting.rb +274 -0
  1023. data/lib/stripe/resources/v2/billing/collection_setting_version.rb +262 -0
  1024. data/lib/stripe/resources/v2/billing/meter_event.rb +43 -0
  1025. data/lib/stripe/resources/v2/billing/meter_event_adjustment.rb +52 -0
  1026. data/lib/stripe/resources/v2/billing/meter_event_session.rb +37 -0
  1027. data/lib/stripe/resources/v2/billing/profile.rb +46 -0
  1028. data/lib/stripe/resources/v2/core/account.rb +4115 -0
  1029. data/lib/stripe/resources/v2/core/account_link.rb +123 -0
  1030. data/lib/stripe/resources/v2/core/account_person.rb +477 -0
  1031. data/lib/stripe/resources/v2/core/account_person_token.rb +37 -0
  1032. data/lib/stripe/resources/v2/core/account_token.rb +37 -0
  1033. data/lib/stripe/resources/v2/core/event.rb +69 -0
  1034. data/lib/stripe/resources/v2/core/event_destination.rb +119 -0
  1035. data/lib/stripe/resources/v2/core/event_notification.rb +62 -0
  1036. data/lib/stripe/resources/v2/core/vault/gb_bank_account.rb +114 -0
  1037. data/lib/stripe/resources/v2/core/vault/us_bank_account.rb +83 -0
  1038. data/lib/stripe/resources/v2/deleted_object.rb +21 -0
  1039. data/lib/stripe/resources/v2/financial_address_credit_simulation.rb +28 -0
  1040. data/lib/stripe/resources/v2/financial_address_generated_microdeposits.rb +44 -0
  1041. data/lib/stripe/resources/v2/money_management/adjustment.rb +82 -0
  1042. data/lib/stripe/resources/v2/money_management/financial_account.rb +188 -0
  1043. data/lib/stripe/resources/v2/money_management/financial_address.rb +132 -0
  1044. data/lib/stripe/resources/v2/money_management/inbound_transfer.rb +197 -0
  1045. data/lib/stripe/resources/v2/money_management/outbound_payment.rb +261 -0
  1046. data/lib/stripe/resources/v2/money_management/outbound_payment_quote.rb +202 -0
  1047. data/lib/stripe/resources/v2/money_management/outbound_setup_intent.rb +69 -0
  1048. data/lib/stripe/resources/v2/money_management/outbound_transfer.rb +240 -0
  1049. data/lib/stripe/resources/v2/money_management/payout_method.rb +111 -0
  1050. data/lib/stripe/resources/v2/money_management/payout_methods_bank_account_spec.rb +81 -0
  1051. data/lib/stripe/resources/v2/money_management/received_credit.rb +246 -0
  1052. data/lib/stripe/resources/v2/money_management/received_debit.rb +152 -0
  1053. data/lib/stripe/resources/v2/money_management/transaction.rb +180 -0
  1054. data/lib/stripe/resources/v2/money_management/transaction_entry.rb +153 -0
  1055. data/lib/stripe/resources/webhook_endpoint.rb +90 -0
  1056. data/lib/stripe/resources.rb +175 -11
  1057. data/lib/stripe/search_result_object.rb +5 -2
  1058. data/lib/stripe/services/account_capability_service.rb +39 -0
  1059. data/lib/stripe/services/account_external_account_service.rb +68 -0
  1060. data/lib/stripe/services/account_link_service.rb +17 -0
  1061. data/lib/stripe/services/account_login_link_service.rb +19 -0
  1062. data/lib/stripe/services/account_notice_service.rb +39 -0
  1063. data/lib/stripe/services/account_person_service.rb +61 -0
  1064. data/lib/stripe/services/account_service.rb +100 -0
  1065. data/lib/stripe/services/account_session_service.rb +17 -0
  1066. data/lib/stripe/services/apple_pay_domain_service.rb +50 -0
  1067. data/lib/stripe/services/application_fee_refund_service.rb +60 -0
  1068. data/lib/stripe/services/application_fee_service.rb +35 -0
  1069. data/lib/stripe/services/apps/secret_service.rb +52 -0
  1070. data/lib/stripe/services/apps_service.rb +13 -0
  1071. data/lib/stripe/services/balance_service.rb +12 -0
  1072. data/lib/stripe/services/balance_settings_service.rb +30 -0
  1073. data/lib/stripe/services/balance_transaction_service.rb +32 -0
  1074. data/lib/stripe/services/billing/alert_service.rb +74 -0
  1075. data/lib/stripe/services/billing/analytics/meter_usage_service.rb +21 -0
  1076. data/lib/stripe/services/billing/analytics_service.rb +15 -0
  1077. data/lib/stripe/services/billing/credit_balance_summary_service.rb +19 -0
  1078. data/lib/stripe/services/billing/credit_balance_transaction_service.rb +30 -0
  1079. data/lib/stripe/services/billing/credit_grant_service.rb +74 -0
  1080. data/lib/stripe/services/billing/meter_event_adjustment_service.rb +19 -0
  1081. data/lib/stripe/services/billing/meter_event_service.rb +19 -0
  1082. data/lib/stripe/services/billing/meter_event_summary_service.rb +19 -0
  1083. data/lib/stripe/services/billing/meter_service.rb +81 -0
  1084. data/lib/stripe/services/billing_portal/configuration_service.rb +52 -0
  1085. data/lib/stripe/services/billing_portal/session_service.rb +19 -0
  1086. data/lib/stripe/services/billing_portal_service.rb +14 -0
  1087. data/lib/stripe/services/billing_service.rb +21 -0
  1088. data/lib/stripe/services/capital/financing_offer_service.rb +42 -0
  1089. data/lib/stripe/services/capital/financing_summary_service.rb +19 -0
  1090. data/lib/stripe/services/capital/financing_transaction_service.rb +31 -0
  1091. data/lib/stripe/services/capital_service.rb +15 -0
  1092. data/lib/stripe/services/charge_service.rb +69 -0
  1093. data/lib/stripe/services/checkout/session_line_item_service.rb +19 -0
  1094. data/lib/stripe/services/checkout/session_service.rb +74 -0
  1095. data/lib/stripe/services/checkout_service.rb +13 -0
  1096. data/lib/stripe/services/climate/order_service.rb +68 -0
  1097. data/lib/stripe/services/climate/product_service.rb +30 -0
  1098. data/lib/stripe/services/climate/supplier_service.rb +30 -0
  1099. data/lib/stripe/services/climate_service.rb +15 -0
  1100. data/lib/stripe/services/confirmation_token_service.rb +17 -0
  1101. data/lib/stripe/services/country_spec_service.rb +28 -0
  1102. data/lib/stripe/services/coupon_service.rb +51 -0
  1103. data/lib/stripe/services/credit_note_line_item_service.rb +17 -0
  1104. data/lib/stripe/services/credit_note_preview_lines_service.rb +17 -0
  1105. data/lib/stripe/services/credit_note_service.rb +92 -0
  1106. data/lib/stripe/services/customer_balance_transaction_service.rb +50 -0
  1107. data/lib/stripe/services/customer_cash_balance_service.rb +28 -0
  1108. data/lib/stripe/services/customer_cash_balance_transaction_service.rb +28 -0
  1109. data/lib/stripe/services/customer_funding_instructions_service.rb +19 -0
  1110. data/lib/stripe/services/customer_payment_method_service.rb +28 -0
  1111. data/lib/stripe/services/customer_payment_source_service.rb +76 -0
  1112. data/lib/stripe/services/customer_service.rb +89 -0
  1113. data/lib/stripe/services/customer_session_service.rb +17 -0
  1114. data/lib/stripe/services/customer_tax_id_service.rb +50 -0
  1115. data/lib/stripe/services/dispute_service.rb +48 -0
  1116. data/lib/stripe/services/entitlements/active_entitlement_service.rb +30 -0
  1117. data/lib/stripe/services/entitlements/feature_service.rb +52 -0
  1118. data/lib/stripe/services/entitlements_service.rb +14 -0
  1119. data/lib/stripe/services/ephemeral_key_service.rb +28 -0
  1120. data/lib/stripe/services/event_service.rb +22 -0
  1121. data/lib/stripe/services/exchange_rate_service.rb +32 -0
  1122. data/lib/stripe/services/external_account_service.rb +68 -0
  1123. data/lib/stripe/services/file_link_service.rb +38 -0
  1124. data/lib/stripe/services/file_service.rb +35 -0
  1125. data/lib/stripe/services/financial_connections/account_inferred_balance_service.rb +19 -0
  1126. data/lib/stripe/services/financial_connections/account_owner_service.rb +19 -0
  1127. data/lib/stripe/services/financial_connections/account_service.rb +83 -0
  1128. data/lib/stripe/services/financial_connections/institution_service.rb +30 -0
  1129. data/lib/stripe/services/financial_connections/session_service.rb +30 -0
  1130. data/lib/stripe/services/financial_connections/transaction_service.rb +30 -0
  1131. data/lib/stripe/services/financial_connections_service.rb +16 -0
  1132. data/lib/stripe/services/forwarding/request_service.rb +41 -0
  1133. data/lib/stripe/services/forwarding_service.rb +13 -0
  1134. data/lib/stripe/services/fx_quote_service.rb +27 -0
  1135. data/lib/stripe/services/identity/verification_report_service.rb +30 -0
  1136. data/lib/stripe/services/identity/verification_session_service.rb +106 -0
  1137. data/lib/stripe/services/identity_service.rb +14 -0
  1138. data/lib/stripe/services/invoice_item_service.rb +61 -0
  1139. data/lib/stripe/services/invoice_line_item_service.rb +31 -0
  1140. data/lib/stripe/services/invoice_payment_service.rb +28 -0
  1141. data/lib/stripe/services/invoice_rendering_template_service.rb +50 -0
  1142. data/lib/stripe/services/invoice_service.rb +206 -0
  1143. data/lib/stripe/services/issuing/authorization_service.rb +65 -0
  1144. data/lib/stripe/services/issuing/card_service.rb +52 -0
  1145. data/lib/stripe/services/issuing/cardholder_service.rb +52 -0
  1146. data/lib/stripe/services/issuing/credit_underwriting_record_service.rb +74 -0
  1147. data/lib/stripe/services/issuing/dispute_service.rb +63 -0
  1148. data/lib/stripe/services/issuing/dispute_settlement_detail_service.rb +30 -0
  1149. data/lib/stripe/services/issuing/fraud_liability_debit_service.rb +30 -0
  1150. data/lib/stripe/services/issuing/personalization_design_service.rb +52 -0
  1151. data/lib/stripe/services/issuing/physical_bundle_service.rb +30 -0
  1152. data/lib/stripe/services/issuing/token_service.rb +41 -0
  1153. data/lib/stripe/services/issuing/transaction_service.rb +41 -0
  1154. data/lib/stripe/services/issuing_service.rb +24 -0
  1155. data/lib/stripe/services/mandate_service.rb +22 -0
  1156. data/lib/stripe/services/margin_service.rb +50 -0
  1157. data/lib/stripe/services/oauth_service.rb +63 -0
  1158. data/lib/stripe/services/order_line_item_service.rb +17 -0
  1159. data/lib/stripe/services/order_service.rb +78 -0
  1160. data/lib/stripe/services/payment_attempt_record_service.rb +28 -0
  1161. data/lib/stripe/services/payment_intent_amount_details_line_item_service.rb +17 -0
  1162. data/lib/stripe/services/payment_intent_service.rb +253 -0
  1163. data/lib/stripe/services/payment_link_line_item_service.rb +17 -0
  1164. data/lib/stripe/services/payment_link_service.rb +57 -0
  1165. data/lib/stripe/services/payment_method_configuration_service.rb +50 -0
  1166. data/lib/stripe/services/payment_method_domain_service.rb +66 -0
  1167. data/lib/stripe/services/payment_method_service.rb +86 -0
  1168. data/lib/stripe/services/payment_record_service.rb +101 -0
  1169. data/lib/stripe/services/payout_service.rb +66 -0
  1170. data/lib/stripe/services/plan_service.rb +49 -0
  1171. data/lib/stripe/services/price_service.rb +52 -0
  1172. data/lib/stripe/services/privacy/redaction_job_service.rb +104 -0
  1173. data/lib/stripe/services/privacy/redaction_job_validation_error_service.rb +19 -0
  1174. data/lib/stripe/services/privacy_service.rb +13 -0
  1175. data/lib/stripe/services/product_feature_service.rb +50 -0
  1176. data/lib/stripe/services/product_service.rb +70 -0
  1177. data/lib/stripe/services/promotion_code_service.rb +50 -0
  1178. data/lib/stripe/services/quote_computed_upfront_line_items_service.rb +17 -0
  1179. data/lib/stripe/services/quote_line_item_service.rb +17 -0
  1180. data/lib/stripe/services/quote_line_service.rb +17 -0
  1181. data/lib/stripe/services/quote_preview_invoice_service.rb +17 -0
  1182. data/lib/stripe/services/quote_preview_subscription_schedule_service.rb +17 -0
  1183. data/lib/stripe/services/quote_service.rb +140 -0
  1184. data/lib/stripe/services/radar/early_fraud_warning_service.rb +32 -0
  1185. data/lib/stripe/services/radar/value_list_item_service.rb +52 -0
  1186. data/lib/stripe/services/radar/value_list_service.rb +63 -0
  1187. data/lib/stripe/services/radar_service.rb +15 -0
  1188. data/lib/stripe/services/refund_service.rb +63 -0
  1189. data/lib/stripe/services/reporting/report_run_service.rb +41 -0
  1190. data/lib/stripe/services/reporting/report_type_service.rb +30 -0
  1191. data/lib/stripe/services/reporting_service.rb +14 -0
  1192. data/lib/stripe/services/reserve/hold_service.rb +30 -0
  1193. data/lib/stripe/services/reserve/plan_service.rb +19 -0
  1194. data/lib/stripe/services/reserve/release_service.rb +30 -0
  1195. data/lib/stripe/services/reserve_service.rb +15 -0
  1196. data/lib/stripe/services/review_service.rb +33 -0
  1197. data/lib/stripe/services/setup_attempt_service.rb +17 -0
  1198. data/lib/stripe/services/setup_intent_service.rb +105 -0
  1199. data/lib/stripe/services/shipping_rate_service.rb +50 -0
  1200. data/lib/stripe/services/sigma/scheduled_query_run_service.rb +30 -0
  1201. data/lib/stripe/services/sigma_service.rb +13 -0
  1202. data/lib/stripe/services/source_service.rb +64 -0
  1203. data/lib/stripe/services/source_transaction_service.rb +17 -0
  1204. data/lib/stripe/services/subscription_item_service.rb +61 -0
  1205. data/lib/stripe/services/subscription_schedule_service.rb +83 -0
  1206. data/lib/stripe/services/subscription_service.rb +149 -0
  1207. data/lib/stripe/services/tax/association_service.rb +19 -0
  1208. data/lib/stripe/services/tax/calculation_line_item_service.rb +19 -0
  1209. data/lib/stripe/services/tax/calculation_service.rb +37 -0
  1210. data/lib/stripe/services/tax/form_service.rb +37 -0
  1211. data/lib/stripe/services/tax/registration_service.rb +54 -0
  1212. data/lib/stripe/services/tax/settings_service.rb +30 -0
  1213. data/lib/stripe/services/tax/transaction_line_item_service.rb +19 -0
  1214. data/lib/stripe/services/tax/transaction_service.rb +48 -0
  1215. data/lib/stripe/services/tax_code_service.rb +22 -0
  1216. data/lib/stripe/services/tax_id_service.rb +38 -0
  1217. data/lib/stripe/services/tax_rate_service.rb +38 -0
  1218. data/lib/stripe/services/tax_service.rb +18 -0
  1219. data/lib/stripe/services/terminal/configuration_service.rb +63 -0
  1220. data/lib/stripe/services/terminal/connection_token_service.rb +19 -0
  1221. data/lib/stripe/services/terminal/location_service.rb +64 -0
  1222. data/lib/stripe/services/terminal/onboarding_link_service.rb +19 -0
  1223. data/lib/stripe/services/terminal/reader_collected_data_service.rb +19 -0
  1224. data/lib/stripe/services/terminal/reader_service.rb +151 -0
  1225. data/lib/stripe/services/terminal_service.rb +18 -0
  1226. data/lib/stripe/services/test_helpers/confirmation_token_service.rb +19 -0
  1227. data/lib/stripe/services/test_helpers/customer_service.rb +19 -0
  1228. data/lib/stripe/services/test_helpers/issuing/authorization_service.rb +87 -0
  1229. data/lib/stripe/services/test_helpers/issuing/card_service.rb +65 -0
  1230. data/lib/stripe/services/test_helpers/issuing/personalization_design_service.rb +43 -0
  1231. data/lib/stripe/services/test_helpers/issuing/transaction_service.rb +43 -0
  1232. data/lib/stripe/services/test_helpers/issuing_service.rb +19 -0
  1233. data/lib/stripe/services/test_helpers/refund_service.rb +19 -0
  1234. data/lib/stripe/services/test_helpers/terminal/reader_service.rb +43 -0
  1235. data/lib/stripe/services/test_helpers/terminal_service.rb +15 -0
  1236. data/lib/stripe/services/test_helpers/test_clock_service.rb +63 -0
  1237. data/lib/stripe/services/test_helpers/treasury/inbound_transfer_service.rb +43 -0
  1238. data/lib/stripe/services/test_helpers/treasury/outbound_payment_service.rb +54 -0
  1239. data/lib/stripe/services/test_helpers/treasury/outbound_transfer_service.rb +54 -0
  1240. data/lib/stripe/services/test_helpers/treasury/received_credit_service.rb +21 -0
  1241. data/lib/stripe/services/test_helpers/treasury/received_debit_service.rb +21 -0
  1242. data/lib/stripe/services/test_helpers/treasury_service.rb +19 -0
  1243. data/lib/stripe/services/test_helpers_service.rb +19 -0
  1244. data/lib/stripe/services/token_service.rb +23 -0
  1245. data/lib/stripe/services/topup_service.rb +49 -0
  1246. data/lib/stripe/services/transfer_reversal_service.rb +56 -0
  1247. data/lib/stripe/services/transfer_service.rb +47 -0
  1248. data/lib/stripe/services/treasury/credit_reversal_service.rb +41 -0
  1249. data/lib/stripe/services/treasury/debit_reversal_service.rb +41 -0
  1250. data/lib/stripe/services/treasury/financial_account_features_service.rb +30 -0
  1251. data/lib/stripe/services/treasury/financial_account_service.rb +70 -0
  1252. data/lib/stripe/services/treasury/inbound_transfer_service.rb +52 -0
  1253. data/lib/stripe/services/treasury/outbound_payment_service.rb +52 -0
  1254. data/lib/stripe/services/treasury/outbound_transfer_service.rb +52 -0
  1255. data/lib/stripe/services/treasury/received_credit_service.rb +30 -0
  1256. data/lib/stripe/services/treasury/received_debit_service.rb +30 -0
  1257. data/lib/stripe/services/treasury/transaction_entry_service.rb +30 -0
  1258. data/lib/stripe/services/treasury/transaction_service.rb +30 -0
  1259. data/lib/stripe/services/treasury_service.rb +22 -0
  1260. data/lib/stripe/services/v1_services.rb +101 -0
  1261. data/lib/stripe/services/v2/billing/bill_setting_service.rb +61 -0
  1262. data/lib/stripe/services/v2/billing/bill_settings/version_service.rb +34 -0
  1263. data/lib/stripe/services/v2/billing/cadence_service.rb +65 -0
  1264. data/lib/stripe/services/v2/billing/collection_setting_service.rb +61 -0
  1265. data/lib/stripe/services/v2/billing/collection_settings/version_service.rb +34 -0
  1266. data/lib/stripe/services/v2/billing/meter_event_adjustment_service.rb +21 -0
  1267. data/lib/stripe/services/v2/billing/meter_event_service.rb +21 -0
  1268. data/lib/stripe/services/v2/billing/meter_event_session_service.rb +21 -0
  1269. data/lib/stripe/services/v2/billing/meter_event_stream_service.rb +23 -0
  1270. data/lib/stripe/services/v2/billing/profile_service.rb +54 -0
  1271. data/lib/stripe/services/v2/billing_service.rb +22 -0
  1272. data/lib/stripe/services/v2/core/account_link_service.rb +21 -0
  1273. data/lib/stripe/services/v2/core/account_service.rb +73 -0
  1274. data/lib/stripe/services/v2/core/account_token_service.rb +32 -0
  1275. data/lib/stripe/services/v2/core/accounts/person_service.rb +67 -0
  1276. data/lib/stripe/services/v2/core/accounts/person_token_service.rb +34 -0
  1277. data/lib/stripe/services/v2/core/event_destination_service.rb +98 -0
  1278. data/lib/stripe/services/v2/core/event_service.rb +32 -0
  1279. data/lib/stripe/services/v2/core/vault/gb_bank_account_service.rb +85 -0
  1280. data/lib/stripe/services/v2/core/vault/us_bank_account_service.rb +101 -0
  1281. data/lib/stripe/services/v2/core/vault_service.rb +18 -0
  1282. data/lib/stripe/services/v2/core_service.rb +20 -0
  1283. data/lib/stripe/services/v2/money_management/adjustment_service.rb +32 -0
  1284. data/lib/stripe/services/v2/money_management/financial_account_service.rb +70 -0
  1285. data/lib/stripe/services/v2/money_management/financial_address_service.rb +46 -0
  1286. data/lib/stripe/services/v2/money_management/inbound_transfer_service.rb +45 -0
  1287. data/lib/stripe/services/v2/money_management/outbound_payment_quote_service.rb +34 -0
  1288. data/lib/stripe/services/v2/money_management/outbound_payment_service.rb +62 -0
  1289. data/lib/stripe/services/v2/money_management/outbound_setup_intent_service.rb +75 -0
  1290. data/lib/stripe/services/v2/money_management/outbound_transfer_service.rb +60 -0
  1291. data/lib/stripe/services/v2/money_management/payout_method_service.rb +65 -0
  1292. data/lib/stripe/services/v2/money_management/payout_methods_bank_account_spec_service.rb +23 -0
  1293. data/lib/stripe/services/v2/money_management/received_credit_service.rb +32 -0
  1294. data/lib/stripe/services/v2/money_management/received_debit_service.rb +32 -0
  1295. data/lib/stripe/services/v2/money_management/transaction_entry_service.rb +32 -0
  1296. data/lib/stripe/services/v2/money_management/transaction_service.rb +32 -0
  1297. data/lib/stripe/services/v2/money_management_service.rb +31 -0
  1298. data/lib/stripe/services/v2/test_helper_service.rb +15 -0
  1299. data/lib/stripe/services/v2/test_helpers/financial_address_service.rb +36 -0
  1300. data/lib/stripe/services/v2_services.rb +16 -0
  1301. data/lib/stripe/services/webhook_endpoint_service.rb +61 -0
  1302. data/lib/stripe/services.rb +246 -0
  1303. data/lib/stripe/singleton_api_resource.rb +3 -3
  1304. data/lib/stripe/stripe_client.rb +61 -1023
  1305. data/lib/stripe/stripe_configuration.rb +60 -42
  1306. data/lib/stripe/stripe_context.rb +68 -0
  1307. data/lib/stripe/stripe_event_notification_handler.rb +425 -0
  1308. data/lib/stripe/stripe_object.rb +142 -47
  1309. data/lib/stripe/stripe_response.rb +1 -3
  1310. data/lib/stripe/stripe_service.rb +34 -0
  1311. data/lib/stripe/util.rb +134 -45
  1312. data/lib/stripe/v2_list_object.rb +84 -0
  1313. data/lib/stripe/version.rb +1 -1
  1314. data/lib/stripe/webhook.rb +3 -2
  1315. data/lib/stripe.rb +98 -0
  1316. data/rbi/stripe/resources/v2/core/event_notification.rbi +43 -0
  1317. data/rbi/stripe/stripe_client.rbi +30 -0
  1318. data/rbi/stripe.rbi +219587 -0
  1319. metadata +1210 -28
  1320. data/CHANGELOG.md +0 -1036
  1321. data/CODE_OF_CONDUCT.md +0 -77
  1322. data/CONTRIBUTORS +0 -3
  1323. data/Gemfile +0 -33
  1324. data/History.txt +0 -1
  1325. data/LICENSE +0 -21
  1326. data/Makefile +0 -7
  1327. data/README.md +0 -350
  1328. data/Rakefile +0 -37
  1329. data/VERSION +0 -1
  1330. data/lib/stripe/resources/bitcoin_receiver.rb +0 -24
  1331. data/lib/stripe/resources/bitcoin_transaction.rb +0 -16
  1332. data/lib/stripe/resources/order_return.rb +0 -10
  1333. data/lib/stripe/resources/recipient.rb +0 -14
  1334. data/lib/stripe/resources/sku.rb +0 -13
  1335. data/lib/stripe/resources/three_d_secure.rb +0 -14
  1336. data/stripe.gemspec +0 -41
@@ -0,0 +1,2440 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ class AccountCreateParams < ::Stripe::RequestParams
6
+ class BankAccount < ::Stripe::RequestParams
7
+ # Attribute for param field object
8
+ attr_accessor :object
9
+ # 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.
10
+ attr_accessor :account_holder_name
11
+ # 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.
12
+ attr_accessor :account_holder_type
13
+ # The account number for the bank account, in string form. Must be a checking account.
14
+ attr_accessor :account_number
15
+ # The country in which the bank account is located.
16
+ attr_accessor :country
17
+ # The currency the bank account is in. This must be a country/currency pairing that [Stripe supports.](docs/payouts)
18
+ attr_accessor :currency
19
+ # 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.
20
+ attr_accessor :routing_number
21
+
22
+ def initialize(
23
+ object: nil,
24
+ account_holder_name: nil,
25
+ account_holder_type: nil,
26
+ account_number: nil,
27
+ country: nil,
28
+ currency: nil,
29
+ routing_number: nil
30
+ )
31
+ @object = object
32
+ @account_holder_name = account_holder_name
33
+ @account_holder_type = account_holder_type
34
+ @account_number = account_number
35
+ @country = country
36
+ @currency = currency
37
+ @routing_number = routing_number
38
+ end
39
+ end
40
+
41
+ class BusinessProfile < ::Stripe::RequestParams
42
+ class AnnualRevenue < ::Stripe::RequestParams
43
+ # A non-negative integer representing the amount in the [smallest currency unit](/currencies#zero-decimal).
44
+ attr_accessor :amount
45
+ # 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).
46
+ attr_accessor :currency
47
+ # The close-out date of the preceding fiscal year in ISO 8601 format. E.g. 2023-12-31 for the 31st of December, 2023.
48
+ attr_accessor :fiscal_year_end
49
+
50
+ def initialize(amount: nil, currency: nil, fiscal_year_end: nil)
51
+ @amount = amount
52
+ @currency = currency
53
+ @fiscal_year_end = fiscal_year_end
54
+ end
55
+ end
56
+
57
+ class MonthlyEstimatedRevenue < ::Stripe::RequestParams
58
+ # A non-negative integer representing how much to charge in the [smallest currency unit](/currencies#zero-decimal).
59
+ attr_accessor :amount
60
+ # 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).
61
+ attr_accessor :currency
62
+
63
+ def initialize(amount: nil, currency: nil)
64
+ @amount = amount
65
+ @currency = currency
66
+ end
67
+ end
68
+
69
+ class SupportAddress < ::Stripe::RequestParams
70
+ # City, district, suburb, town, or village.
71
+ attr_accessor :city
72
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
73
+ attr_accessor :country
74
+ # Address line 1, such as the street, PO Box, or company name.
75
+ attr_accessor :line1
76
+ # Address line 2, such as the apartment, suite, unit, or building.
77
+ attr_accessor :line2
78
+ # ZIP or postal code.
79
+ attr_accessor :postal_code
80
+ # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
81
+ attr_accessor :state
82
+
83
+ def initialize(
84
+ city: nil,
85
+ country: nil,
86
+ line1: nil,
87
+ line2: nil,
88
+ postal_code: nil,
89
+ state: nil
90
+ )
91
+ @city = city
92
+ @country = country
93
+ @line1 = line1
94
+ @line2 = line2
95
+ @postal_code = postal_code
96
+ @state = state
97
+ end
98
+ end
99
+ # The applicant's gross annual revenue for its preceding fiscal year.
100
+ attr_accessor :annual_revenue
101
+ # An estimated upper bound of employees, contractors, vendors, etc. currently working for the business.
102
+ attr_accessor :estimated_worker_count
103
+ # [The merchant category code for the account](/connect/setting-mcc). MCCs are used to classify businesses based on the goods or services they provide.
104
+ attr_accessor :mcc
105
+ # Whether the business is a minority-owned, women-owned, and/or LGBTQI+ -owned business.
106
+ attr_accessor :minority_owned_business_designation
107
+ # An estimate of the monthly revenue of the business. Only accepted for accounts in Brazil and India.
108
+ attr_accessor :monthly_estimated_revenue
109
+ # The customer-facing business name.
110
+ attr_accessor :name
111
+ # Internal-only description of the product sold by, or service provided by, the business. Used by Stripe for risk and underwriting purposes.
112
+ attr_accessor :product_description
113
+ # A link to the business's publicly available terms related to the Specified Commercial Transaction Act. Used by the Checkout product and for Japanese payment methods.
114
+ attr_accessor :specified_commercial_transactions_act_url
115
+ # A publicly available mailing address for sending support issues to.
116
+ attr_accessor :support_address
117
+ # A publicly available email address for sending support issues to.
118
+ attr_accessor :support_email
119
+ # A publicly available phone number to call with support issues.
120
+ attr_accessor :support_phone
121
+ # A publicly available website for handling support issues.
122
+ attr_accessor :support_url
123
+ # The business's publicly available website.
124
+ attr_accessor :url
125
+
126
+ def initialize(
127
+ annual_revenue: nil,
128
+ estimated_worker_count: nil,
129
+ mcc: nil,
130
+ minority_owned_business_designation: nil,
131
+ monthly_estimated_revenue: nil,
132
+ name: nil,
133
+ product_description: nil,
134
+ specified_commercial_transactions_act_url: nil,
135
+ support_address: nil,
136
+ support_email: nil,
137
+ support_phone: nil,
138
+ support_url: nil,
139
+ url: nil
140
+ )
141
+ @annual_revenue = annual_revenue
142
+ @estimated_worker_count = estimated_worker_count
143
+ @mcc = mcc
144
+ @minority_owned_business_designation = minority_owned_business_designation
145
+ @monthly_estimated_revenue = monthly_estimated_revenue
146
+ @name = name
147
+ @product_description = product_description
148
+ @specified_commercial_transactions_act_url = specified_commercial_transactions_act_url
149
+ @support_address = support_address
150
+ @support_email = support_email
151
+ @support_phone = support_phone
152
+ @support_url = support_url
153
+ @url = url
154
+ end
155
+ end
156
+
157
+ class Capabilities < ::Stripe::RequestParams
158
+ class AcssDebitPayments < ::Stripe::RequestParams
159
+ # 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.
160
+ attr_accessor :requested
161
+
162
+ def initialize(requested: nil)
163
+ @requested = requested
164
+ end
165
+ end
166
+
167
+ class AffirmPayments < ::Stripe::RequestParams
168
+ # 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.
169
+ attr_accessor :requested
170
+
171
+ def initialize(requested: nil)
172
+ @requested = requested
173
+ end
174
+ end
175
+
176
+ class AfterpayClearpayPayments < ::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 AlmaPayments < ::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 AmazonPayPayments < ::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 AuBecsDebitPayments < ::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 AutomaticIndirectTax < ::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 BacsDebitPayments < ::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 BancontactPayments < ::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 BankTransferPayments < ::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 BilliePayments < ::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 BlikPayments < ::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 BoletoPayments < ::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 CardIssuing < ::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 CardPayments < ::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 CartesBancairesPayments < ::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 CashappPayments < ::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 CryptoPayments < ::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 GopayPayments < ::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 GrabpayPayments < ::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 IdBankTransferPayments < ::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 IdBankTransferPaymentsBca < ::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 IdealPayments < ::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 IndiaInternationalPayments < ::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 JcbPayments < ::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 JpBankTransferPayments < ::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 KakaoPayPayments < ::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 KlarnaPayments < ::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 KonbiniPayments < ::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 KrCardPayments < ::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 LegacyPayments < ::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 LinkPayments < ::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 MbWayPayments < ::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 MobilepayPayments < ::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 MultibancoPayments < ::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 MxBankTransferPayments < ::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 NaverPayPayments < ::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 NzBankAccountBecsDebitPayments < ::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 OxxoPayments < ::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 P24Payments < ::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 PayByBankPayments < ::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 PaycoPayments < ::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 PaynowPayments < ::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 PaypalPayments < ::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 PaypayPayments < ::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 PaytoPayments < ::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 PixPayments < ::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 PromptpayPayments < ::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 QrisPayments < ::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 RechnungPayments < ::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 RevolutPayPayments < ::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 SamsungPayPayments < ::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 SatispayPayments < ::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 SepaBankTransferPayments < ::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 SepaDebitPayments < ::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 ShopeepayPayments < ::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
+
698
+ class SofortPayments < ::Stripe::RequestParams
699
+ # 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.
700
+ attr_accessor :requested
701
+
702
+ def initialize(requested: nil)
703
+ @requested = requested
704
+ end
705
+ end
706
+
707
+ class StripeBalancePayments < ::Stripe::RequestParams
708
+ # 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.
709
+ attr_accessor :requested
710
+
711
+ def initialize(requested: nil)
712
+ @requested = requested
713
+ end
714
+ end
715
+
716
+ class SwishPayments < ::Stripe::RequestParams
717
+ # 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.
718
+ attr_accessor :requested
719
+
720
+ def initialize(requested: nil)
721
+ @requested = requested
722
+ end
723
+ end
724
+
725
+ class TaxReportingUs1099K < ::Stripe::RequestParams
726
+ # 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.
727
+ attr_accessor :requested
728
+
729
+ def initialize(requested: nil)
730
+ @requested = requested
731
+ end
732
+ end
733
+
734
+ class TaxReportingUs1099Misc < ::Stripe::RequestParams
735
+ # 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.
736
+ attr_accessor :requested
737
+
738
+ def initialize(requested: nil)
739
+ @requested = requested
740
+ end
741
+ end
742
+
743
+ class Transfers < ::Stripe::RequestParams
744
+ # 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.
745
+ attr_accessor :requested
746
+
747
+ def initialize(requested: nil)
748
+ @requested = requested
749
+ end
750
+ end
751
+
752
+ class Treasury < ::Stripe::RequestParams
753
+ # 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.
754
+ attr_accessor :requested
755
+
756
+ def initialize(requested: nil)
757
+ @requested = requested
758
+ end
759
+ end
760
+
761
+ class TreasuryEvolve < ::Stripe::RequestParams
762
+ # 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.
763
+ attr_accessor :requested
764
+
765
+ def initialize(requested: nil)
766
+ @requested = requested
767
+ end
768
+ end
769
+
770
+ class TreasuryFifthThird < ::Stripe::RequestParams
771
+ # 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.
772
+ attr_accessor :requested
773
+
774
+ def initialize(requested: nil)
775
+ @requested = requested
776
+ end
777
+ end
778
+
779
+ class TreasuryGoldmanSachs < ::Stripe::RequestParams
780
+ # 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.
781
+ attr_accessor :requested
782
+
783
+ def initialize(requested: nil)
784
+ @requested = requested
785
+ end
786
+ end
787
+
788
+ class TwintPayments < ::Stripe::RequestParams
789
+ # 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.
790
+ attr_accessor :requested
791
+
792
+ def initialize(requested: nil)
793
+ @requested = requested
794
+ end
795
+ end
796
+
797
+ class UsBankAccountAchPayments < ::Stripe::RequestParams
798
+ # 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.
799
+ attr_accessor :requested
800
+
801
+ def initialize(requested: nil)
802
+ @requested = requested
803
+ end
804
+ end
805
+
806
+ class UsBankTransferPayments < ::Stripe::RequestParams
807
+ # 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.
808
+ attr_accessor :requested
809
+
810
+ def initialize(requested: nil)
811
+ @requested = requested
812
+ end
813
+ end
814
+
815
+ class ZipPayments < ::Stripe::RequestParams
816
+ # 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.
817
+ attr_accessor :requested
818
+
819
+ def initialize(requested: nil)
820
+ @requested = requested
821
+ end
822
+ end
823
+ # The acss_debit_payments capability.
824
+ attr_accessor :acss_debit_payments
825
+ # The affirm_payments capability.
826
+ attr_accessor :affirm_payments
827
+ # The afterpay_clearpay_payments capability.
828
+ attr_accessor :afterpay_clearpay_payments
829
+ # The alma_payments capability.
830
+ attr_accessor :alma_payments
831
+ # The amazon_pay_payments capability.
832
+ attr_accessor :amazon_pay_payments
833
+ # The au_becs_debit_payments capability.
834
+ attr_accessor :au_becs_debit_payments
835
+ # The automatic_indirect_tax capability.
836
+ attr_accessor :automatic_indirect_tax
837
+ # The bacs_debit_payments capability.
838
+ attr_accessor :bacs_debit_payments
839
+ # The bancontact_payments capability.
840
+ attr_accessor :bancontact_payments
841
+ # The bank_transfer_payments capability.
842
+ attr_accessor :bank_transfer_payments
843
+ # The billie_payments capability.
844
+ attr_accessor :billie_payments
845
+ # The blik_payments capability.
846
+ attr_accessor :blik_payments
847
+ # The boleto_payments capability.
848
+ attr_accessor :boleto_payments
849
+ # The card_issuing capability.
850
+ attr_accessor :card_issuing
851
+ # The card_payments capability.
852
+ attr_accessor :card_payments
853
+ # The cartes_bancaires_payments capability.
854
+ attr_accessor :cartes_bancaires_payments
855
+ # The cashapp_payments capability.
856
+ attr_accessor :cashapp_payments
857
+ # The crypto_payments capability.
858
+ attr_accessor :crypto_payments
859
+ # The eps_payments capability.
860
+ attr_accessor :eps_payments
861
+ # The fpx_payments capability.
862
+ attr_accessor :fpx_payments
863
+ # The gb_bank_transfer_payments capability.
864
+ attr_accessor :gb_bank_transfer_payments
865
+ # The giropay_payments capability.
866
+ attr_accessor :giropay_payments
867
+ # The gopay_payments capability.
868
+ attr_accessor :gopay_payments
869
+ # The grabpay_payments capability.
870
+ attr_accessor :grabpay_payments
871
+ # The id_bank_transfer_payments capability.
872
+ attr_accessor :id_bank_transfer_payments
873
+ # The id_bank_transfer_payments_bca capability.
874
+ attr_accessor :id_bank_transfer_payments_bca
875
+ # The ideal_payments capability.
876
+ attr_accessor :ideal_payments
877
+ # The india_international_payments capability.
878
+ attr_accessor :india_international_payments
879
+ # The jcb_payments capability.
880
+ attr_accessor :jcb_payments
881
+ # The jp_bank_transfer_payments capability.
882
+ attr_accessor :jp_bank_transfer_payments
883
+ # The kakao_pay_payments capability.
884
+ attr_accessor :kakao_pay_payments
885
+ # The klarna_payments capability.
886
+ attr_accessor :klarna_payments
887
+ # The konbini_payments capability.
888
+ attr_accessor :konbini_payments
889
+ # The kr_card_payments capability.
890
+ attr_accessor :kr_card_payments
891
+ # The legacy_payments capability.
892
+ attr_accessor :legacy_payments
893
+ # The link_payments capability.
894
+ attr_accessor :link_payments
895
+ # The mb_way_payments capability.
896
+ attr_accessor :mb_way_payments
897
+ # The mobilepay_payments capability.
898
+ attr_accessor :mobilepay_payments
899
+ # The multibanco_payments capability.
900
+ attr_accessor :multibanco_payments
901
+ # The mx_bank_transfer_payments capability.
902
+ attr_accessor :mx_bank_transfer_payments
903
+ # The naver_pay_payments capability.
904
+ attr_accessor :naver_pay_payments
905
+ # The nz_bank_account_becs_debit_payments capability.
906
+ attr_accessor :nz_bank_account_becs_debit_payments
907
+ # The oxxo_payments capability.
908
+ attr_accessor :oxxo_payments
909
+ # The p24_payments capability.
910
+ attr_accessor :p24_payments
911
+ # The pay_by_bank_payments capability.
912
+ attr_accessor :pay_by_bank_payments
913
+ # The payco_payments capability.
914
+ attr_accessor :payco_payments
915
+ # The paynow_payments capability.
916
+ attr_accessor :paynow_payments
917
+ # The paypal_payments capability.
918
+ attr_accessor :paypal_payments
919
+ # The paypay_payments capability.
920
+ attr_accessor :paypay_payments
921
+ # The payto_payments capability.
922
+ attr_accessor :payto_payments
923
+ # The pix_payments capability.
924
+ attr_accessor :pix_payments
925
+ # The promptpay_payments capability.
926
+ attr_accessor :promptpay_payments
927
+ # The qris_payments capability.
928
+ attr_accessor :qris_payments
929
+ # The rechnung_payments capability.
930
+ attr_accessor :rechnung_payments
931
+ # The revolut_pay_payments capability.
932
+ attr_accessor :revolut_pay_payments
933
+ # The samsung_pay_payments capability.
934
+ attr_accessor :samsung_pay_payments
935
+ # The satispay_payments capability.
936
+ attr_accessor :satispay_payments
937
+ # The sepa_bank_transfer_payments capability.
938
+ attr_accessor :sepa_bank_transfer_payments
939
+ # The sepa_debit_payments capability.
940
+ attr_accessor :sepa_debit_payments
941
+ # The shopeepay_payments capability.
942
+ attr_accessor :shopeepay_payments
943
+ # The sofort_payments capability.
944
+ attr_accessor :sofort_payments
945
+ # The stripe_balance_payments capability.
946
+ attr_accessor :stripe_balance_payments
947
+ # The swish_payments capability.
948
+ attr_accessor :swish_payments
949
+ # The tax_reporting_us_1099_k capability.
950
+ attr_accessor :tax_reporting_us_1099_k
951
+ # The tax_reporting_us_1099_misc capability.
952
+ attr_accessor :tax_reporting_us_1099_misc
953
+ # The transfers capability.
954
+ attr_accessor :transfers
955
+ # The treasury capability.
956
+ attr_accessor :treasury
957
+ # The treasury_evolve capability.
958
+ attr_accessor :treasury_evolve
959
+ # The treasury_fifth_third capability.
960
+ attr_accessor :treasury_fifth_third
961
+ # The treasury_goldman_sachs capability.
962
+ attr_accessor :treasury_goldman_sachs
963
+ # The twint_payments capability.
964
+ attr_accessor :twint_payments
965
+ # The us_bank_account_ach_payments capability.
966
+ attr_accessor :us_bank_account_ach_payments
967
+ # The us_bank_transfer_payments capability.
968
+ attr_accessor :us_bank_transfer_payments
969
+ # The zip_payments capability.
970
+ attr_accessor :zip_payments
971
+
972
+ def initialize(
973
+ acss_debit_payments: nil,
974
+ affirm_payments: nil,
975
+ afterpay_clearpay_payments: nil,
976
+ alma_payments: nil,
977
+ amazon_pay_payments: nil,
978
+ au_becs_debit_payments: nil,
979
+ automatic_indirect_tax: nil,
980
+ bacs_debit_payments: nil,
981
+ bancontact_payments: nil,
982
+ bank_transfer_payments: nil,
983
+ billie_payments: nil,
984
+ blik_payments: nil,
985
+ boleto_payments: nil,
986
+ card_issuing: nil,
987
+ card_payments: nil,
988
+ cartes_bancaires_payments: nil,
989
+ cashapp_payments: nil,
990
+ crypto_payments: nil,
991
+ eps_payments: nil,
992
+ fpx_payments: nil,
993
+ gb_bank_transfer_payments: nil,
994
+ giropay_payments: nil,
995
+ gopay_payments: nil,
996
+ grabpay_payments: nil,
997
+ id_bank_transfer_payments: nil,
998
+ id_bank_transfer_payments_bca: nil,
999
+ ideal_payments: nil,
1000
+ india_international_payments: nil,
1001
+ jcb_payments: nil,
1002
+ jp_bank_transfer_payments: nil,
1003
+ kakao_pay_payments: nil,
1004
+ klarna_payments: nil,
1005
+ konbini_payments: nil,
1006
+ kr_card_payments: nil,
1007
+ legacy_payments: nil,
1008
+ link_payments: nil,
1009
+ mb_way_payments: nil,
1010
+ mobilepay_payments: nil,
1011
+ multibanco_payments: nil,
1012
+ mx_bank_transfer_payments: nil,
1013
+ naver_pay_payments: nil,
1014
+ nz_bank_account_becs_debit_payments: nil,
1015
+ oxxo_payments: nil,
1016
+ p24_payments: nil,
1017
+ pay_by_bank_payments: nil,
1018
+ payco_payments: nil,
1019
+ paynow_payments: nil,
1020
+ paypal_payments: nil,
1021
+ paypay_payments: nil,
1022
+ payto_payments: nil,
1023
+ pix_payments: nil,
1024
+ promptpay_payments: nil,
1025
+ qris_payments: nil,
1026
+ rechnung_payments: nil,
1027
+ revolut_pay_payments: nil,
1028
+ samsung_pay_payments: nil,
1029
+ satispay_payments: nil,
1030
+ sepa_bank_transfer_payments: nil,
1031
+ sepa_debit_payments: nil,
1032
+ shopeepay_payments: nil,
1033
+ sofort_payments: nil,
1034
+ stripe_balance_payments: nil,
1035
+ swish_payments: nil,
1036
+ tax_reporting_us_1099_k: nil,
1037
+ tax_reporting_us_1099_misc: nil,
1038
+ transfers: nil,
1039
+ treasury: nil,
1040
+ treasury_evolve: nil,
1041
+ treasury_fifth_third: nil,
1042
+ treasury_goldman_sachs: nil,
1043
+ twint_payments: nil,
1044
+ us_bank_account_ach_payments: nil,
1045
+ us_bank_transfer_payments: nil,
1046
+ zip_payments: nil
1047
+ )
1048
+ @acss_debit_payments = acss_debit_payments
1049
+ @affirm_payments = affirm_payments
1050
+ @afterpay_clearpay_payments = afterpay_clearpay_payments
1051
+ @alma_payments = alma_payments
1052
+ @amazon_pay_payments = amazon_pay_payments
1053
+ @au_becs_debit_payments = au_becs_debit_payments
1054
+ @automatic_indirect_tax = automatic_indirect_tax
1055
+ @bacs_debit_payments = bacs_debit_payments
1056
+ @bancontact_payments = bancontact_payments
1057
+ @bank_transfer_payments = bank_transfer_payments
1058
+ @billie_payments = billie_payments
1059
+ @blik_payments = blik_payments
1060
+ @boleto_payments = boleto_payments
1061
+ @card_issuing = card_issuing
1062
+ @card_payments = card_payments
1063
+ @cartes_bancaires_payments = cartes_bancaires_payments
1064
+ @cashapp_payments = cashapp_payments
1065
+ @crypto_payments = crypto_payments
1066
+ @eps_payments = eps_payments
1067
+ @fpx_payments = fpx_payments
1068
+ @gb_bank_transfer_payments = gb_bank_transfer_payments
1069
+ @giropay_payments = giropay_payments
1070
+ @gopay_payments = gopay_payments
1071
+ @grabpay_payments = grabpay_payments
1072
+ @id_bank_transfer_payments = id_bank_transfer_payments
1073
+ @id_bank_transfer_payments_bca = id_bank_transfer_payments_bca
1074
+ @ideal_payments = ideal_payments
1075
+ @india_international_payments = india_international_payments
1076
+ @jcb_payments = jcb_payments
1077
+ @jp_bank_transfer_payments = jp_bank_transfer_payments
1078
+ @kakao_pay_payments = kakao_pay_payments
1079
+ @klarna_payments = klarna_payments
1080
+ @konbini_payments = konbini_payments
1081
+ @kr_card_payments = kr_card_payments
1082
+ @legacy_payments = legacy_payments
1083
+ @link_payments = link_payments
1084
+ @mb_way_payments = mb_way_payments
1085
+ @mobilepay_payments = mobilepay_payments
1086
+ @multibanco_payments = multibanco_payments
1087
+ @mx_bank_transfer_payments = mx_bank_transfer_payments
1088
+ @naver_pay_payments = naver_pay_payments
1089
+ @nz_bank_account_becs_debit_payments = nz_bank_account_becs_debit_payments
1090
+ @oxxo_payments = oxxo_payments
1091
+ @p24_payments = p24_payments
1092
+ @pay_by_bank_payments = pay_by_bank_payments
1093
+ @payco_payments = payco_payments
1094
+ @paynow_payments = paynow_payments
1095
+ @paypal_payments = paypal_payments
1096
+ @paypay_payments = paypay_payments
1097
+ @payto_payments = payto_payments
1098
+ @pix_payments = pix_payments
1099
+ @promptpay_payments = promptpay_payments
1100
+ @qris_payments = qris_payments
1101
+ @rechnung_payments = rechnung_payments
1102
+ @revolut_pay_payments = revolut_pay_payments
1103
+ @samsung_pay_payments = samsung_pay_payments
1104
+ @satispay_payments = satispay_payments
1105
+ @sepa_bank_transfer_payments = sepa_bank_transfer_payments
1106
+ @sepa_debit_payments = sepa_debit_payments
1107
+ @shopeepay_payments = shopeepay_payments
1108
+ @sofort_payments = sofort_payments
1109
+ @stripe_balance_payments = stripe_balance_payments
1110
+ @swish_payments = swish_payments
1111
+ @tax_reporting_us_1099_k = tax_reporting_us_1099_k
1112
+ @tax_reporting_us_1099_misc = tax_reporting_us_1099_misc
1113
+ @transfers = transfers
1114
+ @treasury = treasury
1115
+ @treasury_evolve = treasury_evolve
1116
+ @treasury_fifth_third = treasury_fifth_third
1117
+ @treasury_goldman_sachs = treasury_goldman_sachs
1118
+ @twint_payments = twint_payments
1119
+ @us_bank_account_ach_payments = us_bank_account_ach_payments
1120
+ @us_bank_transfer_payments = us_bank_transfer_payments
1121
+ @zip_payments = zip_payments
1122
+ end
1123
+ end
1124
+
1125
+ class Card < ::Stripe::RequestParams
1126
+ # Attribute for param field object
1127
+ attr_accessor :object
1128
+ # Attribute for param field address_city
1129
+ attr_accessor :address_city
1130
+ # Attribute for param field address_country
1131
+ attr_accessor :address_country
1132
+ # Attribute for param field address_line1
1133
+ attr_accessor :address_line1
1134
+ # Attribute for param field address_line2
1135
+ attr_accessor :address_line2
1136
+ # Attribute for param field address_state
1137
+ attr_accessor :address_state
1138
+ # Attribute for param field address_zip
1139
+ attr_accessor :address_zip
1140
+ # Attribute for param field currency
1141
+ attr_accessor :currency
1142
+ # Attribute for param field cvc
1143
+ attr_accessor :cvc
1144
+ # Attribute for param field exp_month
1145
+ attr_accessor :exp_month
1146
+ # Attribute for param field exp_year
1147
+ attr_accessor :exp_year
1148
+ # Attribute for param field name
1149
+ attr_accessor :name
1150
+ # Attribute for param field number
1151
+ attr_accessor :number
1152
+ # 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.
1153
+ attr_accessor :metadata
1154
+ # Attribute for param field default_for_currency
1155
+ attr_accessor :default_for_currency
1156
+
1157
+ def initialize(
1158
+ object: nil,
1159
+ address_city: nil,
1160
+ address_country: nil,
1161
+ address_line1: nil,
1162
+ address_line2: nil,
1163
+ address_state: nil,
1164
+ address_zip: nil,
1165
+ currency: nil,
1166
+ cvc: nil,
1167
+ exp_month: nil,
1168
+ exp_year: nil,
1169
+ name: nil,
1170
+ number: nil,
1171
+ metadata: nil,
1172
+ default_for_currency: nil
1173
+ )
1174
+ @object = object
1175
+ @address_city = address_city
1176
+ @address_country = address_country
1177
+ @address_line1 = address_line1
1178
+ @address_line2 = address_line2
1179
+ @address_state = address_state
1180
+ @address_zip = address_zip
1181
+ @currency = currency
1182
+ @cvc = cvc
1183
+ @exp_month = exp_month
1184
+ @exp_year = exp_year
1185
+ @name = name
1186
+ @number = number
1187
+ @metadata = metadata
1188
+ @default_for_currency = default_for_currency
1189
+ end
1190
+ end
1191
+
1192
+ class CardToken < ::Stripe::RequestParams
1193
+ # Attribute for param field object
1194
+ attr_accessor :object
1195
+ # Attribute for param field currency
1196
+ attr_accessor :currency
1197
+ # Attribute for param field token
1198
+ attr_accessor :token
1199
+
1200
+ def initialize(object: nil, currency: nil, token: nil)
1201
+ @object = object
1202
+ @currency = currency
1203
+ @token = token
1204
+ end
1205
+ end
1206
+
1207
+ class Company < ::Stripe::RequestParams
1208
+ class Address < ::Stripe::RequestParams
1209
+ # City, district, suburb, town, or village.
1210
+ attr_accessor :city
1211
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1212
+ attr_accessor :country
1213
+ # Address line 1, such as the street, PO Box, or company name.
1214
+ attr_accessor :line1
1215
+ # Address line 2, such as the apartment, suite, unit, or building.
1216
+ attr_accessor :line2
1217
+ # ZIP or postal code.
1218
+ attr_accessor :postal_code
1219
+ # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
1220
+ attr_accessor :state
1221
+
1222
+ def initialize(
1223
+ city: nil,
1224
+ country: nil,
1225
+ line1: nil,
1226
+ line2: nil,
1227
+ postal_code: nil,
1228
+ state: nil
1229
+ )
1230
+ @city = city
1231
+ @country = country
1232
+ @line1 = line1
1233
+ @line2 = line2
1234
+ @postal_code = postal_code
1235
+ @state = state
1236
+ end
1237
+ end
1238
+
1239
+ class AddressKana < ::Stripe::RequestParams
1240
+ # City or ward.
1241
+ attr_accessor :city
1242
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1243
+ attr_accessor :country
1244
+ # Block or building number.
1245
+ attr_accessor :line1
1246
+ # Building details.
1247
+ attr_accessor :line2
1248
+ # Postal code.
1249
+ attr_accessor :postal_code
1250
+ # Prefecture.
1251
+ attr_accessor :state
1252
+ # Town or cho-me.
1253
+ attr_accessor :town
1254
+
1255
+ def initialize(
1256
+ city: nil,
1257
+ country: nil,
1258
+ line1: nil,
1259
+ line2: nil,
1260
+ postal_code: nil,
1261
+ state: nil,
1262
+ town: nil
1263
+ )
1264
+ @city = city
1265
+ @country = country
1266
+ @line1 = line1
1267
+ @line2 = line2
1268
+ @postal_code = postal_code
1269
+ @state = state
1270
+ @town = town
1271
+ end
1272
+ end
1273
+
1274
+ class AddressKanji < ::Stripe::RequestParams
1275
+ # City or ward.
1276
+ attr_accessor :city
1277
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1278
+ attr_accessor :country
1279
+ # Block or building number.
1280
+ attr_accessor :line1
1281
+ # Building details.
1282
+ attr_accessor :line2
1283
+ # Postal code.
1284
+ attr_accessor :postal_code
1285
+ # Prefecture.
1286
+ attr_accessor :state
1287
+ # Town or cho-me.
1288
+ attr_accessor :town
1289
+
1290
+ def initialize(
1291
+ city: nil,
1292
+ country: nil,
1293
+ line1: nil,
1294
+ line2: nil,
1295
+ postal_code: nil,
1296
+ state: nil,
1297
+ town: nil
1298
+ )
1299
+ @city = city
1300
+ @country = country
1301
+ @line1 = line1
1302
+ @line2 = line2
1303
+ @postal_code = postal_code
1304
+ @state = state
1305
+ @town = town
1306
+ end
1307
+ end
1308
+
1309
+ class DirectorshipDeclaration < ::Stripe::RequestParams
1310
+ # The Unix timestamp marking when the directorship declaration attestation was made.
1311
+ attr_accessor :date
1312
+ # The IP address from which the directorship declaration attestation was made.
1313
+ attr_accessor :ip
1314
+ # The user agent of the browser from which the directorship declaration attestation was made.
1315
+ attr_accessor :user_agent
1316
+
1317
+ def initialize(date: nil, ip: nil, user_agent: nil)
1318
+ @date = date
1319
+ @ip = ip
1320
+ @user_agent = user_agent
1321
+ end
1322
+ end
1323
+
1324
+ class OwnershipDeclaration < ::Stripe::RequestParams
1325
+ # The Unix timestamp marking when the beneficial owner attestation was made.
1326
+ attr_accessor :date
1327
+ # The IP address from which the beneficial owner attestation was made.
1328
+ attr_accessor :ip
1329
+ # The user agent of the browser from which the beneficial owner attestation was made.
1330
+ attr_accessor :user_agent
1331
+
1332
+ def initialize(date: nil, ip: nil, user_agent: nil)
1333
+ @date = date
1334
+ @ip = ip
1335
+ @user_agent = user_agent
1336
+ end
1337
+ end
1338
+
1339
+ class RegistrationDate < ::Stripe::RequestParams
1340
+ # The day of registration, between 1 and 31.
1341
+ attr_accessor :day
1342
+ # The month of registration, between 1 and 12.
1343
+ attr_accessor :month
1344
+ # The four-digit year of registration.
1345
+ attr_accessor :year
1346
+
1347
+ def initialize(day: nil, month: nil, year: nil)
1348
+ @day = day
1349
+ @month = month
1350
+ @year = year
1351
+ end
1352
+ end
1353
+
1354
+ class RepresentativeDeclaration < ::Stripe::RequestParams
1355
+ # The Unix timestamp marking when the representative declaration attestation was made.
1356
+ attr_accessor :date
1357
+ # The IP address from which the representative declaration attestation was made.
1358
+ attr_accessor :ip
1359
+ # The user agent of the browser from which the representative declaration attestation was made.
1360
+ attr_accessor :user_agent
1361
+
1362
+ def initialize(date: nil, ip: nil, user_agent: nil)
1363
+ @date = date
1364
+ @ip = ip
1365
+ @user_agent = user_agent
1366
+ end
1367
+ end
1368
+
1369
+ class Verification < ::Stripe::RequestParams
1370
+ class Document < ::Stripe::RequestParams
1371
+ # The back of a document returned by a [file upload](https://api.stripe.com#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.
1372
+ attr_accessor :back
1373
+ # The front of a document returned by a [file upload](https://api.stripe.com#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.
1374
+ attr_accessor :front
1375
+
1376
+ def initialize(back: nil, front: nil)
1377
+ @back = back
1378
+ @front = front
1379
+ end
1380
+ end
1381
+ # A document verifying the business.
1382
+ attr_accessor :document
1383
+
1384
+ def initialize(document: nil)
1385
+ @document = document
1386
+ end
1387
+ end
1388
+ # The company's primary address.
1389
+ attr_accessor :address
1390
+ # The Kana variation of the company's primary address (Japan only).
1391
+ attr_accessor :address_kana
1392
+ # The Kanji variation of the company's primary address (Japan only).
1393
+ attr_accessor :address_kanji
1394
+ # 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.
1395
+ attr_accessor :directors_provided
1396
+ # This hash is used to attest that the directors information provided to Stripe is both current and correct.
1397
+ attr_accessor :directorship_declaration
1398
+ # 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.
1399
+ attr_accessor :executives_provided
1400
+ # The export license ID number of the company, also referred as Import Export Code (India only).
1401
+ attr_accessor :export_license_id
1402
+ # The purpose code to use for export transactions (India only).
1403
+ attr_accessor :export_purpose_code
1404
+ # The company's legal name.
1405
+ attr_accessor :name
1406
+ # The Kana variation of the company's legal name (Japan only).
1407
+ attr_accessor :name_kana
1408
+ # The Kanji variation of the company's legal name (Japan only).
1409
+ attr_accessor :name_kanji
1410
+ # 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.
1411
+ attr_accessor :owners_provided
1412
+ # This hash is used to attest that the beneficial owner information provided to Stripe is both current and correct.
1413
+ attr_accessor :ownership_declaration
1414
+ # 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.
1415
+ attr_accessor :ownership_exemption_reason
1416
+ # The company's phone number (used for verification).
1417
+ attr_accessor :phone
1418
+ # When the business was incorporated or registered.
1419
+ attr_accessor :registration_date
1420
+ # 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).
1421
+ attr_accessor :registration_number
1422
+ # This hash is used to attest that the representative is authorized to act as the representative of their legal entity.
1423
+ attr_accessor :representative_declaration
1424
+ # 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.
1425
+ attr_accessor :structure
1426
+ # 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.)
1427
+ attr_accessor :tax_id
1428
+ # The jurisdiction in which the `tax_id` is registered (Germany-based companies only).
1429
+ attr_accessor :tax_id_registrar
1430
+ # The VAT number of the company.
1431
+ attr_accessor :vat_id
1432
+ # Information on the verification state of the company.
1433
+ attr_accessor :verification
1434
+
1435
+ def initialize(
1436
+ address: nil,
1437
+ address_kana: nil,
1438
+ address_kanji: nil,
1439
+ directors_provided: nil,
1440
+ directorship_declaration: nil,
1441
+ executives_provided: nil,
1442
+ export_license_id: nil,
1443
+ export_purpose_code: nil,
1444
+ name: nil,
1445
+ name_kana: nil,
1446
+ name_kanji: nil,
1447
+ owners_provided: nil,
1448
+ ownership_declaration: nil,
1449
+ ownership_exemption_reason: nil,
1450
+ phone: nil,
1451
+ registration_date: nil,
1452
+ registration_number: nil,
1453
+ representative_declaration: nil,
1454
+ structure: nil,
1455
+ tax_id: nil,
1456
+ tax_id_registrar: nil,
1457
+ vat_id: nil,
1458
+ verification: nil
1459
+ )
1460
+ @address = address
1461
+ @address_kana = address_kana
1462
+ @address_kanji = address_kanji
1463
+ @directors_provided = directors_provided
1464
+ @directorship_declaration = directorship_declaration
1465
+ @executives_provided = executives_provided
1466
+ @export_license_id = export_license_id
1467
+ @export_purpose_code = export_purpose_code
1468
+ @name = name
1469
+ @name_kana = name_kana
1470
+ @name_kanji = name_kanji
1471
+ @owners_provided = owners_provided
1472
+ @ownership_declaration = ownership_declaration
1473
+ @ownership_exemption_reason = ownership_exemption_reason
1474
+ @phone = phone
1475
+ @registration_date = registration_date
1476
+ @registration_number = registration_number
1477
+ @representative_declaration = representative_declaration
1478
+ @structure = structure
1479
+ @tax_id = tax_id
1480
+ @tax_id_registrar = tax_id_registrar
1481
+ @vat_id = vat_id
1482
+ @verification = verification
1483
+ end
1484
+ end
1485
+
1486
+ class Controller < ::Stripe::RequestParams
1487
+ class Application < ::Stripe::RequestParams
1488
+ # Whether the controller is liable for losses on this account. For details, see [Understanding Connect Account Balances](https://docs.stripe.com/connect/account-balances).
1489
+ attr_accessor :loss_liable
1490
+ # Whether the controller owns onboarding for this account.
1491
+ attr_accessor :onboarding_owner
1492
+ # Whether the controller has pricing controls for this account.
1493
+ attr_accessor :pricing_controls
1494
+
1495
+ def initialize(loss_liable: nil, onboarding_owner: nil, pricing_controls: nil)
1496
+ @loss_liable = loss_liable
1497
+ @onboarding_owner = onboarding_owner
1498
+ @pricing_controls = pricing_controls
1499
+ end
1500
+ end
1501
+
1502
+ class Dashboard < ::Stripe::RequestParams
1503
+ # 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`.
1504
+ attr_accessor :type
1505
+
1506
+ def initialize(type: nil)
1507
+ @type = type
1508
+ end
1509
+ end
1510
+
1511
+ class Fees < ::Stripe::RequestParams
1512
+ # 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).
1513
+ attr_accessor :payer
1514
+
1515
+ def initialize(payer: nil)
1516
+ @payer = payer
1517
+ end
1518
+ end
1519
+
1520
+ class Losses < ::Stripe::RequestParams
1521
+ # A value indicating who is liable when this account can't pay back negative balances resulting from payments. Defaults to `stripe`.
1522
+ attr_accessor :payments
1523
+
1524
+ def initialize(payments: nil)
1525
+ @payments = payments
1526
+ end
1527
+ end
1528
+
1529
+ class StripeDashboard < ::Stripe::RequestParams
1530
+ # 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`.
1531
+ attr_accessor :type
1532
+
1533
+ def initialize(type: nil)
1534
+ @type = type
1535
+ end
1536
+ end
1537
+ # A hash of configuration describing the Connect application that controls the account.
1538
+ attr_accessor :application
1539
+ # Properties of the account's dashboard.
1540
+ attr_accessor :dashboard
1541
+ # A hash of configuration for who pays Stripe fees for product usage on this account.
1542
+ attr_accessor :fees
1543
+ # A hash of configuration for products that have negative balance liability, and whether Stripe or a Connect application is responsible for them.
1544
+ attr_accessor :losses
1545
+ # A value indicating responsibility for collecting updated information when requirements on the account are due or change. Defaults to `stripe`.
1546
+ attr_accessor :requirement_collection
1547
+ # A hash of configuration for Stripe-hosted dashboards.
1548
+ attr_accessor :stripe_dashboard
1549
+
1550
+ def initialize(
1551
+ application: nil,
1552
+ dashboard: nil,
1553
+ fees: nil,
1554
+ losses: nil,
1555
+ requirement_collection: nil,
1556
+ stripe_dashboard: nil
1557
+ )
1558
+ @application = application
1559
+ @dashboard = dashboard
1560
+ @fees = fees
1561
+ @losses = losses
1562
+ @requirement_collection = requirement_collection
1563
+ @stripe_dashboard = stripe_dashboard
1564
+ end
1565
+ end
1566
+
1567
+ class Documents < ::Stripe::RequestParams
1568
+ class BankAccountOwnershipVerification < ::Stripe::RequestParams
1569
+ # One or more document ids returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `account_requirement`.
1570
+ attr_accessor :files
1571
+
1572
+ def initialize(files: nil)
1573
+ @files = files
1574
+ end
1575
+ end
1576
+
1577
+ class CompanyLicense < ::Stripe::RequestParams
1578
+ # One or more document ids returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `account_requirement`.
1579
+ attr_accessor :files
1580
+
1581
+ def initialize(files: nil)
1582
+ @files = files
1583
+ end
1584
+ end
1585
+
1586
+ class CompanyMemorandumOfAssociation < ::Stripe::RequestParams
1587
+ # One or more document ids returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `account_requirement`.
1588
+ attr_accessor :files
1589
+
1590
+ def initialize(files: nil)
1591
+ @files = files
1592
+ end
1593
+ end
1594
+
1595
+ class CompanyMinisterialDecree < ::Stripe::RequestParams
1596
+ # One or more document ids returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `account_requirement`.
1597
+ attr_accessor :files
1598
+
1599
+ def initialize(files: nil)
1600
+ @files = files
1601
+ end
1602
+ end
1603
+
1604
+ class CompanyRegistrationVerification < ::Stripe::RequestParams
1605
+ # One or more document ids returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `account_requirement`.
1606
+ attr_accessor :files
1607
+
1608
+ def initialize(files: nil)
1609
+ @files = files
1610
+ end
1611
+ end
1612
+
1613
+ class CompanyTaxIdVerification < ::Stripe::RequestParams
1614
+ # One or more document ids returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `account_requirement`.
1615
+ attr_accessor :files
1616
+
1617
+ def initialize(files: nil)
1618
+ @files = files
1619
+ end
1620
+ end
1621
+
1622
+ class ProofOfAddress < ::Stripe::RequestParams
1623
+ # One or more document ids returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `account_requirement`.
1624
+ attr_accessor :files
1625
+
1626
+ def initialize(files: nil)
1627
+ @files = files
1628
+ end
1629
+ end
1630
+
1631
+ class ProofOfRegistration < ::Stripe::RequestParams
1632
+ class Signer < ::Stripe::RequestParams
1633
+ # The token of the person signing the document, if applicable.
1634
+ attr_accessor :person
1635
+
1636
+ def initialize(person: nil)
1637
+ @person = person
1638
+ end
1639
+ end
1640
+ # One or more document ids returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `account_requirement`.
1641
+ attr_accessor :files
1642
+ # Information regarding the person signing the document if applicable.
1643
+ attr_accessor :signer
1644
+
1645
+ def initialize(files: nil, signer: nil)
1646
+ @files = files
1647
+ @signer = signer
1648
+ end
1649
+ end
1650
+
1651
+ class ProofOfUltimateBeneficialOwnership < ::Stripe::RequestParams
1652
+ class Signer < ::Stripe::RequestParams
1653
+ # The token of the person signing the document, if applicable.
1654
+ attr_accessor :person
1655
+
1656
+ def initialize(person: nil)
1657
+ @person = person
1658
+ end
1659
+ end
1660
+ # One or more document ids returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `account_requirement`.
1661
+ attr_accessor :files
1662
+ # Information regarding the person signing the document if applicable.
1663
+ attr_accessor :signer
1664
+
1665
+ def initialize(files: nil, signer: nil)
1666
+ @files = files
1667
+ @signer = signer
1668
+ end
1669
+ end
1670
+ # 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.
1671
+ attr_accessor :bank_account_ownership_verification
1672
+ # One or more documents that demonstrate proof of a company's license to operate.
1673
+ attr_accessor :company_license
1674
+ # One or more documents showing the company's Memorandum of Association.
1675
+ attr_accessor :company_memorandum_of_association
1676
+ # (Certain countries only) One or more documents showing the ministerial decree legalizing the company's establishment.
1677
+ attr_accessor :company_ministerial_decree
1678
+ # One or more documents that demonstrate proof of a company's registration with the appropriate local authorities.
1679
+ attr_accessor :company_registration_verification
1680
+ # One or more documents that demonstrate proof of a company's tax ID.
1681
+ attr_accessor :company_tax_id_verification
1682
+ # One or more documents that demonstrate proof of address.
1683
+ attr_accessor :proof_of_address
1684
+ # One or more documents showing the company’s proof of registration with the national business registry.
1685
+ attr_accessor :proof_of_registration
1686
+ # One or more documents that demonstrate proof of ultimate beneficial ownership.
1687
+ attr_accessor :proof_of_ultimate_beneficial_ownership
1688
+
1689
+ def initialize(
1690
+ bank_account_ownership_verification: nil,
1691
+ company_license: nil,
1692
+ company_memorandum_of_association: nil,
1693
+ company_ministerial_decree: nil,
1694
+ company_registration_verification: nil,
1695
+ company_tax_id_verification: nil,
1696
+ proof_of_address: nil,
1697
+ proof_of_registration: nil,
1698
+ proof_of_ultimate_beneficial_ownership: nil
1699
+ )
1700
+ @bank_account_ownership_verification = bank_account_ownership_verification
1701
+ @company_license = company_license
1702
+ @company_memorandum_of_association = company_memorandum_of_association
1703
+ @company_ministerial_decree = company_ministerial_decree
1704
+ @company_registration_verification = company_registration_verification
1705
+ @company_tax_id_verification = company_tax_id_verification
1706
+ @proof_of_address = proof_of_address
1707
+ @proof_of_registration = proof_of_registration
1708
+ @proof_of_ultimate_beneficial_ownership = proof_of_ultimate_beneficial_ownership
1709
+ end
1710
+ end
1711
+
1712
+ class Groups < ::Stripe::RequestParams
1713
+ # 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://docs.stripe.com/connect/platform-pricing-tools) for details.
1714
+ attr_accessor :payments_pricing
1715
+
1716
+ def initialize(payments_pricing: nil)
1717
+ @payments_pricing = payments_pricing
1718
+ end
1719
+ end
1720
+
1721
+ class Individual < ::Stripe::RequestParams
1722
+ class Address < ::Stripe::RequestParams
1723
+ # City, district, suburb, town, or village.
1724
+ attr_accessor :city
1725
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1726
+ attr_accessor :country
1727
+ # Address line 1, such as the street, PO Box, or company name.
1728
+ attr_accessor :line1
1729
+ # Address line 2, such as the apartment, suite, unit, or building.
1730
+ attr_accessor :line2
1731
+ # ZIP or postal code.
1732
+ attr_accessor :postal_code
1733
+ # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
1734
+ attr_accessor :state
1735
+
1736
+ def initialize(
1737
+ city: nil,
1738
+ country: nil,
1739
+ line1: nil,
1740
+ line2: nil,
1741
+ postal_code: nil,
1742
+ state: nil
1743
+ )
1744
+ @city = city
1745
+ @country = country
1746
+ @line1 = line1
1747
+ @line2 = line2
1748
+ @postal_code = postal_code
1749
+ @state = state
1750
+ end
1751
+ end
1752
+
1753
+ class AddressKana < ::Stripe::RequestParams
1754
+ # City or ward.
1755
+ attr_accessor :city
1756
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1757
+ attr_accessor :country
1758
+ # Block or building number.
1759
+ attr_accessor :line1
1760
+ # Building details.
1761
+ attr_accessor :line2
1762
+ # Postal code.
1763
+ attr_accessor :postal_code
1764
+ # Prefecture.
1765
+ attr_accessor :state
1766
+ # Town or cho-me.
1767
+ attr_accessor :town
1768
+
1769
+ def initialize(
1770
+ city: nil,
1771
+ country: nil,
1772
+ line1: nil,
1773
+ line2: nil,
1774
+ postal_code: nil,
1775
+ state: nil,
1776
+ town: nil
1777
+ )
1778
+ @city = city
1779
+ @country = country
1780
+ @line1 = line1
1781
+ @line2 = line2
1782
+ @postal_code = postal_code
1783
+ @state = state
1784
+ @town = town
1785
+ end
1786
+ end
1787
+
1788
+ class AddressKanji < ::Stripe::RequestParams
1789
+ # City or ward.
1790
+ attr_accessor :city
1791
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1792
+ attr_accessor :country
1793
+ # Block or building number.
1794
+ attr_accessor :line1
1795
+ # Building details.
1796
+ attr_accessor :line2
1797
+ # Postal code.
1798
+ attr_accessor :postal_code
1799
+ # Prefecture.
1800
+ attr_accessor :state
1801
+ # Town or cho-me.
1802
+ attr_accessor :town
1803
+
1804
+ def initialize(
1805
+ city: nil,
1806
+ country: nil,
1807
+ line1: nil,
1808
+ line2: nil,
1809
+ postal_code: nil,
1810
+ state: nil,
1811
+ town: nil
1812
+ )
1813
+ @city = city
1814
+ @country = country
1815
+ @line1 = line1
1816
+ @line2 = line2
1817
+ @postal_code = postal_code
1818
+ @state = state
1819
+ @town = town
1820
+ end
1821
+ end
1822
+
1823
+ class Dob < ::Stripe::RequestParams
1824
+ # The day of birth, between 1 and 31.
1825
+ attr_accessor :day
1826
+ # The month of birth, between 1 and 12.
1827
+ attr_accessor :month
1828
+ # The four-digit year of birth.
1829
+ attr_accessor :year
1830
+
1831
+ def initialize(day: nil, month: nil, year: nil)
1832
+ @day = day
1833
+ @month = month
1834
+ @year = year
1835
+ end
1836
+ end
1837
+
1838
+ class RegisteredAddress < ::Stripe::RequestParams
1839
+ # City, district, suburb, town, or village.
1840
+ attr_accessor :city
1841
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1842
+ attr_accessor :country
1843
+ # Address line 1, such as the street, PO Box, or company name.
1844
+ attr_accessor :line1
1845
+ # Address line 2, such as the apartment, suite, unit, or building.
1846
+ attr_accessor :line2
1847
+ # ZIP or postal code.
1848
+ attr_accessor :postal_code
1849
+ # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
1850
+ attr_accessor :state
1851
+
1852
+ def initialize(
1853
+ city: nil,
1854
+ country: nil,
1855
+ line1: nil,
1856
+ line2: nil,
1857
+ postal_code: nil,
1858
+ state: nil
1859
+ )
1860
+ @city = city
1861
+ @country = country
1862
+ @line1 = line1
1863
+ @line2 = line2
1864
+ @postal_code = postal_code
1865
+ @state = state
1866
+ end
1867
+ end
1868
+
1869
+ class Relationship < ::Stripe::RequestParams
1870
+ # 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.
1871
+ attr_accessor :director
1872
+ # Whether the person has significant responsibility to control, manage, or direct the organization.
1873
+ attr_accessor :executive
1874
+ # Whether the person is an owner of the account’s legal entity.
1875
+ attr_accessor :owner
1876
+ # The percent owned by the person of the account's legal entity.
1877
+ attr_accessor :percent_ownership
1878
+ # The person's title (e.g., CEO, Support Engineer).
1879
+ attr_accessor :title
1880
+
1881
+ def initialize(
1882
+ director: nil,
1883
+ executive: nil,
1884
+ owner: nil,
1885
+ percent_ownership: nil,
1886
+ title: nil
1887
+ )
1888
+ @director = director
1889
+ @executive = executive
1890
+ @owner = owner
1891
+ @percent_ownership = percent_ownership
1892
+ @title = title
1893
+ end
1894
+ end
1895
+
1896
+ class Verification < ::Stripe::RequestParams
1897
+ class AdditionalDocument < ::Stripe::RequestParams
1898
+ # The back of an ID returned by a [file upload](https://api.stripe.com#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.
1899
+ attr_accessor :back
1900
+ # The front of an ID returned by a [file upload](https://api.stripe.com#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.
1901
+ attr_accessor :front
1902
+
1903
+ def initialize(back: nil, front: nil)
1904
+ @back = back
1905
+ @front = front
1906
+ end
1907
+ end
1908
+
1909
+ class Document < ::Stripe::RequestParams
1910
+ # The back of an ID returned by a [file upload](https://api.stripe.com#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.
1911
+ attr_accessor :back
1912
+ # The front of an ID returned by a [file upload](https://api.stripe.com#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.
1913
+ attr_accessor :front
1914
+
1915
+ def initialize(back: nil, front: nil)
1916
+ @back = back
1917
+ @front = front
1918
+ end
1919
+ end
1920
+ # A document showing address, either a passport, local ID card, or utility bill from a well-known utility company.
1921
+ attr_accessor :additional_document
1922
+ # An identifying document, either a passport or local ID card.
1923
+ attr_accessor :document
1924
+
1925
+ def initialize(additional_document: nil, document: nil)
1926
+ @additional_document = additional_document
1927
+ @document = document
1928
+ end
1929
+ end
1930
+ # The individual's primary address.
1931
+ attr_accessor :address
1932
+ # The Kana variation of the individual's primary address (Japan only).
1933
+ attr_accessor :address_kana
1934
+ # The Kanji variation of the individual's primary address (Japan only).
1935
+ attr_accessor :address_kanji
1936
+ # The individual's date of birth.
1937
+ attr_accessor :dob
1938
+ # The individual's email address.
1939
+ attr_accessor :email
1940
+ # The individual's first name.
1941
+ attr_accessor :first_name
1942
+ # The Kana variation of the individual's first name (Japan only).
1943
+ attr_accessor :first_name_kana
1944
+ # The Kanji variation of the individual's first name (Japan only).
1945
+ attr_accessor :first_name_kanji
1946
+ # A list of alternate names or aliases that the individual is known by.
1947
+ attr_accessor :full_name_aliases
1948
+ # The individual's gender
1949
+ attr_accessor :gender
1950
+ # 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).
1951
+ attr_accessor :id_number
1952
+ # 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).
1953
+ attr_accessor :id_number_secondary
1954
+ # The individual's last name.
1955
+ attr_accessor :last_name
1956
+ # The Kana variation of the individual's last name (Japan only).
1957
+ attr_accessor :last_name_kana
1958
+ # The Kanji variation of the individual's last name (Japan only).
1959
+ attr_accessor :last_name_kanji
1960
+ # The individual's maiden name.
1961
+ attr_accessor :maiden_name
1962
+ # Set of [key-value pairs](https://docs.stripe.com/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`.
1963
+ attr_accessor :metadata
1964
+ # The individual's phone number.
1965
+ attr_accessor :phone
1966
+ # 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.
1967
+ attr_accessor :political_exposure
1968
+ # The individual's registered address.
1969
+ attr_accessor :registered_address
1970
+ # Describes the person’s relationship to the account.
1971
+ attr_accessor :relationship
1972
+ # The last four digits of the individual's Social Security Number (U.S. only).
1973
+ attr_accessor :ssn_last_4
1974
+ # The individual's verification document information.
1975
+ attr_accessor :verification
1976
+
1977
+ def initialize(
1978
+ address: nil,
1979
+ address_kana: nil,
1980
+ address_kanji: nil,
1981
+ dob: nil,
1982
+ email: nil,
1983
+ first_name: nil,
1984
+ first_name_kana: nil,
1985
+ first_name_kanji: nil,
1986
+ full_name_aliases: nil,
1987
+ gender: nil,
1988
+ id_number: nil,
1989
+ id_number_secondary: nil,
1990
+ last_name: nil,
1991
+ last_name_kana: nil,
1992
+ last_name_kanji: nil,
1993
+ maiden_name: nil,
1994
+ metadata: nil,
1995
+ phone: nil,
1996
+ political_exposure: nil,
1997
+ registered_address: nil,
1998
+ relationship: nil,
1999
+ ssn_last_4: nil,
2000
+ verification: nil
2001
+ )
2002
+ @address = address
2003
+ @address_kana = address_kana
2004
+ @address_kanji = address_kanji
2005
+ @dob = dob
2006
+ @email = email
2007
+ @first_name = first_name
2008
+ @first_name_kana = first_name_kana
2009
+ @first_name_kanji = first_name_kanji
2010
+ @full_name_aliases = full_name_aliases
2011
+ @gender = gender
2012
+ @id_number = id_number
2013
+ @id_number_secondary = id_number_secondary
2014
+ @last_name = last_name
2015
+ @last_name_kana = last_name_kana
2016
+ @last_name_kanji = last_name_kanji
2017
+ @maiden_name = maiden_name
2018
+ @metadata = metadata
2019
+ @phone = phone
2020
+ @political_exposure = political_exposure
2021
+ @registered_address = registered_address
2022
+ @relationship = relationship
2023
+ @ssn_last_4 = ssn_last_4
2024
+ @verification = verification
2025
+ end
2026
+ end
2027
+
2028
+ class RiskControls < ::Stripe::RequestParams
2029
+ class Charges < ::Stripe::RequestParams
2030
+ # To request to pause a risk control, pass `true`. To request to unpause a risk control, pass `false`.
2031
+ # There can be a delay before the risk control is paused or unpaused.
2032
+ attr_accessor :pause_requested
2033
+
2034
+ def initialize(pause_requested: nil)
2035
+ @pause_requested = pause_requested
2036
+ end
2037
+ end
2038
+
2039
+ class Payouts < ::Stripe::RequestParams
2040
+ # To request to pause a risk control, pass `true`. To request to unpause a risk control, pass `false`.
2041
+ # There can be a delay before the risk control is paused or unpaused.
2042
+ attr_accessor :pause_requested
2043
+
2044
+ def initialize(pause_requested: nil)
2045
+ @pause_requested = pause_requested
2046
+ end
2047
+ end
2048
+ # Represents the risk control status of charges. Please see [this page for more details](https://docs.stripe.com/connect/pausing-payments-or-payouts-on-connected-accounts).
2049
+ attr_accessor :charges
2050
+ # Represents the risk control status of payouts. Please see [this page for more details](https://docs.stripe.com/connect/pausing-payments-or-payouts-on-connected-accounts).
2051
+ attr_accessor :payouts
2052
+
2053
+ def initialize(charges: nil, payouts: nil)
2054
+ @charges = charges
2055
+ @payouts = payouts
2056
+ end
2057
+ end
2058
+
2059
+ class Settings < ::Stripe::RequestParams
2060
+ class BacsDebitPayments < ::Stripe::RequestParams
2061
+ # 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.
2062
+ attr_accessor :display_name
2063
+
2064
+ def initialize(display_name: nil)
2065
+ @display_name = display_name
2066
+ end
2067
+ end
2068
+
2069
+ class BankBcaOnboarding < ::Stripe::RequestParams
2070
+ # Bank BCA business account holder name
2071
+ attr_accessor :account_holder_name
2072
+ # Bank BCA business account number
2073
+ attr_accessor :business_account_number
2074
+
2075
+ def initialize(account_holder_name: nil, business_account_number: nil)
2076
+ @account_holder_name = account_holder_name
2077
+ @business_account_number = business_account_number
2078
+ end
2079
+ end
2080
+
2081
+ class Branding < ::Stripe::RequestParams
2082
+ # (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.
2083
+ attr_accessor :icon
2084
+ # (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.
2085
+ attr_accessor :logo
2086
+ # A CSS hex color value representing the primary branding color for this account.
2087
+ attr_accessor :primary_color
2088
+ # A CSS hex color value representing the secondary branding color for this account.
2089
+ attr_accessor :secondary_color
2090
+
2091
+ def initialize(icon: nil, logo: nil, primary_color: nil, secondary_color: nil)
2092
+ @icon = icon
2093
+ @logo = logo
2094
+ @primary_color = primary_color
2095
+ @secondary_color = secondary_color
2096
+ end
2097
+ end
2098
+
2099
+ class Capital < ::Stripe::RequestParams
2100
+ # Per-currency mapping of user-selected destination accounts used to pay out loans.
2101
+ attr_accessor :payout_destination
2102
+ # Per-currency mapping of all destination accounts eligible to receive Capital financing payouts.
2103
+ attr_accessor :payout_destination_selector
2104
+
2105
+ def initialize(payout_destination: nil, payout_destination_selector: nil)
2106
+ @payout_destination = payout_destination
2107
+ @payout_destination_selector = payout_destination_selector
2108
+ end
2109
+ end
2110
+
2111
+ class CardIssuing < ::Stripe::RequestParams
2112
+ class TosAcceptance < ::Stripe::RequestParams
2113
+ # The Unix timestamp marking when the account representative accepted the service agreement.
2114
+ attr_accessor :date
2115
+ # The IP address from which the account representative accepted the service agreement.
2116
+ attr_accessor :ip
2117
+ # The user agent of the browser from which the account representative accepted the service agreement.
2118
+ attr_accessor :user_agent
2119
+
2120
+ def initialize(date: nil, ip: nil, user_agent: nil)
2121
+ @date = date
2122
+ @ip = ip
2123
+ @user_agent = user_agent
2124
+ end
2125
+ end
2126
+ # Details on the account's acceptance of the [Stripe Issuing Terms and Disclosures](/issuing/connect/tos_acceptance).
2127
+ attr_accessor :tos_acceptance
2128
+
2129
+ def initialize(tos_acceptance: nil)
2130
+ @tos_acceptance = tos_acceptance
2131
+ end
2132
+ end
2133
+
2134
+ class CardPayments < ::Stripe::RequestParams
2135
+ class DeclineOn < ::Stripe::RequestParams
2136
+ # 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.
2137
+ attr_accessor :avs_failure
2138
+ # Whether Stripe automatically declines charges with an incorrect CVC. This setting only applies when a CVC is provided and it fails bank verification.
2139
+ attr_accessor :cvc_failure
2140
+
2141
+ def initialize(avs_failure: nil, cvc_failure: nil)
2142
+ @avs_failure = avs_failure
2143
+ @cvc_failure = cvc_failure
2144
+ end
2145
+ end
2146
+ # Automatically declines certain charge types regardless of whether the card issuer accepted or declined the charge.
2147
+ attr_accessor :decline_on
2148
+ # 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.
2149
+ attr_accessor :statement_descriptor_prefix
2150
+ # 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.
2151
+ attr_accessor :statement_descriptor_prefix_kana
2152
+ # 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.
2153
+ attr_accessor :statement_descriptor_prefix_kanji
2154
+
2155
+ def initialize(
2156
+ decline_on: nil,
2157
+ statement_descriptor_prefix: nil,
2158
+ statement_descriptor_prefix_kana: nil,
2159
+ statement_descriptor_prefix_kanji: nil
2160
+ )
2161
+ @decline_on = decline_on
2162
+ @statement_descriptor_prefix = statement_descriptor_prefix
2163
+ @statement_descriptor_prefix_kana = statement_descriptor_prefix_kana
2164
+ @statement_descriptor_prefix_kanji = statement_descriptor_prefix_kanji
2165
+ end
2166
+ end
2167
+
2168
+ class Invoices < ::Stripe::RequestParams
2169
+ # Whether to save the payment method after a payment is completed for a one-time invoice or a subscription invoice when the customer already has a default payment method on the hosted invoice page.
2170
+ attr_accessor :hosted_payment_method_save
2171
+
2172
+ def initialize(hosted_payment_method_save: nil)
2173
+ @hosted_payment_method_save = hosted_payment_method_save
2174
+ end
2175
+ end
2176
+
2177
+ class Payments < ::Stripe::RequestParams
2178
+ # 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).
2179
+ attr_accessor :statement_descriptor
2180
+ # 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).
2181
+ attr_accessor :statement_descriptor_kana
2182
+ # 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).
2183
+ attr_accessor :statement_descriptor_kanji
2184
+
2185
+ def initialize(
2186
+ statement_descriptor: nil,
2187
+ statement_descriptor_kana: nil,
2188
+ statement_descriptor_kanji: nil
2189
+ )
2190
+ @statement_descriptor = statement_descriptor
2191
+ @statement_descriptor_kana = statement_descriptor_kana
2192
+ @statement_descriptor_kanji = statement_descriptor_kanji
2193
+ end
2194
+ end
2195
+
2196
+ class Payouts < ::Stripe::RequestParams
2197
+ class Schedule < ::Stripe::RequestParams
2198
+ # 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).
2199
+ attr_accessor :delay_days
2200
+ # How frequently available funds are paid out. One of: `daily`, `manual`, `weekly`, or `monthly`. Default is `daily`.
2201
+ attr_accessor :interval
2202
+ # 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`.
2203
+ attr_accessor :monthly_anchor
2204
+ # The days of the month when available funds are paid out, specified as an array of numbers between 1--31. Payouts nominally scheduled between the 29th and 31st of the month are instead sent on the last day of a shorter month. Required and applicable only if `interval` is `monthly` and `monthly_anchor` is not set.
2205
+ attr_accessor :monthly_payout_days
2206
+ # The day of the week when available funds are paid out, specified as `monday`, `tuesday`, etc. Required and applicable only if `interval` is `weekly`.
2207
+ attr_accessor :weekly_anchor
2208
+ # The days of the week when available funds are paid out, specified as an array, e.g., [`monday`, `tuesday`]. Required and applicable only if `interval` is `weekly`.
2209
+ attr_accessor :weekly_payout_days
2210
+
2211
+ def initialize(
2212
+ delay_days: nil,
2213
+ interval: nil,
2214
+ monthly_anchor: nil,
2215
+ monthly_payout_days: nil,
2216
+ weekly_anchor: nil,
2217
+ weekly_payout_days: nil
2218
+ )
2219
+ @delay_days = delay_days
2220
+ @interval = interval
2221
+ @monthly_anchor = monthly_anchor
2222
+ @monthly_payout_days = monthly_payout_days
2223
+ @weekly_anchor = weekly_anchor
2224
+ @weekly_payout_days = weekly_payout_days
2225
+ end
2226
+ end
2227
+ # 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).
2228
+ attr_accessor :debit_negative_balances
2229
+ # 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.
2230
+ attr_accessor :schedule
2231
+ # 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.
2232
+ attr_accessor :statement_descriptor
2233
+
2234
+ def initialize(debit_negative_balances: nil, schedule: nil, statement_descriptor: nil)
2235
+ @debit_negative_balances = debit_negative_balances
2236
+ @schedule = schedule
2237
+ @statement_descriptor = statement_descriptor
2238
+ end
2239
+ end
2240
+
2241
+ class PaypayPayments < ::Stripe::RequestParams
2242
+ # Whether your business sells digital content or not.
2243
+ attr_accessor :goods_type
2244
+
2245
+ def initialize(goods_type: nil)
2246
+ @goods_type = goods_type
2247
+ end
2248
+ end
2249
+
2250
+ class TaxForms < ::Stripe::RequestParams
2251
+ # Whether the account opted out of receiving their tax forms by postal delivery.
2252
+ attr_accessor :consented_to_paperless_delivery
2253
+
2254
+ def initialize(consented_to_paperless_delivery: nil)
2255
+ @consented_to_paperless_delivery = consented_to_paperless_delivery
2256
+ end
2257
+ end
2258
+
2259
+ class Treasury < ::Stripe::RequestParams
2260
+ class TosAcceptance < ::Stripe::RequestParams
2261
+ # The Unix timestamp marking when the account representative accepted the service agreement.
2262
+ attr_accessor :date
2263
+ # The IP address from which the account representative accepted the service agreement.
2264
+ attr_accessor :ip
2265
+ # The user agent of the browser from which the account representative accepted the service agreement.
2266
+ attr_accessor :user_agent
2267
+
2268
+ def initialize(date: nil, ip: nil, user_agent: nil)
2269
+ @date = date
2270
+ @ip = ip
2271
+ @user_agent = user_agent
2272
+ end
2273
+ end
2274
+ # Details on the account's acceptance of the Stripe Treasury Services Agreement.
2275
+ attr_accessor :tos_acceptance
2276
+
2277
+ def initialize(tos_acceptance: nil)
2278
+ @tos_acceptance = tos_acceptance
2279
+ end
2280
+ end
2281
+ # Settings specific to Bacs Direct Debit.
2282
+ attr_accessor :bacs_debit_payments
2283
+ # Settings specific to bank BCA onboarding for Indonesia bank transfers payments method.
2284
+ attr_accessor :bank_bca_onboarding
2285
+ # Settings used to apply the account's branding to email receipts, invoices, Checkout, and other products.
2286
+ attr_accessor :branding
2287
+ # Settings specific to the account's use of the Capital product.
2288
+ attr_accessor :capital
2289
+ # Settings specific to the account's use of the Card Issuing product.
2290
+ attr_accessor :card_issuing
2291
+ # Settings specific to card charging on the account.
2292
+ attr_accessor :card_payments
2293
+ # Settings specific to the account’s use of Invoices.
2294
+ attr_accessor :invoices
2295
+ # Settings that apply across payment methods for charging on the account.
2296
+ attr_accessor :payments
2297
+ # Settings specific to the account's payouts.
2298
+ attr_accessor :payouts
2299
+ # Settings specific to the PayPay payments method.
2300
+ attr_accessor :paypay_payments
2301
+ # Settings specific to the account's tax forms.
2302
+ attr_accessor :tax_forms
2303
+ # Settings specific to the account's Treasury FinancialAccounts.
2304
+ attr_accessor :treasury
2305
+
2306
+ def initialize(
2307
+ bacs_debit_payments: nil,
2308
+ bank_bca_onboarding: nil,
2309
+ branding: nil,
2310
+ capital: nil,
2311
+ card_issuing: nil,
2312
+ card_payments: nil,
2313
+ invoices: nil,
2314
+ payments: nil,
2315
+ payouts: nil,
2316
+ paypay_payments: nil,
2317
+ tax_forms: nil,
2318
+ treasury: nil
2319
+ )
2320
+ @bacs_debit_payments = bacs_debit_payments
2321
+ @bank_bca_onboarding = bank_bca_onboarding
2322
+ @branding = branding
2323
+ @capital = capital
2324
+ @card_issuing = card_issuing
2325
+ @card_payments = card_payments
2326
+ @invoices = invoices
2327
+ @payments = payments
2328
+ @payouts = payouts
2329
+ @paypay_payments = paypay_payments
2330
+ @tax_forms = tax_forms
2331
+ @treasury = treasury
2332
+ end
2333
+ end
2334
+
2335
+ class TosAcceptance < ::Stripe::RequestParams
2336
+ # The Unix timestamp marking when the account representative accepted their service agreement.
2337
+ attr_accessor :date
2338
+ # The IP address from which the account representative accepted their service agreement.
2339
+ attr_accessor :ip
2340
+ # The user's service agreement type.
2341
+ attr_accessor :service_agreement
2342
+ # The user agent of the browser from which the account representative accepted their service agreement.
2343
+ attr_accessor :user_agent
2344
+
2345
+ def initialize(date: nil, ip: nil, service_agreement: nil, user_agent: nil)
2346
+ @date = date
2347
+ @ip = ip
2348
+ @service_agreement = service_agreement
2349
+ @user_agent = user_agent
2350
+ end
2351
+ end
2352
+ # An [account token](https://api.stripe.com#create_account_token), used to securely provide details to the account.
2353
+ attr_accessor :account_token
2354
+ # Business information about the account.
2355
+ attr_accessor :business_profile
2356
+ # 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.
2357
+ attr_accessor :business_type
2358
+ # Each key of the dictionary represents a capability, and each capability
2359
+ # maps to its settings (for example, whether it has been requested or not). Each
2360
+ # capability is inactive until you have provided its specific
2361
+ # requirements and Stripe has verified them. An account might have some
2362
+ # of its requested capabilities be active and some be inactive.
2363
+ #
2364
+ # Required when [account.controller.stripe_dashboard.type](/api/accounts/create#create_account-controller-dashboard-type)
2365
+ # is `none`, which includes Custom accounts.
2366
+ attr_accessor :capabilities
2367
+ # 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.
2368
+ attr_accessor :company
2369
+ # A hash of configuration describing the account controller's attributes.
2370
+ attr_accessor :controller
2371
+ # 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.
2372
+ attr_accessor :country
2373
+ # 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).
2374
+ attr_accessor :default_currency
2375
+ # Documents that may be submitted to satisfy various informational requests.
2376
+ attr_accessor :documents
2377
+ # 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.
2378
+ attr_accessor :email
2379
+ # Specifies which fields in the response should be expanded.
2380
+ attr_accessor :expand
2381
+ # 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.
2382
+ attr_accessor :external_account
2383
+ # A hash of account group type to tokens. These are account groups this account should be added to.
2384
+ attr_accessor :groups
2385
+ # 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.
2386
+ attr_accessor :individual
2387
+ # Set of [key-value pairs](https://docs.stripe.com/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`.
2388
+ attr_accessor :metadata
2389
+ # A hash to configure risk controls on the account. Please see [this page for more details](/connect/pausing-payments-or-payouts-on-connected-accounts).
2390
+ attr_accessor :risk_controls
2391
+ # Options for customizing how the account functions within Stripe.
2392
+ attr_accessor :settings
2393
+ # 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.
2394
+ attr_accessor :tos_acceptance
2395
+ # The type of Stripe account to create. May be one of `custom`, `express` or `standard`.
2396
+ attr_accessor :type
2397
+
2398
+ def initialize(
2399
+ account_token: nil,
2400
+ business_profile: nil,
2401
+ business_type: nil,
2402
+ capabilities: nil,
2403
+ company: nil,
2404
+ controller: nil,
2405
+ country: nil,
2406
+ default_currency: nil,
2407
+ documents: nil,
2408
+ email: nil,
2409
+ expand: nil,
2410
+ external_account: nil,
2411
+ groups: nil,
2412
+ individual: nil,
2413
+ metadata: nil,
2414
+ risk_controls: nil,
2415
+ settings: nil,
2416
+ tos_acceptance: nil,
2417
+ type: nil
2418
+ )
2419
+ @account_token = account_token
2420
+ @business_profile = business_profile
2421
+ @business_type = business_type
2422
+ @capabilities = capabilities
2423
+ @company = company
2424
+ @controller = controller
2425
+ @country = country
2426
+ @default_currency = default_currency
2427
+ @documents = documents
2428
+ @email = email
2429
+ @expand = expand
2430
+ @external_account = external_account
2431
+ @groups = groups
2432
+ @individual = individual
2433
+ @metadata = metadata
2434
+ @risk_controls = risk_controls
2435
+ @settings = settings
2436
+ @tos_acceptance = tos_acceptance
2437
+ @type = type
2438
+ end
2439
+ end
2440
+ end