stripe 18.2.0.pre.beta.1 → 18.3.0.pre.alpha.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 (462) hide show
  1. checksums.yaml +4 -4
  2. data/lib/stripe/api_requestor.rb +3 -1
  3. data/lib/stripe/errors.rb +3 -0
  4. data/lib/stripe/event_types.rb +360 -0
  5. data/lib/stripe/events/v2_billing_cadence_billed_event.rb +61 -0
  6. data/lib/stripe/events/v2_billing_cadence_canceled_event.rb +44 -0
  7. data/lib/stripe/events/v2_billing_cadence_created_event.rb +61 -0
  8. data/lib/stripe/events/v2_billing_license_fee_created_event.rb +44 -0
  9. data/lib/stripe/events/v2_billing_license_fee_updated_event.rb +44 -0
  10. data/lib/stripe/events/v2_billing_license_fee_version_created_event.rb +61 -0
  11. data/lib/stripe/events/v2_billing_licensed_item_created_event.rb +44 -0
  12. data/lib/stripe/events/v2_billing_licensed_item_updated_event.rb +44 -0
  13. data/lib/stripe/events/v2_billing_metered_item_created_event.rb +44 -0
  14. data/lib/stripe/events/v2_billing_metered_item_updated_event.rb +44 -0
  15. data/lib/stripe/events/v2_billing_pricing_plan_component_created_event.rb +61 -0
  16. data/lib/stripe/events/v2_billing_pricing_plan_component_updated_event.rb +61 -0
  17. data/lib/stripe/events/v2_billing_pricing_plan_created_event.rb +44 -0
  18. data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_awaiting_customer_action_event.rb +44 -0
  19. data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_current_event.rb +44 -0
  20. data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_past_due_event.rb +44 -0
  21. data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_paused_event.rb +44 -0
  22. data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_unpaid_event.rb +44 -0
  23. data/lib/stripe/events/v2_billing_pricing_plan_subscription_servicing_activated_event.rb +44 -0
  24. data/lib/stripe/events/v2_billing_pricing_plan_subscription_servicing_canceled_event.rb +44 -0
  25. data/lib/stripe/events/v2_billing_pricing_plan_subscription_servicing_paused_event.rb +44 -0
  26. data/lib/stripe/events/v2_billing_pricing_plan_updated_event.rb +44 -0
  27. data/lib/stripe/events/v2_billing_pricing_plan_version_created_event.rb +61 -0
  28. data/lib/stripe/events/v2_billing_rate_card_created_event.rb +61 -0
  29. data/lib/stripe/events/v2_billing_rate_card_rate_created_event.rb +67 -0
  30. data/lib/stripe/events/v2_billing_rate_card_subscription_activated_event.rb +44 -0
  31. data/lib/stripe/events/v2_billing_rate_card_subscription_canceled_event.rb +44 -0
  32. data/lib/stripe/events/v2_billing_rate_card_subscription_collection_awaiting_customer_action_event.rb +44 -0
  33. data/lib/stripe/events/v2_billing_rate_card_subscription_collection_current_event.rb +44 -0
  34. data/lib/stripe/events/v2_billing_rate_card_subscription_collection_past_due_event.rb +44 -0
  35. data/lib/stripe/events/v2_billing_rate_card_subscription_collection_paused_event.rb +44 -0
  36. data/lib/stripe/events/v2_billing_rate_card_subscription_collection_unpaid_event.rb +44 -0
  37. data/lib/stripe/events/v2_billing_rate_card_subscription_servicing_activated_event.rb +44 -0
  38. data/lib/stripe/events/v2_billing_rate_card_subscription_servicing_canceled_event.rb +44 -0
  39. data/lib/stripe/events/v2_billing_rate_card_subscription_servicing_paused_event.rb +44 -0
  40. data/lib/stripe/events/v2_billing_rate_card_updated_event.rb +44 -0
  41. data/lib/stripe/events/v2_billing_rate_card_version_created_event.rb +61 -0
  42. data/lib/stripe/events/v2_core_account_including_configuration_card_creator_capability_status_updated_event.rb +63 -0
  43. data/lib/stripe/events/v2_core_account_including_configuration_card_creator_updated_event.rb +44 -0
  44. data/lib/stripe/events/v2_core_account_including_future_requirements_updated_event.rb +44 -0
  45. data/lib/stripe/events/v2_core_claimable_sandbox_claimed_event.rb +44 -0
  46. data/lib/stripe/events/v2_core_claimable_sandbox_created_event.rb +44 -0
  47. data/lib/stripe/events/v2_core_claimable_sandbox_expired_event.rb +44 -0
  48. data/lib/stripe/events/v2_core_claimable_sandbox_expiring_event.rb +44 -0
  49. data/lib/stripe/events/v2_core_claimable_sandbox_sandbox_details_owner_account_updated_event.rb +44 -0
  50. data/lib/stripe/events/v2_core_health_api_error_firing_event.rb +86 -0
  51. data/lib/stripe/events/v2_core_health_api_error_resolved_event.rb +86 -0
  52. data/lib/stripe/events/v2_core_health_api_latency_firing_event.rb +84 -0
  53. data/lib/stripe/events/v2_core_health_api_latency_resolved_event.rb +84 -0
  54. data/lib/stripe/events/v2_core_health_authorization_rate_drop_firing_event.rb +80 -0
  55. data/lib/stripe/events/v2_core_health_authorization_rate_drop_resolved_event.rb +80 -0
  56. data/lib/stripe/events/v2_core_health_fraud_rate_increased_event.rb +78 -0
  57. data/lib/stripe/events/v2_core_health_issuing_authorization_request_errors_firing_event.rb +91 -0
  58. data/lib/stripe/events/v2_core_health_issuing_authorization_request_errors_resolved_event.rb +93 -0
  59. data/lib/stripe/events/v2_core_health_issuing_authorization_request_timeout_firing_event.rb +93 -0
  60. data/lib/stripe/events/v2_core_health_issuing_authorization_request_timeout_resolved_event.rb +93 -0
  61. data/lib/stripe/events/v2_core_health_payment_method_error_firing_event.rb +82 -0
  62. data/lib/stripe/events/v2_core_health_payment_method_error_resolved_event.rb +82 -0
  63. data/lib/stripe/events/v2_core_health_sepa_debit_delayed_firing_event.rb +58 -0
  64. data/lib/stripe/events/v2_core_health_sepa_debit_delayed_resolved_event.rb +60 -0
  65. data/lib/stripe/events/v2_core_health_traffic_volume_drop_firing_event.rb +62 -0
  66. data/lib/stripe/events/v2_core_health_traffic_volume_drop_resolved_event.rb +62 -0
  67. data/lib/stripe/events/v2_core_health_webhook_latency_firing_event.rb +58 -0
  68. data/lib/stripe/events/v2_core_health_webhook_latency_resolved_event.rb +58 -0
  69. data/lib/stripe/events/v2_iam_api_key_created_event.rb +20 -0
  70. data/lib/stripe/events/v2_iam_api_key_default_secret_revealed_event.rb +20 -0
  71. data/lib/stripe/events/v2_iam_api_key_expired_event.rb +20 -0
  72. data/lib/stripe/events/v2_iam_api_key_permissions_updated_event.rb +20 -0
  73. data/lib/stripe/events/v2_iam_api_key_rotated_event.rb +38 -0
  74. data/lib/stripe/events/v2_iam_api_key_updated_event.rb +20 -0
  75. data/lib/stripe/events/v2_money_management_recipient_verification_created_event.rb +44 -0
  76. data/lib/stripe/events/v2_money_management_recipient_verification_updated_event.rb +44 -0
  77. data/lib/stripe/events/v2_payments_off_session_payment_attempt_failed_event.rb +44 -0
  78. data/lib/stripe/events/v2_payments_off_session_payment_attempt_started_event.rb +46 -0
  79. data/lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_failed_event.rb +46 -0
  80. data/lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_started_event.rb +48 -0
  81. data/lib/stripe/events/v2_payments_off_session_payment_canceled_event.rb +44 -0
  82. data/lib/stripe/events/v2_payments_off_session_payment_created_event.rb +44 -0
  83. data/lib/stripe/events/v2_payments_off_session_payment_failed_event.rb +44 -0
  84. data/lib/stripe/events/v2_payments_off_session_payment_requires_capture_event.rb +44 -0
  85. data/lib/stripe/events/v2_payments_off_session_payment_succeeded_event.rb +44 -0
  86. data/lib/stripe/events/v2_payments_settlement_allocation_intent_canceled_event.rb +44 -0
  87. data/lib/stripe/events/v2_payments_settlement_allocation_intent_created_event.rb +44 -0
  88. data/lib/stripe/events/v2_payments_settlement_allocation_intent_errored_event.rb +65 -0
  89. data/lib/stripe/events/v2_payments_settlement_allocation_intent_funds_not_received_event.rb +44 -0
  90. data/lib/stripe/events/v2_payments_settlement_allocation_intent_matched_event.rb +44 -0
  91. data/lib/stripe/events/v2_payments_settlement_allocation_intent_not_found_event.rb +38 -0
  92. data/lib/stripe/events/v2_payments_settlement_allocation_intent_settled_event.rb +44 -0
  93. data/lib/stripe/events/v2_payments_settlement_allocation_intent_split_canceled_event.rb +61 -0
  94. data/lib/stripe/events/v2_payments_settlement_allocation_intent_split_created_event.rb +61 -0
  95. data/lib/stripe/events/v2_payments_settlement_allocation_intent_split_settled_event.rb +61 -0
  96. data/lib/stripe/events/v2_payments_settlement_allocation_intent_submitted_event.rb +44 -0
  97. data/lib/stripe/events/v2_reporting_report_run_created_event.rb +44 -0
  98. data/lib/stripe/events/v2_reporting_report_run_failed_event.rb +44 -0
  99. data/lib/stripe/events/v2_reporting_report_run_succeeded_event.rb +44 -0
  100. data/lib/stripe/events/v2_reporting_report_run_updated_event.rb +44 -0
  101. data/lib/stripe/object_types.rb +41 -3
  102. data/lib/stripe/params/account_create_params.rb +34 -2
  103. data/lib/stripe/params/account_person_create_params.rb +32 -0
  104. data/lib/stripe/params/account_person_update_params.rb +32 -0
  105. data/lib/stripe/params/account_session_create_params.rb +17 -0
  106. data/lib/stripe/params/account_update_params.rb +34 -2
  107. data/lib/stripe/params/balance_transfer_create_params.rb +66 -0
  108. data/lib/stripe/params/billing/alert_create_params.rb +121 -1
  109. data/lib/stripe/params/billing/alert_list_params.rb +4 -0
  110. data/lib/stripe/params/billing/analytics/meter_usage_retrieve_params.rb +5 -1
  111. data/lib/stripe/params/billing/credit_balance_summary_retrieve_params.rb +13 -1
  112. data/lib/stripe/params/billing/credit_grant_create_params.rb +29 -2
  113. data/lib/stripe/params/billing/meter_create_params.rb +4 -0
  114. data/lib/stripe/params/billing/meter_event_summary_list_params.rb +8 -0
  115. data/lib/stripe/params/capital/financing_offer_create_params.rb +37 -0
  116. data/lib/stripe/params/capital/financing_offer_refill_params.rb +37 -0
  117. data/lib/stripe/params/checkout/session_create_params.rb +96 -2
  118. data/lib/stripe/params/checkout/session_update_params.rb +16 -1
  119. data/lib/stripe/params/delegated_checkout/requested_session_confirm_params.rb +138 -0
  120. data/lib/stripe/params/delegated_checkout/requested_session_create_params.rb +205 -0
  121. data/lib/stripe/params/delegated_checkout/requested_session_expire_params.rb +15 -0
  122. data/lib/stripe/params/delegated_checkout/requested_session_retrieve_params.rb +15 -0
  123. data/lib/stripe/params/delegated_checkout/requested_session_update_params.rb +209 -0
  124. data/lib/stripe/params/identity/blocklist_entry_create_params.rb +29 -0
  125. data/lib/stripe/params/{reserve/plan_retrieve_params.rb → identity/blocklist_entry_disable_params.rb} +2 -2
  126. data/lib/stripe/params/identity/blocklist_entry_list_params.rb +62 -0
  127. data/lib/stripe/params/identity/blocklist_entry_retrieve_params.rb +15 -0
  128. data/lib/stripe/params/identity/verification_report_list_params.rb +4 -0
  129. data/lib/stripe/params/invoice_add_lines_params.rb +16 -1
  130. data/lib/stripe/params/invoice_create_preview_params.rb +122 -3
  131. data/lib/stripe/params/invoice_line_item_update_params.rb +16 -1
  132. data/lib/stripe/params/invoice_list_params.rb +4 -0
  133. data/lib/stripe/params/invoice_update_lines_params.rb +16 -1
  134. data/lib/stripe/params/issuing/card_list_params.rb +34 -1
  135. data/lib/stripe/params/issuing/program_create_params.rb +21 -0
  136. data/lib/stripe/params/{reserve/release_list_params.rb → issuing/program_list_params.rb} +3 -20
  137. data/lib/stripe/params/{reserve/release_retrieve_params.rb → issuing/program_retrieve_params.rb} +2 -2
  138. data/lib/stripe/params/issuing/program_update_params.rb +21 -0
  139. data/lib/stripe/params/payment_intent_capture_params.rb +1 -1
  140. data/lib/stripe/params/payment_intent_confirm_params.rb +40 -2
  141. data/lib/stripe/params/payment_intent_create_params.rb +53 -2
  142. data/lib/stripe/params/payment_intent_increment_authorization_params.rb +1 -1
  143. data/lib/stripe/params/payment_intent_update_params.rb +35 -1
  144. data/lib/stripe/params/payment_link_create_params.rb +16 -1
  145. data/lib/stripe/params/payment_method_check_balance_params.rb +13 -0
  146. data/lib/stripe/params/plan_create_params.rb +16 -1
  147. data/lib/stripe/params/price_create_params.rb +16 -1
  148. data/lib/stripe/params/product_catalog/trial_offer_create_params.rb +63 -0
  149. data/lib/stripe/params/product_create_params.rb +17 -1
  150. data/lib/stripe/params/product_update_params.rb +17 -1
  151. data/lib/stripe/params/quote_create_params.rb +222 -2
  152. data/lib/stripe/params/quote_update_params.rb +222 -2
  153. data/lib/stripe/params/radar/account_evaluation_create_params.rb +81 -0
  154. data/lib/stripe/params/radar/account_evaluation_retrieve_params.rb +15 -0
  155. data/lib/stripe/params/radar/account_evaluation_update_params.rb +41 -0
  156. data/lib/stripe/params/setup_intent_confirm_params.rb +29 -0
  157. data/lib/stripe/params/setup_intent_create_params.rb +29 -0
  158. data/lib/stripe/params/setup_intent_update_params.rb +30 -1
  159. data/lib/stripe/params/shared_payment/granted_token_create_params.rb +47 -0
  160. data/lib/stripe/params/shared_payment/granted_token_retrieve_params.rb +15 -0
  161. data/lib/stripe/params/shared_payment/granted_token_revoke_params.rb +15 -0
  162. data/lib/stripe/params/subscription_create_params.rb +16 -0
  163. data/lib/stripe/params/subscription_item_create_params.rb +16 -0
  164. data/lib/stripe/params/subscription_item_update_params.rb +16 -0
  165. data/lib/stripe/params/subscription_schedule_amend_params.rb +41 -2
  166. data/lib/stripe/params/subscription_schedule_create_params.rb +69 -1
  167. data/lib/stripe/params/subscription_schedule_update_params.rb +69 -1
  168. data/lib/stripe/params/subscription_update_params.rb +16 -0
  169. data/lib/stripe/params/tax/calculation_create_params.rb +5 -1
  170. data/lib/stripe/params/tax/location_create_params.rb +54 -0
  171. data/lib/stripe/params/tax/location_list_params.rb +27 -0
  172. data/lib/stripe/params/{reserve/hold_retrieve_params.rb → tax/location_retrieve_params.rb} +2 -2
  173. data/lib/stripe/params/test_helpers/capital/financing_offer_create_params.rb +39 -0
  174. data/lib/stripe/params/test_helpers/capital/financing_offer_refill_params.rb +39 -0
  175. data/lib/stripe/params/test_helpers/shared_payment/granted_token_create_params.rb +49 -0
  176. data/lib/stripe/params/test_helpers/shared_payment/granted_token_revoke_params.rb +17 -0
  177. data/lib/stripe/params/token_create_params.rb +64 -0
  178. data/lib/stripe/params/transfer_create_params.rb +4 -0
  179. data/lib/stripe/params/v2/billing/cadence_cancel_params.rb +8 -1
  180. data/lib/stripe/params/v2/billing/cadence_create_params.rb +4 -0
  181. data/lib/stripe/params/v2/billing/cadence_update_params.rb +4 -1
  182. data/lib/stripe/params/v2/billing/custom_pricing_unit_create_params.rb +26 -0
  183. data/lib/stripe/params/v2/billing/custom_pricing_unit_list_params.rb +24 -0
  184. data/lib/stripe/params/v2/billing/custom_pricing_unit_retrieve_params.rb +10 -0
  185. data/lib/stripe/params/v2/billing/custom_pricing_unit_update_params.rb +26 -0
  186. data/lib/stripe/params/v2/billing/intent_cancel_params.rb +10 -0
  187. data/lib/stripe/params/v2/billing/intent_commit_params.rb +17 -0
  188. data/lib/stripe/params/v2/billing/intent_create_params.rb +425 -0
  189. data/lib/stripe/params/v2/billing/intent_list_params.rb +17 -0
  190. data/lib/stripe/params/v2/billing/intent_release_reservation_params.rb +10 -0
  191. data/lib/stripe/params/v2/billing/intent_reserve_params.rb +10 -0
  192. data/lib/stripe/params/v2/billing/intent_retrieve_params.rb +10 -0
  193. data/lib/stripe/params/v2/billing/intents/action_list_params.rb +19 -0
  194. data/lib/stripe/params/v2/billing/intents/action_retrieve_params.rb +12 -0
  195. data/lib/stripe/params/v2/billing/license_fee_create_params.rb +103 -0
  196. data/lib/stripe/params/v2/billing/license_fee_list_params.rb +24 -0
  197. data/lib/stripe/params/v2/billing/license_fee_retrieve_params.rb +10 -0
  198. data/lib/stripe/params/v2/billing/license_fee_subscription_retrieve_params.rb +10 -0
  199. data/lib/stripe/params/v2/billing/license_fee_update_params.rb +84 -0
  200. data/lib/stripe/params/v2/billing/license_fees/version_list_params.rb +19 -0
  201. data/lib/stripe/params/v2/billing/license_fees/version_retrieve_params.rb +12 -0
  202. data/lib/stripe/params/v2/billing/licensed_item_create_params.rb +48 -0
  203. data/lib/stripe/params/v2/billing/licensed_item_list_params.rb +21 -0
  204. data/lib/stripe/params/v2/billing/licensed_item_retrieve_params.rb +10 -0
  205. data/lib/stripe/params/v2/billing/licensed_item_update_params.rb +48 -0
  206. data/lib/stripe/params/v2/billing/metered_item_create_params.rb +73 -0
  207. data/lib/stripe/params/v2/billing/metered_item_list_params.rb +21 -0
  208. data/lib/stripe/params/v2/billing/metered_item_retrieve_params.rb +10 -0
  209. data/lib/stripe/params/v2/billing/metered_item_update_params.rb +50 -0
  210. data/lib/stripe/params/v2/billing/pricing_plan_create_params.rb +39 -0
  211. data/lib/stripe/params/v2/billing/pricing_plan_list_params.rb +24 -0
  212. data/lib/stripe/params/v2/billing/pricing_plan_retrieve_params.rb +10 -0
  213. data/lib/stripe/params/v2/billing/pricing_plan_subscription_list_params.rb +50 -0
  214. data/lib/stripe/params/v2/billing/pricing_plan_subscription_retrieve_params.rb +10 -0
  215. data/lib/stripe/params/v2/billing/pricing_plan_subscription_update_params.rb +20 -0
  216. data/lib/stripe/params/v2/billing/pricing_plan_subscriptions/component_retrieve_params.rb +12 -0
  217. data/lib/stripe/params/v2/billing/pricing_plan_update_params.rb +39 -0
  218. data/lib/stripe/params/v2/billing/pricing_plans/component_create_params.rb +73 -0
  219. data/lib/stripe/params/v2/billing/pricing_plans/component_delete_params.rb +12 -0
  220. data/lib/stripe/params/v2/billing/pricing_plans/component_list_params.rb +27 -0
  221. data/lib/stripe/params/v2/billing/pricing_plans/component_retrieve_params.rb +12 -0
  222. data/lib/stripe/params/v2/billing/pricing_plans/component_update_params.rb +22 -0
  223. data/lib/stripe/params/v2/billing/pricing_plans/version_list_params.rb +19 -0
  224. data/lib/stripe/params/v2/billing/pricing_plans/version_retrieve_params.rb +12 -0
  225. data/lib/stripe/params/v2/billing/rate_card_create_params.rb +49 -0
  226. data/lib/stripe/params/v2/billing/rate_card_list_params.rb +24 -0
  227. data/lib/stripe/params/v2/billing/rate_card_retrieve_params.rb +10 -0
  228. data/lib/stripe/params/v2/billing/rate_card_subscription_cancel_params.rb +10 -0
  229. data/lib/stripe/params/v2/billing/rate_card_subscription_create_params.rb +26 -0
  230. data/lib/stripe/params/v2/billing/rate_card_subscription_list_params.rb +51 -0
  231. data/lib/stripe/params/v2/billing/rate_card_subscription_retrieve_params.rb +10 -0
  232. data/lib/stripe/params/v2/billing/rate_card_subscription_update_params.rb +17 -0
  233. data/lib/stripe/params/v2/billing/rate_card_update_params.rb +38 -0
  234. data/lib/stripe/params/v2/billing/rate_cards/rate_create_params.rb +91 -0
  235. data/lib/stripe/params/v2/billing/rate_cards/rate_delete_params.rb +12 -0
  236. data/lib/stripe/params/v2/billing/rate_cards/rate_list_params.rb +25 -0
  237. data/lib/stripe/params/v2/billing/rate_cards/rate_retrieve_params.rb +12 -0
  238. data/lib/stripe/params/v2/billing/rate_cards/version_list_params.rb +19 -0
  239. data/lib/stripe/params/v2/billing/rate_cards/version_retrieve_params.rb +12 -0
  240. data/lib/stripe/params/v2/billing/service_action_create_params.rb +278 -0
  241. data/lib/stripe/params/v2/billing/service_action_retrieve_params.rb +10 -0
  242. data/lib/stripe/params/v2/billing/service_action_update_params.rb +40 -0
  243. data/lib/stripe/params/v2/core/account_create_params.rb +716 -9
  244. data/lib/stripe/params/v2/core/account_token_create_params.rb +237 -1
  245. data/lib/stripe/params/v2/core/account_update_params.rb +702 -9
  246. data/lib/stripe/params/v2/core/claimable_sandbox_create_params.rb +36 -0
  247. data/lib/stripe/params/v2/core/claimable_sandbox_retrieve_params.rb +10 -0
  248. data/lib/stripe/params/v2/core/event_list_params.rb +4 -1
  249. data/lib/stripe/params/v2/core/event_retrieve_params.rb +8 -1
  250. data/lib/stripe/params/v2/iam/api_key_create_params.rb +51 -0
  251. data/lib/stripe/params/v2/iam/api_key_expire_params.rb +10 -0
  252. data/lib/stripe/params/v2/iam/api_key_list_params.rb +20 -0
  253. data/lib/stripe/params/v2/iam/api_key_retrieve_params.rb +10 -0
  254. data/lib/stripe/params/v2/iam/api_key_rotate_params.rb +46 -0
  255. data/lib/stripe/params/v2/iam/api_key_update_params.rb +20 -0
  256. data/lib/stripe/params/v2/money_management/currency_conversion_create_params.rb +68 -0
  257. data/lib/stripe/params/v2/money_management/currency_conversion_list_params.rb +20 -0
  258. data/lib/stripe/params/v2/money_management/currency_conversion_retrieve_params.rb +10 -0
  259. data/lib/stripe/params/v2/money_management/financial_account_list_params.rb +4 -1
  260. data/lib/stripe/params/v2/money_management/financial_address_create_params.rb +12 -1
  261. data/lib/stripe/params/v2/money_management/outbound_payment_create_params.rb +25 -1
  262. data/lib/stripe/params/v2/money_management/outbound_payment_quote_create_params.rb +4 -1
  263. data/lib/stripe/params/v2/money_management/outbound_setup_intent_create_params.rb +19 -1
  264. data/lib/stripe/params/v2/money_management/outbound_transfer_create_params.rb +4 -0
  265. data/lib/stripe/params/v2/money_management/recipient_verification_acknowledge_params.rb +10 -0
  266. data/lib/stripe/params/v2/money_management/recipient_verification_create_params.rb +20 -0
  267. data/lib/stripe/params/v2/money_management/recipient_verification_retrieve_params.rb +10 -0
  268. data/lib/stripe/params/v2/payments/off_session_payment_cancel_params.rb +10 -0
  269. data/lib/stripe/params/v2/payments/off_session_payment_capture_params.rb +57 -0
  270. data/lib/stripe/params/v2/payments/off_session_payment_create_params.rb +161 -0
  271. data/lib/stripe/params/v2/payments/off_session_payment_list_params.rb +17 -0
  272. data/lib/stripe/params/v2/payments/off_session_payment_retrieve_params.rb +10 -0
  273. data/lib/stripe/params/v2/payments/settlement_allocation_intent_cancel_params.rb +10 -0
  274. data/lib/stripe/params/v2/payments/settlement_allocation_intent_create_params.rb +46 -0
  275. data/lib/stripe/params/v2/payments/settlement_allocation_intent_retrieve_params.rb +10 -0
  276. data/lib/stripe/params/v2/payments/settlement_allocation_intent_submit_params.rb +10 -0
  277. data/lib/stripe/params/v2/payments/settlement_allocation_intent_update_params.rb +31 -0
  278. data/lib/stripe/params/v2/payments/settlement_allocation_intents/split_cancel_params.rb +12 -0
  279. data/lib/stripe/params/v2/payments/settlement_allocation_intents/split_create_params.rb +39 -0
  280. data/lib/stripe/params/v2/payments/settlement_allocation_intents/split_retrieve_params.rb +12 -0
  281. data/lib/stripe/params/v2/reporting/report_retrieve_params.rb +10 -0
  282. data/lib/stripe/params/v2/reporting/report_run_create_params.rb +33 -0
  283. data/lib/stripe/params/v2/reporting/report_run_retrieve_params.rb +10 -0
  284. data/lib/stripe/params/v2/tax/manual_rule_create_params.rb +94 -0
  285. data/lib/stripe/params/v2/tax/manual_rule_deactivate_params.rb +10 -0
  286. data/lib/stripe/params/v2/tax/manual_rule_list_params.rb +17 -0
  287. data/lib/stripe/params/v2/tax/manual_rule_retrieve_params.rb +10 -0
  288. data/lib/stripe/params/v2/tax/manual_rule_update_params.rb +94 -0
  289. data/lib/stripe/params/v2/test_helpers/money_management_recipient_verifications_params.rb +24 -0
  290. data/lib/stripe/params.rb +128 -5
  291. data/lib/stripe/resources/account_session.rb +27 -0
  292. data/lib/stripe/resources/application_fee.rb +2 -0
  293. data/lib/stripe/resources/balance.rb +83 -0
  294. data/lib/stripe/resources/balance_transfer.rb +139 -0
  295. data/lib/stripe/resources/billing/alert.rb +105 -1
  296. data/lib/stripe/resources/billing/alert_triggered.rb +6 -0
  297. data/lib/stripe/resources/billing/analytics/meter_usage_row.rb +2 -0
  298. data/lib/stripe/resources/billing/credit_balance_summary.rb +84 -2
  299. data/lib/stripe/resources/billing/credit_balance_transaction.rb +84 -2
  300. data/lib/stripe/resources/billing/credit_grant.rb +58 -2
  301. data/lib/stripe/resources/billing/meter.rb +2 -0
  302. data/lib/stripe/resources/billing/meter_event_summary.rb +2 -0
  303. data/lib/stripe/resources/capital/financing_offer.rb +41 -0
  304. data/lib/stripe/resources/card.rb +18 -1
  305. data/lib/stripe/resources/charge.rb +18 -0
  306. data/lib/stripe/resources/checkout/session.rb +92 -0
  307. data/lib/stripe/resources/confirmation_token.rb +18 -0
  308. data/lib/stripe/resources/delegated_checkout/requested_session.rb +509 -0
  309. data/lib/stripe/resources/discount.rb +2 -0
  310. data/lib/stripe/resources/identity/blocklist_entry.rb +116 -0
  311. data/lib/stripe/resources/identity/verification_report.rb +4 -0
  312. data/lib/stripe/resources/invoice.rb +18 -0
  313. data/lib/stripe/resources/invoice_item.rb +106 -2
  314. data/lib/stripe/resources/invoice_line_item.rb +107 -3
  315. data/lib/stripe/resources/issuing/card.rb +4 -0
  316. data/lib/stripe/resources/issuing/program.rb +69 -0
  317. data/lib/stripe/resources/payment_intent.rb +63 -1
  318. data/lib/stripe/resources/payment_method.rb +38 -0
  319. data/lib/stripe/resources/payment_method_balance.rb +68 -0
  320. data/lib/stripe/resources/person.rb +36 -0
  321. data/lib/stripe/resources/plan.rb +2 -0
  322. data/lib/stripe/resources/price.rb +2 -0
  323. data/lib/stripe/resources/product_catalog/trial_offer.rb +103 -0
  324. data/lib/stripe/resources/quote.rb +238 -1
  325. data/lib/stripe/resources/quote_line.rb +6 -0
  326. data/lib/stripe/resources/quote_preview_invoice.rb +18 -0
  327. data/lib/stripe/resources/quote_preview_subscription_schedule.rb +94 -0
  328. data/lib/stripe/resources/radar/account_evaluation.rb +145 -0
  329. data/lib/stripe/resources/setup_intent.rb +40 -0
  330. data/lib/stripe/resources/shared_payment/granted_token.rb +126 -0
  331. data/lib/stripe/resources/subscription.rb +20 -1
  332. data/lib/stripe/resources/subscription_item.rb +24 -1
  333. data/lib/stripe/resources/subscription_schedule.rb +94 -0
  334. data/lib/stripe/resources/tax/calculation_line_item.rb +2 -0
  335. data/lib/stripe/resources/tax/location.rb +72 -0
  336. data/lib/stripe/resources/tax/registration.rb +128 -0
  337. data/lib/stripe/resources/tax_code.rb +15 -1
  338. data/lib/stripe/resources/transfer.rb +4 -0
  339. data/lib/stripe/resources/transit_balance.rb +45 -0
  340. data/lib/stripe/resources/v2/billing/cadence.rb +46 -0
  341. data/lib/stripe/resources/v2/billing/custom_pricing_unit.rb +43 -0
  342. data/lib/stripe/resources/v2/billing/intent.rb +86 -0
  343. data/lib/stripe/resources/v2/billing/intent_action.rb +483 -0
  344. data/lib/stripe/resources/v2/billing/license_fee.rb +104 -0
  345. data/lib/stripe/resources/v2/billing/license_fee_subscription.rb +44 -0
  346. data/lib/stripe/resources/v2/billing/license_fee_version.rb +80 -0
  347. data/lib/stripe/resources/v2/billing/licensed_item.rb +60 -0
  348. data/lib/stripe/resources/v2/billing/metered_item.rb +85 -0
  349. data/lib/stripe/resources/v2/billing/pricing_plan.rb +51 -0
  350. data/lib/stripe/resources/v2/billing/pricing_plan_component.rb +94 -0
  351. data/lib/stripe/resources/v2/billing/pricing_plan_subscription.rb +94 -0
  352. data/lib/stripe/resources/v2/billing/pricing_plan_subscription_components.rb +49 -0
  353. data/lib/stripe/resources/v2/billing/pricing_plan_version.rb +38 -0
  354. data/lib/stripe/resources/v2/billing/rate_card.rb +61 -0
  355. data/lib/stripe/resources/v2/billing/rate_card_rate.rb +110 -0
  356. data/lib/stripe/resources/v2/billing/rate_card_subscription.rb +94 -0
  357. data/lib/stripe/resources/v2/billing/rate_card_version.rb +34 -0
  358. data/lib/stripe/resources/v2/billing/service_action.rb +274 -0
  359. data/lib/stripe/resources/v2/core/account.rb +1073 -5
  360. data/lib/stripe/resources/v2/core/claimable_sandbox.rb +105 -0
  361. data/lib/stripe/resources/v2/core/event.rb +50 -1
  362. data/lib/stripe/resources/v2/core/vault/gb_bank_account.rb +21 -1
  363. data/lib/stripe/resources/v2/core/vault/us_bank_account.rb +21 -1
  364. data/lib/stripe/resources/v2/iam/api_key.rb +129 -0
  365. data/lib/stripe/resources/v2/money_management/currency_conversion.rb +94 -0
  366. data/lib/stripe/resources/v2/money_management/financial_account.rb +35 -0
  367. data/lib/stripe/resources/v2/money_management/outbound_payment.rb +87 -1
  368. data/lib/stripe/resources/v2/money_management/outbound_payment_quote.rb +2 -0
  369. data/lib/stripe/resources/v2/money_management/outbound_transfer.rb +2 -0
  370. data/lib/stripe/resources/v2/money_management/payout_method.rb +47 -1
  371. data/lib/stripe/resources/v2/money_management/received_credit.rb +34 -0
  372. data/lib/stripe/resources/v2/money_management/received_debit.rb +56 -0
  373. data/lib/stripe/resources/v2/money_management/recipient_verification.rb +83 -0
  374. data/lib/stripe/resources/v2/payments/off_session_payment.rb +186 -0
  375. data/lib/stripe/resources/v2/payments/settlement_allocation_intent.rb +92 -0
  376. data/lib/stripe/resources/v2/payments/settlement_allocation_intent_split.rb +78 -0
  377. data/lib/stripe/resources/v2/reporting/report.rb +116 -0
  378. data/lib/stripe/resources/v2/reporting/report_run.rb +128 -0
  379. data/lib/stripe/resources/v2/tax/manual_rule.rb +115 -0
  380. data/lib/stripe/resources.rb +134 -3
  381. data/lib/stripe/services/balance_transfer_service.rb +17 -0
  382. data/lib/stripe/services/delegated_checkout/requested_session_service.rb +63 -0
  383. data/lib/stripe/services/delegated_checkout_service.rb +13 -0
  384. data/lib/stripe/services/identity/blocklist_entry_service.rb +71 -0
  385. data/lib/stripe/services/identity_service.rb +2 -1
  386. data/lib/stripe/services/issuing/program_service.rb +52 -0
  387. data/lib/stripe/services/issuing_service.rb +2 -1
  388. data/lib/stripe/services/payment_method_service.rb +11 -0
  389. data/lib/stripe/services/product_catalog/trial_offer_service.rb +19 -0
  390. data/lib/stripe/services/product_catalog_service.rb +13 -0
  391. data/lib/stripe/services/radar/account_evaluation_service.rb +41 -0
  392. data/lib/stripe/services/radar_service.rb +2 -1
  393. data/lib/stripe/services/shared_payment/granted_token_service.rb +19 -0
  394. data/lib/stripe/services/shared_payment_service.rb +13 -0
  395. data/lib/stripe/services/tax/location_service.rb +45 -0
  396. data/lib/stripe/services/tax_service.rb +2 -1
  397. data/lib/stripe/services/test_helpers/capital/financing_offer_service.rb +32 -0
  398. data/lib/stripe/services/test_helpers/capital_service.rb +15 -0
  399. data/lib/stripe/services/test_helpers/shared_payment/granted_token_service.rb +32 -0
  400. data/lib/stripe/services/test_helpers/shared_payment_service.rb +15 -0
  401. data/lib/stripe/services/test_helpers_service.rb +3 -1
  402. data/lib/stripe/services/v1_services.rb +5 -2
  403. data/lib/stripe/services/v2/billing/custom_pricing_unit_service.rb +54 -0
  404. data/lib/stripe/services/v2/billing/intent_service.rb +94 -0
  405. data/lib/stripe/services/v2/billing/intents/action_service.rb +34 -0
  406. data/lib/stripe/services/v2/billing/license_fee_service.rb +61 -0
  407. data/lib/stripe/services/v2/billing/license_fee_subscription_service.rb +21 -0
  408. data/lib/stripe/services/v2/billing/license_fees/version_service.rb +34 -0
  409. data/lib/stripe/services/v2/billing/licensed_item_service.rb +54 -0
  410. data/lib/stripe/services/v2/billing/metered_item_service.rb +54 -0
  411. data/lib/stripe/services/v2/billing/pricing_plan_service.rb +62 -0
  412. data/lib/stripe/services/v2/billing/pricing_plan_subscription_service.rb +51 -0
  413. data/lib/stripe/services/v2/billing/pricing_plan_subscriptions/component_service.rb +23 -0
  414. data/lib/stripe/services/v2/billing/pricing_plans/component_service.rb +67 -0
  415. data/lib/stripe/services/v2/billing/pricing_plans/version_service.rb +34 -0
  416. data/lib/stripe/services/v2/billing/rate_card_service.rb +62 -0
  417. data/lib/stripe/services/v2/billing/rate_card_subscription_service.rb +65 -0
  418. data/lib/stripe/services/v2/billing/rate_cards/rate_service.rb +57 -0
  419. data/lib/stripe/services/v2/billing/rate_cards/version_service.rb +34 -0
  420. data/lib/stripe/services/v2/billing/service_action_service.rb +43 -0
  421. data/lib/stripe/services/v2/billing_service.rb +14 -1
  422. data/lib/stripe/services/v2/core/account_link_service.rb +2 -0
  423. data/lib/stripe/services/v2/core/account_service.rb +10 -0
  424. data/lib/stripe/services/v2/core/account_token_service.rb +4 -0
  425. data/lib/stripe/services/v2/core/accounts/person_service.rb +10 -0
  426. data/lib/stripe/services/v2/core/accounts/person_token_service.rb +4 -0
  427. data/lib/stripe/services/v2/core/claimable_sandbox_service.rb +35 -0
  428. data/lib/stripe/services/v2/core_service.rb +2 -1
  429. data/lib/stripe/services/v2/iam/api_key_service.rb +76 -0
  430. data/lib/stripe/services/v2/iam_service.rb +15 -0
  431. data/lib/stripe/services/v2/money_management/currency_conversion_service.rb +45 -0
  432. data/lib/stripe/services/v2/money_management/recipient_verification_service.rb +43 -0
  433. data/lib/stripe/services/v2/money_management_service.rb +5 -1
  434. data/lib/stripe/services/v2/payment_service.rb +17 -0
  435. data/lib/stripe/services/v2/payments/off_session_payment_service.rb +65 -0
  436. data/lib/stripe/services/v2/payments/settlement_allocation_intent_service.rb +72 -0
  437. data/lib/stripe/services/v2/payments/settlement_allocation_intents/split_service.rb +45 -0
  438. data/lib/stripe/services/v2/reporting/report_run_service.rb +38 -0
  439. data/lib/stripe/services/v2/reporting/report_service.rb +23 -0
  440. data/lib/stripe/services/v2/reporting_service.rb +16 -0
  441. data/lib/stripe/services/v2/tax/manual_rule_service.rb +65 -0
  442. data/lib/stripe/services/v2/tax_service.rb +15 -0
  443. data/lib/stripe/services/v2/test_helper_service.rb +2 -1
  444. data/lib/stripe/services/v2/test_helpers/money_management_service.rb +21 -0
  445. data/lib/stripe/services/v2_services.rb +5 -1
  446. data/lib/stripe/services.rb +48 -4
  447. data/lib/stripe/stripe_client.rb +1 -8
  448. data/lib/stripe/util.rb +9 -3
  449. data/lib/stripe/version.rb +1 -1
  450. data/lib/stripe.rb +0 -1
  451. data/rbi/stripe/stripe_client.rbi +0 -13
  452. data/rbi/stripe.rbi +21285 -1431
  453. metadata +312 -15
  454. data/lib/stripe/params/reserve/hold_list_params.rb +0 -53
  455. data/lib/stripe/resources/reserve/hold.rb +0 -74
  456. data/lib/stripe/resources/reserve/plan.rb +0 -78
  457. data/lib/stripe/resources/reserve/release.rb +0 -77
  458. data/lib/stripe/services/reserve/hold_service.rb +0 -30
  459. data/lib/stripe/services/reserve/plan_service.rb +0 -19
  460. data/lib/stripe/services/reserve/release_service.rb +0 -30
  461. data/lib/stripe/services/reserve_service.rb +0 -15
  462. data/lib/stripe/stripe_event_notification_handler.rb +0 -425
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8fbe907c2f31c415ad2769f7daccf308bfe2ad5a8e1bc4daaa8b705d16e716e8
4
- data.tar.gz: 4f5176361c4be47a59c0f5abec22abfcaa43b2852b96ae578c9be06ca5fbd707
3
+ metadata.gz: 0a3bc4e77a529a44c7590262ebc93f76285edcea7bc1030ef1575c3d0e8235e0
4
+ data.tar.gz: dbfbb39f130c6473d725cc605f43e138d050a7a89797bdf94be79b449f9710b0
5
5
  SHA512:
6
- metadata.gz: 3428fa74a728c93685723020c0c2ad2692d30ff2e6a6875cb1bb8c567a54b984493bdf347dba4f8e12eaf5b1d8f1d1773a8f273d3daf332ef785954ad007206a
7
- data.tar.gz: 72483f06a4c99a7045143d6a1aa76f62de534806e93b300c26ffde655bd89d31e8c665ac5e911d76d6e1278fe740cb8e8fa3b7f84e275bf73244450ddb5734df
6
+ metadata.gz: ddf4c67c6935a20d6373a9d166aa908f0a8d09b52c2ce6024933dfe6cd75e4f9dbfc67d3036d3bdd06f7ca55e7a3bd060914948912c63a092bf04ab9ef1a9529
7
+ data.tar.gz: 1892ccf5c7d1a6f98821abd4061e02a69b5f6f3e8db26f95c644c6fb6c0622a0ad440e303bd25a4612334695ade84e3e52cae869d1b8e529c18d7af38f794248
@@ -471,7 +471,7 @@ module Stripe
471
471
  raise ArgumentError, "api_base cannot be empty" if base_url.nil? || base_url.empty?
472
472
 
473
473
  api_key ||= opts[:api_key]
474
- params = Util.objects_to_ids(params)
474
+ params = Util.objects_to_ids(params, api_mode)
475
475
 
476
476
  check_api_key!(api_key)
477
477
 
@@ -885,6 +885,8 @@ module Stripe
885
885
  NotCancelableError.new(error_data[:message], **opts)
886
886
  when "quota_exceeded"
887
887
  QuotaExceededError.new(error_data[:message], **opts)
888
+ when "rate_limit"
889
+ RateLimitError.new(error_data[:message], **opts)
888
890
  when "recipient_not_notifiable"
889
891
  RecipientNotNotifiableError.new(error_data[:message], **opts)
890
892
  when "temporary_session_expired"
data/lib/stripe/errors.rb CHANGED
@@ -222,6 +222,9 @@ module Stripe
222
222
  class QuotaExceededError < StripeError
223
223
  end
224
224
 
225
+ class RateLimitError < StripeError
226
+ end
227
+
225
228
  class RecipientNotNotifiableError < StripeError
226
229
  end
227
230
 
@@ -8,8 +8,72 @@ module Stripe
8
8
  Events::V1BillingMeterErrorReportTriggeredEvent.lookup_type =>
9
9
  Events::V1BillingMeterErrorReportTriggeredEvent,
10
10
  Events::V1BillingMeterNoMeterFoundEvent.lookup_type => Events::V1BillingMeterNoMeterFoundEvent,
11
+ Events::V2BillingCadenceBilledEvent.lookup_type => Events::V2BillingCadenceBilledEvent,
12
+ Events::V2BillingCadenceCanceledEvent.lookup_type => Events::V2BillingCadenceCanceledEvent,
13
+ Events::V2BillingCadenceCreatedEvent.lookup_type => Events::V2BillingCadenceCreatedEvent,
14
+ Events::V2BillingLicenseFeeCreatedEvent.lookup_type => Events::V2BillingLicenseFeeCreatedEvent,
15
+ Events::V2BillingLicenseFeeUpdatedEvent.lookup_type => Events::V2BillingLicenseFeeUpdatedEvent,
16
+ Events::V2BillingLicenseFeeVersionCreatedEvent.lookup_type =>
17
+ Events::V2BillingLicenseFeeVersionCreatedEvent,
18
+ Events::V2BillingLicensedItemCreatedEvent.lookup_type => Events::V2BillingLicensedItemCreatedEvent,
19
+ Events::V2BillingLicensedItemUpdatedEvent.lookup_type => Events::V2BillingLicensedItemUpdatedEvent,
20
+ Events::V2BillingMeteredItemCreatedEvent.lookup_type => Events::V2BillingMeteredItemCreatedEvent,
21
+ Events::V2BillingMeteredItemUpdatedEvent.lookup_type => Events::V2BillingMeteredItemUpdatedEvent,
22
+ Events::V2BillingPricingPlanComponentCreatedEvent.lookup_type =>
23
+ Events::V2BillingPricingPlanComponentCreatedEvent,
24
+ Events::V2BillingPricingPlanComponentUpdatedEvent.lookup_type =>
25
+ Events::V2BillingPricingPlanComponentUpdatedEvent,
26
+ Events::V2BillingPricingPlanCreatedEvent.lookup_type => Events::V2BillingPricingPlanCreatedEvent,
27
+ Events::V2BillingPricingPlanSubscriptionCollectionAwaitingCustomerActionEvent.lookup_type =>
28
+ Events::V2BillingPricingPlanSubscriptionCollectionAwaitingCustomerActionEvent,
29
+ Events::V2BillingPricingPlanSubscriptionCollectionCurrentEvent.lookup_type =>
30
+ Events::V2BillingPricingPlanSubscriptionCollectionCurrentEvent,
31
+ Events::V2BillingPricingPlanSubscriptionCollectionPastDueEvent.lookup_type =>
32
+ Events::V2BillingPricingPlanSubscriptionCollectionPastDueEvent,
33
+ Events::V2BillingPricingPlanSubscriptionCollectionPausedEvent.lookup_type =>
34
+ Events::V2BillingPricingPlanSubscriptionCollectionPausedEvent,
35
+ Events::V2BillingPricingPlanSubscriptionCollectionUnpaidEvent.lookup_type =>
36
+ Events::V2BillingPricingPlanSubscriptionCollectionUnpaidEvent,
37
+ Events::V2BillingPricingPlanSubscriptionServicingActivatedEvent.lookup_type =>
38
+ Events::V2BillingPricingPlanSubscriptionServicingActivatedEvent,
39
+ Events::V2BillingPricingPlanSubscriptionServicingCanceledEvent.lookup_type =>
40
+ Events::V2BillingPricingPlanSubscriptionServicingCanceledEvent,
41
+ Events::V2BillingPricingPlanSubscriptionServicingPausedEvent.lookup_type =>
42
+ Events::V2BillingPricingPlanSubscriptionServicingPausedEvent,
43
+ Events::V2BillingPricingPlanUpdatedEvent.lookup_type => Events::V2BillingPricingPlanUpdatedEvent,
44
+ Events::V2BillingPricingPlanVersionCreatedEvent.lookup_type =>
45
+ Events::V2BillingPricingPlanVersionCreatedEvent,
46
+ Events::V2BillingRateCardCreatedEvent.lookup_type => Events::V2BillingRateCardCreatedEvent,
47
+ Events::V2BillingRateCardRateCreatedEvent.lookup_type => Events::V2BillingRateCardRateCreatedEvent,
48
+ Events::V2BillingRateCardSubscriptionActivatedEvent.lookup_type =>
49
+ Events::V2BillingRateCardSubscriptionActivatedEvent,
50
+ Events::V2BillingRateCardSubscriptionCanceledEvent.lookup_type =>
51
+ Events::V2BillingRateCardSubscriptionCanceledEvent,
52
+ Events::V2BillingRateCardSubscriptionCollectionAwaitingCustomerActionEvent.lookup_type =>
53
+ Events::V2BillingRateCardSubscriptionCollectionAwaitingCustomerActionEvent,
54
+ Events::V2BillingRateCardSubscriptionCollectionCurrentEvent.lookup_type =>
55
+ Events::V2BillingRateCardSubscriptionCollectionCurrentEvent,
56
+ Events::V2BillingRateCardSubscriptionCollectionPastDueEvent.lookup_type =>
57
+ Events::V2BillingRateCardSubscriptionCollectionPastDueEvent,
58
+ Events::V2BillingRateCardSubscriptionCollectionPausedEvent.lookup_type =>
59
+ Events::V2BillingRateCardSubscriptionCollectionPausedEvent,
60
+ Events::V2BillingRateCardSubscriptionCollectionUnpaidEvent.lookup_type =>
61
+ Events::V2BillingRateCardSubscriptionCollectionUnpaidEvent,
62
+ Events::V2BillingRateCardSubscriptionServicingActivatedEvent.lookup_type =>
63
+ Events::V2BillingRateCardSubscriptionServicingActivatedEvent,
64
+ Events::V2BillingRateCardSubscriptionServicingCanceledEvent.lookup_type =>
65
+ Events::V2BillingRateCardSubscriptionServicingCanceledEvent,
66
+ Events::V2BillingRateCardSubscriptionServicingPausedEvent.lookup_type =>
67
+ Events::V2BillingRateCardSubscriptionServicingPausedEvent,
68
+ Events::V2BillingRateCardUpdatedEvent.lookup_type => Events::V2BillingRateCardUpdatedEvent,
69
+ Events::V2BillingRateCardVersionCreatedEvent.lookup_type =>
70
+ Events::V2BillingRateCardVersionCreatedEvent,
11
71
  Events::V2CoreAccountClosedEvent.lookup_type => Events::V2CoreAccountClosedEvent,
12
72
  Events::V2CoreAccountCreatedEvent.lookup_type => Events::V2CoreAccountCreatedEvent,
73
+ Events::V2CoreAccountIncludingConfigurationCardCreatorCapabilityStatusUpdatedEvent.lookup_type =>
74
+ Events::V2CoreAccountIncludingConfigurationCardCreatorCapabilityStatusUpdatedEvent,
75
+ Events::V2CoreAccountIncludingConfigurationCardCreatorUpdatedEvent.lookup_type =>
76
+ Events::V2CoreAccountIncludingConfigurationCardCreatorUpdatedEvent,
13
77
  Events::V2CoreAccountIncludingConfigurationCustomerCapabilityStatusUpdatedEvent.lookup_type =>
14
78
  Events::V2CoreAccountIncludingConfigurationCustomerCapabilityStatusUpdatedEvent,
15
79
  Events::V2CoreAccountIncludingConfigurationCustomerUpdatedEvent.lookup_type =>
@@ -28,6 +92,8 @@ module Stripe
28
92
  Events::V2CoreAccountIncludingConfigurationStorerUpdatedEvent,
29
93
  Events::V2CoreAccountIncludingDefaultsUpdatedEvent.lookup_type =>
30
94
  Events::V2CoreAccountIncludingDefaultsUpdatedEvent,
95
+ Events::V2CoreAccountIncludingFutureRequirementsUpdatedEvent.lookup_type =>
96
+ Events::V2CoreAccountIncludingFutureRequirementsUpdatedEvent,
31
97
  Events::V2CoreAccountIncludingIdentityUpdatedEvent.lookup_type =>
32
98
  Events::V2CoreAccountIncludingIdentityUpdatedEvent,
33
99
  Events::V2CoreAccountIncludingRequirementsUpdatedEvent.lookup_type =>
@@ -37,9 +103,62 @@ module Stripe
37
103
  Events::V2CoreAccountPersonDeletedEvent.lookup_type => Events::V2CoreAccountPersonDeletedEvent,
38
104
  Events::V2CoreAccountPersonUpdatedEvent.lookup_type => Events::V2CoreAccountPersonUpdatedEvent,
39
105
  Events::V2CoreAccountUpdatedEvent.lookup_type => Events::V2CoreAccountUpdatedEvent,
106
+ Events::V2CoreClaimableSandboxClaimedEvent.lookup_type =>
107
+ Events::V2CoreClaimableSandboxClaimedEvent,
108
+ Events::V2CoreClaimableSandboxCreatedEvent.lookup_type =>
109
+ Events::V2CoreClaimableSandboxCreatedEvent,
110
+ Events::V2CoreClaimableSandboxExpiredEvent.lookup_type =>
111
+ Events::V2CoreClaimableSandboxExpiredEvent,
112
+ Events::V2CoreClaimableSandboxExpiringEvent.lookup_type =>
113
+ Events::V2CoreClaimableSandboxExpiringEvent,
114
+ Events::V2CoreClaimableSandboxSandboxDetailsOwnerAccountUpdatedEvent.lookup_type =>
115
+ Events::V2CoreClaimableSandboxSandboxDetailsOwnerAccountUpdatedEvent,
40
116
  Events::V2CoreEventDestinationPingEvent.lookup_type => Events::V2CoreEventDestinationPingEvent,
117
+ Events::V2CoreHealthApiErrorFiringEvent.lookup_type => Events::V2CoreHealthApiErrorFiringEvent,
118
+ Events::V2CoreHealthApiErrorResolvedEvent.lookup_type => Events::V2CoreHealthApiErrorResolvedEvent,
119
+ Events::V2CoreHealthApiLatencyFiringEvent.lookup_type => Events::V2CoreHealthApiLatencyFiringEvent,
120
+ Events::V2CoreHealthApiLatencyResolvedEvent.lookup_type =>
121
+ Events::V2CoreHealthApiLatencyResolvedEvent,
122
+ Events::V2CoreHealthAuthorizationRateDropFiringEvent.lookup_type =>
123
+ Events::V2CoreHealthAuthorizationRateDropFiringEvent,
124
+ Events::V2CoreHealthAuthorizationRateDropResolvedEvent.lookup_type =>
125
+ Events::V2CoreHealthAuthorizationRateDropResolvedEvent,
41
126
  Events::V2CoreHealthEventGenerationFailureResolvedEvent.lookup_type =>
42
127
  Events::V2CoreHealthEventGenerationFailureResolvedEvent,
128
+ Events::V2CoreHealthFraudRateIncreasedEvent.lookup_type =>
129
+ Events::V2CoreHealthFraudRateIncreasedEvent,
130
+ Events::V2CoreHealthIssuingAuthorizationRequestErrorsFiringEvent.lookup_type =>
131
+ Events::V2CoreHealthIssuingAuthorizationRequestErrorsFiringEvent,
132
+ Events::V2CoreHealthIssuingAuthorizationRequestErrorsResolvedEvent.lookup_type =>
133
+ Events::V2CoreHealthIssuingAuthorizationRequestErrorsResolvedEvent,
134
+ Events::V2CoreHealthIssuingAuthorizationRequestTimeoutFiringEvent.lookup_type =>
135
+ Events::V2CoreHealthIssuingAuthorizationRequestTimeoutFiringEvent,
136
+ Events::V2CoreHealthIssuingAuthorizationRequestTimeoutResolvedEvent.lookup_type =>
137
+ Events::V2CoreHealthIssuingAuthorizationRequestTimeoutResolvedEvent,
138
+ Events::V2CoreHealthPaymentMethodErrorFiringEvent.lookup_type =>
139
+ Events::V2CoreHealthPaymentMethodErrorFiringEvent,
140
+ Events::V2CoreHealthPaymentMethodErrorResolvedEvent.lookup_type =>
141
+ Events::V2CoreHealthPaymentMethodErrorResolvedEvent,
142
+ Events::V2CoreHealthSepaDebitDelayedFiringEvent.lookup_type =>
143
+ Events::V2CoreHealthSepaDebitDelayedFiringEvent,
144
+ Events::V2CoreHealthSepaDebitDelayedResolvedEvent.lookup_type =>
145
+ Events::V2CoreHealthSepaDebitDelayedResolvedEvent,
146
+ Events::V2CoreHealthTrafficVolumeDropFiringEvent.lookup_type =>
147
+ Events::V2CoreHealthTrafficVolumeDropFiringEvent,
148
+ Events::V2CoreHealthTrafficVolumeDropResolvedEvent.lookup_type =>
149
+ Events::V2CoreHealthTrafficVolumeDropResolvedEvent,
150
+ Events::V2CoreHealthWebhookLatencyFiringEvent.lookup_type =>
151
+ Events::V2CoreHealthWebhookLatencyFiringEvent,
152
+ Events::V2CoreHealthWebhookLatencyResolvedEvent.lookup_type =>
153
+ Events::V2CoreHealthWebhookLatencyResolvedEvent,
154
+ Events::V2IamApiKeyCreatedEvent.lookup_type => Events::V2IamApiKeyCreatedEvent,
155
+ Events::V2IamApiKeyDefaultSecretRevealedEvent.lookup_type =>
156
+ Events::V2IamApiKeyDefaultSecretRevealedEvent,
157
+ Events::V2IamApiKeyExpiredEvent.lookup_type => Events::V2IamApiKeyExpiredEvent,
158
+ Events::V2IamApiKeyPermissionsUpdatedEvent.lookup_type =>
159
+ Events::V2IamApiKeyPermissionsUpdatedEvent,
160
+ Events::V2IamApiKeyRotatedEvent.lookup_type => Events::V2IamApiKeyRotatedEvent,
161
+ Events::V2IamApiKeyUpdatedEvent.lookup_type => Events::V2IamApiKeyUpdatedEvent,
43
162
  Events::V2MoneyManagementAdjustmentCreatedEvent.lookup_type =>
44
163
  Events::V2MoneyManagementAdjustmentCreatedEvent,
45
164
  Events::V2MoneyManagementFinancialAccountCreatedEvent.lookup_type =>
@@ -108,10 +227,59 @@ module Stripe
108
227
  Events::V2MoneyManagementReceivedDebitSucceededEvent,
109
228
  Events::V2MoneyManagementReceivedDebitUpdatedEvent.lookup_type =>
110
229
  Events::V2MoneyManagementReceivedDebitUpdatedEvent,
230
+ Events::V2MoneyManagementRecipientVerificationCreatedEvent.lookup_type =>
231
+ Events::V2MoneyManagementRecipientVerificationCreatedEvent,
232
+ Events::V2MoneyManagementRecipientVerificationUpdatedEvent.lookup_type =>
233
+ Events::V2MoneyManagementRecipientVerificationUpdatedEvent,
111
234
  Events::V2MoneyManagementTransactionCreatedEvent.lookup_type =>
112
235
  Events::V2MoneyManagementTransactionCreatedEvent,
113
236
  Events::V2MoneyManagementTransactionUpdatedEvent.lookup_type =>
114
237
  Events::V2MoneyManagementTransactionUpdatedEvent,
238
+ Events::V2PaymentsOffSessionPaymentAttemptFailedEvent.lookup_type =>
239
+ Events::V2PaymentsOffSessionPaymentAttemptFailedEvent,
240
+ Events::V2PaymentsOffSessionPaymentAttemptStartedEvent.lookup_type =>
241
+ Events::V2PaymentsOffSessionPaymentAttemptStartedEvent,
242
+ Events::V2PaymentsOffSessionPaymentAuthorizationAttemptFailedEvent.lookup_type =>
243
+ Events::V2PaymentsOffSessionPaymentAuthorizationAttemptFailedEvent,
244
+ Events::V2PaymentsOffSessionPaymentAuthorizationAttemptStartedEvent.lookup_type =>
245
+ Events::V2PaymentsOffSessionPaymentAuthorizationAttemptStartedEvent,
246
+ Events::V2PaymentsOffSessionPaymentCanceledEvent.lookup_type =>
247
+ Events::V2PaymentsOffSessionPaymentCanceledEvent,
248
+ Events::V2PaymentsOffSessionPaymentCreatedEvent.lookup_type =>
249
+ Events::V2PaymentsOffSessionPaymentCreatedEvent,
250
+ Events::V2PaymentsOffSessionPaymentFailedEvent.lookup_type =>
251
+ Events::V2PaymentsOffSessionPaymentFailedEvent,
252
+ Events::V2PaymentsOffSessionPaymentRequiresCaptureEvent.lookup_type =>
253
+ Events::V2PaymentsOffSessionPaymentRequiresCaptureEvent,
254
+ Events::V2PaymentsOffSessionPaymentSucceededEvent.lookup_type =>
255
+ Events::V2PaymentsOffSessionPaymentSucceededEvent,
256
+ Events::V2PaymentsSettlementAllocationIntentCanceledEvent.lookup_type =>
257
+ Events::V2PaymentsSettlementAllocationIntentCanceledEvent,
258
+ Events::V2PaymentsSettlementAllocationIntentCreatedEvent.lookup_type =>
259
+ Events::V2PaymentsSettlementAllocationIntentCreatedEvent,
260
+ Events::V2PaymentsSettlementAllocationIntentErroredEvent.lookup_type =>
261
+ Events::V2PaymentsSettlementAllocationIntentErroredEvent,
262
+ Events::V2PaymentsSettlementAllocationIntentFundsNotReceivedEvent.lookup_type =>
263
+ Events::V2PaymentsSettlementAllocationIntentFundsNotReceivedEvent,
264
+ Events::V2PaymentsSettlementAllocationIntentMatchedEvent.lookup_type =>
265
+ Events::V2PaymentsSettlementAllocationIntentMatchedEvent,
266
+ Events::V2PaymentsSettlementAllocationIntentNotFoundEvent.lookup_type =>
267
+ Events::V2PaymentsSettlementAllocationIntentNotFoundEvent,
268
+ Events::V2PaymentsSettlementAllocationIntentSettledEvent.lookup_type =>
269
+ Events::V2PaymentsSettlementAllocationIntentSettledEvent,
270
+ Events::V2PaymentsSettlementAllocationIntentSplitCanceledEvent.lookup_type =>
271
+ Events::V2PaymentsSettlementAllocationIntentSplitCanceledEvent,
272
+ Events::V2PaymentsSettlementAllocationIntentSplitCreatedEvent.lookup_type =>
273
+ Events::V2PaymentsSettlementAllocationIntentSplitCreatedEvent,
274
+ Events::V2PaymentsSettlementAllocationIntentSplitSettledEvent.lookup_type =>
275
+ Events::V2PaymentsSettlementAllocationIntentSplitSettledEvent,
276
+ Events::V2PaymentsSettlementAllocationIntentSubmittedEvent.lookup_type =>
277
+ Events::V2PaymentsSettlementAllocationIntentSubmittedEvent,
278
+ Events::V2ReportingReportRunCreatedEvent.lookup_type => Events::V2ReportingReportRunCreatedEvent,
279
+ Events::V2ReportingReportRunFailedEvent.lookup_type => Events::V2ReportingReportRunFailedEvent,
280
+ Events::V2ReportingReportRunSucceededEvent.lookup_type =>
281
+ Events::V2ReportingReportRunSucceededEvent,
282
+ Events::V2ReportingReportRunUpdatedEvent.lookup_type => Events::V2ReportingReportRunUpdatedEvent,
115
283
  # v2 event types: The end of the section generated from our OpenAPI spec
116
284
  }
117
285
  end
@@ -123,10 +291,88 @@ module Stripe
123
291
  Events::V1BillingMeterErrorReportTriggeredEventNotification,
124
292
  Events::V1BillingMeterNoMeterFoundEventNotification.lookup_type =>
125
293
  Events::V1BillingMeterNoMeterFoundEventNotification,
294
+ Events::V2BillingCadenceBilledEventNotification.lookup_type =>
295
+ Events::V2BillingCadenceBilledEventNotification,
296
+ Events::V2BillingCadenceCanceledEventNotification.lookup_type =>
297
+ Events::V2BillingCadenceCanceledEventNotification,
298
+ Events::V2BillingCadenceCreatedEventNotification.lookup_type =>
299
+ Events::V2BillingCadenceCreatedEventNotification,
300
+ Events::V2BillingLicenseFeeCreatedEventNotification.lookup_type =>
301
+ Events::V2BillingLicenseFeeCreatedEventNotification,
302
+ Events::V2BillingLicenseFeeUpdatedEventNotification.lookup_type =>
303
+ Events::V2BillingLicenseFeeUpdatedEventNotification,
304
+ Events::V2BillingLicenseFeeVersionCreatedEventNotification.lookup_type =>
305
+ Events::V2BillingLicenseFeeVersionCreatedEventNotification,
306
+ Events::V2BillingLicensedItemCreatedEventNotification.lookup_type =>
307
+ Events::V2BillingLicensedItemCreatedEventNotification,
308
+ Events::V2BillingLicensedItemUpdatedEventNotification.lookup_type =>
309
+ Events::V2BillingLicensedItemUpdatedEventNotification,
310
+ Events::V2BillingMeteredItemCreatedEventNotification.lookup_type =>
311
+ Events::V2BillingMeteredItemCreatedEventNotification,
312
+ Events::V2BillingMeteredItemUpdatedEventNotification.lookup_type =>
313
+ Events::V2BillingMeteredItemUpdatedEventNotification,
314
+ Events::V2BillingPricingPlanComponentCreatedEventNotification.lookup_type =>
315
+ Events::V2BillingPricingPlanComponentCreatedEventNotification,
316
+ Events::V2BillingPricingPlanComponentUpdatedEventNotification.lookup_type =>
317
+ Events::V2BillingPricingPlanComponentUpdatedEventNotification,
318
+ Events::V2BillingPricingPlanCreatedEventNotification.lookup_type =>
319
+ Events::V2BillingPricingPlanCreatedEventNotification,
320
+ Events::V2BillingPricingPlanSubscriptionCollectionAwaitingCustomerActionEventNotification.lookup_type =>
321
+ Events::V2BillingPricingPlanSubscriptionCollectionAwaitingCustomerActionEventNotification,
322
+ Events::V2BillingPricingPlanSubscriptionCollectionCurrentEventNotification.lookup_type =>
323
+ Events::V2BillingPricingPlanSubscriptionCollectionCurrentEventNotification,
324
+ Events::V2BillingPricingPlanSubscriptionCollectionPastDueEventNotification.lookup_type =>
325
+ Events::V2BillingPricingPlanSubscriptionCollectionPastDueEventNotification,
326
+ Events::V2BillingPricingPlanSubscriptionCollectionPausedEventNotification.lookup_type =>
327
+ Events::V2BillingPricingPlanSubscriptionCollectionPausedEventNotification,
328
+ Events::V2BillingPricingPlanSubscriptionCollectionUnpaidEventNotification.lookup_type =>
329
+ Events::V2BillingPricingPlanSubscriptionCollectionUnpaidEventNotification,
330
+ Events::V2BillingPricingPlanSubscriptionServicingActivatedEventNotification.lookup_type =>
331
+ Events::V2BillingPricingPlanSubscriptionServicingActivatedEventNotification,
332
+ Events::V2BillingPricingPlanSubscriptionServicingCanceledEventNotification.lookup_type =>
333
+ Events::V2BillingPricingPlanSubscriptionServicingCanceledEventNotification,
334
+ Events::V2BillingPricingPlanSubscriptionServicingPausedEventNotification.lookup_type =>
335
+ Events::V2BillingPricingPlanSubscriptionServicingPausedEventNotification,
336
+ Events::V2BillingPricingPlanUpdatedEventNotification.lookup_type =>
337
+ Events::V2BillingPricingPlanUpdatedEventNotification,
338
+ Events::V2BillingPricingPlanVersionCreatedEventNotification.lookup_type =>
339
+ Events::V2BillingPricingPlanVersionCreatedEventNotification,
340
+ Events::V2BillingRateCardCreatedEventNotification.lookup_type =>
341
+ Events::V2BillingRateCardCreatedEventNotification,
342
+ Events::V2BillingRateCardRateCreatedEventNotification.lookup_type =>
343
+ Events::V2BillingRateCardRateCreatedEventNotification,
344
+ Events::V2BillingRateCardSubscriptionActivatedEventNotification.lookup_type =>
345
+ Events::V2BillingRateCardSubscriptionActivatedEventNotification,
346
+ Events::V2BillingRateCardSubscriptionCanceledEventNotification.lookup_type =>
347
+ Events::V2BillingRateCardSubscriptionCanceledEventNotification,
348
+ Events::V2BillingRateCardSubscriptionCollectionAwaitingCustomerActionEventNotification.lookup_type =>
349
+ Events::V2BillingRateCardSubscriptionCollectionAwaitingCustomerActionEventNotification,
350
+ Events::V2BillingRateCardSubscriptionCollectionCurrentEventNotification.lookup_type =>
351
+ Events::V2BillingRateCardSubscriptionCollectionCurrentEventNotification,
352
+ Events::V2BillingRateCardSubscriptionCollectionPastDueEventNotification.lookup_type =>
353
+ Events::V2BillingRateCardSubscriptionCollectionPastDueEventNotification,
354
+ Events::V2BillingRateCardSubscriptionCollectionPausedEventNotification.lookup_type =>
355
+ Events::V2BillingRateCardSubscriptionCollectionPausedEventNotification,
356
+ Events::V2BillingRateCardSubscriptionCollectionUnpaidEventNotification.lookup_type =>
357
+ Events::V2BillingRateCardSubscriptionCollectionUnpaidEventNotification,
358
+ Events::V2BillingRateCardSubscriptionServicingActivatedEventNotification.lookup_type =>
359
+ Events::V2BillingRateCardSubscriptionServicingActivatedEventNotification,
360
+ Events::V2BillingRateCardSubscriptionServicingCanceledEventNotification.lookup_type =>
361
+ Events::V2BillingRateCardSubscriptionServicingCanceledEventNotification,
362
+ Events::V2BillingRateCardSubscriptionServicingPausedEventNotification.lookup_type =>
363
+ Events::V2BillingRateCardSubscriptionServicingPausedEventNotification,
364
+ Events::V2BillingRateCardUpdatedEventNotification.lookup_type =>
365
+ Events::V2BillingRateCardUpdatedEventNotification,
366
+ Events::V2BillingRateCardVersionCreatedEventNotification.lookup_type =>
367
+ Events::V2BillingRateCardVersionCreatedEventNotification,
126
368
  Events::V2CoreAccountClosedEventNotification.lookup_type =>
127
369
  Events::V2CoreAccountClosedEventNotification,
128
370
  Events::V2CoreAccountCreatedEventNotification.lookup_type =>
129
371
  Events::V2CoreAccountCreatedEventNotification,
372
+ Events::V2CoreAccountIncludingConfigurationCardCreatorCapabilityStatusUpdatedEventNotification.lookup_type =>
373
+ Events::V2CoreAccountIncludingConfigurationCardCreatorCapabilityStatusUpdatedEventNotification,
374
+ Events::V2CoreAccountIncludingConfigurationCardCreatorUpdatedEventNotification.lookup_type =>
375
+ Events::V2CoreAccountIncludingConfigurationCardCreatorUpdatedEventNotification,
130
376
  Events::V2CoreAccountIncludingConfigurationCustomerCapabilityStatusUpdatedEventNotification.lookup_type =>
131
377
  Events::V2CoreAccountIncludingConfigurationCustomerCapabilityStatusUpdatedEventNotification,
132
378
  Events::V2CoreAccountIncludingConfigurationCustomerUpdatedEventNotification.lookup_type =>
@@ -145,6 +391,8 @@ module Stripe
145
391
  Events::V2CoreAccountIncludingConfigurationStorerUpdatedEventNotification,
146
392
  Events::V2CoreAccountIncludingDefaultsUpdatedEventNotification.lookup_type =>
147
393
  Events::V2CoreAccountIncludingDefaultsUpdatedEventNotification,
394
+ Events::V2CoreAccountIncludingFutureRequirementsUpdatedEventNotification.lookup_type =>
395
+ Events::V2CoreAccountIncludingFutureRequirementsUpdatedEventNotification,
148
396
  Events::V2CoreAccountIncludingIdentityUpdatedEventNotification.lookup_type =>
149
397
  Events::V2CoreAccountIncludingIdentityUpdatedEventNotification,
150
398
  Events::V2CoreAccountIncludingRequirementsUpdatedEventNotification.lookup_type =>
@@ -159,10 +407,70 @@ module Stripe
159
407
  Events::V2CoreAccountPersonUpdatedEventNotification,
160
408
  Events::V2CoreAccountUpdatedEventNotification.lookup_type =>
161
409
  Events::V2CoreAccountUpdatedEventNotification,
410
+ Events::V2CoreClaimableSandboxClaimedEventNotification.lookup_type =>
411
+ Events::V2CoreClaimableSandboxClaimedEventNotification,
412
+ Events::V2CoreClaimableSandboxCreatedEventNotification.lookup_type =>
413
+ Events::V2CoreClaimableSandboxCreatedEventNotification,
414
+ Events::V2CoreClaimableSandboxExpiredEventNotification.lookup_type =>
415
+ Events::V2CoreClaimableSandboxExpiredEventNotification,
416
+ Events::V2CoreClaimableSandboxExpiringEventNotification.lookup_type =>
417
+ Events::V2CoreClaimableSandboxExpiringEventNotification,
418
+ Events::V2CoreClaimableSandboxSandboxDetailsOwnerAccountUpdatedEventNotification.lookup_type =>
419
+ Events::V2CoreClaimableSandboxSandboxDetailsOwnerAccountUpdatedEventNotification,
162
420
  Events::V2CoreEventDestinationPingEventNotification.lookup_type =>
163
421
  Events::V2CoreEventDestinationPingEventNotification,
422
+ Events::V2CoreHealthApiErrorFiringEventNotification.lookup_type =>
423
+ Events::V2CoreHealthApiErrorFiringEventNotification,
424
+ Events::V2CoreHealthApiErrorResolvedEventNotification.lookup_type =>
425
+ Events::V2CoreHealthApiErrorResolvedEventNotification,
426
+ Events::V2CoreHealthApiLatencyFiringEventNotification.lookup_type =>
427
+ Events::V2CoreHealthApiLatencyFiringEventNotification,
428
+ Events::V2CoreHealthApiLatencyResolvedEventNotification.lookup_type =>
429
+ Events::V2CoreHealthApiLatencyResolvedEventNotification,
430
+ Events::V2CoreHealthAuthorizationRateDropFiringEventNotification.lookup_type =>
431
+ Events::V2CoreHealthAuthorizationRateDropFiringEventNotification,
432
+ Events::V2CoreHealthAuthorizationRateDropResolvedEventNotification.lookup_type =>
433
+ Events::V2CoreHealthAuthorizationRateDropResolvedEventNotification,
164
434
  Events::V2CoreHealthEventGenerationFailureResolvedEventNotification.lookup_type =>
165
435
  Events::V2CoreHealthEventGenerationFailureResolvedEventNotification,
436
+ Events::V2CoreHealthFraudRateIncreasedEventNotification.lookup_type =>
437
+ Events::V2CoreHealthFraudRateIncreasedEventNotification,
438
+ Events::V2CoreHealthIssuingAuthorizationRequestErrorsFiringEventNotification.lookup_type =>
439
+ Events::V2CoreHealthIssuingAuthorizationRequestErrorsFiringEventNotification,
440
+ Events::V2CoreHealthIssuingAuthorizationRequestErrorsResolvedEventNotification.lookup_type =>
441
+ Events::V2CoreHealthIssuingAuthorizationRequestErrorsResolvedEventNotification,
442
+ Events::V2CoreHealthIssuingAuthorizationRequestTimeoutFiringEventNotification.lookup_type =>
443
+ Events::V2CoreHealthIssuingAuthorizationRequestTimeoutFiringEventNotification,
444
+ Events::V2CoreHealthIssuingAuthorizationRequestTimeoutResolvedEventNotification.lookup_type =>
445
+ Events::V2CoreHealthIssuingAuthorizationRequestTimeoutResolvedEventNotification,
446
+ Events::V2CoreHealthPaymentMethodErrorFiringEventNotification.lookup_type =>
447
+ Events::V2CoreHealthPaymentMethodErrorFiringEventNotification,
448
+ Events::V2CoreHealthPaymentMethodErrorResolvedEventNotification.lookup_type =>
449
+ Events::V2CoreHealthPaymentMethodErrorResolvedEventNotification,
450
+ Events::V2CoreHealthSepaDebitDelayedFiringEventNotification.lookup_type =>
451
+ Events::V2CoreHealthSepaDebitDelayedFiringEventNotification,
452
+ Events::V2CoreHealthSepaDebitDelayedResolvedEventNotification.lookup_type =>
453
+ Events::V2CoreHealthSepaDebitDelayedResolvedEventNotification,
454
+ Events::V2CoreHealthTrafficVolumeDropFiringEventNotification.lookup_type =>
455
+ Events::V2CoreHealthTrafficVolumeDropFiringEventNotification,
456
+ Events::V2CoreHealthTrafficVolumeDropResolvedEventNotification.lookup_type =>
457
+ Events::V2CoreHealthTrafficVolumeDropResolvedEventNotification,
458
+ Events::V2CoreHealthWebhookLatencyFiringEventNotification.lookup_type =>
459
+ Events::V2CoreHealthWebhookLatencyFiringEventNotification,
460
+ Events::V2CoreHealthWebhookLatencyResolvedEventNotification.lookup_type =>
461
+ Events::V2CoreHealthWebhookLatencyResolvedEventNotification,
462
+ Events::V2IamApiKeyCreatedEventNotification.lookup_type =>
463
+ Events::V2IamApiKeyCreatedEventNotification,
464
+ Events::V2IamApiKeyDefaultSecretRevealedEventNotification.lookup_type =>
465
+ Events::V2IamApiKeyDefaultSecretRevealedEventNotification,
466
+ Events::V2IamApiKeyExpiredEventNotification.lookup_type =>
467
+ Events::V2IamApiKeyExpiredEventNotification,
468
+ Events::V2IamApiKeyPermissionsUpdatedEventNotification.lookup_type =>
469
+ Events::V2IamApiKeyPermissionsUpdatedEventNotification,
470
+ Events::V2IamApiKeyRotatedEventNotification.lookup_type =>
471
+ Events::V2IamApiKeyRotatedEventNotification,
472
+ Events::V2IamApiKeyUpdatedEventNotification.lookup_type =>
473
+ Events::V2IamApiKeyUpdatedEventNotification,
166
474
  Events::V2MoneyManagementAdjustmentCreatedEventNotification.lookup_type =>
167
475
  Events::V2MoneyManagementAdjustmentCreatedEventNotification,
168
476
  Events::V2MoneyManagementFinancialAccountCreatedEventNotification.lookup_type =>
@@ -231,10 +539,62 @@ module Stripe
231
539
  Events::V2MoneyManagementReceivedDebitSucceededEventNotification,
232
540
  Events::V2MoneyManagementReceivedDebitUpdatedEventNotification.lookup_type =>
233
541
  Events::V2MoneyManagementReceivedDebitUpdatedEventNotification,
542
+ Events::V2MoneyManagementRecipientVerificationCreatedEventNotification.lookup_type =>
543
+ Events::V2MoneyManagementRecipientVerificationCreatedEventNotification,
544
+ Events::V2MoneyManagementRecipientVerificationUpdatedEventNotification.lookup_type =>
545
+ Events::V2MoneyManagementRecipientVerificationUpdatedEventNotification,
234
546
  Events::V2MoneyManagementTransactionCreatedEventNotification.lookup_type =>
235
547
  Events::V2MoneyManagementTransactionCreatedEventNotification,
236
548
  Events::V2MoneyManagementTransactionUpdatedEventNotification.lookup_type =>
237
549
  Events::V2MoneyManagementTransactionUpdatedEventNotification,
550
+ Events::V2PaymentsOffSessionPaymentAttemptFailedEventNotification.lookup_type =>
551
+ Events::V2PaymentsOffSessionPaymentAttemptFailedEventNotification,
552
+ Events::V2PaymentsOffSessionPaymentAttemptStartedEventNotification.lookup_type =>
553
+ Events::V2PaymentsOffSessionPaymentAttemptStartedEventNotification,
554
+ Events::V2PaymentsOffSessionPaymentAuthorizationAttemptFailedEventNotification.lookup_type =>
555
+ Events::V2PaymentsOffSessionPaymentAuthorizationAttemptFailedEventNotification,
556
+ Events::V2PaymentsOffSessionPaymentAuthorizationAttemptStartedEventNotification.lookup_type =>
557
+ Events::V2PaymentsOffSessionPaymentAuthorizationAttemptStartedEventNotification,
558
+ Events::V2PaymentsOffSessionPaymentCanceledEventNotification.lookup_type =>
559
+ Events::V2PaymentsOffSessionPaymentCanceledEventNotification,
560
+ Events::V2PaymentsOffSessionPaymentCreatedEventNotification.lookup_type =>
561
+ Events::V2PaymentsOffSessionPaymentCreatedEventNotification,
562
+ Events::V2PaymentsOffSessionPaymentFailedEventNotification.lookup_type =>
563
+ Events::V2PaymentsOffSessionPaymentFailedEventNotification,
564
+ Events::V2PaymentsOffSessionPaymentRequiresCaptureEventNotification.lookup_type =>
565
+ Events::V2PaymentsOffSessionPaymentRequiresCaptureEventNotification,
566
+ Events::V2PaymentsOffSessionPaymentSucceededEventNotification.lookup_type =>
567
+ Events::V2PaymentsOffSessionPaymentSucceededEventNotification,
568
+ Events::V2PaymentsSettlementAllocationIntentCanceledEventNotification.lookup_type =>
569
+ Events::V2PaymentsSettlementAllocationIntentCanceledEventNotification,
570
+ Events::V2PaymentsSettlementAllocationIntentCreatedEventNotification.lookup_type =>
571
+ Events::V2PaymentsSettlementAllocationIntentCreatedEventNotification,
572
+ Events::V2PaymentsSettlementAllocationIntentErroredEventNotification.lookup_type =>
573
+ Events::V2PaymentsSettlementAllocationIntentErroredEventNotification,
574
+ Events::V2PaymentsSettlementAllocationIntentFundsNotReceivedEventNotification.lookup_type =>
575
+ Events::V2PaymentsSettlementAllocationIntentFundsNotReceivedEventNotification,
576
+ Events::V2PaymentsSettlementAllocationIntentMatchedEventNotification.lookup_type =>
577
+ Events::V2PaymentsSettlementAllocationIntentMatchedEventNotification,
578
+ Events::V2PaymentsSettlementAllocationIntentNotFoundEventNotification.lookup_type =>
579
+ Events::V2PaymentsSettlementAllocationIntentNotFoundEventNotification,
580
+ Events::V2PaymentsSettlementAllocationIntentSettledEventNotification.lookup_type =>
581
+ Events::V2PaymentsSettlementAllocationIntentSettledEventNotification,
582
+ Events::V2PaymentsSettlementAllocationIntentSplitCanceledEventNotification.lookup_type =>
583
+ Events::V2PaymentsSettlementAllocationIntentSplitCanceledEventNotification,
584
+ Events::V2PaymentsSettlementAllocationIntentSplitCreatedEventNotification.lookup_type =>
585
+ Events::V2PaymentsSettlementAllocationIntentSplitCreatedEventNotification,
586
+ Events::V2PaymentsSettlementAllocationIntentSplitSettledEventNotification.lookup_type =>
587
+ Events::V2PaymentsSettlementAllocationIntentSplitSettledEventNotification,
588
+ Events::V2PaymentsSettlementAllocationIntentSubmittedEventNotification.lookup_type =>
589
+ Events::V2PaymentsSettlementAllocationIntentSubmittedEventNotification,
590
+ Events::V2ReportingReportRunCreatedEventNotification.lookup_type =>
591
+ Events::V2ReportingReportRunCreatedEventNotification,
592
+ Events::V2ReportingReportRunFailedEventNotification.lookup_type =>
593
+ Events::V2ReportingReportRunFailedEventNotification,
594
+ Events::V2ReportingReportRunSucceededEventNotification.lookup_type =>
595
+ Events::V2ReportingReportRunSucceededEventNotification,
596
+ Events::V2ReportingReportRunUpdatedEventNotification.lookup_type =>
597
+ Events::V2ReportingReportRunUpdatedEventNotification,
238
598
  # event notification types: The end of the section generated from our OpenAPI spec
239
599
  }
240
600
  end
@@ -0,0 +1,61 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module Events
6
+ # Occurs when a billing Cadence generates an invoice.
7
+ class V2BillingCadenceBilledEvent < Stripe::V2::Core::Event
8
+ def self.lookup_type
9
+ "v2.billing.cadence.billed"
10
+ end
11
+
12
+ class V2BillingCadenceBilledEventData < ::Stripe::StripeObject
13
+ # The IDs of the invoices that were generated by the tick for this Cadence.
14
+ attr_reader :invoices
15
+
16
+ def self.inner_class_types
17
+ @inner_class_types = {}
18
+ end
19
+
20
+ def self.field_remappings
21
+ @field_remappings = {}
22
+ end
23
+ end
24
+
25
+ def self.inner_class_types
26
+ @inner_class_types = { data: V2BillingCadenceBilledEventData }
27
+ end
28
+ attr_reader :data, :related_object
29
+
30
+ # Retrieves the related object from the API. Makes an API request on every call.
31
+ def fetch_related_object
32
+ _request(
33
+ method: :get,
34
+ path: related_object.url,
35
+ base_address: :api,
36
+ opts: { stripe_context: context }
37
+ )
38
+ end
39
+ end
40
+
41
+ # Occurs when a billing Cadence generates an invoice.
42
+ class V2BillingCadenceBilledEventNotification < Stripe::V2::Core::EventNotification
43
+ def self.lookup_type
44
+ "v2.billing.cadence.billed"
45
+ end
46
+
47
+ attr_reader :related_object
48
+
49
+ # Retrieves the Cadence related to this EventNotification from the Stripe API. Makes an API request on every call.
50
+ def fetch_related_object
51
+ resp = @client.raw_request(
52
+ :get,
53
+ related_object.url,
54
+ opts: { stripe_context: context },
55
+ usage: ["fetch_related_object"]
56
+ )
57
+ @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url))
58
+ end
59
+ end
60
+ end
61
+ end
@@ -0,0 +1,44 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module Events
6
+ # Occurs when a billing Cadence is canceled.
7
+ class V2BillingCadenceCanceledEvent < Stripe::V2::Core::Event
8
+ def self.lookup_type
9
+ "v2.billing.cadence.canceled"
10
+ end
11
+
12
+ # Retrieves the related object from the API. Makes an API request on every call.
13
+ def fetch_related_object
14
+ _request(
15
+ method: :get,
16
+ path: related_object.url,
17
+ base_address: :api,
18
+ opts: { stripe_context: context }
19
+ )
20
+ end
21
+ attr_reader :related_object
22
+ end
23
+
24
+ # Occurs when a billing Cadence is canceled.
25
+ class V2BillingCadenceCanceledEventNotification < Stripe::V2::Core::EventNotification
26
+ def self.lookup_type
27
+ "v2.billing.cadence.canceled"
28
+ end
29
+
30
+ attr_reader :related_object
31
+
32
+ # Retrieves the Cadence related to this EventNotification from the Stripe API. Makes an API request on every call.
33
+ def fetch_related_object
34
+ resp = @client.raw_request(
35
+ :get,
36
+ related_object.url,
37
+ opts: { stripe_context: context },
38
+ usage: ["fetch_related_object"]
39
+ )
40
+ @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url))
41
+ end
42
+ end
43
+ end
44
+ end
@@ -0,0 +1,61 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module Events
6
+ # Occurs when a billing Cadence is created.
7
+ class V2BillingCadenceCreatedEvent < Stripe::V2::Core::Event
8
+ def self.lookup_type
9
+ "v2.billing.cadence.created"
10
+ end
11
+
12
+ class V2BillingCadenceCreatedEventData < ::Stripe::StripeObject
13
+ # Timestamp of when the object was created.
14
+ attr_reader :created
15
+
16
+ def self.inner_class_types
17
+ @inner_class_types = {}
18
+ end
19
+
20
+ def self.field_remappings
21
+ @field_remappings = {}
22
+ end
23
+ end
24
+
25
+ def self.inner_class_types
26
+ @inner_class_types = { data: V2BillingCadenceCreatedEventData }
27
+ end
28
+ attr_reader :data, :related_object
29
+
30
+ # Retrieves the related object from the API. Makes an API request on every call.
31
+ def fetch_related_object
32
+ _request(
33
+ method: :get,
34
+ path: related_object.url,
35
+ base_address: :api,
36
+ opts: { stripe_context: context }
37
+ )
38
+ end
39
+ end
40
+
41
+ # Occurs when a billing Cadence is created.
42
+ class V2BillingCadenceCreatedEventNotification < Stripe::V2::Core::EventNotification
43
+ def self.lookup_type
44
+ "v2.billing.cadence.created"
45
+ end
46
+
47
+ attr_reader :related_object
48
+
49
+ # Retrieves the Cadence related to this EventNotification from the Stripe API. Makes an API request on every call.
50
+ def fetch_related_object
51
+ resp = @client.raw_request(
52
+ :get,
53
+ related_object.url,
54
+ opts: { stripe_context: context },
55
+ usage: ["fetch_related_object"]
56
+ )
57
+ @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url))
58
+ end
59
+ end
60
+ end
61
+ end