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,2350 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ class AccountUpdateParams < ::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. Only used for accounts in Japan.
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
+ # Attribute for param field registration_date
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 Documents < ::Stripe::RequestParams
1487
+ class BankAccountOwnershipVerification < ::Stripe::RequestParams
1488
+ # One or more document ids returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `account_requirement`.
1489
+ attr_accessor :files
1490
+
1491
+ def initialize(files: nil)
1492
+ @files = files
1493
+ end
1494
+ end
1495
+
1496
+ class CompanyLicense < ::Stripe::RequestParams
1497
+ # One or more document ids returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `account_requirement`.
1498
+ attr_accessor :files
1499
+
1500
+ def initialize(files: nil)
1501
+ @files = files
1502
+ end
1503
+ end
1504
+
1505
+ class CompanyMemorandumOfAssociation < ::Stripe::RequestParams
1506
+ # One or more document ids returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `account_requirement`.
1507
+ attr_accessor :files
1508
+
1509
+ def initialize(files: nil)
1510
+ @files = files
1511
+ end
1512
+ end
1513
+
1514
+ class CompanyMinisterialDecree < ::Stripe::RequestParams
1515
+ # One or more document ids returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `account_requirement`.
1516
+ attr_accessor :files
1517
+
1518
+ def initialize(files: nil)
1519
+ @files = files
1520
+ end
1521
+ end
1522
+
1523
+ class CompanyRegistrationVerification < ::Stripe::RequestParams
1524
+ # One or more document ids returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `account_requirement`.
1525
+ attr_accessor :files
1526
+
1527
+ def initialize(files: nil)
1528
+ @files = files
1529
+ end
1530
+ end
1531
+
1532
+ class CompanyTaxIdVerification < ::Stripe::RequestParams
1533
+ # One or more document ids returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `account_requirement`.
1534
+ attr_accessor :files
1535
+
1536
+ def initialize(files: nil)
1537
+ @files = files
1538
+ end
1539
+ end
1540
+
1541
+ class ProofOfAddress < ::Stripe::RequestParams
1542
+ # One or more document ids returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `account_requirement`.
1543
+ attr_accessor :files
1544
+
1545
+ def initialize(files: nil)
1546
+ @files = files
1547
+ end
1548
+ end
1549
+
1550
+ class ProofOfRegistration < ::Stripe::RequestParams
1551
+ class Signer < ::Stripe::RequestParams
1552
+ # The token of the person signing the document, if applicable.
1553
+ attr_accessor :person
1554
+
1555
+ def initialize(person: nil)
1556
+ @person = person
1557
+ end
1558
+ end
1559
+ # One or more document ids returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `account_requirement`.
1560
+ attr_accessor :files
1561
+ # Information regarding the person signing the document if applicable.
1562
+ attr_accessor :signer
1563
+
1564
+ def initialize(files: nil, signer: nil)
1565
+ @files = files
1566
+ @signer = signer
1567
+ end
1568
+ end
1569
+
1570
+ class ProofOfUltimateBeneficialOwnership < ::Stripe::RequestParams
1571
+ class Signer < ::Stripe::RequestParams
1572
+ # The token of the person signing the document, if applicable.
1573
+ attr_accessor :person
1574
+
1575
+ def initialize(person: nil)
1576
+ @person = person
1577
+ end
1578
+ end
1579
+ # One or more document ids returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `account_requirement`.
1580
+ attr_accessor :files
1581
+ # Information regarding the person signing the document if applicable.
1582
+ attr_accessor :signer
1583
+
1584
+ def initialize(files: nil, signer: nil)
1585
+ @files = files
1586
+ @signer = signer
1587
+ end
1588
+ end
1589
+ # 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.
1590
+ attr_accessor :bank_account_ownership_verification
1591
+ # One or more documents that demonstrate proof of a company's license to operate.
1592
+ attr_accessor :company_license
1593
+ # One or more documents showing the company's Memorandum of Association.
1594
+ attr_accessor :company_memorandum_of_association
1595
+ # (Certain countries only) One or more documents showing the ministerial decree legalizing the company's establishment.
1596
+ attr_accessor :company_ministerial_decree
1597
+ # One or more documents that demonstrate proof of a company's registration with the appropriate local authorities.
1598
+ attr_accessor :company_registration_verification
1599
+ # One or more documents that demonstrate proof of a company's tax ID.
1600
+ attr_accessor :company_tax_id_verification
1601
+ # One or more documents that demonstrate proof of address.
1602
+ attr_accessor :proof_of_address
1603
+ # One or more documents showing the company’s proof of registration with the national business registry.
1604
+ attr_accessor :proof_of_registration
1605
+ # One or more documents that demonstrate proof of ultimate beneficial ownership.
1606
+ attr_accessor :proof_of_ultimate_beneficial_ownership
1607
+
1608
+ def initialize(
1609
+ bank_account_ownership_verification: nil,
1610
+ company_license: nil,
1611
+ company_memorandum_of_association: nil,
1612
+ company_ministerial_decree: nil,
1613
+ company_registration_verification: nil,
1614
+ company_tax_id_verification: nil,
1615
+ proof_of_address: nil,
1616
+ proof_of_registration: nil,
1617
+ proof_of_ultimate_beneficial_ownership: nil
1618
+ )
1619
+ @bank_account_ownership_verification = bank_account_ownership_verification
1620
+ @company_license = company_license
1621
+ @company_memorandum_of_association = company_memorandum_of_association
1622
+ @company_ministerial_decree = company_ministerial_decree
1623
+ @company_registration_verification = company_registration_verification
1624
+ @company_tax_id_verification = company_tax_id_verification
1625
+ @proof_of_address = proof_of_address
1626
+ @proof_of_registration = proof_of_registration
1627
+ @proof_of_ultimate_beneficial_ownership = proof_of_ultimate_beneficial_ownership
1628
+ end
1629
+ end
1630
+
1631
+ class Groups < ::Stripe::RequestParams
1632
+ # 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.
1633
+ attr_accessor :payments_pricing
1634
+
1635
+ def initialize(payments_pricing: nil)
1636
+ @payments_pricing = payments_pricing
1637
+ end
1638
+ end
1639
+
1640
+ class Individual < ::Stripe::RequestParams
1641
+ class Address < ::Stripe::RequestParams
1642
+ # City, district, suburb, town, or village.
1643
+ attr_accessor :city
1644
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1645
+ attr_accessor :country
1646
+ # Address line 1, such as the street, PO Box, or company name.
1647
+ attr_accessor :line1
1648
+ # Address line 2, such as the apartment, suite, unit, or building.
1649
+ attr_accessor :line2
1650
+ # ZIP or postal code.
1651
+ attr_accessor :postal_code
1652
+ # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
1653
+ attr_accessor :state
1654
+
1655
+ def initialize(
1656
+ city: nil,
1657
+ country: nil,
1658
+ line1: nil,
1659
+ line2: nil,
1660
+ postal_code: nil,
1661
+ state: nil
1662
+ )
1663
+ @city = city
1664
+ @country = country
1665
+ @line1 = line1
1666
+ @line2 = line2
1667
+ @postal_code = postal_code
1668
+ @state = state
1669
+ end
1670
+ end
1671
+
1672
+ class AddressKana < ::Stripe::RequestParams
1673
+ # City or ward.
1674
+ attr_accessor :city
1675
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1676
+ attr_accessor :country
1677
+ # Block or building number.
1678
+ attr_accessor :line1
1679
+ # Building details.
1680
+ attr_accessor :line2
1681
+ # Postal code.
1682
+ attr_accessor :postal_code
1683
+ # Prefecture.
1684
+ attr_accessor :state
1685
+ # Town or cho-me.
1686
+ attr_accessor :town
1687
+
1688
+ def initialize(
1689
+ city: nil,
1690
+ country: nil,
1691
+ line1: nil,
1692
+ line2: nil,
1693
+ postal_code: nil,
1694
+ state: nil,
1695
+ town: nil
1696
+ )
1697
+ @city = city
1698
+ @country = country
1699
+ @line1 = line1
1700
+ @line2 = line2
1701
+ @postal_code = postal_code
1702
+ @state = state
1703
+ @town = town
1704
+ end
1705
+ end
1706
+
1707
+ class AddressKanji < ::Stripe::RequestParams
1708
+ # City or ward.
1709
+ attr_accessor :city
1710
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1711
+ attr_accessor :country
1712
+ # Block or building number.
1713
+ attr_accessor :line1
1714
+ # Building details.
1715
+ attr_accessor :line2
1716
+ # Postal code.
1717
+ attr_accessor :postal_code
1718
+ # Prefecture.
1719
+ attr_accessor :state
1720
+ # Town or cho-me.
1721
+ attr_accessor :town
1722
+
1723
+ def initialize(
1724
+ city: nil,
1725
+ country: nil,
1726
+ line1: nil,
1727
+ line2: nil,
1728
+ postal_code: nil,
1729
+ state: nil,
1730
+ town: nil
1731
+ )
1732
+ @city = city
1733
+ @country = country
1734
+ @line1 = line1
1735
+ @line2 = line2
1736
+ @postal_code = postal_code
1737
+ @state = state
1738
+ @town = town
1739
+ end
1740
+ end
1741
+
1742
+ class Dob < ::Stripe::RequestParams
1743
+ # The day of birth, between 1 and 31.
1744
+ attr_accessor :day
1745
+ # The month of birth, between 1 and 12.
1746
+ attr_accessor :month
1747
+ # The four-digit year of birth.
1748
+ attr_accessor :year
1749
+
1750
+ def initialize(day: nil, month: nil, year: nil)
1751
+ @day = day
1752
+ @month = month
1753
+ @year = year
1754
+ end
1755
+ end
1756
+
1757
+ class RegisteredAddress < ::Stripe::RequestParams
1758
+ # City, district, suburb, town, or village.
1759
+ attr_accessor :city
1760
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1761
+ attr_accessor :country
1762
+ # Address line 1, such as the street, PO Box, or company name.
1763
+ attr_accessor :line1
1764
+ # Address line 2, such as the apartment, suite, unit, or building.
1765
+ attr_accessor :line2
1766
+ # ZIP or postal code.
1767
+ attr_accessor :postal_code
1768
+ # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
1769
+ attr_accessor :state
1770
+
1771
+ def initialize(
1772
+ city: nil,
1773
+ country: nil,
1774
+ line1: nil,
1775
+ line2: nil,
1776
+ postal_code: nil,
1777
+ state: nil
1778
+ )
1779
+ @city = city
1780
+ @country = country
1781
+ @line1 = line1
1782
+ @line2 = line2
1783
+ @postal_code = postal_code
1784
+ @state = state
1785
+ end
1786
+ end
1787
+
1788
+ class Relationship < ::Stripe::RequestParams
1789
+ # 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.
1790
+ attr_accessor :director
1791
+ # Whether the person has significant responsibility to control, manage, or direct the organization.
1792
+ attr_accessor :executive
1793
+ # Whether the person is an owner of the account’s legal entity.
1794
+ attr_accessor :owner
1795
+ # The percent owned by the person of the account's legal entity.
1796
+ attr_accessor :percent_ownership
1797
+ # The person's title (e.g., CEO, Support Engineer).
1798
+ attr_accessor :title
1799
+
1800
+ def initialize(
1801
+ director: nil,
1802
+ executive: nil,
1803
+ owner: nil,
1804
+ percent_ownership: nil,
1805
+ title: nil
1806
+ )
1807
+ @director = director
1808
+ @executive = executive
1809
+ @owner = owner
1810
+ @percent_ownership = percent_ownership
1811
+ @title = title
1812
+ end
1813
+ end
1814
+
1815
+ class Verification < ::Stripe::RequestParams
1816
+ class AdditionalDocument < ::Stripe::RequestParams
1817
+ # 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.
1818
+ attr_accessor :back
1819
+ # 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.
1820
+ attr_accessor :front
1821
+
1822
+ def initialize(back: nil, front: nil)
1823
+ @back = back
1824
+ @front = front
1825
+ end
1826
+ end
1827
+
1828
+ class Document < ::Stripe::RequestParams
1829
+ # 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.
1830
+ attr_accessor :back
1831
+ # 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.
1832
+ attr_accessor :front
1833
+
1834
+ def initialize(back: nil, front: nil)
1835
+ @back = back
1836
+ @front = front
1837
+ end
1838
+ end
1839
+ # A document showing address, either a passport, local ID card, or utility bill from a well-known utility company.
1840
+ attr_accessor :additional_document
1841
+ # An identifying document, either a passport or local ID card.
1842
+ attr_accessor :document
1843
+
1844
+ def initialize(additional_document: nil, document: nil)
1845
+ @additional_document = additional_document
1846
+ @document = document
1847
+ end
1848
+ end
1849
+ # The individual's primary address.
1850
+ attr_accessor :address
1851
+ # The Kana variation of the individual's primary address (Japan only).
1852
+ attr_accessor :address_kana
1853
+ # The Kanji variation of the individual's primary address (Japan only).
1854
+ attr_accessor :address_kanji
1855
+ # The individual's date of birth.
1856
+ attr_accessor :dob
1857
+ # The individual's email address.
1858
+ attr_accessor :email
1859
+ # The individual's first name.
1860
+ attr_accessor :first_name
1861
+ # The Kana variation of the individual's first name (Japan only).
1862
+ attr_accessor :first_name_kana
1863
+ # The Kanji variation of the individual's first name (Japan only).
1864
+ attr_accessor :first_name_kanji
1865
+ # A list of alternate names or aliases that the individual is known by.
1866
+ attr_accessor :full_name_aliases
1867
+ # The individual's gender
1868
+ attr_accessor :gender
1869
+ # 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).
1870
+ attr_accessor :id_number
1871
+ # 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).
1872
+ attr_accessor :id_number_secondary
1873
+ # The individual's last name.
1874
+ attr_accessor :last_name
1875
+ # The Kana variation of the individual's last name (Japan only).
1876
+ attr_accessor :last_name_kana
1877
+ # The Kanji variation of the individual's last name (Japan only).
1878
+ attr_accessor :last_name_kanji
1879
+ # The individual's maiden name.
1880
+ attr_accessor :maiden_name
1881
+ # 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`.
1882
+ attr_accessor :metadata
1883
+ # The individual's phone number.
1884
+ attr_accessor :phone
1885
+ # 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.
1886
+ attr_accessor :political_exposure
1887
+ # The individual's registered address.
1888
+ attr_accessor :registered_address
1889
+ # Describes the person’s relationship to the account.
1890
+ attr_accessor :relationship
1891
+ # The last four digits of the individual's Social Security Number (U.S. only).
1892
+ attr_accessor :ssn_last_4
1893
+ # The individual's verification document information.
1894
+ attr_accessor :verification
1895
+
1896
+ def initialize(
1897
+ address: nil,
1898
+ address_kana: nil,
1899
+ address_kanji: nil,
1900
+ dob: nil,
1901
+ email: nil,
1902
+ first_name: nil,
1903
+ first_name_kana: nil,
1904
+ first_name_kanji: nil,
1905
+ full_name_aliases: nil,
1906
+ gender: nil,
1907
+ id_number: nil,
1908
+ id_number_secondary: nil,
1909
+ last_name: nil,
1910
+ last_name_kana: nil,
1911
+ last_name_kanji: nil,
1912
+ maiden_name: nil,
1913
+ metadata: nil,
1914
+ phone: nil,
1915
+ political_exposure: nil,
1916
+ registered_address: nil,
1917
+ relationship: nil,
1918
+ ssn_last_4: nil,
1919
+ verification: nil
1920
+ )
1921
+ @address = address
1922
+ @address_kana = address_kana
1923
+ @address_kanji = address_kanji
1924
+ @dob = dob
1925
+ @email = email
1926
+ @first_name = first_name
1927
+ @first_name_kana = first_name_kana
1928
+ @first_name_kanji = first_name_kanji
1929
+ @full_name_aliases = full_name_aliases
1930
+ @gender = gender
1931
+ @id_number = id_number
1932
+ @id_number_secondary = id_number_secondary
1933
+ @last_name = last_name
1934
+ @last_name_kana = last_name_kana
1935
+ @last_name_kanji = last_name_kanji
1936
+ @maiden_name = maiden_name
1937
+ @metadata = metadata
1938
+ @phone = phone
1939
+ @political_exposure = political_exposure
1940
+ @registered_address = registered_address
1941
+ @relationship = relationship
1942
+ @ssn_last_4 = ssn_last_4
1943
+ @verification = verification
1944
+ end
1945
+ end
1946
+
1947
+ class RiskControls < ::Stripe::RequestParams
1948
+ class Charges < ::Stripe::RequestParams
1949
+ # To request to pause a risk control, pass `true`. To request to unpause a risk control, pass `false`.
1950
+ # There can be a delay before the risk control is paused or unpaused.
1951
+ attr_accessor :pause_requested
1952
+
1953
+ def initialize(pause_requested: nil)
1954
+ @pause_requested = pause_requested
1955
+ end
1956
+ end
1957
+
1958
+ class Payouts < ::Stripe::RequestParams
1959
+ # To request to pause a risk control, pass `true`. To request to unpause a risk control, pass `false`.
1960
+ # There can be a delay before the risk control is paused or unpaused.
1961
+ attr_accessor :pause_requested
1962
+
1963
+ def initialize(pause_requested: nil)
1964
+ @pause_requested = pause_requested
1965
+ end
1966
+ end
1967
+ # 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).
1968
+ attr_accessor :charges
1969
+ # 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).
1970
+ attr_accessor :payouts
1971
+
1972
+ def initialize(charges: nil, payouts: nil)
1973
+ @charges = charges
1974
+ @payouts = payouts
1975
+ end
1976
+ end
1977
+
1978
+ class Settings < ::Stripe::RequestParams
1979
+ class BacsDebitPayments < ::Stripe::RequestParams
1980
+ # 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.
1981
+ attr_accessor :display_name
1982
+
1983
+ def initialize(display_name: nil)
1984
+ @display_name = display_name
1985
+ end
1986
+ end
1987
+
1988
+ class BankBcaOnboarding < ::Stripe::RequestParams
1989
+ # Bank BCA business account holder name
1990
+ attr_accessor :account_holder_name
1991
+ # Bank BCA business account number
1992
+ attr_accessor :business_account_number
1993
+
1994
+ def initialize(account_holder_name: nil, business_account_number: nil)
1995
+ @account_holder_name = account_holder_name
1996
+ @business_account_number = business_account_number
1997
+ end
1998
+ end
1999
+
2000
+ class Branding < ::Stripe::RequestParams
2001
+ # (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.
2002
+ attr_accessor :icon
2003
+ # (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.
2004
+ attr_accessor :logo
2005
+ # A CSS hex color value representing the primary branding color for this account.
2006
+ attr_accessor :primary_color
2007
+ # A CSS hex color value representing the secondary branding color for this account.
2008
+ attr_accessor :secondary_color
2009
+
2010
+ def initialize(icon: nil, logo: nil, primary_color: nil, secondary_color: nil)
2011
+ @icon = icon
2012
+ @logo = logo
2013
+ @primary_color = primary_color
2014
+ @secondary_color = secondary_color
2015
+ end
2016
+ end
2017
+
2018
+ class Capital < ::Stripe::RequestParams
2019
+ # Per-currency mapping of user-selected destination accounts used to pay out loans.
2020
+ attr_accessor :payout_destination
2021
+ # Per-currency mapping of all destination accounts eligible to receive Capital financing payouts.
2022
+ attr_accessor :payout_destination_selector
2023
+
2024
+ def initialize(payout_destination: nil, payout_destination_selector: nil)
2025
+ @payout_destination = payout_destination
2026
+ @payout_destination_selector = payout_destination_selector
2027
+ end
2028
+ end
2029
+
2030
+ class CardIssuing < ::Stripe::RequestParams
2031
+ class TosAcceptance < ::Stripe::RequestParams
2032
+ # The Unix timestamp marking when the account representative accepted the service agreement.
2033
+ attr_accessor :date
2034
+ # The IP address from which the account representative accepted the service agreement.
2035
+ attr_accessor :ip
2036
+ # The user agent of the browser from which the account representative accepted the service agreement.
2037
+ attr_accessor :user_agent
2038
+
2039
+ def initialize(date: nil, ip: nil, user_agent: nil)
2040
+ @date = date
2041
+ @ip = ip
2042
+ @user_agent = user_agent
2043
+ end
2044
+ end
2045
+ # Details on the account's acceptance of the [Stripe Issuing Terms and Disclosures](/issuing/connect/tos_acceptance).
2046
+ attr_accessor :tos_acceptance
2047
+
2048
+ def initialize(tos_acceptance: nil)
2049
+ @tos_acceptance = tos_acceptance
2050
+ end
2051
+ end
2052
+
2053
+ class CardPayments < ::Stripe::RequestParams
2054
+ class DeclineOn < ::Stripe::RequestParams
2055
+ # 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.
2056
+ attr_accessor :avs_failure
2057
+ # Whether Stripe automatically declines charges with an incorrect CVC. This setting only applies when a CVC is provided and it fails bank verification.
2058
+ attr_accessor :cvc_failure
2059
+
2060
+ def initialize(avs_failure: nil, cvc_failure: nil)
2061
+ @avs_failure = avs_failure
2062
+ @cvc_failure = cvc_failure
2063
+ end
2064
+ end
2065
+ # Automatically declines certain charge types regardless of whether the card issuer accepted or declined the charge.
2066
+ attr_accessor :decline_on
2067
+ # 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.
2068
+ attr_accessor :statement_descriptor_prefix
2069
+ # 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.
2070
+ attr_accessor :statement_descriptor_prefix_kana
2071
+ # 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.
2072
+ attr_accessor :statement_descriptor_prefix_kanji
2073
+
2074
+ def initialize(
2075
+ decline_on: nil,
2076
+ statement_descriptor_prefix: nil,
2077
+ statement_descriptor_prefix_kana: nil,
2078
+ statement_descriptor_prefix_kanji: nil
2079
+ )
2080
+ @decline_on = decline_on
2081
+ @statement_descriptor_prefix = statement_descriptor_prefix
2082
+ @statement_descriptor_prefix_kana = statement_descriptor_prefix_kana
2083
+ @statement_descriptor_prefix_kanji = statement_descriptor_prefix_kanji
2084
+ end
2085
+ end
2086
+
2087
+ class Invoices < ::Stripe::RequestParams
2088
+ # The list of default Account Tax IDs to automatically include on invoices. Account Tax IDs get added when an invoice is finalized.
2089
+ attr_accessor :default_account_tax_ids
2090
+ # 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.
2091
+ attr_accessor :hosted_payment_method_save
2092
+
2093
+ def initialize(default_account_tax_ids: nil, hosted_payment_method_save: nil)
2094
+ @default_account_tax_ids = default_account_tax_ids
2095
+ @hosted_payment_method_save = hosted_payment_method_save
2096
+ end
2097
+ end
2098
+
2099
+ class Payments < ::Stripe::RequestParams
2100
+ # 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).
2101
+ attr_accessor :statement_descriptor
2102
+ # 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).
2103
+ attr_accessor :statement_descriptor_kana
2104
+ # 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).
2105
+ attr_accessor :statement_descriptor_kanji
2106
+
2107
+ def initialize(
2108
+ statement_descriptor: nil,
2109
+ statement_descriptor_kana: nil,
2110
+ statement_descriptor_kanji: nil
2111
+ )
2112
+ @statement_descriptor = statement_descriptor
2113
+ @statement_descriptor_kana = statement_descriptor_kana
2114
+ @statement_descriptor_kanji = statement_descriptor_kanji
2115
+ end
2116
+ end
2117
+
2118
+ class Payouts < ::Stripe::RequestParams
2119
+ class Schedule < ::Stripe::RequestParams
2120
+ # 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).
2121
+ attr_accessor :delay_days
2122
+ # How frequently available funds are paid out. One of: `daily`, `manual`, `weekly`, or `monthly`. Default is `daily`.
2123
+ attr_accessor :interval
2124
+ # 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`.
2125
+ attr_accessor :monthly_anchor
2126
+ # 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.
2127
+ attr_accessor :monthly_payout_days
2128
+ # The day of the week when available funds are paid out, specified as `monday`, `tuesday`, etc. Required and applicable only if `interval` is `weekly`.
2129
+ attr_accessor :weekly_anchor
2130
+ # 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`.
2131
+ attr_accessor :weekly_payout_days
2132
+
2133
+ def initialize(
2134
+ delay_days: nil,
2135
+ interval: nil,
2136
+ monthly_anchor: nil,
2137
+ monthly_payout_days: nil,
2138
+ weekly_anchor: nil,
2139
+ weekly_payout_days: nil
2140
+ )
2141
+ @delay_days = delay_days
2142
+ @interval = interval
2143
+ @monthly_anchor = monthly_anchor
2144
+ @monthly_payout_days = monthly_payout_days
2145
+ @weekly_anchor = weekly_anchor
2146
+ @weekly_payout_days = weekly_payout_days
2147
+ end
2148
+ end
2149
+ # 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).
2150
+ attr_accessor :debit_negative_balances
2151
+ # 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.
2152
+ attr_accessor :schedule
2153
+ # 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.
2154
+ attr_accessor :statement_descriptor
2155
+
2156
+ def initialize(debit_negative_balances: nil, schedule: nil, statement_descriptor: nil)
2157
+ @debit_negative_balances = debit_negative_balances
2158
+ @schedule = schedule
2159
+ @statement_descriptor = statement_descriptor
2160
+ end
2161
+ end
2162
+
2163
+ class PaypayPayments < ::Stripe::RequestParams
2164
+ # Whether your business sells digital content or not.
2165
+ attr_accessor :goods_type
2166
+
2167
+ def initialize(goods_type: nil)
2168
+ @goods_type = goods_type
2169
+ end
2170
+ end
2171
+
2172
+ class TaxForms < ::Stripe::RequestParams
2173
+ # Whether the account opted out of receiving their tax forms by postal delivery.
2174
+ attr_accessor :consented_to_paperless_delivery
2175
+
2176
+ def initialize(consented_to_paperless_delivery: nil)
2177
+ @consented_to_paperless_delivery = consented_to_paperless_delivery
2178
+ end
2179
+ end
2180
+
2181
+ class Treasury < ::Stripe::RequestParams
2182
+ class TosAcceptance < ::Stripe::RequestParams
2183
+ # The Unix timestamp marking when the account representative accepted the service agreement.
2184
+ attr_accessor :date
2185
+ # The IP address from which the account representative accepted the service agreement.
2186
+ attr_accessor :ip
2187
+ # The user agent of the browser from which the account representative accepted the service agreement.
2188
+ attr_accessor :user_agent
2189
+
2190
+ def initialize(date: nil, ip: nil, user_agent: nil)
2191
+ @date = date
2192
+ @ip = ip
2193
+ @user_agent = user_agent
2194
+ end
2195
+ end
2196
+ # Details on the account's acceptance of the Stripe Treasury Services Agreement.
2197
+ attr_accessor :tos_acceptance
2198
+
2199
+ def initialize(tos_acceptance: nil)
2200
+ @tos_acceptance = tos_acceptance
2201
+ end
2202
+ end
2203
+ # Settings specific to Bacs Direct Debit payments.
2204
+ attr_accessor :bacs_debit_payments
2205
+ # Settings specific to bank BCA onboarding for Indonesia bank transfers payments method.
2206
+ attr_accessor :bank_bca_onboarding
2207
+ # Settings used to apply the account's branding to email receipts, invoices, Checkout, and other products.
2208
+ attr_accessor :branding
2209
+ # Settings specific to the account's use of the Capital product.
2210
+ attr_accessor :capital
2211
+ # Settings specific to the account's use of the Card Issuing product.
2212
+ attr_accessor :card_issuing
2213
+ # Settings specific to card charging on the account.
2214
+ attr_accessor :card_payments
2215
+ # Settings specific to the account's use of Invoices.
2216
+ attr_accessor :invoices
2217
+ # Settings that apply across payment methods for charging on the account.
2218
+ attr_accessor :payments
2219
+ # Settings specific to the account's payouts.
2220
+ attr_accessor :payouts
2221
+ # Settings specific to the PayPay payments method.
2222
+ attr_accessor :paypay_payments
2223
+ # Settings specific to the account's tax forms.
2224
+ attr_accessor :tax_forms
2225
+ # Settings specific to the account's Treasury FinancialAccounts.
2226
+ attr_accessor :treasury
2227
+
2228
+ def initialize(
2229
+ bacs_debit_payments: nil,
2230
+ bank_bca_onboarding: nil,
2231
+ branding: nil,
2232
+ capital: nil,
2233
+ card_issuing: nil,
2234
+ card_payments: nil,
2235
+ invoices: nil,
2236
+ payments: nil,
2237
+ payouts: nil,
2238
+ paypay_payments: nil,
2239
+ tax_forms: nil,
2240
+ treasury: nil
2241
+ )
2242
+ @bacs_debit_payments = bacs_debit_payments
2243
+ @bank_bca_onboarding = bank_bca_onboarding
2244
+ @branding = branding
2245
+ @capital = capital
2246
+ @card_issuing = card_issuing
2247
+ @card_payments = card_payments
2248
+ @invoices = invoices
2249
+ @payments = payments
2250
+ @payouts = payouts
2251
+ @paypay_payments = paypay_payments
2252
+ @tax_forms = tax_forms
2253
+ @treasury = treasury
2254
+ end
2255
+ end
2256
+
2257
+ class TosAcceptance < ::Stripe::RequestParams
2258
+ # The Unix timestamp marking when the account representative accepted their service agreement.
2259
+ attr_accessor :date
2260
+ # The IP address from which the account representative accepted their service agreement.
2261
+ attr_accessor :ip
2262
+ # The user's service agreement type.
2263
+ attr_accessor :service_agreement
2264
+ # The user agent of the browser from which the account representative accepted their service agreement.
2265
+ attr_accessor :user_agent
2266
+
2267
+ def initialize(date: nil, ip: nil, service_agreement: nil, user_agent: nil)
2268
+ @date = date
2269
+ @ip = ip
2270
+ @service_agreement = service_agreement
2271
+ @user_agent = user_agent
2272
+ end
2273
+ end
2274
+ # An [account token](https://api.stripe.com#create_account_token), used to securely provide details to the account.
2275
+ attr_accessor :account_token
2276
+ # Business information about the account.
2277
+ attr_accessor :business_profile
2278
+ # 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.
2279
+ attr_accessor :business_type
2280
+ # Each key of the dictionary represents a capability, and each capability
2281
+ # maps to its settings (for example, whether it has been requested or not). Each
2282
+ # capability is inactive until you have provided its specific
2283
+ # requirements and Stripe has verified them. An account might have some
2284
+ # of its requested capabilities be active and some be inactive.
2285
+ #
2286
+ # Required when [account.controller.stripe_dashboard.type](/api/accounts/create#create_account-controller-dashboard-type)
2287
+ # is `none`, which includes Custom accounts.
2288
+ attr_accessor :capabilities
2289
+ # 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.
2290
+ attr_accessor :company
2291
+ # 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).
2292
+ attr_accessor :default_currency
2293
+ # Documents that may be submitted to satisfy various informational requests.
2294
+ attr_accessor :documents
2295
+ # 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.
2296
+ attr_accessor :email
2297
+ # Specifies which fields in the response should be expanded.
2298
+ attr_accessor :expand
2299
+ # 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.
2300
+ attr_accessor :external_account
2301
+ # A hash of account group type to tokens. These are account groups this account should be added to.
2302
+ attr_accessor :groups
2303
+ # 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.
2304
+ attr_accessor :individual
2305
+ # 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`.
2306
+ attr_accessor :metadata
2307
+ # A hash to configure risk controls on the account. Please see [this page for more details](/connect/pausing-payments-or-payouts-on-connected-accounts).
2308
+ attr_accessor :risk_controls
2309
+ # Options for customizing how the account functions within Stripe.
2310
+ attr_accessor :settings
2311
+ # 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.
2312
+ attr_accessor :tos_acceptance
2313
+
2314
+ def initialize(
2315
+ account_token: nil,
2316
+ business_profile: nil,
2317
+ business_type: nil,
2318
+ capabilities: nil,
2319
+ company: nil,
2320
+ default_currency: nil,
2321
+ documents: nil,
2322
+ email: nil,
2323
+ expand: nil,
2324
+ external_account: nil,
2325
+ groups: nil,
2326
+ individual: nil,
2327
+ metadata: nil,
2328
+ risk_controls: nil,
2329
+ settings: nil,
2330
+ tos_acceptance: nil
2331
+ )
2332
+ @account_token = account_token
2333
+ @business_profile = business_profile
2334
+ @business_type = business_type
2335
+ @capabilities = capabilities
2336
+ @company = company
2337
+ @default_currency = default_currency
2338
+ @documents = documents
2339
+ @email = email
2340
+ @expand = expand
2341
+ @external_account = external_account
2342
+ @groups = groups
2343
+ @individual = individual
2344
+ @metadata = metadata
2345
+ @risk_controls = risk_controls
2346
+ @settings = settings
2347
+ @tos_acceptance = tos_acceptance
2348
+ end
2349
+ end
2350
+ end