stripe 18.1.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 (446) hide show
  1. checksums.yaml +4 -4
  2. data/lib/stripe/api_requestor.rb +34 -0
  3. data/lib/stripe/api_version.rb +1 -2
  4. data/lib/stripe/errors.rb +63 -0
  5. data/lib/stripe/event_types.rb +213 -0
  6. data/lib/stripe/events/v2_core_account_closed_event.rb +44 -0
  7. data/lib/stripe/events/v2_core_account_created_event.rb +44 -0
  8. data/lib/stripe/events/v2_core_account_including_configuration_customer_capability_status_updated_event.rb +63 -0
  9. data/lib/stripe/events/v2_core_account_including_configuration_customer_updated_event.rb +44 -0
  10. data/lib/stripe/events/v2_core_account_including_configuration_merchant_capability_status_updated_event.rb +63 -0
  11. data/lib/stripe/events/v2_core_account_including_configuration_merchant_updated_event.rb +44 -0
  12. data/lib/stripe/events/v2_core_account_including_configuration_recipient_capability_status_updated_event.rb +63 -0
  13. data/lib/stripe/events/v2_core_account_including_configuration_recipient_updated_event.rb +44 -0
  14. data/lib/stripe/events/v2_core_account_including_configuration_storer_capability_status_updated_event.rb +63 -0
  15. data/lib/stripe/events/v2_core_account_including_configuration_storer_updated_event.rb +44 -0
  16. data/lib/stripe/events/v2_core_account_including_defaults_updated_event.rb +44 -0
  17. data/lib/stripe/events/v2_core_account_including_identity_updated_event.rb +44 -0
  18. data/lib/stripe/events/v2_core_account_including_requirements_updated_event.rb +44 -0
  19. data/lib/stripe/events/v2_core_account_link_returned_event.rb +42 -0
  20. data/lib/stripe/events/v2_core_account_person_created_event.rb +61 -0
  21. data/lib/stripe/events/v2_core_account_person_deleted_event.rb +61 -0
  22. data/lib/stripe/events/v2_core_account_person_updated_event.rb +61 -0
  23. data/lib/stripe/events/v2_core_account_updated_event.rb +44 -0
  24. data/lib/stripe/events/v2_core_health_event_generation_failure_resolved_event.rb +78 -0
  25. data/lib/stripe/events/v2_money_management_adjustment_created_event.rb +44 -0
  26. data/lib/stripe/events/v2_money_management_financial_account_created_event.rb +44 -0
  27. data/lib/stripe/events/v2_money_management_financial_account_updated_event.rb +44 -0
  28. data/lib/stripe/events/v2_money_management_financial_address_activated_event.rb +44 -0
  29. data/lib/stripe/events/v2_money_management_financial_address_failed_event.rb +44 -0
  30. data/lib/stripe/events/v2_money_management_inbound_transfer_available_event.rb +61 -0
  31. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_failed_event.rb +44 -0
  32. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_processing_event.rb +44 -0
  33. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_queued_event.rb +44 -0
  34. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_returned_event.rb +44 -0
  35. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_succeeded_event.rb +44 -0
  36. data/lib/stripe/events/v2_money_management_outbound_payment_canceled_event.rb +44 -0
  37. data/lib/stripe/events/v2_money_management_outbound_payment_created_event.rb +44 -0
  38. data/lib/stripe/events/v2_money_management_outbound_payment_failed_event.rb +44 -0
  39. data/lib/stripe/events/v2_money_management_outbound_payment_posted_event.rb +44 -0
  40. data/lib/stripe/events/v2_money_management_outbound_payment_returned_event.rb +44 -0
  41. data/lib/stripe/events/v2_money_management_outbound_payment_updated_event.rb +44 -0
  42. data/lib/stripe/events/v2_money_management_outbound_transfer_canceled_event.rb +44 -0
  43. data/lib/stripe/events/v2_money_management_outbound_transfer_created_event.rb +44 -0
  44. data/lib/stripe/events/v2_money_management_outbound_transfer_failed_event.rb +44 -0
  45. data/lib/stripe/events/v2_money_management_outbound_transfer_posted_event.rb +44 -0
  46. data/lib/stripe/events/v2_money_management_outbound_transfer_returned_event.rb +44 -0
  47. data/lib/stripe/events/v2_money_management_outbound_transfer_updated_event.rb +44 -0
  48. data/lib/stripe/events/v2_money_management_payout_method_created_event.rb +44 -0
  49. data/lib/stripe/events/v2_money_management_payout_method_updated_event.rb +44 -0
  50. data/lib/stripe/events/v2_money_management_received_credit_available_event.rb +61 -0
  51. data/lib/stripe/events/v2_money_management_received_credit_failed_event.rb +44 -0
  52. data/lib/stripe/events/v2_money_management_received_credit_returned_event.rb +44 -0
  53. data/lib/stripe/events/v2_money_management_received_credit_succeeded_event.rb +44 -0
  54. data/lib/stripe/events/v2_money_management_received_debit_canceled_event.rb +44 -0
  55. data/lib/stripe/events/v2_money_management_received_debit_failed_event.rb +44 -0
  56. data/lib/stripe/events/v2_money_management_received_debit_pending_event.rb +44 -0
  57. data/lib/stripe/events/v2_money_management_received_debit_succeeded_event.rb +44 -0
  58. data/lib/stripe/events/v2_money_management_received_debit_updated_event.rb +44 -0
  59. data/lib/stripe/events/v2_money_management_transaction_created_event.rb +61 -0
  60. data/lib/stripe/events/v2_money_management_transaction_updated_event.rb +44 -0
  61. data/lib/stripe/object_types.rb +52 -0
  62. data/lib/stripe/params/account_create_params.rb +304 -1
  63. data/lib/stripe/params/account_notice_list_params.rb +25 -0
  64. data/lib/stripe/params/account_notice_retrieve_params.rb +13 -0
  65. data/lib/stripe/params/account_notice_update_params.rb +36 -0
  66. data/lib/stripe/params/account_session_create_params.rb +226 -1
  67. data/lib/stripe/params/account_update_params.rb +266 -0
  68. data/lib/stripe/params/billing/analytics/meter_usage_retrieve_params.rb +65 -0
  69. data/lib/stripe/params/capital/financing_offer_list_params.rb +58 -0
  70. data/lib/stripe/params/capital/financing_offer_mark_delivered_params.rb +15 -0
  71. data/lib/stripe/params/capital/financing_offer_retrieve_params.rb +15 -0
  72. data/lib/stripe/params/capital/financing_summary_retrieve_params.rb +15 -0
  73. data/lib/stripe/params/capital/financing_transaction_list_params.rb +45 -0
  74. data/lib/stripe/params/capital/financing_transaction_retrieve_params.rb +15 -0
  75. data/lib/stripe/params/charge_capture_params.rb +1648 -0
  76. data/lib/stripe/params/charge_update_params.rb +1648 -0
  77. data/lib/stripe/params/checkout/session_create_params.rb +129 -3
  78. data/lib/stripe/params/checkout/session_update_params.rb +141 -1
  79. data/lib/stripe/params/confirmation_token_create_params.rb +77 -0
  80. data/lib/stripe/params/coupon_create_params.rb +17 -1
  81. data/lib/stripe/params/customer_session_create_params.rb +32 -1
  82. data/lib/stripe/params/dispute_update_params.rb +10 -1
  83. data/lib/stripe/params/external_account_create_params.rb +134 -0
  84. data/lib/stripe/params/external_account_delete_params.rb +6 -0
  85. data/lib/stripe/params/external_account_list_params.rb +25 -0
  86. data/lib/stripe/params/external_account_retrieve_params.rb +13 -0
  87. data/lib/stripe/params/external_account_update_params.rb +91 -0
  88. data/lib/stripe/params/financial_connections/account_inferred_balance_list_params.rb +24 -0
  89. data/lib/stripe/params/financial_connections/institution_list_params.rb +24 -0
  90. data/lib/stripe/params/financial_connections/institution_retrieve_params.rb +15 -0
  91. data/lib/stripe/params/financial_connections/session_create_params.rb +30 -1
  92. data/lib/stripe/params/fx_quote_create_params.rb +73 -0
  93. data/lib/stripe/params/fx_quote_list_params.rb +22 -0
  94. data/lib/stripe/params/fx_quote_retrieve_params.rb +13 -0
  95. data/lib/stripe/params/invoice_add_lines_params.rb +33 -1
  96. data/lib/stripe/params/invoice_attach_payment_params.rb +43 -1
  97. data/lib/stripe/params/invoice_create_params.rb +107 -2
  98. data/lib/stripe/params/invoice_create_preview_params.rb +822 -9
  99. data/lib/stripe/params/invoice_item_create_params.rb +33 -1
  100. data/lib/stripe/params/invoice_item_update_params.rb +33 -1
  101. data/lib/stripe/params/invoice_line_item_update_params.rb +33 -1
  102. data/lib/stripe/params/invoice_update_lines_params.rb +33 -1
  103. data/lib/stripe/params/invoice_update_params.rb +107 -2
  104. data/lib/stripe/params/issuing/cardholder_create_params.rb +2 -1
  105. data/lib/stripe/params/issuing/credit_underwriting_record_correct_params.rb +163 -0
  106. data/lib/stripe/params/issuing/credit_underwriting_record_create_from_application_params.rb +50 -0
  107. data/lib/stripe/params/issuing/credit_underwriting_record_create_from_proactive_review_params.rb +128 -0
  108. data/lib/stripe/params/issuing/credit_underwriting_record_list_params.rb +24 -0
  109. data/lib/stripe/params/issuing/credit_underwriting_record_report_decision_params.rb +86 -0
  110. data/lib/stripe/params/issuing/credit_underwriting_record_retrieve_params.rb +15 -0
  111. data/lib/stripe/params/issuing/dispute_settlement_detail_list_params.rb +33 -0
  112. data/lib/stripe/params/issuing/dispute_settlement_detail_retrieve_params.rb +15 -0
  113. data/lib/stripe/params/issuing/fraud_liability_debit_list_params.rb +44 -0
  114. data/lib/stripe/params/issuing/fraud_liability_debit_retrieve_params.rb +15 -0
  115. data/lib/stripe/params/issuing/transaction_list_params.rb +4 -0
  116. data/lib/stripe/params/mandate_list_params.rb +39 -0
  117. data/lib/stripe/params/margin_create_params.rb +25 -0
  118. data/lib/stripe/params/margin_list_params.rb +25 -0
  119. data/lib/stripe/params/margin_retrieve_params.rb +13 -0
  120. data/lib/stripe/params/margin_update_params.rb +22 -0
  121. data/lib/stripe/params/order_cancel_params.rb +13 -0
  122. data/lib/stripe/params/order_create_params.rb +2061 -0
  123. data/lib/stripe/params/order_line_item_list_params.rb +22 -0
  124. data/lib/stripe/params/order_list_line_items_params.rb +22 -0
  125. data/lib/stripe/params/order_list_params.rb +25 -0
  126. data/lib/stripe/params/order_reopen_params.rb +13 -0
  127. data/lib/stripe/params/order_retrieve_params.rb +13 -0
  128. data/lib/stripe/params/order_submit_params.rb +16 -0
  129. data/lib/stripe/params/order_update_params.rb +2065 -0
  130. data/lib/stripe/params/payment_intent_capture_params.rb +1627 -1
  131. data/lib/stripe/params/payment_intent_confirm_params.rb +2971 -11
  132. data/lib/stripe/params/payment_intent_create_params.rb +2971 -11
  133. data/lib/stripe/params/payment_intent_decrement_authorization_params.rb +73 -0
  134. data/lib/stripe/params/payment_intent_increment_authorization_params.rb +21 -0
  135. data/lib/stripe/params/payment_intent_trigger_action_params.rb +27 -0
  136. data/lib/stripe/params/payment_intent_update_params.rb +3003 -12
  137. data/lib/stripe/params/payment_method_configuration_create_params.rb +105 -0
  138. data/lib/stripe/params/payment_method_configuration_update_params.rb +105 -0
  139. data/lib/stripe/params/payment_method_create_params.rb +77 -0
  140. data/lib/stripe/params/price_update_params.rb +19 -0
  141. data/lib/stripe/params/privacy/redaction_job_cancel_params.rb +15 -0
  142. data/lib/stripe/params/privacy/redaction_job_create_params.rb +67 -0
  143. data/lib/stripe/params/privacy/redaction_job_list_params.rb +27 -0
  144. data/lib/stripe/params/privacy/redaction_job_retrieve_params.rb +15 -0
  145. data/lib/stripe/params/privacy/redaction_job_run_params.rb +15 -0
  146. data/lib/stripe/params/privacy/redaction_job_update_params.rb +18 -0
  147. data/lib/stripe/params/privacy/redaction_job_validate_params.rb +15 -0
  148. data/lib/stripe/params/privacy/redaction_job_validation_error_list_params.rb +24 -0
  149. data/lib/stripe/params/quote_create_params.rb +801 -3
  150. data/lib/stripe/params/quote_line_list_params.rb +22 -0
  151. data/lib/stripe/params/quote_list_lines_params.rb +22 -0
  152. data/lib/stripe/params/quote_list_params.rb +4 -0
  153. data/lib/stripe/params/quote_list_preview_invoice_lines_params.rb +22 -0
  154. data/lib/stripe/params/quote_mark_draft_params.rb +13 -0
  155. data/lib/stripe/params/quote_mark_stale_params.rb +16 -0
  156. data/lib/stripe/params/quote_preview_invoice_list_params.rb +22 -0
  157. data/lib/stripe/params/quote_preview_subscription_schedule_list_params.rb +22 -0
  158. data/lib/stripe/params/quote_reestimate_params.rb +13 -0
  159. data/lib/stripe/params/quote_update_params.rb +809 -4
  160. data/lib/stripe/params/reserve/hold_list_params.rb +53 -0
  161. data/lib/stripe/params/reserve/hold_retrieve_params.rb +15 -0
  162. data/lib/stripe/params/reserve/plan_retrieve_params.rb +15 -0
  163. data/lib/stripe/params/reserve/release_list_params.rb +41 -0
  164. data/lib/stripe/params/reserve/release_retrieve_params.rb +15 -0
  165. data/lib/stripe/params/setup_intent_confirm_params.rb +158 -3
  166. data/lib/stripe/params/setup_intent_create_params.rb +158 -3
  167. data/lib/stripe/params/setup_intent_update_params.rb +158 -3
  168. data/lib/stripe/params/subscription_attach_cadence_params.rb +16 -0
  169. data/lib/stripe/params/subscription_create_params.rb +254 -5
  170. data/lib/stripe/params/subscription_item_create_params.rb +46 -2
  171. data/lib/stripe/params/subscription_item_update_params.rb +29 -1
  172. data/lib/stripe/params/subscription_schedule_amend_params.rb +570 -0
  173. data/lib/stripe/params/subscription_schedule_create_params.rb +163 -5
  174. data/lib/stripe/params/subscription_schedule_update_params.rb +163 -5
  175. data/lib/stripe/params/subscription_update_params.rb +237 -4
  176. data/lib/stripe/params/tax/form_list_params.rb +51 -0
  177. data/lib/stripe/params/tax/form_pdf_params.rb +15 -0
  178. data/lib/stripe/params/tax/form_retrieve_params.rb +15 -0
  179. data/lib/stripe/params/terminal/configuration_create_params.rb +13 -0
  180. data/lib/stripe/params/terminal/configuration_update_params.rb +13 -0
  181. data/lib/stripe/params/terminal/reader_collected_data_retrieve_params.rb +15 -0
  182. data/lib/stripe/params/test_helpers/confirmation_token_create_params.rb +77 -0
  183. data/lib/stripe/params/test_helpers/treasury/received_credit_create_params.rb +25 -1
  184. data/lib/stripe/params/test_helpers/treasury/received_debit_create_params.rb +25 -1
  185. data/lib/stripe/params/transfer_create_params.rb +4 -0
  186. data/lib/stripe/params/treasury/financial_account_create_params.rb +8 -1
  187. data/lib/stripe/params/treasury/financial_account_features_update_params.rb +4 -1
  188. data/lib/stripe/params/treasury/financial_account_update_features_params.rb +4 -1
  189. data/lib/stripe/params/treasury/financial_account_update_params.rb +8 -1
  190. data/lib/stripe/params/treasury/outbound_transfer_create_params.rb +24 -0
  191. data/lib/stripe/params/treasury/received_credit_create_params.rb +25 -1
  192. data/lib/stripe/params/treasury/received_debit_create_params.rb +25 -1
  193. data/lib/stripe/params/v2/billing/bill_setting_create_params.rb +74 -0
  194. data/lib/stripe/params/v2/billing/bill_setting_list_params.rb +21 -0
  195. data/lib/stripe/params/v2/billing/bill_setting_retrieve_params.rb +10 -0
  196. data/lib/stripe/params/v2/billing/bill_setting_update_params.rb +80 -0
  197. data/lib/stripe/params/v2/billing/bill_settings/version_list_params.rb +19 -0
  198. data/lib/stripe/params/v2/billing/bill_settings/version_retrieve_params.rb +12 -0
  199. data/lib/stripe/params/v2/billing/cadence_cancel_params.rb +10 -0
  200. data/lib/stripe/params/v2/billing/cadence_create_params.rb +253 -0
  201. data/lib/stripe/params/v2/billing/cadence_list_params.rb +43 -0
  202. data/lib/stripe/params/v2/billing/cadence_retrieve_params.rb +17 -0
  203. data/lib/stripe/params/v2/billing/cadence_update_params.rb +75 -0
  204. data/lib/stripe/params/v2/billing/collection_setting_create_params.rb +223 -0
  205. data/lib/stripe/params/v2/billing/collection_setting_list_params.rb +21 -0
  206. data/lib/stripe/params/v2/billing/collection_setting_retrieve_params.rb +10 -0
  207. data/lib/stripe/params/v2/billing/collection_setting_update_params.rb +229 -0
  208. data/lib/stripe/params/v2/billing/collection_settings/version_list_params.rb +19 -0
  209. data/lib/stripe/params/v2/billing/collection_settings/version_retrieve_params.rb +12 -0
  210. data/lib/stripe/params/v2/billing/profile_create_params.rb +37 -0
  211. data/lib/stripe/params/v2/billing/profile_list_params.rb +40 -0
  212. data/lib/stripe/params/v2/billing/profile_retrieve_params.rb +10 -0
  213. data/lib/stripe/params/v2/billing/profile_update_params.rb +35 -0
  214. data/lib/stripe/params/v2/core/account_create_params.rb +251 -4
  215. data/lib/stripe/params/v2/core/account_token_create_params.rb +13 -1
  216. data/lib/stripe/params/v2/core/account_update_params.rb +243 -3
  217. data/lib/stripe/params/v2/core/vault/gb_bank_account_acknowledge_confirmation_of_payee_params.rb +12 -0
  218. data/lib/stripe/params/v2/core/vault/gb_bank_account_archive_params.rb +12 -0
  219. data/lib/stripe/params/v2/core/vault/gb_bank_account_create_params.rb +50 -0
  220. data/lib/stripe/params/v2/core/vault/gb_bank_account_initiate_confirmation_of_payee_params.rb +22 -0
  221. data/lib/stripe/params/v2/core/vault/gb_bank_account_list_params.rb +19 -0
  222. data/lib/stripe/params/v2/core/vault/gb_bank_account_retrieve_params.rb +12 -0
  223. data/lib/stripe/params/v2/core/vault/us_bank_account_archive_params.rb +12 -0
  224. data/lib/stripe/params/v2/core/vault/us_bank_account_confirm_microdeposits_params.rb +22 -0
  225. data/lib/stripe/params/v2/core/vault/us_bank_account_create_params.rb +33 -0
  226. data/lib/stripe/params/v2/core/vault/us_bank_account_list_params.rb +22 -0
  227. data/lib/stripe/params/v2/core/vault/us_bank_account_retrieve_params.rb +12 -0
  228. data/lib/stripe/params/v2/core/vault/us_bank_account_send_microdeposits_params.rb +12 -0
  229. data/lib/stripe/params/v2/core/vault/us_bank_account_update_params.rb +22 -0
  230. data/lib/stripe/params/v2/money_management/adjustment_list_params.rb +48 -0
  231. data/lib/stripe/params/v2/money_management/adjustment_retrieve_params.rb +10 -0
  232. data/lib/stripe/params/v2/money_management/financial_account_close_params.rb +28 -0
  233. data/lib/stripe/params/v2/money_management/financial_account_create_params.rb +34 -0
  234. data/lib/stripe/params/v2/money_management/financial_account_list_params.rb +20 -0
  235. data/lib/stripe/params/v2/money_management/financial_account_retrieve_params.rb +10 -0
  236. data/lib/stripe/params/v2/money_management/financial_account_update_params.rb +20 -0
  237. data/lib/stripe/params/v2/money_management/financial_address_create_params.rb +20 -0
  238. data/lib/stripe/params/v2/money_management/financial_address_list_params.rb +23 -0
  239. data/lib/stripe/params/v2/money_management/financial_address_retrieve_params.rb +17 -0
  240. data/lib/stripe/params/v2/money_management/inbound_transfer_create_params.rb +62 -0
  241. data/lib/stripe/params/v2/money_management/inbound_transfer_list_params.rb +44 -0
  242. data/lib/stripe/params/v2/money_management/inbound_transfer_retrieve_params.rb +10 -0
  243. data/lib/stripe/params/v2/money_management/outbound_payment_cancel_params.rb +10 -0
  244. data/lib/stripe/params/v2/money_management/outbound_payment_create_params.rb +110 -0
  245. data/lib/stripe/params/v2/money_management/outbound_payment_list_params.rb +52 -0
  246. data/lib/stripe/params/v2/money_management/outbound_payment_quote_create_params.rb +79 -0
  247. data/lib/stripe/params/v2/money_management/outbound_payment_quote_retrieve_params.rb +10 -0
  248. data/lib/stripe/params/v2/money_management/outbound_payment_retrieve_params.rb +10 -0
  249. data/lib/stripe/params/v2/money_management/outbound_setup_intent_cancel_params.rb +10 -0
  250. data/lib/stripe/params/v2/money_management/outbound_setup_intent_create_params.rb +85 -0
  251. data/lib/stripe/params/v2/money_management/outbound_setup_intent_list_params.rb +17 -0
  252. data/lib/stripe/params/v2/money_management/outbound_setup_intent_retrieve_params.rb +10 -0
  253. data/lib/stripe/params/v2/money_management/outbound_setup_intent_update_params.rb +80 -0
  254. data/lib/stripe/params/v2/money_management/outbound_transfer_cancel_params.rb +10 -0
  255. data/lib/stripe/params/v2/money_management/outbound_transfer_create_params.rb +89 -0
  256. data/lib/stripe/params/v2/money_management/outbound_transfer_list_params.rb +48 -0
  257. data/lib/stripe/params/v2/money_management/outbound_transfer_retrieve_params.rb +10 -0
  258. data/lib/stripe/params/v2/money_management/payout_method_archive_params.rb +10 -0
  259. data/lib/stripe/params/v2/money_management/payout_method_list_params.rb +31 -0
  260. data/lib/stripe/params/v2/money_management/payout_method_retrieve_params.rb +10 -0
  261. data/lib/stripe/params/v2/money_management/payout_method_unarchive_params.rb +10 -0
  262. data/lib/stripe/params/v2/money_management/payout_methods_bank_account_spec_retrieve_params.rb +17 -0
  263. data/lib/stripe/params/v2/money_management/received_credit_list_params.rb +44 -0
  264. data/lib/stripe/params/v2/money_management/received_credit_retrieve_params.rb +10 -0
  265. data/lib/stripe/params/v2/money_management/received_debit_list_params.rb +17 -0
  266. data/lib/stripe/params/v2/money_management/received_debit_retrieve_params.rb +10 -0
  267. data/lib/stripe/params/v2/money_management/transaction_entry_list_params.rb +43 -0
  268. data/lib/stripe/params/v2/money_management/transaction_entry_retrieve_params.rb +10 -0
  269. data/lib/stripe/params/v2/money_management/transaction_list_params.rb +47 -0
  270. data/lib/stripe/params/v2/money_management/transaction_retrieve_params.rb +10 -0
  271. data/lib/stripe/params/v2/test_helpers/financial_address_credit_params.rb +34 -0
  272. data/lib/stripe/params/v2/test_helpers/financial_address_generate_microdeposits_params.rb +10 -0
  273. data/lib/stripe/params.rb +151 -0
  274. data/lib/stripe/resources/account.rb +182 -1
  275. data/lib/stripe/resources/account_notice.rb +94 -0
  276. data/lib/stripe/resources/account_session.rb +81 -0
  277. data/lib/stripe/resources/billing/analytics/meter_usage.rb +33 -0
  278. data/lib/stripe/resources/billing/analytics/meter_usage_row.rb +38 -0
  279. data/lib/stripe/resources/capital/financing_offer.rb +142 -0
  280. data/lib/stripe/resources/capital/financing_summary.rb +82 -0
  281. data/lib/stripe/resources/capital/financing_transaction.rb +99 -0
  282. data/lib/stripe/resources/card.rb +2 -0
  283. data/lib/stripe/resources/charge.rb +215 -1
  284. data/lib/stripe/resources/checkout/session.rb +104 -4
  285. data/lib/stripe/resources/confirmation_token.rb +133 -0
  286. data/lib/stripe/resources/coupon.rb +26 -1
  287. data/lib/stripe/resources/credit_note_line_item.rb +18 -0
  288. data/lib/stripe/resources/customer_session.rb +36 -0
  289. data/lib/stripe/resources/dispute.rb +22 -0
  290. data/lib/stripe/resources/event.rb +64 -1
  291. data/lib/stripe/resources/financial_connections/account.rb +25 -0
  292. data/lib/stripe/resources/financial_connections/account_inferred_balance.rb +35 -0
  293. data/lib/stripe/resources/financial_connections/institution.rb +127 -0
  294. data/lib/stripe/resources/financial_connections/session.rb +65 -1
  295. data/lib/stripe/resources/fx_quote.rb +147 -0
  296. data/lib/stripe/resources/invoice.rb +150 -1
  297. data/lib/stripe/resources/invoice_item.rb +2 -0
  298. data/lib/stripe/resources/invoice_line_item.rb +40 -0
  299. data/lib/stripe/resources/issuing/credit_underwriting_record.rb +263 -0
  300. data/lib/stripe/resources/issuing/dispute_settlement_detail.rb +71 -0
  301. data/lib/stripe/resources/issuing/fraud_liability_debit.rb +51 -0
  302. data/lib/stripe/resources/issuing/settlement.rb +61 -0
  303. data/lib/stripe/resources/issuing/transaction.rb +2 -0
  304. data/lib/stripe/resources/line_item.rb +66 -1
  305. data/lib/stripe/resources/mandate.rb +43 -0
  306. data/lib/stripe/resources/margin.rb +64 -0
  307. data/lib/stripe/resources/order.rb +987 -0
  308. data/lib/stripe/resources/payment_attempt_record.rb +181 -1
  309. data/lib/stripe/resources/payment_intent.rb +737 -4
  310. data/lib/stripe/resources/payment_method.rb +135 -0
  311. data/lib/stripe/resources/payment_method_configuration.rb +170 -0
  312. data/lib/stripe/resources/payment_record.rb +181 -1
  313. data/lib/stripe/resources/price.rb +20 -0
  314. data/lib/stripe/resources/privacy/redaction_job.rb +187 -0
  315. data/lib/stripe/resources/privacy/redaction_job_validation_error.rb +49 -0
  316. data/lib/stripe/resources/quote.rb +569 -2
  317. data/lib/stripe/resources/quote_line.rb +521 -0
  318. data/lib/stripe/resources/quote_preview_invoice.rb +1182 -0
  319. data/lib/stripe/resources/quote_preview_subscription_schedule.rb +732 -0
  320. data/lib/stripe/resources/refund.rb +18 -0
  321. data/lib/stripe/resources/reserve/hold.rb +74 -0
  322. data/lib/stripe/resources/reserve/plan.rb +78 -0
  323. data/lib/stripe/resources/reserve/release.rb +77 -0
  324. data/lib/stripe/resources/setup_attempt.rb +48 -0
  325. data/lib/stripe/resources/setup_intent.rb +88 -1
  326. data/lib/stripe/resources/source.rb +38 -0
  327. data/lib/stripe/resources/subscription.rb +230 -0
  328. data/lib/stripe/resources/subscription_item.rb +20 -1
  329. data/lib/stripe/resources/subscription_schedule.rb +196 -3
  330. data/lib/stripe/resources/tax/form.rb +264 -0
  331. data/lib/stripe/resources/terminal/configuration.rb +16 -0
  332. data/lib/stripe/resources/terminal/reader.rb +8 -0
  333. data/lib/stripe/resources/terminal/reader_collected_data.rb +47 -0
  334. data/lib/stripe/resources/transfer.rb +2 -0
  335. data/lib/stripe/resources/treasury/financial_account.rb +2 -0
  336. data/lib/stripe/resources/treasury/financial_account_features.rb +2 -0
  337. data/lib/stripe/resources/treasury/outbound_transfer.rb +30 -0
  338. data/lib/stripe/resources/treasury/received_credit.rb +30 -0
  339. data/lib/stripe/resources/treasury/received_debit.rb +32 -0
  340. data/lib/stripe/resources/v2/billing/bill_setting.rb +102 -0
  341. data/lib/stripe/resources/v2/billing/bill_setting_version.rb +90 -0
  342. data/lib/stripe/resources/v2/billing/cadence.rb +609 -0
  343. data/lib/stripe/resources/v2/billing/collection_setting.rb +274 -0
  344. data/lib/stripe/resources/v2/billing/collection_setting_version.rb +262 -0
  345. data/lib/stripe/resources/v2/billing/profile.rb +46 -0
  346. data/lib/stripe/resources/v2/core/account.rb +565 -3
  347. data/lib/stripe/resources/v2/core/vault/gb_bank_account.rb +114 -0
  348. data/lib/stripe/resources/v2/core/vault/us_bank_account.rb +83 -0
  349. data/lib/stripe/resources/v2/financial_address_credit_simulation.rb +28 -0
  350. data/lib/stripe/resources/v2/financial_address_generated_microdeposits.rb +44 -0
  351. data/lib/stripe/resources/v2/money_management/adjustment.rb +82 -0
  352. data/lib/stripe/resources/v2/money_management/financial_account.rb +188 -0
  353. data/lib/stripe/resources/v2/money_management/financial_address.rb +132 -0
  354. data/lib/stripe/resources/v2/money_management/inbound_transfer.rb +197 -0
  355. data/lib/stripe/resources/v2/money_management/outbound_payment.rb +261 -0
  356. data/lib/stripe/resources/v2/money_management/outbound_payment_quote.rb +202 -0
  357. data/lib/stripe/resources/v2/money_management/outbound_setup_intent.rb +69 -0
  358. data/lib/stripe/resources/v2/money_management/outbound_transfer.rb +240 -0
  359. data/lib/stripe/resources/v2/money_management/payout_method.rb +111 -0
  360. data/lib/stripe/resources/v2/money_management/payout_methods_bank_account_spec.rb +81 -0
  361. data/lib/stripe/resources/v2/money_management/received_credit.rb +246 -0
  362. data/lib/stripe/resources/v2/money_management/received_debit.rb +152 -0
  363. data/lib/stripe/resources/v2/money_management/transaction.rb +180 -0
  364. data/lib/stripe/resources/v2/money_management/transaction_entry.rb +153 -0
  365. data/lib/stripe/resources.rb +104 -0
  366. data/lib/stripe/services/account_notice_service.rb +39 -0
  367. data/lib/stripe/services/billing/analytics/meter_usage_service.rb +21 -0
  368. data/lib/stripe/services/billing/analytics_service.rb +15 -0
  369. data/lib/stripe/services/billing_service.rb +2 -1
  370. data/lib/stripe/services/capital/financing_offer_service.rb +42 -0
  371. data/lib/stripe/services/capital/financing_summary_service.rb +19 -0
  372. data/lib/stripe/services/capital/financing_transaction_service.rb +31 -0
  373. data/lib/stripe/services/capital_service.rb +15 -0
  374. data/lib/stripe/services/external_account_service.rb +68 -0
  375. data/lib/stripe/services/financial_connections/account_inferred_balance_service.rb +19 -0
  376. data/lib/stripe/services/financial_connections/account_service.rb +3 -1
  377. data/lib/stripe/services/financial_connections/institution_service.rb +30 -0
  378. data/lib/stripe/services/financial_connections_service.rb +2 -1
  379. data/lib/stripe/services/fx_quote_service.rb +27 -0
  380. data/lib/stripe/services/issuing/credit_underwriting_record_service.rb +74 -0
  381. data/lib/stripe/services/issuing/dispute_settlement_detail_service.rb +30 -0
  382. data/lib/stripe/services/issuing/fraud_liability_debit_service.rb +30 -0
  383. data/lib/stripe/services/issuing_service.rb +5 -1
  384. data/lib/stripe/services/mandate_service.rb +5 -0
  385. data/lib/stripe/services/margin_service.rb +50 -0
  386. data/lib/stripe/services/order_line_item_service.rb +17 -0
  387. data/lib/stripe/services/order_service.rb +78 -0
  388. data/lib/stripe/services/payment_intent_service.rb +37 -0
  389. data/lib/stripe/services/privacy/redaction_job_service.rb +104 -0
  390. data/lib/stripe/services/privacy/redaction_job_validation_error_service.rb +19 -0
  391. data/lib/stripe/services/privacy_service.rb +13 -0
  392. data/lib/stripe/services/quote_line_service.rb +17 -0
  393. data/lib/stripe/services/quote_preview_invoice_service.rb +17 -0
  394. data/lib/stripe/services/quote_preview_subscription_schedule_service.rb +17 -0
  395. data/lib/stripe/services/quote_service.rb +49 -1
  396. data/lib/stripe/services/reserve/hold_service.rb +30 -0
  397. data/lib/stripe/services/reserve/plan_service.rb +19 -0
  398. data/lib/stripe/services/reserve/release_service.rb +30 -0
  399. data/lib/stripe/services/reserve_service.rb +15 -0
  400. data/lib/stripe/services/subscription_schedule_service.rb +11 -0
  401. data/lib/stripe/services/subscription_service.rb +11 -0
  402. data/lib/stripe/services/tax/form_service.rb +37 -0
  403. data/lib/stripe/services/tax_service.rb +2 -1
  404. data/lib/stripe/services/terminal/reader_collected_data_service.rb +19 -0
  405. data/lib/stripe/services/terminal_service.rb +2 -1
  406. data/lib/stripe/services/v1_services.rb +9 -1
  407. data/lib/stripe/services/v2/billing/bill_setting_service.rb +61 -0
  408. data/lib/stripe/services/v2/billing/bill_settings/version_service.rb +34 -0
  409. data/lib/stripe/services/v2/billing/cadence_service.rb +65 -0
  410. data/lib/stripe/services/v2/billing/collection_setting_service.rb +61 -0
  411. data/lib/stripe/services/v2/billing/collection_settings/version_service.rb +34 -0
  412. data/lib/stripe/services/v2/billing/profile_service.rb +54 -0
  413. data/lib/stripe/services/v2/billing_service.rb +5 -1
  414. data/lib/stripe/services/v2/core/vault/gb_bank_account_service.rb +85 -0
  415. data/lib/stripe/services/v2/core/vault/us_bank_account_service.rb +101 -0
  416. data/lib/stripe/services/v2/core/vault_service.rb +18 -0
  417. data/lib/stripe/services/v2/core_service.rb +2 -1
  418. data/lib/stripe/services/v2/money_management/adjustment_service.rb +32 -0
  419. data/lib/stripe/services/v2/money_management/financial_account_service.rb +70 -0
  420. data/lib/stripe/services/v2/money_management/financial_address_service.rb +46 -0
  421. data/lib/stripe/services/v2/money_management/inbound_transfer_service.rb +45 -0
  422. data/lib/stripe/services/v2/money_management/outbound_payment_quote_service.rb +34 -0
  423. data/lib/stripe/services/v2/money_management/outbound_payment_service.rb +62 -0
  424. data/lib/stripe/services/v2/money_management/outbound_setup_intent_service.rb +75 -0
  425. data/lib/stripe/services/v2/money_management/outbound_transfer_service.rb +60 -0
  426. data/lib/stripe/services/v2/money_management/payout_method_service.rb +65 -0
  427. data/lib/stripe/services/v2/money_management/payout_methods_bank_account_spec_service.rb +23 -0
  428. data/lib/stripe/services/v2/money_management/received_credit_service.rb +32 -0
  429. data/lib/stripe/services/v2/money_management/received_debit_service.rb +32 -0
  430. data/lib/stripe/services/v2/money_management/transaction_entry_service.rb +32 -0
  431. data/lib/stripe/services/v2/money_management/transaction_service.rb +32 -0
  432. data/lib/stripe/services/v2/money_management_service.rb +31 -0
  433. data/lib/stripe/services/v2/test_helper_service.rb +15 -0
  434. data/lib/stripe/services/v2/test_helpers/financial_address_service.rb +36 -0
  435. data/lib/stripe/services/v2_services.rb +3 -1
  436. data/lib/stripe/services.rb +55 -0
  437. data/lib/stripe/stripe_client.rb +8 -1
  438. data/lib/stripe/stripe_configuration.rb +3 -1
  439. data/lib/stripe/stripe_event_notification_handler.rb +425 -0
  440. data/lib/stripe/stripe_object.rb +1 -1
  441. data/lib/stripe/util.rb +7 -1
  442. data/lib/stripe/version.rb +1 -1
  443. data/lib/stripe.rb +54 -0
  444. data/rbi/stripe/stripe_client.rbi +13 -0
  445. data/rbi/stripe.rbi +93543 -33169
  446. metadata +314 -3
@@ -110,6 +110,8 @@ module Stripe
110
110
  attr_accessor :name
111
111
  # Internal-only description of the product sold by, or service provided by, the business. Used by Stripe for risk and underwriting purposes.
112
112
  attr_accessor :product_description
113
+ # A link to the business's publicly available terms related to the Specified Commercial Transaction Act. Used by the Checkout product and for Japanese payment methods.
114
+ attr_accessor :specified_commercial_transactions_act_url
113
115
  # A publicly available mailing address for sending support issues to.
114
116
  attr_accessor :support_address
115
117
  # A publicly available email address for sending support issues to.
@@ -129,6 +131,7 @@ module Stripe
129
131
  monthly_estimated_revenue: nil,
130
132
  name: nil,
131
133
  product_description: nil,
134
+ specified_commercial_transactions_act_url: nil,
132
135
  support_address: nil,
133
136
  support_email: nil,
134
137
  support_phone: nil,
@@ -142,6 +145,7 @@ module Stripe
142
145
  @monthly_estimated_revenue = monthly_estimated_revenue
143
146
  @name = name
144
147
  @product_description = product_description
148
+ @specified_commercial_transactions_act_url = specified_commercial_transactions_act_url
145
149
  @support_address = support_address
146
150
  @support_email = support_email
147
151
  @support_phone = support_phone
@@ -205,6 +209,15 @@ module Stripe
205
209
  end
206
210
  end
207
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
+
208
221
  class BacsDebitPayments < ::Stripe::RequestParams
209
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.
210
223
  attr_accessor :requested
@@ -340,6 +353,15 @@ module Stripe
340
353
  end
341
354
  end
342
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
+
343
365
  class GrabpayPayments < ::Stripe::RequestParams
344
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.
345
367
  attr_accessor :requested
@@ -349,6 +371,24 @@ module Stripe
349
371
  end
350
372
  end
351
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
+
352
392
  class IdealPayments < ::Stripe::RequestParams
353
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.
354
394
  attr_accessor :requested
@@ -538,6 +578,24 @@ module Stripe
538
578
  end
539
579
  end
540
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
+
541
599
  class PaytoPayments < ::Stripe::RequestParams
542
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.
543
601
  attr_accessor :requested
@@ -565,6 +623,24 @@ module Stripe
565
623
  end
566
624
  end
567
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
+
568
644
  class RevolutPayPayments < ::Stripe::RequestParams
569
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.
570
646
  attr_accessor :requested
@@ -610,6 +686,15 @@ module Stripe
610
686
  end
611
687
  end
612
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
+
613
698
  class SofortPayments < ::Stripe::RequestParams
614
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.
615
700
  attr_accessor :requested
@@ -619,6 +704,15 @@ module Stripe
619
704
  end
620
705
  end
621
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
+
622
716
  class SwishPayments < ::Stripe::RequestParams
623
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.
624
718
  attr_accessor :requested
@@ -664,6 +758,33 @@ module Stripe
664
758
  end
665
759
  end
666
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
+
667
788
  class TwintPayments < ::Stripe::RequestParams
668
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.
669
790
  attr_accessor :requested
@@ -711,6 +832,8 @@ module Stripe
711
832
  attr_accessor :amazon_pay_payments
712
833
  # The au_becs_debit_payments capability.
713
834
  attr_accessor :au_becs_debit_payments
835
+ # The automatic_indirect_tax capability.
836
+ attr_accessor :automatic_indirect_tax
714
837
  # The bacs_debit_payments capability.
715
838
  attr_accessor :bacs_debit_payments
716
839
  # The bancontact_payments capability.
@@ -741,8 +864,14 @@ module Stripe
741
864
  attr_accessor :gb_bank_transfer_payments
742
865
  # The giropay_payments capability.
743
866
  attr_accessor :giropay_payments
867
+ # The gopay_payments capability.
868
+ attr_accessor :gopay_payments
744
869
  # The grabpay_payments capability.
745
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
746
875
  # The ideal_payments capability.
747
876
  attr_accessor :ideal_payments
748
877
  # The india_international_payments capability.
@@ -785,12 +914,20 @@ module Stripe
785
914
  attr_accessor :payco_payments
786
915
  # The paynow_payments capability.
787
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
788
921
  # The payto_payments capability.
789
922
  attr_accessor :payto_payments
790
923
  # The pix_payments capability.
791
924
  attr_accessor :pix_payments
792
925
  # The promptpay_payments capability.
793
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
794
931
  # The revolut_pay_payments capability.
795
932
  attr_accessor :revolut_pay_payments
796
933
  # The samsung_pay_payments capability.
@@ -801,8 +938,12 @@ module Stripe
801
938
  attr_accessor :sepa_bank_transfer_payments
802
939
  # The sepa_debit_payments capability.
803
940
  attr_accessor :sepa_debit_payments
941
+ # The shopeepay_payments capability.
942
+ attr_accessor :shopeepay_payments
804
943
  # The sofort_payments capability.
805
944
  attr_accessor :sofort_payments
945
+ # The stripe_balance_payments capability.
946
+ attr_accessor :stripe_balance_payments
806
947
  # The swish_payments capability.
807
948
  attr_accessor :swish_payments
808
949
  # The tax_reporting_us_1099_k capability.
@@ -813,6 +954,12 @@ module Stripe
813
954
  attr_accessor :transfers
814
955
  # The treasury capability.
815
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
816
963
  # The twint_payments capability.
817
964
  attr_accessor :twint_payments
818
965
  # The us_bank_account_ach_payments capability.
@@ -829,6 +976,7 @@ module Stripe
829
976
  alma_payments: nil,
830
977
  amazon_pay_payments: nil,
831
978
  au_becs_debit_payments: nil,
979
+ automatic_indirect_tax: nil,
832
980
  bacs_debit_payments: nil,
833
981
  bancontact_payments: nil,
834
982
  bank_transfer_payments: nil,
@@ -844,7 +992,10 @@ module Stripe
844
992
  fpx_payments: nil,
845
993
  gb_bank_transfer_payments: nil,
846
994
  giropay_payments: nil,
995
+ gopay_payments: nil,
847
996
  grabpay_payments: nil,
997
+ id_bank_transfer_payments: nil,
998
+ id_bank_transfer_payments_bca: nil,
848
999
  ideal_payments: nil,
849
1000
  india_international_payments: nil,
850
1001
  jcb_payments: nil,
@@ -866,20 +1017,29 @@ module Stripe
866
1017
  pay_by_bank_payments: nil,
867
1018
  payco_payments: nil,
868
1019
  paynow_payments: nil,
1020
+ paypal_payments: nil,
1021
+ paypay_payments: nil,
869
1022
  payto_payments: nil,
870
1023
  pix_payments: nil,
871
1024
  promptpay_payments: nil,
1025
+ qris_payments: nil,
1026
+ rechnung_payments: nil,
872
1027
  revolut_pay_payments: nil,
873
1028
  samsung_pay_payments: nil,
874
1029
  satispay_payments: nil,
875
1030
  sepa_bank_transfer_payments: nil,
876
1031
  sepa_debit_payments: nil,
1032
+ shopeepay_payments: nil,
877
1033
  sofort_payments: nil,
1034
+ stripe_balance_payments: nil,
878
1035
  swish_payments: nil,
879
1036
  tax_reporting_us_1099_k: nil,
880
1037
  tax_reporting_us_1099_misc: nil,
881
1038
  transfers: nil,
882
1039
  treasury: nil,
1040
+ treasury_evolve: nil,
1041
+ treasury_fifth_third: nil,
1042
+ treasury_goldman_sachs: nil,
883
1043
  twint_payments: nil,
884
1044
  us_bank_account_ach_payments: nil,
885
1045
  us_bank_transfer_payments: nil,
@@ -891,6 +1051,7 @@ module Stripe
891
1051
  @alma_payments = alma_payments
892
1052
  @amazon_pay_payments = amazon_pay_payments
893
1053
  @au_becs_debit_payments = au_becs_debit_payments
1054
+ @automatic_indirect_tax = automatic_indirect_tax
894
1055
  @bacs_debit_payments = bacs_debit_payments
895
1056
  @bancontact_payments = bancontact_payments
896
1057
  @bank_transfer_payments = bank_transfer_payments
@@ -906,7 +1067,10 @@ module Stripe
906
1067
  @fpx_payments = fpx_payments
907
1068
  @gb_bank_transfer_payments = gb_bank_transfer_payments
908
1069
  @giropay_payments = giropay_payments
1070
+ @gopay_payments = gopay_payments
909
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
910
1074
  @ideal_payments = ideal_payments
911
1075
  @india_international_payments = india_international_payments
912
1076
  @jcb_payments = jcb_payments
@@ -928,20 +1092,29 @@ module Stripe
928
1092
  @pay_by_bank_payments = pay_by_bank_payments
929
1093
  @payco_payments = payco_payments
930
1094
  @paynow_payments = paynow_payments
1095
+ @paypal_payments = paypal_payments
1096
+ @paypay_payments = paypay_payments
931
1097
  @payto_payments = payto_payments
932
1098
  @pix_payments = pix_payments
933
1099
  @promptpay_payments = promptpay_payments
1100
+ @qris_payments = qris_payments
1101
+ @rechnung_payments = rechnung_payments
934
1102
  @revolut_pay_payments = revolut_pay_payments
935
1103
  @samsung_pay_payments = samsung_pay_payments
936
1104
  @satispay_payments = satispay_payments
937
1105
  @sepa_bank_transfer_payments = sepa_bank_transfer_payments
938
1106
  @sepa_debit_payments = sepa_debit_payments
1107
+ @shopeepay_payments = shopeepay_payments
939
1108
  @sofort_payments = sofort_payments
1109
+ @stripe_balance_payments = stripe_balance_payments
940
1110
  @swish_payments = swish_payments
941
1111
  @tax_reporting_us_1099_k = tax_reporting_us_1099_k
942
1112
  @tax_reporting_us_1099_misc = tax_reporting_us_1099_misc
943
1113
  @transfers = transfers
944
1114
  @treasury = treasury
1115
+ @treasury_evolve = treasury_evolve
1116
+ @treasury_fifth_third = treasury_fifth_third
1117
+ @treasury_goldman_sachs = treasury_goldman_sachs
945
1118
  @twint_payments = twint_payments
946
1119
  @us_bank_account_ach_payments = us_bank_account_ach_payments
947
1120
  @us_bank_transfer_payments = us_bank_transfer_payments
@@ -1311,6 +1484,30 @@ module Stripe
1311
1484
  end
1312
1485
 
1313
1486
  class Controller < ::Stripe::RequestParams
1487
+ class Application < ::Stripe::RequestParams
1488
+ # Whether the controller is liable for losses on this account. For details, see [Understanding Connect Account Balances](https://docs.stripe.com/connect/account-balances).
1489
+ attr_accessor :loss_liable
1490
+ # Whether the controller owns onboarding for this account.
1491
+ attr_accessor :onboarding_owner
1492
+ # Whether the controller has pricing controls for this account.
1493
+ attr_accessor :pricing_controls
1494
+
1495
+ def initialize(loss_liable: nil, onboarding_owner: nil, pricing_controls: nil)
1496
+ @loss_liable = loss_liable
1497
+ @onboarding_owner = onboarding_owner
1498
+ @pricing_controls = pricing_controls
1499
+ end
1500
+ end
1501
+
1502
+ class Dashboard < ::Stripe::RequestParams
1503
+ # Whether this account should have access to the full Stripe Dashboard (`full`), to the Express Dashboard (`express`), or to no Stripe-hosted dashboard (`none`). Defaults to `full`.
1504
+ attr_accessor :type
1505
+
1506
+ def initialize(type: nil)
1507
+ @type = type
1508
+ end
1509
+ end
1510
+
1314
1511
  class Fees < ::Stripe::RequestParams
1315
1512
  # A value indicating the responsible payer of Stripe fees on this account. Defaults to `account`. Learn more about [fee behavior on connected accounts](https://docs.stripe.com/connect/direct-charges-fee-payer-behavior).
1316
1513
  attr_accessor :payer
@@ -1337,6 +1534,10 @@ module Stripe
1337
1534
  @type = type
1338
1535
  end
1339
1536
  end
1537
+ # A hash of configuration describing the Connect application that controls the account.
1538
+ attr_accessor :application
1539
+ # Properties of the account's dashboard.
1540
+ attr_accessor :dashboard
1340
1541
  # A hash of configuration for who pays Stripe fees for product usage on this account.
1341
1542
  attr_accessor :fees
1342
1543
  # A hash of configuration for products that have negative balance liability, and whether Stripe or a Connect application is responsible for them.
@@ -1346,7 +1547,16 @@ module Stripe
1346
1547
  # A hash of configuration for Stripe-hosted dashboards.
1347
1548
  attr_accessor :stripe_dashboard
1348
1549
 
1349
- def initialize(fees: nil, losses: nil, requirement_collection: nil, stripe_dashboard: nil)
1550
+ def initialize(
1551
+ application: nil,
1552
+ dashboard: nil,
1553
+ fees: nil,
1554
+ losses: nil,
1555
+ requirement_collection: nil,
1556
+ stripe_dashboard: nil
1557
+ )
1558
+ @application = application
1559
+ @dashboard = dashboard
1350
1560
  @fees = fees
1351
1561
  @losses = losses
1352
1562
  @requirement_collection = requirement_collection
@@ -1815,6 +2025,37 @@ module Stripe
1815
2025
  end
1816
2026
  end
1817
2027
 
2028
+ class RiskControls < ::Stripe::RequestParams
2029
+ class Charges < ::Stripe::RequestParams
2030
+ # To request to pause a risk control, pass `true`. To request to unpause a risk control, pass `false`.
2031
+ # There can be a delay before the risk control is paused or unpaused.
2032
+ attr_accessor :pause_requested
2033
+
2034
+ def initialize(pause_requested: nil)
2035
+ @pause_requested = pause_requested
2036
+ end
2037
+ end
2038
+
2039
+ class Payouts < ::Stripe::RequestParams
2040
+ # To request to pause a risk control, pass `true`. To request to unpause a risk control, pass `false`.
2041
+ # There can be a delay before the risk control is paused or unpaused.
2042
+ attr_accessor :pause_requested
2043
+
2044
+ def initialize(pause_requested: nil)
2045
+ @pause_requested = pause_requested
2046
+ end
2047
+ end
2048
+ # Represents the risk control status of charges. Please see [this page for more details](https://docs.stripe.com/connect/pausing-payments-or-payouts-on-connected-accounts).
2049
+ attr_accessor :charges
2050
+ # Represents the risk control status of payouts. Please see [this page for more details](https://docs.stripe.com/connect/pausing-payments-or-payouts-on-connected-accounts).
2051
+ attr_accessor :payouts
2052
+
2053
+ def initialize(charges: nil, payouts: nil)
2054
+ @charges = charges
2055
+ @payouts = payouts
2056
+ end
2057
+ end
2058
+
1818
2059
  class Settings < ::Stripe::RequestParams
1819
2060
  class BacsDebitPayments < ::Stripe::RequestParams
1820
2061
  # The Bacs Direct Debit Display Name for this account. For payments made with Bacs Direct Debit, this name appears on the mandate as the statement descriptor. Mobile banking apps display it as the name of the business. To use custom branding, set the Bacs Direct Debit Display Name during or right after creation. Custom branding incurs an additional monthly fee for the platform. If you don't set the display name before requesting Bacs capability, it's automatically set as "Stripe" and the account is onboarded to Stripe branding, which is free.
@@ -1825,6 +2066,18 @@ module Stripe
1825
2066
  end
1826
2067
  end
1827
2068
 
2069
+ class BankBcaOnboarding < ::Stripe::RequestParams
2070
+ # Bank BCA business account holder name
2071
+ attr_accessor :account_holder_name
2072
+ # Bank BCA business account number
2073
+ attr_accessor :business_account_number
2074
+
2075
+ def initialize(account_holder_name: nil, business_account_number: nil)
2076
+ @account_holder_name = account_holder_name
2077
+ @business_account_number = business_account_number
2078
+ end
2079
+ end
2080
+
1828
2081
  class Branding < ::Stripe::RequestParams
1829
2082
  # (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) An icon for the account. Must be square and at least 128px x 128px.
1830
2083
  attr_accessor :icon
@@ -1843,6 +2096,18 @@ module Stripe
1843
2096
  end
1844
2097
  end
1845
2098
 
2099
+ class Capital < ::Stripe::RequestParams
2100
+ # Per-currency mapping of user-selected destination accounts used to pay out loans.
2101
+ attr_accessor :payout_destination
2102
+ # Per-currency mapping of all destination accounts eligible to receive Capital financing payouts.
2103
+ attr_accessor :payout_destination_selector
2104
+
2105
+ def initialize(payout_destination: nil, payout_destination_selector: nil)
2106
+ @payout_destination = payout_destination
2107
+ @payout_destination_selector = payout_destination_selector
2108
+ end
2109
+ end
2110
+
1846
2111
  class CardIssuing < ::Stripe::RequestParams
1847
2112
  class TosAcceptance < ::Stripe::RequestParams
1848
2113
  # The Unix timestamp marking when the account representative accepted the service agreement.
@@ -1973,6 +2238,24 @@ module Stripe
1973
2238
  end
1974
2239
  end
1975
2240
 
2241
+ class PaypayPayments < ::Stripe::RequestParams
2242
+ # Whether your business sells digital content or not.
2243
+ attr_accessor :goods_type
2244
+
2245
+ def initialize(goods_type: nil)
2246
+ @goods_type = goods_type
2247
+ end
2248
+ end
2249
+
2250
+ class TaxForms < ::Stripe::RequestParams
2251
+ # Whether the account opted out of receiving their tax forms by postal delivery.
2252
+ attr_accessor :consented_to_paperless_delivery
2253
+
2254
+ def initialize(consented_to_paperless_delivery: nil)
2255
+ @consented_to_paperless_delivery = consented_to_paperless_delivery
2256
+ end
2257
+ end
2258
+
1976
2259
  class Treasury < ::Stripe::RequestParams
1977
2260
  class TosAcceptance < ::Stripe::RequestParams
1978
2261
  # The Unix timestamp marking when the account representative accepted the service agreement.
@@ -1997,8 +2280,12 @@ module Stripe
1997
2280
  end
1998
2281
  # Settings specific to Bacs Direct Debit.
1999
2282
  attr_accessor :bacs_debit_payments
2283
+ # Settings specific to bank BCA onboarding for Indonesia bank transfers payments method.
2284
+ attr_accessor :bank_bca_onboarding
2000
2285
  # Settings used to apply the account's branding to email receipts, invoices, Checkout, and other products.
2001
2286
  attr_accessor :branding
2287
+ # Settings specific to the account's use of the Capital product.
2288
+ attr_accessor :capital
2002
2289
  # Settings specific to the account's use of the Card Issuing product.
2003
2290
  attr_accessor :card_issuing
2004
2291
  # Settings specific to card charging on the account.
@@ -2009,26 +2296,38 @@ module Stripe
2009
2296
  attr_accessor :payments
2010
2297
  # Settings specific to the account's payouts.
2011
2298
  attr_accessor :payouts
2299
+ # Settings specific to the PayPay payments method.
2300
+ attr_accessor :paypay_payments
2301
+ # Settings specific to the account's tax forms.
2302
+ attr_accessor :tax_forms
2012
2303
  # Settings specific to the account's Treasury FinancialAccounts.
2013
2304
  attr_accessor :treasury
2014
2305
 
2015
2306
  def initialize(
2016
2307
  bacs_debit_payments: nil,
2308
+ bank_bca_onboarding: nil,
2017
2309
  branding: nil,
2310
+ capital: nil,
2018
2311
  card_issuing: nil,
2019
2312
  card_payments: nil,
2020
2313
  invoices: nil,
2021
2314
  payments: nil,
2022
2315
  payouts: nil,
2316
+ paypay_payments: nil,
2317
+ tax_forms: nil,
2023
2318
  treasury: nil
2024
2319
  )
2025
2320
  @bacs_debit_payments = bacs_debit_payments
2321
+ @bank_bca_onboarding = bank_bca_onboarding
2026
2322
  @branding = branding
2323
+ @capital = capital
2027
2324
  @card_issuing = card_issuing
2028
2325
  @card_payments = card_payments
2029
2326
  @invoices = invoices
2030
2327
  @payments = payments
2031
2328
  @payouts = payouts
2329
+ @paypay_payments = paypay_payments
2330
+ @tax_forms = tax_forms
2032
2331
  @treasury = treasury
2033
2332
  end
2034
2333
  end
@@ -2087,6 +2386,8 @@ module Stripe
2087
2386
  attr_accessor :individual
2088
2387
  # Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
2089
2388
  attr_accessor :metadata
2389
+ # A hash to configure risk controls on the account. Please see [this page for more details](/connect/pausing-payments-or-payouts-on-connected-accounts).
2390
+ attr_accessor :risk_controls
2090
2391
  # Options for customizing how the account functions within Stripe.
2091
2392
  attr_accessor :settings
2092
2393
  # Details on the account's acceptance of the [Stripe Services Agreement](/connect/updating-accounts#tos-acceptance). This property can only be updated for accounts where [controller.requirement_collection](/api/accounts/object#account_object-controller-requirement_collection) is `application`, which includes Custom accounts. This property defaults to a `full` service agreement when empty.
@@ -2110,6 +2411,7 @@ module Stripe
2110
2411
  groups: nil,
2111
2412
  individual: nil,
2112
2413
  metadata: nil,
2414
+ risk_controls: nil,
2113
2415
  settings: nil,
2114
2416
  tos_acceptance: nil,
2115
2417
  type: nil
@@ -2129,6 +2431,7 @@ module Stripe
2129
2431
  @groups = groups
2130
2432
  @individual = individual
2131
2433
  @metadata = metadata
2434
+ @risk_controls = risk_controls
2132
2435
  @settings = settings
2133
2436
  @tos_acceptance = tos_acceptance
2134
2437
  @type = type
@@ -0,0 +1,25 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ class AccountNoticeListParams < ::Stripe::RequestParams
6
+ # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.
7
+ attr_accessor :ending_before
8
+ # Specifies which fields in the response should be expanded.
9
+ attr_accessor :expand
10
+ # A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
11
+ attr_accessor :limit
12
+ # Set to false to only return unsent AccountNotices.
13
+ attr_accessor :sent
14
+ # A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.
15
+ attr_accessor :starting_after
16
+
17
+ def initialize(ending_before: nil, expand: nil, limit: nil, sent: nil, starting_after: nil)
18
+ @ending_before = ending_before
19
+ @expand = expand
20
+ @limit = limit
21
+ @sent = sent
22
+ @starting_after = starting_after
23
+ end
24
+ end
25
+ end
@@ -0,0 +1,13 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ class AccountNoticeRetrieveParams < ::Stripe::RequestParams
6
+ # Specifies which fields in the response should be expanded.
7
+ attr_accessor :expand
8
+
9
+ def initialize(expand: nil)
10
+ @expand = expand
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,36 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ class AccountNoticeUpdateParams < ::Stripe::RequestParams
6
+ class Email < ::Stripe::RequestParams
7
+ # Content of the email in plain text. The copy must match exactly the language that Stripe Compliance has approved for use.
8
+ attr_accessor :plain_text
9
+ # Email address of the recipient.
10
+ attr_accessor :recipient
11
+ # Subject of the email.
12
+ attr_accessor :subject
13
+
14
+ def initialize(plain_text: nil, recipient: nil, subject: nil)
15
+ @plain_text = plain_text
16
+ @recipient = recipient
17
+ @subject = subject
18
+ end
19
+ end
20
+ # Information about the email you sent.
21
+ attr_accessor :email
22
+ # Specifies which fields in the response should be expanded.
23
+ attr_accessor :expand
24
+ # 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`.
25
+ attr_accessor :metadata
26
+ # Date when you sent the notice.
27
+ attr_accessor :sent_at
28
+
29
+ def initialize(email: nil, expand: nil, metadata: nil, sent_at: nil)
30
+ @email = email
31
+ @expand = expand
32
+ @metadata = metadata
33
+ @sent_at = sent_at
34
+ end
35
+ end
36
+ end