stripe 20.1.0 → 20.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 (507) hide show
  1. checksums.yaml +4 -4
  2. data/lib/stripe/api_requestor.rb +4 -0
  3. data/lib/stripe/api_version.rb +2 -2
  4. data/lib/stripe/errors.rb +6 -0
  5. data/lib/stripe/event_types.rb +193 -0
  6. data/lib/stripe/events/unknown_event_notification.rb +1 -0
  7. data/lib/stripe/events/v2_core_account_including_configuration_money_manager_capability_status_updated_event.rb +63 -0
  8. data/lib/stripe/events/v2_core_account_including_configuration_money_manager_updated_event.rb +44 -0
  9. data/lib/stripe/events/v2_core_approval_request_approved_event.rb +44 -0
  10. data/lib/stripe/events/v2_core_approval_request_canceled_event.rb +44 -0
  11. data/lib/stripe/events/v2_core_approval_request_created_event.rb +44 -0
  12. data/lib/stripe/events/v2_core_approval_request_expired_event.rb +44 -0
  13. data/lib/stripe/events/v2_core_approval_request_failed_event.rb +44 -0
  14. data/lib/stripe/events/v2_core_approval_request_rejected_event.rb +44 -0
  15. data/lib/stripe/events/v2_core_approval_request_succeeded_event.rb +44 -0
  16. data/lib/stripe/events/v2_core_batch_job_batch_failed_event.rb +44 -0
  17. data/lib/stripe/events/v2_core_batch_job_canceled_event.rb +44 -0
  18. data/lib/stripe/events/v2_core_batch_job_completed_event.rb +44 -0
  19. data/lib/stripe/events/v2_core_batch_job_created_event.rb +44 -0
  20. data/lib/stripe/events/v2_core_batch_job_ready_for_upload_event.rb +44 -0
  21. data/lib/stripe/events/v2_core_batch_job_timeout_event.rb +44 -0
  22. data/lib/stripe/events/v2_core_batch_job_updated_event.rb +44 -0
  23. data/lib/stripe/events/v2_core_batch_job_upload_timeout_event.rb +44 -0
  24. data/lib/stripe/events/v2_core_batch_job_validating_event.rb +44 -0
  25. data/lib/stripe/events/v2_core_batch_job_validation_failed_event.rb +44 -0
  26. data/lib/stripe/events/v2_core_health_event_generation_failure_resolved_event.rb +78 -0
  27. data/lib/stripe/events/v2_data_query_run_created_event.rb +44 -0
  28. data/lib/stripe/events/v2_data_query_run_failed_event.rb +44 -0
  29. data/lib/stripe/events/v2_data_query_run_succeeded_event.rb +44 -0
  30. data/lib/stripe/events/v2_data_query_run_updated_event.rb +44 -0
  31. data/lib/stripe/events/v2_data_report_run_created_event.rb +44 -0
  32. data/lib/stripe/events/v2_data_report_run_failed_event.rb +44 -0
  33. data/lib/stripe/events/v2_data_report_run_succeeded_event.rb +44 -0
  34. data/lib/stripe/events/v2_data_report_run_updated_event.rb +44 -0
  35. data/lib/stripe/events/v2_data_reporting_query_run_created_event.rb +44 -0
  36. data/lib/stripe/events/v2_data_reporting_query_run_failed_event.rb +44 -0
  37. data/lib/stripe/events/v2_data_reporting_query_run_succeeded_event.rb +44 -0
  38. data/lib/stripe/events/v2_data_reporting_query_run_updated_event.rb +44 -0
  39. data/lib/stripe/events/v2_extend_workflow_run_failed_event.rb +75 -0
  40. data/lib/stripe/events/v2_extend_workflow_run_started_event.rb +44 -0
  41. data/lib/stripe/events/v2_extend_workflow_run_succeeded_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_under_review_event.rb +44 -0
  48. data/lib/stripe/events/v2_money_management_outbound_transfer_updated_event.rb +44 -0
  49. data/lib/stripe/events/v2_money_management_received_debit_canceled_event.rb +44 -0
  50. data/lib/stripe/events/v2_money_management_received_debit_failed_event.rb +44 -0
  51. data/lib/stripe/events/v2_money_management_received_debit_pending_event.rb +44 -0
  52. data/lib/stripe/events/v2_money_management_received_debit_succeeded_event.rb +44 -0
  53. data/lib/stripe/events/v2_money_management_received_debit_updated_event.rb +44 -0
  54. data/lib/stripe/events/v2_orchestrated_commerce_agreement_confirmed_event.rb +97 -0
  55. data/lib/stripe/events/v2_orchestrated_commerce_agreement_created_event.rb +97 -0
  56. data/lib/stripe/events/v2_orchestrated_commerce_agreement_partially_confirmed_event.rb +97 -0
  57. data/lib/stripe/events/v2_orchestrated_commerce_agreement_terminated_event.rb +97 -0
  58. data/lib/stripe/events/v2_signals_account_evaluation_complete_event.rb +44 -0
  59. data/lib/stripe/events/v2_signals_account_signal_fraudulent_merchant_ready_event.rb +44 -0
  60. data/lib/stripe/events/v2_signals_account_signal_fraudulent_website_ready_event.rb +44 -0
  61. data/lib/stripe/object_types.rb +53 -0
  62. data/lib/stripe/params/account_create_params.rb +299 -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 +191 -0
  67. data/lib/stripe/params/account_update_params.rb +261 -0
  68. data/lib/stripe/params/balance_settings_update_params.rb +9 -1
  69. data/lib/stripe/params/billing/analytics/meter_usage_retrieve_params.rb +65 -0
  70. data/lib/stripe/params/capital/financing_offer_list_params.rb +58 -0
  71. data/lib/stripe/params/capital/financing_offer_mark_delivered_params.rb +15 -0
  72. data/lib/stripe/params/capital/financing_offer_retrieve_params.rb +15 -0
  73. data/lib/stripe/params/capital/financing_summary_retrieve_params.rb +15 -0
  74. data/lib/stripe/params/capital/financing_transaction_list_params.rb +45 -0
  75. data/lib/stripe/params/capital/financing_transaction_retrieve_params.rb +15 -0
  76. data/lib/stripe/params/charge_capture_params.rb +1646 -0
  77. data/lib/stripe/params/charge_update_params.rb +1646 -0
  78. data/lib/stripe/params/checkout/session_create_params.rb +87 -3
  79. data/lib/stripe/params/checkout/session_update_params.rb +161 -1
  80. data/lib/stripe/params/confirmation_token_create_params.rb +92 -0
  81. data/lib/stripe/params/coupon_create_params.rb +17 -1
  82. data/lib/stripe/params/customer_session_create_params.rb +32 -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/authorization_retrieve_params.rb +15 -0
  90. data/lib/stripe/params/financial_connections/institution_list_params.rb +24 -0
  91. data/lib/stripe/params/financial_connections/institution_retrieve_params.rb +15 -0
  92. data/lib/stripe/params/financial_connections/session_create_params.rb +38 -1
  93. data/lib/stripe/params/fx_quote_create_params.rb +73 -0
  94. data/lib/stripe/params/fx_quote_list_params.rb +22 -0
  95. data/lib/stripe/params/fx_quote_retrieve_params.rb +13 -0
  96. data/lib/stripe/params/invoice_add_lines_params.rb +33 -1
  97. data/lib/stripe/params/invoice_attach_payment_params.rb +43 -1
  98. data/lib/stripe/params/invoice_create_params.rb +64 -2
  99. data/lib/stripe/params/invoice_create_preview_params.rb +772 -9
  100. data/lib/stripe/params/invoice_detach_payment_params.rb +16 -0
  101. data/lib/stripe/params/invoice_item_create_params.rb +33 -1
  102. data/lib/stripe/params/invoice_item_update_params.rb +33 -1
  103. data/lib/stripe/params/invoice_line_item_update_params.rb +33 -1
  104. data/lib/stripe/params/invoice_update_lines_params.rb +33 -1
  105. data/lib/stripe/params/invoice_update_params.rb +64 -2
  106. data/lib/stripe/params/issuing/cardholder_create_params.rb +2 -1
  107. data/lib/stripe/params/issuing/cardholder_update_params.rb +4 -0
  108. data/lib/stripe/params/issuing/credit_underwriting_record_correct_params.rb +163 -0
  109. data/lib/stripe/params/issuing/credit_underwriting_record_create_from_application_params.rb +50 -0
  110. data/lib/stripe/params/issuing/credit_underwriting_record_create_from_proactive_review_params.rb +128 -0
  111. data/lib/stripe/params/issuing/credit_underwriting_record_list_params.rb +24 -0
  112. data/lib/stripe/params/issuing/credit_underwriting_record_report_decision_params.rb +86 -0
  113. data/lib/stripe/params/issuing/credit_underwriting_record_retrieve_params.rb +15 -0
  114. data/lib/stripe/params/issuing/dispute_settlement_detail_list_params.rb +33 -0
  115. data/lib/stripe/params/issuing/dispute_settlement_detail_retrieve_params.rb +15 -0
  116. data/lib/stripe/params/issuing/fraud_liability_debit_list_params.rb +44 -0
  117. data/lib/stripe/params/issuing/fraud_liability_debit_retrieve_params.rb +15 -0
  118. data/lib/stripe/params/issuing/transaction_list_params.rb +4 -0
  119. data/lib/stripe/params/mandate_list_params.rb +39 -0
  120. data/lib/stripe/params/margin_create_params.rb +25 -0
  121. data/lib/stripe/params/margin_list_params.rb +25 -0
  122. data/lib/stripe/params/margin_retrieve_params.rb +13 -0
  123. data/lib/stripe/params/margin_update_params.rb +22 -0
  124. data/lib/stripe/params/order_create_params.rb +2083 -0
  125. data/lib/stripe/params/order_list_params.rb +25 -0
  126. data/lib/stripe/params/order_retrieve_params.rb +13 -0
  127. data/lib/stripe/params/order_submit_params.rb +16 -0
  128. data/lib/stripe/params/order_update_params.rb +2087 -0
  129. data/lib/stripe/params/payment_intent_capture_params.rb +1643 -1
  130. data/lib/stripe/params/payment_intent_confirm_params.rb +3038 -85
  131. data/lib/stripe/params/payment_intent_create_params.rb +3050 -97
  132. data/lib/stripe/params/payment_intent_decrement_authorization_params.rb +297 -0
  133. data/lib/stripe/params/payment_intent_increment_authorization_params.rb +37 -0
  134. data/lib/stripe/params/payment_intent_trigger_action_params.rb +27 -0
  135. data/lib/stripe/params/payment_intent_update_params.rb +3039 -55
  136. data/lib/stripe/params/payment_method_configuration_create_params.rb +105 -0
  137. data/lib/stripe/params/payment_method_configuration_update_params.rb +105 -0
  138. data/lib/stripe/params/payment_method_create_params.rb +88 -0
  139. data/lib/stripe/params/payment_plan_create_params.rb +128 -0
  140. data/lib/stripe/params/payment_plan_list_params.rb +25 -0
  141. data/lib/stripe/params/payment_plan_retrieve_params.rb +13 -0
  142. data/lib/stripe/params/payment_plan_update_params.rb +105 -0
  143. data/lib/stripe/params/price_update_params.rb +19 -0
  144. data/lib/stripe/params/privacy/redaction_job_cancel_params.rb +15 -0
  145. data/lib/stripe/params/privacy/redaction_job_create_params.rb +67 -0
  146. data/lib/stripe/params/privacy/redaction_job_list_params.rb +27 -0
  147. data/lib/stripe/params/privacy/redaction_job_retrieve_params.rb +15 -0
  148. data/lib/stripe/params/privacy/redaction_job_run_params.rb +15 -0
  149. data/lib/stripe/params/privacy/redaction_job_update_params.rb +18 -0
  150. data/lib/stripe/params/privacy/redaction_job_validate_params.rb +15 -0
  151. data/lib/stripe/params/privacy/redaction_job_validation_error_list_params.rb +24 -0
  152. data/lib/stripe/params/quote_create_params.rb +809 -3
  153. data/lib/stripe/params/quote_line_list_params.rb +22 -0
  154. data/lib/stripe/params/quote_list_lines_params.rb +22 -0
  155. data/lib/stripe/params/quote_list_params.rb +4 -0
  156. data/lib/stripe/params/quote_list_preview_invoice_lines_params.rb +22 -0
  157. data/lib/stripe/params/quote_mark_draft_params.rb +13 -0
  158. data/lib/stripe/params/quote_mark_stale_params.rb +16 -0
  159. data/lib/stripe/params/quote_preview_invoice_list_params.rb +22 -0
  160. data/lib/stripe/params/quote_preview_subscription_schedule_list_params.rb +22 -0
  161. data/lib/stripe/params/quote_reestimate_params.rb +13 -0
  162. data/lib/stripe/params/quote_update_params.rb +817 -4
  163. data/lib/stripe/params/radar/billing_evaluation_create_params.rb +231 -0
  164. data/lib/stripe/params/reserve/hold_list_params.rb +53 -0
  165. data/lib/stripe/params/reserve/hold_retrieve_params.rb +15 -0
  166. data/lib/stripe/params/reserve/plan_list_params.rb +37 -0
  167. data/lib/stripe/params/reserve/plan_retrieve_params.rb +15 -0
  168. data/lib/stripe/params/reserve/release_list_params.rb +41 -0
  169. data/lib/stripe/params/reserve/release_retrieve_params.rb +15 -0
  170. data/lib/stripe/params/setup_intent_confirm_params.rb +122 -3
  171. data/lib/stripe/params/setup_intent_create_params.rb +122 -3
  172. data/lib/stripe/params/setup_intent_update_params.rb +122 -3
  173. data/lib/stripe/params/shared_payment/granted_token_create_params.rb +47 -0
  174. data/lib/stripe/params/shared_payment/granted_token_retrieve_params.rb +15 -0
  175. data/lib/stripe/params/shared_payment/granted_token_revoke_params.rb +15 -0
  176. data/lib/stripe/params/shared_payment/issued_token_create_params.rb +71 -0
  177. data/lib/stripe/params/shared_payment/issued_token_retrieve_params.rb +15 -0
  178. data/lib/stripe/params/shared_payment/issued_token_revoke_params.rb +15 -0
  179. data/lib/stripe/params/subscription_create_params.rb +133 -6
  180. data/lib/stripe/params/subscription_item_create_params.rb +50 -3
  181. data/lib/stripe/params/subscription_item_update_params.rb +33 -2
  182. data/lib/stripe/params/subscription_schedule_amend_params.rb +578 -0
  183. data/lib/stripe/params/subscription_schedule_create_params.rb +167 -5
  184. data/lib/stripe/params/subscription_schedule_update_params.rb +167 -5
  185. data/lib/stripe/params/subscription_update_params.rb +116 -5
  186. data/lib/stripe/params/tax/form_list_params.rb +51 -0
  187. data/lib/stripe/params/tax/form_pdf_params.rb +15 -0
  188. data/lib/stripe/params/tax/form_retrieve_params.rb +15 -0
  189. data/lib/stripe/params/tax/registration_create_params.rb +13 -1
  190. data/lib/stripe/params/terminal/reader_collected_data_retrieve_params.rb +15 -0
  191. data/lib/stripe/params/test_helpers/confirmation_token_create_params.rb +92 -0
  192. data/lib/stripe/params/test_helpers/shared_payment/granted_token_create_params.rb +49 -0
  193. data/lib/stripe/params/test_helpers/shared_payment/granted_token_revoke_params.rb +17 -0
  194. data/lib/stripe/params/test_helpers/treasury/received_credit_create_params.rb +25 -1
  195. data/lib/stripe/params/test_helpers/treasury/received_debit_create_params.rb +25 -1
  196. data/lib/stripe/params/transfer_create_params.rb +4 -0
  197. data/lib/stripe/params/treasury/financial_account_create_params.rb +8 -1
  198. data/lib/stripe/params/treasury/financial_account_features_update_params.rb +4 -1
  199. data/lib/stripe/params/treasury/financial_account_update_features_params.rb +4 -1
  200. data/lib/stripe/params/treasury/financial_account_update_params.rb +8 -1
  201. data/lib/stripe/params/treasury/outbound_payment_create_params.rb +19 -0
  202. data/lib/stripe/params/treasury/outbound_transfer_create_params.rb +24 -0
  203. data/lib/stripe/params/treasury/received_credit_create_params.rb +25 -1
  204. data/lib/stripe/params/treasury/received_debit_create_params.rb +25 -1
  205. data/lib/stripe/params/v2/billing/bill_setting_create_params.rb +74 -0
  206. data/lib/stripe/params/v2/billing/bill_setting_list_params.rb +21 -0
  207. data/lib/stripe/params/v2/billing/bill_setting_retrieve_params.rb +10 -0
  208. data/lib/stripe/params/v2/billing/bill_setting_update_params.rb +80 -0
  209. data/lib/stripe/params/v2/billing/bill_settings/version_list_params.rb +19 -0
  210. data/lib/stripe/params/v2/billing/bill_settings/version_retrieve_params.rb +12 -0
  211. data/lib/stripe/params/v2/billing/cadence_cancel_params.rb +10 -0
  212. data/lib/stripe/params/v2/billing/cadence_create_params.rb +253 -0
  213. data/lib/stripe/params/v2/billing/cadence_list_params.rb +43 -0
  214. data/lib/stripe/params/v2/billing/cadence_retrieve_params.rb +17 -0
  215. data/lib/stripe/params/v2/billing/cadence_update_params.rb +75 -0
  216. data/lib/stripe/params/v2/billing/collection_setting_create_params.rb +257 -0
  217. data/lib/stripe/params/v2/billing/collection_setting_list_params.rb +21 -0
  218. data/lib/stripe/params/v2/billing/collection_setting_retrieve_params.rb +10 -0
  219. data/lib/stripe/params/v2/billing/collection_setting_update_params.rb +263 -0
  220. data/lib/stripe/params/v2/billing/collection_settings/version_list_params.rb +19 -0
  221. data/lib/stripe/params/v2/billing/collection_settings/version_retrieve_params.rb +12 -0
  222. data/lib/stripe/params/v2/billing/profile_create_params.rb +37 -0
  223. data/lib/stripe/params/v2/billing/profile_list_params.rb +40 -0
  224. data/lib/stripe/params/v2/billing/profile_retrieve_params.rb +10 -0
  225. data/lib/stripe/params/v2/billing/profile_update_params.rb +35 -0
  226. data/lib/stripe/params/v2/core/account_create_params.rb +392 -5
  227. data/lib/stripe/params/v2/core/account_token_create_params.rb +29 -1
  228. data/lib/stripe/params/v2/core/account_update_params.rb +376 -4
  229. data/lib/stripe/params/v2/core/approval_request_cancel_params.rb +10 -0
  230. data/lib/stripe/params/v2/core/approval_request_list_params.rb +47 -0
  231. data/lib/stripe/params/v2/core/approval_request_retrieve_params.rb +10 -0
  232. data/lib/stripe/params/v2/core/approval_request_update_params.rb +17 -0
  233. data/lib/stripe/params/v2/core/batch_job_cancel_params.rb +10 -0
  234. data/lib/stripe/params/v2/core/batch_job_create_params.rb +53 -0
  235. data/lib/stripe/params/v2/core/batch_job_retrieve_params.rb +10 -0
  236. data/lib/stripe/params/v2/core/vault/gb_bank_account_create_params.rb +21 -0
  237. data/lib/stripe/params/v2/data/query_run_create_params.rb +50 -0
  238. data/lib/stripe/params/v2/data/query_run_retrieve_params.rb +23 -0
  239. data/lib/stripe/params/v2/data/report_list_params.rb +23 -0
  240. data/lib/stripe/params/v2/data/report_retrieve_params.rb +17 -0
  241. data/lib/stripe/params/v2/data/report_run_create_params.rb +48 -0
  242. data/lib/stripe/params/v2/data/report_run_retrieve_params.rb +23 -0
  243. data/lib/stripe/params/v2/data/reporting/query_run_create_params.rb +31 -0
  244. data/lib/stripe/params/v2/data/reporting/query_run_retrieve_params.rb +12 -0
  245. data/lib/stripe/params/v2/data/schema_list_params.rb +26 -0
  246. data/lib/stripe/params/v2/data/schema_retrieve_params.rb +10 -0
  247. data/lib/stripe/params/v2/extend/workflow_invoke_params.rb +17 -0
  248. data/lib/stripe/params/v2/extend/workflow_list_params.rb +21 -0
  249. data/lib/stripe/params/v2/extend/workflow_retrieve_params.rb +10 -0
  250. data/lib/stripe/params/v2/extend/workflow_run_list_params.rb +23 -0
  251. data/lib/stripe/params/v2/extend/workflow_run_retrieve_params.rb +10 -0
  252. data/lib/stripe/params/v2/iam/activity_log_list_params.rb +23 -0
  253. data/lib/stripe/params/v2/iam/activity_log_retrieve_params.rb +10 -0
  254. data/lib/stripe/params/v2/money_management/financial_account_close_params.rb +30 -0
  255. data/lib/stripe/params/v2/money_management/financial_account_create_params.rb +35 -0
  256. data/lib/stripe/params/v2/money_management/outbound_payment_create_params.rb +21 -0
  257. data/lib/stripe/params/v2/money_management/outbound_payment_quote_create_params.rb +113 -0
  258. data/lib/stripe/params/v2/money_management/outbound_payment_quote_retrieve_params.rb +10 -0
  259. data/lib/stripe/params/v2/money_management/outbound_setup_intent_create_params.rb +40 -1
  260. data/lib/stripe/params/v2/money_management/outbound_setup_intent_update_params.rb +22 -1
  261. data/lib/stripe/params/v2/money_management/outbound_transfer_cancel_params.rb +10 -0
  262. data/lib/stripe/params/v2/money_management/outbound_transfer_create_params.rb +112 -0
  263. data/lib/stripe/params/v2/money_management/outbound_transfer_list_params.rb +48 -0
  264. data/lib/stripe/params/v2/money_management/outbound_transfer_retrieve_params.rb +10 -0
  265. data/lib/stripe/params/v2/money_management/payout_method_disable_params.rb +10 -0
  266. data/lib/stripe/params/v2/money_management/received_debit_list_params.rb +17 -0
  267. data/lib/stripe/params/v2/money_management/received_debit_retrieve_params.rb +10 -0
  268. data/lib/stripe/params/v2/money_management/test_helpers/financial_address_generate_microdeposits_params.rb +12 -0
  269. data/lib/stripe/params/v2/network/business_profile_me_params.rb +10 -0
  270. data/lib/stripe/params/v2/network/business_profile_retrieve_params.rb +10 -0
  271. data/lib/stripe/params/v2/orchestrated_commerce/agreement_confirm_params.rb +10 -0
  272. data/lib/stripe/params/v2/orchestrated_commerce/agreement_create_params.rb +17 -0
  273. data/lib/stripe/params/v2/orchestrated_commerce/agreement_list_params.rb +20 -0
  274. data/lib/stripe/params/v2/orchestrated_commerce/agreement_retrieve_params.rb +10 -0
  275. data/lib/stripe/params/v2/orchestrated_commerce/agreement_terminate_params.rb +10 -0
  276. data/lib/stripe/params/v2/signals/account_activity_create_params.rb +200 -0
  277. data/lib/stripe/params/v2/signals/account_activity_delete_params.rb +10 -0
  278. data/lib/stripe/params/v2/signals/account_activity_retrieve_params.rb +10 -0
  279. data/lib/stripe/params/v2/signals/account_evaluation_create_params.rb +192 -0
  280. data/lib/stripe/params/v2/signals/account_evaluation_retrieve_params.rb +10 -0
  281. data/lib/stripe/params/v2/signals/account_signal_list_params.rb +35 -0
  282. data/lib/stripe/params/v2/signals/account_signal_retrieve_params.rb +10 -0
  283. data/lib/stripe/params.rb +364 -0
  284. data/lib/stripe/resources/account.rb +176 -1
  285. data/lib/stripe/resources/account_notice.rb +94 -0
  286. data/lib/stripe/resources/account_session.rb +81 -0
  287. data/lib/stripe/resources/balance.rb +83 -0
  288. data/lib/stripe/resources/balance_settings.rb +4 -0
  289. data/lib/stripe/resources/billing/alert_triggered.rb +4 -0
  290. data/lib/stripe/resources/billing/analytics/meter_usage.rb +33 -0
  291. data/lib/stripe/resources/billing/analytics/meter_usage_row.rb +38 -0
  292. data/lib/stripe/resources/capital/financing_offer.rb +144 -0
  293. data/lib/stripe/resources/capital/financing_summary.rb +82 -0
  294. data/lib/stripe/resources/capital/financing_transaction.rb +99 -0
  295. data/lib/stripe/resources/card.rb +18 -1
  296. data/lib/stripe/resources/charge.rb +227 -1
  297. data/lib/stripe/resources/checkout/session.rb +91 -3
  298. data/lib/stripe/resources/confirmation_token.rb +131 -0
  299. data/lib/stripe/resources/coupon.rb +26 -1
  300. data/lib/stripe/resources/credit_note_line_item.rb +18 -0
  301. data/lib/stripe/resources/customer.rb +16 -0
  302. data/lib/stripe/resources/customer_session.rb +36 -0
  303. data/lib/stripe/resources/dispute.rb +18 -0
  304. data/lib/stripe/resources/event.rb +64 -1
  305. data/lib/stripe/resources/financial_connections/account.rb +45 -1
  306. data/lib/stripe/resources/financial_connections/account_inferred_balance.rb +35 -0
  307. data/lib/stripe/resources/financial_connections/authorization.rb +24 -1
  308. data/lib/stripe/resources/financial_connections/institution.rb +127 -0
  309. data/lib/stripe/resources/financial_connections/session.rb +92 -0
  310. data/lib/stripe/resources/fx_quote.rb +149 -0
  311. data/lib/stripe/resources/invoice.rb +106 -1
  312. data/lib/stripe/resources/invoice_item.rb +2 -0
  313. data/lib/stripe/resources/invoice_line_item.rb +40 -0
  314. data/lib/stripe/resources/issuing/authorization.rb +16 -0
  315. data/lib/stripe/resources/issuing/card.rb +16 -0
  316. data/lib/stripe/resources/issuing/cardholder.rb +16 -0
  317. data/lib/stripe/resources/issuing/credit_underwriting_record.rb +263 -0
  318. data/lib/stripe/resources/issuing/dispute.rb +16 -1
  319. data/lib/stripe/resources/issuing/dispute_settlement_detail.rb +71 -0
  320. data/lib/stripe/resources/issuing/fraud_liability_debit.rb +51 -0
  321. data/lib/stripe/resources/issuing/settlement.rb +61 -0
  322. data/lib/stripe/resources/issuing/transaction.rb +18 -0
  323. data/lib/stripe/resources/line_item.rb +42 -0
  324. data/lib/stripe/resources/mandate.rb +12 -0
  325. data/lib/stripe/resources/margin.rb +64 -0
  326. data/lib/stripe/resources/order.rb +927 -0
  327. data/lib/stripe/resources/payment_attempt_record.rb +177 -1
  328. data/lib/stripe/resources/payment_intent.rb +1588 -10
  329. data/lib/stripe/resources/payment_method.rb +151 -0
  330. data/lib/stripe/resources/payment_method_configuration.rb +170 -0
  331. data/lib/stripe/resources/payment_plan.rb +213 -0
  332. data/lib/stripe/resources/payment_record.rb +177 -1
  333. data/lib/stripe/resources/price.rb +20 -0
  334. data/lib/stripe/resources/privacy/redaction_job.rb +189 -0
  335. data/lib/stripe/resources/privacy/redaction_job_validation_error.rb +49 -0
  336. data/lib/stripe/resources/quote.rb +569 -2
  337. data/lib/stripe/resources/quote_line.rb +525 -0
  338. data/lib/stripe/resources/quote_preview_invoice.rb +1241 -0
  339. data/lib/stripe/resources/quote_preview_subscription_schedule.rb +968 -0
  340. data/lib/stripe/resources/radar/billing_evaluation.rb +281 -0
  341. data/lib/stripe/resources/radar/value_list_item.rb +15 -1
  342. data/lib/stripe/resources/refund.rb +18 -0
  343. data/lib/stripe/resources/reserve/hold.rb +7 -0
  344. data/lib/stripe/resources/reserve/plan.rb +7 -0
  345. data/lib/stripe/resources/reserve/release.rb +12 -0
  346. data/lib/stripe/resources/setup_attempt.rb +35 -0
  347. data/lib/stripe/resources/setup_intent.rb +38 -1
  348. data/lib/stripe/resources/shared_payment/granted_token.rb +681 -0
  349. data/lib/stripe/resources/shared_payment/issued_token.rb +310 -0
  350. data/lib/stripe/resources/source.rb +54 -0
  351. data/lib/stripe/resources/subscription.rb +73 -0
  352. data/lib/stripe/resources/subscription_item.rb +22 -1
  353. data/lib/stripe/resources/subscription_schedule.rb +198 -3
  354. data/lib/stripe/resources/tax/form.rb +264 -0
  355. data/lib/stripe/resources/tax/registration.rb +16 -1
  356. data/lib/stripe/resources/terminal/reader.rb +8 -0
  357. data/lib/stripe/resources/terminal/reader_collected_data.rb +47 -0
  358. data/lib/stripe/resources/token.rb +15 -1
  359. data/lib/stripe/resources/transfer.rb +2 -0
  360. data/lib/stripe/resources/treasury/financial_account.rb +2 -0
  361. data/lib/stripe/resources/treasury/financial_account_features.rb +2 -0
  362. data/lib/stripe/resources/treasury/outbound_payment.rb +2 -0
  363. data/lib/stripe/resources/treasury/outbound_transfer.rb +30 -0
  364. data/lib/stripe/resources/treasury/received_credit.rb +30 -0
  365. data/lib/stripe/resources/treasury/received_debit.rb +32 -0
  366. data/lib/stripe/resources/v2/billing/bill_setting.rb +102 -0
  367. data/lib/stripe/resources/v2/billing/bill_setting_version.rb +91 -0
  368. data/lib/stripe/resources/v2/billing/cadence.rb +710 -0
  369. data/lib/stripe/resources/v2/billing/collection_setting.rb +327 -0
  370. data/lib/stripe/resources/v2/billing/collection_setting_version.rb +316 -0
  371. data/lib/stripe/resources/v2/billing/profile.rb +47 -0
  372. data/lib/stripe/resources/v2/core/account.rb +802 -2
  373. data/lib/stripe/resources/v2/core/approval_request.rb +395 -0
  374. data/lib/stripe/resources/v2/core/batch_job.rb +536 -0
  375. data/lib/stripe/resources/v2/core/event_notification.rb +1 -0
  376. data/lib/stripe/resources/v2/core/vault/gb_bank_account.rb +91 -1
  377. data/lib/stripe/resources/v2/core/vault/us_bank_account.rb +26 -1
  378. data/lib/stripe/resources/v2/data/query_run.rb +255 -0
  379. data/lib/stripe/resources/v2/data/report.rb +104 -0
  380. data/lib/stripe/resources/v2/data/report_run.rb +246 -0
  381. data/lib/stripe/resources/v2/data/reporting/query_run.rb +142 -0
  382. data/lib/stripe/resources/v2/data/schema.rb +121 -0
  383. data/lib/stripe/resources/v2/extend/workflow.rb +80 -0
  384. data/lib/stripe/resources/v2/extend/workflow_run.rb +158 -0
  385. data/lib/stripe/resources/v2/iam/activity_log.rb +368 -0
  386. data/lib/stripe/resources/v2/money_management/adjustment.rb +4 -0
  387. data/lib/stripe/resources/v2/money_management/financial_account.rb +50 -1
  388. data/lib/stripe/resources/v2/money_management/financial_address_generated_microdeposits.rb +33 -0
  389. data/lib/stripe/resources/v2/money_management/inbound_transfer.rb +2 -0
  390. data/lib/stripe/resources/v2/money_management/outbound_payment.rb +63 -1
  391. data/lib/stripe/resources/v2/money_management/outbound_payment_quote.rb +255 -0
  392. data/lib/stripe/resources/v2/money_management/outbound_setup_intent.rb +31 -1
  393. data/lib/stripe/resources/v2/money_management/outbound_transfer.rb +260 -0
  394. data/lib/stripe/resources/v2/money_management/payout_method.rb +50 -1
  395. data/lib/stripe/resources/v2/money_management/received_credit.rb +2 -0
  396. data/lib/stripe/resources/v2/money_management/received_debit.rb +137 -0
  397. data/lib/stripe/resources/v2/money_management/recipient_verification.rb +2 -0
  398. data/lib/stripe/resources/v2/network/business_profile.rb +84 -0
  399. data/lib/stripe/resources/v2/orchestrated_commerce/agreement.rb +93 -0
  400. data/lib/stripe/resources/v2/signals/account_activity.rb +252 -0
  401. data/lib/stripe/resources/v2/signals/account_evaluation.rb +249 -0
  402. data/lib/stripe/resources/v2/signals/account_signal.rb +184 -0
  403. data/lib/stripe/resources.rb +341 -0
  404. data/lib/stripe/services/account_notice_service.rb +39 -0
  405. data/lib/stripe/services/account_service.rb +15 -0
  406. data/lib/stripe/services/billing/analytics/meter_usage_service.rb +21 -0
  407. data/lib/stripe/services/billing/analytics_service.rb +15 -0
  408. data/lib/stripe/services/billing_service.rb +2 -1
  409. data/lib/stripe/services/capital/financing_offer_service.rb +42 -0
  410. data/lib/stripe/services/capital/financing_summary_service.rb +19 -0
  411. data/lib/stripe/services/capital/financing_transaction_service.rb +31 -0
  412. data/lib/stripe/services/capital_service.rb +15 -0
  413. data/lib/stripe/services/coupon_service.rb +14 -0
  414. data/lib/stripe/services/customer_service.rb +15 -0
  415. data/lib/stripe/services/external_account_service.rb +68 -0
  416. data/lib/stripe/services/financial_connections/account_inferred_balance_service.rb +19 -0
  417. data/lib/stripe/services/financial_connections/account_service.rb +3 -1
  418. data/lib/stripe/services/financial_connections/authorization_service.rb +19 -0
  419. data/lib/stripe/services/financial_connections/institution_service.rb +30 -0
  420. data/lib/stripe/services/financial_connections_service.rb +3 -1
  421. data/lib/stripe/services/fx_quote_service.rb +27 -0
  422. data/lib/stripe/services/invoice_service.rb +11 -0
  423. data/lib/stripe/services/issuing/credit_underwriting_record_service.rb +74 -0
  424. data/lib/stripe/services/issuing/dispute_settlement_detail_service.rb +30 -0
  425. data/lib/stripe/services/issuing/fraud_liability_debit_service.rb +30 -0
  426. data/lib/stripe/services/issuing_service.rb +5 -1
  427. data/lib/stripe/services/mandate_service.rb +5 -0
  428. data/lib/stripe/services/margin_service.rb +50 -0
  429. data/lib/stripe/services/order_service.rb +53 -0
  430. data/lib/stripe/services/payment_intent_service.rb +37 -0
  431. data/lib/stripe/services/payment_plan_service.rb +50 -0
  432. data/lib/stripe/services/privacy/redaction_job_service.rb +104 -0
  433. data/lib/stripe/services/privacy/redaction_job_validation_error_service.rb +19 -0
  434. data/lib/stripe/services/privacy_service.rb +13 -0
  435. data/lib/stripe/services/promotion_code_service.rb +29 -0
  436. data/lib/stripe/services/quote_line_service.rb +17 -0
  437. data/lib/stripe/services/quote_preview_invoice_service.rb +17 -0
  438. data/lib/stripe/services/quote_preview_subscription_schedule_service.rb +17 -0
  439. data/lib/stripe/services/quote_service.rb +49 -1
  440. data/lib/stripe/services/radar/billing_evaluation_service.rb +19 -0
  441. data/lib/stripe/services/radar_service.rb +2 -1
  442. data/lib/stripe/services/reserve/hold_service.rb +30 -0
  443. data/lib/stripe/services/reserve/plan_service.rb +30 -0
  444. data/lib/stripe/services/reserve/release_service.rb +30 -0
  445. data/lib/stripe/services/reserve_service.rb +15 -0
  446. data/lib/stripe/services/shared_payment/granted_token_service.rb +19 -0
  447. data/lib/stripe/services/shared_payment/issued_token_service.rb +41 -0
  448. data/lib/stripe/services/shared_payment_service.rb +14 -0
  449. data/lib/stripe/services/subscription_schedule_service.rb +11 -0
  450. data/lib/stripe/services/subscription_service.rb +45 -0
  451. data/lib/stripe/services/tax/form_service.rb +37 -0
  452. data/lib/stripe/services/tax_service.rb +2 -1
  453. data/lib/stripe/services/terminal/reader_collected_data_service.rb +19 -0
  454. data/lib/stripe/services/terminal_service.rb +2 -1
  455. data/lib/stripe/services/test_helpers/shared_payment/granted_token_service.rb +32 -0
  456. data/lib/stripe/services/test_helpers/shared_payment_service.rb +15 -0
  457. data/lib/stripe/services/test_helpers_service.rb +2 -1
  458. data/lib/stripe/services/v1_services.rb +11 -1
  459. data/lib/stripe/services/v2/billing/bill_setting_service.rb +61 -0
  460. data/lib/stripe/services/v2/billing/bill_settings/version_service.rb +34 -0
  461. data/lib/stripe/services/v2/billing/cadence_service.rb +65 -0
  462. data/lib/stripe/services/v2/billing/collection_setting_service.rb +69 -0
  463. data/lib/stripe/services/v2/billing/collection_settings/version_service.rb +34 -0
  464. data/lib/stripe/services/v2/billing/profile_service.rb +54 -0
  465. data/lib/stripe/services/v2/billing_service.rb +5 -1
  466. data/lib/stripe/services/v2/core/approval_request_service.rb +58 -0
  467. data/lib/stripe/services/v2/core/batch_job_service.rb +43 -0
  468. data/lib/stripe/services/v2/core_service.rb +3 -1
  469. data/lib/stripe/services/v2/data/query_run_service.rb +34 -0
  470. data/lib/stripe/services/v2/data/report_run_service.rb +36 -0
  471. data/lib/stripe/services/v2/data/report_service.rb +34 -0
  472. data/lib/stripe/services/v2/data/reporting/query_run_service.rb +35 -0
  473. data/lib/stripe/services/v2/data/reporting_service.rb +17 -0
  474. data/lib/stripe/services/v2/data/schema_service.rb +32 -0
  475. data/lib/stripe/services/v2/data_service.rb +19 -0
  476. data/lib/stripe/services/v2/extend/workflow_run_service.rb +32 -0
  477. data/lib/stripe/services/v2/extend/workflow_service.rb +45 -0
  478. data/lib/stripe/services/v2/extend_service.rb +16 -0
  479. data/lib/stripe/services/v2/iam/activity_log_service.rb +32 -0
  480. data/lib/stripe/services/v2/iam_service.rb +15 -0
  481. data/lib/stripe/services/v2/money_management/financial_account_service.rb +27 -0
  482. data/lib/stripe/services/v2/money_management/outbound_payment_quote_service.rb +35 -0
  483. data/lib/stripe/services/v2/money_management/outbound_transfer_service.rb +61 -0
  484. data/lib/stripe/services/v2/money_management/payout_method_service.rb +15 -0
  485. data/lib/stripe/services/v2/money_management/received_debit_service.rb +32 -0
  486. data/lib/stripe/services/v2/money_management/test_helpers/financial_address_service.rb +13 -0
  487. data/lib/stripe/services/v2/money_management_service.rb +5 -1
  488. data/lib/stripe/services/v2/network/business_profile_service.rb +32 -0
  489. data/lib/stripe/services/v2/network_service.rb +15 -0
  490. data/lib/stripe/services/v2/orchestrated_commerce/agreement_service.rb +65 -0
  491. data/lib/stripe/services/v2/orchestrated_commerce_service.rb +15 -0
  492. data/lib/stripe/services/v2/signals/account_activity_service.rb +43 -0
  493. data/lib/stripe/services/v2/signals/account_evaluation_service.rb +32 -0
  494. data/lib/stripe/services/v2/signals/account_signal_service.rb +32 -0
  495. data/lib/stripe/services/v2/signals_service.rb +17 -0
  496. data/lib/stripe/services/v2_services.rb +7 -1
  497. data/lib/stripe/services.rb +181 -0
  498. data/lib/stripe/stripe_client.rb +4 -1
  499. data/lib/stripe/stripe_configuration.rb +3 -1
  500. data/lib/stripe/stripe_event_notification_handler.rb +216 -0
  501. data/lib/stripe/stripe_object.rb +1 -1
  502. data/lib/stripe/util.rb +7 -1
  503. data/lib/stripe/version.rb +1 -1
  504. data/lib/stripe.rb +53 -0
  505. data/rbi/stripe/resources/v2/core/event_notification.rbi +2 -0
  506. data/rbi/stripe.rbi +133319 -66595
  507. metadata +331 -3
@@ -218,6 +218,15 @@ module Stripe
218
218
  end
219
219
  end
220
220
 
221
+ class AutomaticIndirectTax < ::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
+
221
230
  class BacsDebitPayments < ::Stripe::RequestParams
222
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.
223
232
  attr_accessor :requested
@@ -371,6 +380,15 @@ module Stripe
371
380
  end
372
381
  end
373
382
 
383
+ class GopayPayments < ::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
+
374
392
  class GrabpayPayments < ::Stripe::RequestParams
375
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.
376
394
  attr_accessor :requested
@@ -380,6 +398,24 @@ module Stripe
380
398
  end
381
399
  end
382
400
 
401
+ class IdBankTransferPayments < ::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 IdBankTransferPaymentsBca < ::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
+
383
419
  class IdealPayments < ::Stripe::RequestParams
384
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.
385
421
  attr_accessor :requested
@@ -569,6 +605,15 @@ module Stripe
569
605
  end
570
606
  end
571
607
 
608
+ class PaypalPayments < ::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
+
572
617
  class PaypayPayments < ::Stripe::RequestParams
573
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.
574
619
  attr_accessor :requested
@@ -605,6 +650,24 @@ module Stripe
605
650
  end
606
651
  end
607
652
 
653
+ class QrisPayments < ::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 RechnungPayments < ::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
+
608
671
  class RevolutPayPayments < ::Stripe::RequestParams
609
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.
610
673
  attr_accessor :requested
@@ -668,6 +731,15 @@ module Stripe
668
731
  end
669
732
  end
670
733
 
734
+ class ShopeepayPayments < ::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
+
671
743
  class SofortPayments < ::Stripe::RequestParams
672
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.
673
745
  attr_accessor :requested
@@ -677,6 +749,15 @@ module Stripe
677
749
  end
678
750
  end
679
751
 
752
+ class StripeBalancePayments < ::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
+
680
761
  class SunbitPayments < ::Stripe::RequestParams
681
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.
682
763
  attr_accessor :requested
@@ -731,6 +812,33 @@ module Stripe
731
812
  end
732
813
  end
733
814
 
815
+ class TreasuryEvolve < ::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
+
824
+ class TreasuryFifthThird < ::Stripe::RequestParams
825
+ # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
826
+ attr_accessor :requested
827
+
828
+ def initialize(requested: nil)
829
+ @requested = requested
830
+ end
831
+ end
832
+
833
+ class TreasuryGoldmanSachs < ::Stripe::RequestParams
834
+ # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
835
+ attr_accessor :requested
836
+
837
+ def initialize(requested: nil)
838
+ @requested = requested
839
+ end
840
+ end
841
+
734
842
  class TwintPayments < ::Stripe::RequestParams
735
843
  # Passing true requests the capability for the account, if it 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
844
  attr_accessor :requested
@@ -798,6 +906,8 @@ module Stripe
798
906
  attr_accessor :app_distribution
799
907
  # The au_becs_debit_payments capability.
800
908
  attr_accessor :au_becs_debit_payments
909
+ # The automatic_indirect_tax capability.
910
+ attr_accessor :automatic_indirect_tax
801
911
  # The bacs_debit_payments capability.
802
912
  attr_accessor :bacs_debit_payments
803
913
  # The bancontact_payments capability.
@@ -832,8 +942,14 @@ module Stripe
832
942
  attr_accessor :gb_bank_transfer_payments
833
943
  # The giropay_payments capability.
834
944
  attr_accessor :giropay_payments
945
+ # The gopay_payments capability.
946
+ attr_accessor :gopay_payments
835
947
  # The grabpay_payments capability.
836
948
  attr_accessor :grabpay_payments
949
+ # The id_bank_transfer_payments capability.
950
+ attr_accessor :id_bank_transfer_payments
951
+ # The id_bank_transfer_payments_bca capability.
952
+ attr_accessor :id_bank_transfer_payments_bca
837
953
  # The ideal_payments capability.
838
954
  attr_accessor :ideal_payments
839
955
  # The india_international_payments capability.
@@ -876,6 +992,8 @@ module Stripe
876
992
  attr_accessor :payco_payments
877
993
  # The paynow_payments capability.
878
994
  attr_accessor :paynow_payments
995
+ # The paypal_payments capability.
996
+ attr_accessor :paypal_payments
879
997
  # The paypay_payments capability.
880
998
  attr_accessor :paypay_payments
881
999
  # The payto_payments capability.
@@ -884,6 +1002,10 @@ module Stripe
884
1002
  attr_accessor :pix_payments
885
1003
  # The promptpay_payments capability.
886
1004
  attr_accessor :promptpay_payments
1005
+ # The qris_payments capability.
1006
+ attr_accessor :qris_payments
1007
+ # The rechnung_payments capability.
1008
+ attr_accessor :rechnung_payments
887
1009
  # The revolut_pay_payments capability.
888
1010
  attr_accessor :revolut_pay_payments
889
1011
  # The samsung_pay_payments capability.
@@ -898,8 +1020,12 @@ module Stripe
898
1020
  attr_accessor :sepa_debit_payments
899
1021
  # The sequra_payments capability.
900
1022
  attr_accessor :sequra_payments
1023
+ # The shopeepay_payments capability.
1024
+ attr_accessor :shopeepay_payments
901
1025
  # The sofort_payments capability.
902
1026
  attr_accessor :sofort_payments
1027
+ # The stripe_balance_payments capability.
1028
+ attr_accessor :stripe_balance_payments
903
1029
  # The sunbit_payments capability.
904
1030
  attr_accessor :sunbit_payments
905
1031
  # The swish_payments capability.
@@ -912,6 +1038,12 @@ module Stripe
912
1038
  attr_accessor :transfers
913
1039
  # The treasury capability.
914
1040
  attr_accessor :treasury
1041
+ # The treasury_evolve capability.
1042
+ attr_accessor :treasury_evolve
1043
+ # The treasury_fifth_third capability.
1044
+ attr_accessor :treasury_fifth_third
1045
+ # The treasury_goldman_sachs capability.
1046
+ attr_accessor :treasury_goldman_sachs
915
1047
  # The twint_payments capability.
916
1048
  attr_accessor :twint_payments
917
1049
  # The upi_payments capability.
@@ -933,6 +1065,7 @@ module Stripe
933
1065
  amazon_pay_payments: nil,
934
1066
  app_distribution: nil,
935
1067
  au_becs_debit_payments: nil,
1068
+ automatic_indirect_tax: nil,
936
1069
  bacs_debit_payments: nil,
937
1070
  bancontact_payments: nil,
938
1071
  bank_transfer_payments: nil,
@@ -950,7 +1083,10 @@ module Stripe
950
1083
  fpx_payments: nil,
951
1084
  gb_bank_transfer_payments: nil,
952
1085
  giropay_payments: nil,
1086
+ gopay_payments: nil,
953
1087
  grabpay_payments: nil,
1088
+ id_bank_transfer_payments: nil,
1089
+ id_bank_transfer_payments_bca: nil,
954
1090
  ideal_payments: nil,
955
1091
  india_international_payments: nil,
956
1092
  jcb_payments: nil,
@@ -972,10 +1108,13 @@ module Stripe
972
1108
  pay_by_bank_payments: nil,
973
1109
  payco_payments: nil,
974
1110
  paynow_payments: nil,
1111
+ paypal_payments: nil,
975
1112
  paypay_payments: nil,
976
1113
  payto_payments: nil,
977
1114
  pix_payments: nil,
978
1115
  promptpay_payments: nil,
1116
+ qris_payments: nil,
1117
+ rechnung_payments: nil,
979
1118
  revolut_pay_payments: nil,
980
1119
  samsung_pay_payments: nil,
981
1120
  satispay_payments: nil,
@@ -983,13 +1122,18 @@ module Stripe
983
1122
  sepa_bank_transfer_payments: nil,
984
1123
  sepa_debit_payments: nil,
985
1124
  sequra_payments: nil,
1125
+ shopeepay_payments: nil,
986
1126
  sofort_payments: nil,
1127
+ stripe_balance_payments: nil,
987
1128
  sunbit_payments: nil,
988
1129
  swish_payments: nil,
989
1130
  tax_reporting_us_1099_k: nil,
990
1131
  tax_reporting_us_1099_misc: nil,
991
1132
  transfers: nil,
992
1133
  treasury: nil,
1134
+ treasury_evolve: nil,
1135
+ treasury_fifth_third: nil,
1136
+ treasury_goldman_sachs: nil,
993
1137
  twint_payments: nil,
994
1138
  upi_payments: nil,
995
1139
  us_bank_account_ach_payments: nil,
@@ -1004,6 +1148,7 @@ module Stripe
1004
1148
  @amazon_pay_payments = amazon_pay_payments
1005
1149
  @app_distribution = app_distribution
1006
1150
  @au_becs_debit_payments = au_becs_debit_payments
1151
+ @automatic_indirect_tax = automatic_indirect_tax
1007
1152
  @bacs_debit_payments = bacs_debit_payments
1008
1153
  @bancontact_payments = bancontact_payments
1009
1154
  @bank_transfer_payments = bank_transfer_payments
@@ -1021,7 +1166,10 @@ module Stripe
1021
1166
  @fpx_payments = fpx_payments
1022
1167
  @gb_bank_transfer_payments = gb_bank_transfer_payments
1023
1168
  @giropay_payments = giropay_payments
1169
+ @gopay_payments = gopay_payments
1024
1170
  @grabpay_payments = grabpay_payments
1171
+ @id_bank_transfer_payments = id_bank_transfer_payments
1172
+ @id_bank_transfer_payments_bca = id_bank_transfer_payments_bca
1025
1173
  @ideal_payments = ideal_payments
1026
1174
  @india_international_payments = india_international_payments
1027
1175
  @jcb_payments = jcb_payments
@@ -1043,10 +1191,13 @@ module Stripe
1043
1191
  @pay_by_bank_payments = pay_by_bank_payments
1044
1192
  @payco_payments = payco_payments
1045
1193
  @paynow_payments = paynow_payments
1194
+ @paypal_payments = paypal_payments
1046
1195
  @paypay_payments = paypay_payments
1047
1196
  @payto_payments = payto_payments
1048
1197
  @pix_payments = pix_payments
1049
1198
  @promptpay_payments = promptpay_payments
1199
+ @qris_payments = qris_payments
1200
+ @rechnung_payments = rechnung_payments
1050
1201
  @revolut_pay_payments = revolut_pay_payments
1051
1202
  @samsung_pay_payments = samsung_pay_payments
1052
1203
  @satispay_payments = satispay_payments
@@ -1054,13 +1205,18 @@ module Stripe
1054
1205
  @sepa_bank_transfer_payments = sepa_bank_transfer_payments
1055
1206
  @sepa_debit_payments = sepa_debit_payments
1056
1207
  @sequra_payments = sequra_payments
1208
+ @shopeepay_payments = shopeepay_payments
1057
1209
  @sofort_payments = sofort_payments
1210
+ @stripe_balance_payments = stripe_balance_payments
1058
1211
  @sunbit_payments = sunbit_payments
1059
1212
  @swish_payments = swish_payments
1060
1213
  @tax_reporting_us_1099_k = tax_reporting_us_1099_k
1061
1214
  @tax_reporting_us_1099_misc = tax_reporting_us_1099_misc
1062
1215
  @transfers = transfers
1063
1216
  @treasury = treasury
1217
+ @treasury_evolve = treasury_evolve
1218
+ @treasury_fifth_third = treasury_fifth_third
1219
+ @treasury_goldman_sachs = treasury_goldman_sachs
1064
1220
  @twint_payments = twint_payments
1065
1221
  @upi_payments = upi_payments
1066
1222
  @us_bank_account_ach_payments = us_bank_account_ach_payments
@@ -1539,6 +1695,30 @@ module Stripe
1539
1695
  end
1540
1696
 
1541
1697
  class Controller < ::Stripe::RequestParams
1698
+ class Application < ::Stripe::RequestParams
1699
+ # Whether the controller is liable for losses on this account. For details, see [Understanding Connect Account Balances](https://docs.stripe.com/connect/account-balances).
1700
+ attr_accessor :loss_liable
1701
+ # Whether the controller owns onboarding for this account.
1702
+ attr_accessor :onboarding_owner
1703
+ # Whether the controller has pricing controls for this account.
1704
+ attr_accessor :pricing_controls
1705
+
1706
+ def initialize(loss_liable: nil, onboarding_owner: nil, pricing_controls: nil)
1707
+ @loss_liable = loss_liable
1708
+ @onboarding_owner = onboarding_owner
1709
+ @pricing_controls = pricing_controls
1710
+ end
1711
+ end
1712
+
1713
+ class Dashboard < ::Stripe::RequestParams
1714
+ # 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`.
1715
+ attr_accessor :type
1716
+
1717
+ def initialize(type: nil)
1718
+ @type = type
1719
+ end
1720
+ end
1721
+
1542
1722
  class Fees < ::Stripe::RequestParams
1543
1723
  # Controls who pays Stripe fees for direct charges and other pricing-control-eligible Stripe products. Setting `controller.losses.payments=application` requires `controller.fees.payer=application`. For destination charges and separate charges and transfers, Stripe bills the platform regardless of this setting. Defaults to `account`. Learn more about [fee behavior on connected accounts](https://docs.stripe.com/connect/direct-charges-fee-payer-behavior), including application fees and pricing considerations.
1544
1724
  attr_accessor :payer
@@ -1565,6 +1745,10 @@ module Stripe
1565
1745
  @type = type
1566
1746
  end
1567
1747
  end
1748
+ # A hash of configuration describing the Connect application that controls the account.
1749
+ attr_accessor :application
1750
+ # Properties of the account's dashboard.
1751
+ attr_accessor :dashboard
1568
1752
  # A hash of configuration for who pays Stripe fees for product usage on this account.
1569
1753
  attr_accessor :fees
1570
1754
  # A hash of configuration for products that have negative balance liability, and whether Stripe or a Connect application is responsible for them.
@@ -1574,7 +1758,16 @@ module Stripe
1574
1758
  # A hash of configuration for Stripe-hosted dashboards.
1575
1759
  attr_accessor :stripe_dashboard
1576
1760
 
1577
- def initialize(fees: nil, losses: nil, requirement_collection: nil, stripe_dashboard: nil)
1761
+ def initialize(
1762
+ application: nil,
1763
+ dashboard: nil,
1764
+ fees: nil,
1765
+ losses: nil,
1766
+ requirement_collection: nil,
1767
+ stripe_dashboard: nil
1768
+ )
1769
+ @application = application
1770
+ @dashboard = dashboard
1578
1771
  @fees = fees
1579
1772
  @losses = losses
1580
1773
  @requirement_collection = requirement_collection
@@ -2032,6 +2225,37 @@ module Stripe
2032
2225
  end
2033
2226
  end
2034
2227
 
2228
+ class RiskControls < ::Stripe::RequestParams
2229
+ class Charges < ::Stripe::RequestParams
2230
+ # To request to pause a risk control, pass `true`. To request to unpause a risk control, pass `false`.
2231
+ # There can be a delay before the risk control is paused or unpaused.
2232
+ attr_accessor :pause_requested
2233
+
2234
+ def initialize(pause_requested: nil)
2235
+ @pause_requested = pause_requested
2236
+ end
2237
+ end
2238
+
2239
+ class Payouts < ::Stripe::RequestParams
2240
+ # To request to pause a risk control, pass `true`. To request to unpause a risk control, pass `false`.
2241
+ # There can be a delay before the risk control is paused or unpaused.
2242
+ attr_accessor :pause_requested
2243
+
2244
+ def initialize(pause_requested: nil)
2245
+ @pause_requested = pause_requested
2246
+ end
2247
+ end
2248
+ # 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).
2249
+ attr_accessor :charges
2250
+ # 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).
2251
+ attr_accessor :payouts
2252
+
2253
+ def initialize(charges: nil, payouts: nil)
2254
+ @charges = charges
2255
+ @payouts = payouts
2256
+ end
2257
+ end
2258
+
2035
2259
  class Settings < ::Stripe::RequestParams
2036
2260
  class BacsDebitPayments < ::Stripe::RequestParams
2037
2261
  # 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.
@@ -2042,6 +2266,18 @@ module Stripe
2042
2266
  end
2043
2267
  end
2044
2268
 
2269
+ class BankBcaOnboarding < ::Stripe::RequestParams
2270
+ # Bank BCA business account holder name
2271
+ attr_accessor :account_holder_name
2272
+ # Bank BCA business account number
2273
+ attr_accessor :business_account_number
2274
+
2275
+ def initialize(account_holder_name: nil, business_account_number: nil)
2276
+ @account_holder_name = account_holder_name
2277
+ @business_account_number = business_account_number
2278
+ end
2279
+ end
2280
+
2045
2281
  class Branding < ::Stripe::RequestParams
2046
2282
  # (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.
2047
2283
  attr_accessor :icon
@@ -2060,6 +2296,18 @@ module Stripe
2060
2296
  end
2061
2297
  end
2062
2298
 
2299
+ class Capital < ::Stripe::RequestParams
2300
+ # Per-currency mapping of user-selected destination accounts used to pay out loans.
2301
+ attr_accessor :payout_destination
2302
+ # Per-currency mapping of all destination accounts eligible to receive Capital financing payouts.
2303
+ attr_accessor :payout_destination_selector
2304
+
2305
+ def initialize(payout_destination: nil, payout_destination_selector: nil)
2306
+ @payout_destination = payout_destination
2307
+ @payout_destination_selector = payout_destination_selector
2308
+ end
2309
+ end
2310
+
2063
2311
  class CardIssuing < ::Stripe::RequestParams
2064
2312
  class TosAcceptance < ::Stripe::RequestParams
2065
2313
  # The Unix timestamp marking when the account representative accepted the service agreement.
@@ -2127,6 +2375,8 @@ module Stripe
2127
2375
  end
2128
2376
 
2129
2377
  class Payments < ::Stripe::RequestParams
2378
+ # When you enable this parameter, the customer of this Account receives an email receipt when their payment succeeds. If this parameter isn't set, the default value is `false`.
2379
+ attr_accessor :email_customers_on_successful_payment
2130
2380
  # 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).
2131
2381
  attr_accessor :statement_descriptor
2132
2382
  # 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).
@@ -2135,10 +2385,12 @@ module Stripe
2135
2385
  attr_accessor :statement_descriptor_kanji
2136
2386
 
2137
2387
  def initialize(
2388
+ email_customers_on_successful_payment: nil,
2138
2389
  statement_descriptor: nil,
2139
2390
  statement_descriptor_kana: nil,
2140
2391
  statement_descriptor_kanji: nil
2141
2392
  )
2393
+ @email_customers_on_successful_payment = email_customers_on_successful_payment
2142
2394
  @statement_descriptor = statement_descriptor
2143
2395
  @statement_descriptor_kana = statement_descriptor_kana
2144
2396
  @statement_descriptor_kanji = statement_descriptor_kanji
@@ -2253,6 +2505,32 @@ module Stripe
2253
2505
  end
2254
2506
  end
2255
2507
 
2508
+ class SmartDisputes < ::Stripe::RequestParams
2509
+ class AutoRespond < ::Stripe::RequestParams
2510
+ # The preference setting for auto-respond. Can be 'on', 'off', or 'inherit'.
2511
+ attr_accessor :preference
2512
+
2513
+ def initialize(preference: nil)
2514
+ @preference = preference
2515
+ end
2516
+ end
2517
+ # Smart Disputes auto-respond settings for the account.
2518
+ attr_accessor :auto_respond
2519
+
2520
+ def initialize(auto_respond: nil)
2521
+ @auto_respond = auto_respond
2522
+ end
2523
+ end
2524
+
2525
+ class TaxForms < ::Stripe::RequestParams
2526
+ # Whether the account opted out of receiving their tax forms by postal delivery.
2527
+ attr_accessor :consented_to_paperless_delivery
2528
+
2529
+ def initialize(consented_to_paperless_delivery: nil)
2530
+ @consented_to_paperless_delivery = consented_to_paperless_delivery
2531
+ end
2532
+ end
2533
+
2256
2534
  class Treasury < ::Stripe::RequestParams
2257
2535
  class TosAcceptance < ::Stripe::RequestParams
2258
2536
  # The Unix timestamp marking when the account representative accepted the service agreement.
@@ -2277,8 +2555,12 @@ module Stripe
2277
2555
  end
2278
2556
  # Settings specific to Bacs Direct Debit.
2279
2557
  attr_accessor :bacs_debit_payments
2558
+ # Settings specific to bank BCA onboarding for Indonesia bank transfers payments method.
2559
+ attr_accessor :bank_bca_onboarding
2280
2560
  # Settings used to apply the account's branding to email receipts, invoices, Checkout, and other products.
2281
2561
  attr_accessor :branding
2562
+ # Settings specific to the account's use of the Capital product.
2563
+ attr_accessor :capital
2282
2564
  # Settings specific to the account's use of the Card Issuing product.
2283
2565
  attr_accessor :card_issuing
2284
2566
  # Settings specific to card charging on the account.
@@ -2293,12 +2575,18 @@ module Stripe
2293
2575
  attr_accessor :paypay_payments
2294
2576
  # Settings specific to SEPA Direct Debit payments.
2295
2577
  attr_accessor :sepa_debit_payments
2578
+ # Settings specific to the account's use of Smart Disputes.
2579
+ attr_accessor :smart_disputes
2580
+ # Settings specific to the account's tax forms.
2581
+ attr_accessor :tax_forms
2296
2582
  # Settings specific to the account's Treasury FinancialAccounts.
2297
2583
  attr_accessor :treasury
2298
2584
 
2299
2585
  def initialize(
2300
2586
  bacs_debit_payments: nil,
2587
+ bank_bca_onboarding: nil,
2301
2588
  branding: nil,
2589
+ capital: nil,
2302
2590
  card_issuing: nil,
2303
2591
  card_payments: nil,
2304
2592
  invoices: nil,
@@ -2306,10 +2594,14 @@ module Stripe
2306
2594
  payouts: nil,
2307
2595
  paypay_payments: nil,
2308
2596
  sepa_debit_payments: nil,
2597
+ smart_disputes: nil,
2598
+ tax_forms: nil,
2309
2599
  treasury: nil
2310
2600
  )
2311
2601
  @bacs_debit_payments = bacs_debit_payments
2602
+ @bank_bca_onboarding = bank_bca_onboarding
2312
2603
  @branding = branding
2604
+ @capital = capital
2313
2605
  @card_issuing = card_issuing
2314
2606
  @card_payments = card_payments
2315
2607
  @invoices = invoices
@@ -2317,6 +2609,8 @@ module Stripe
2317
2609
  @payouts = payouts
2318
2610
  @paypay_payments = paypay_payments
2319
2611
  @sepa_debit_payments = sepa_debit_payments
2612
+ @smart_disputes = smart_disputes
2613
+ @tax_forms = tax_forms
2320
2614
  @treasury = treasury
2321
2615
  end
2322
2616
  end
@@ -2375,6 +2669,8 @@ module Stripe
2375
2669
  attr_accessor :individual
2376
2670
  # 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`.
2377
2671
  attr_accessor :metadata
2672
+ # A hash to configure risk controls on the account. Please see [this page for more details](/connect/pausing-payments-or-payouts-on-connected-accounts).
2673
+ attr_accessor :risk_controls
2378
2674
  # Options for customizing how the account functions within Stripe.
2379
2675
  attr_accessor :settings
2380
2676
  # 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.
@@ -2398,6 +2694,7 @@ module Stripe
2398
2694
  groups: nil,
2399
2695
  individual: nil,
2400
2696
  metadata: nil,
2697
+ risk_controls: nil,
2401
2698
  settings: nil,
2402
2699
  tos_acceptance: nil,
2403
2700
  type: nil
@@ -2417,6 +2714,7 @@ module Stripe
2417
2714
  @groups = groups
2418
2715
  @individual = individual
2419
2716
  @metadata = metadata
2717
+ @risk_controls = risk_controls
2420
2718
  @settings = settings
2421
2719
  @tos_acceptance = tos_acceptance
2422
2720
  @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