stripe 16.0.0 → 16.1.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 (880) hide show
  1. checksums.yaml +4 -4
  2. data/lib/stripe/api_requestor.rb +34 -0
  3. data/lib/stripe/api_version.rb +1 -2
  4. data/lib/stripe/errors.rb +63 -0
  5. data/lib/stripe/event_types.rb +1032 -0
  6. data/lib/stripe/events/v1_account_updated_event.rb +44 -0
  7. data/lib/stripe/events/v1_application_fee_created_event.rb +44 -0
  8. data/lib/stripe/events/v1_application_fee_refunded_event.rb +44 -0
  9. data/lib/stripe/events/v1_billing_portal_configuration_created_event.rb +44 -0
  10. data/lib/stripe/events/v1_billing_portal_configuration_updated_event.rb +44 -0
  11. data/lib/stripe/events/v1_capability_updated_event.rb +44 -0
  12. data/lib/stripe/events/v1_charge_captured_event.rb +44 -0
  13. data/lib/stripe/events/v1_charge_dispute_closed_event.rb +44 -0
  14. data/lib/stripe/events/v1_charge_dispute_created_event.rb +44 -0
  15. data/lib/stripe/events/v1_charge_dispute_funds_reinstated_event.rb +44 -0
  16. data/lib/stripe/events/v1_charge_dispute_funds_withdrawn_event.rb +44 -0
  17. data/lib/stripe/events/v1_charge_dispute_updated_event.rb +44 -0
  18. data/lib/stripe/events/v1_charge_expired_event.rb +44 -0
  19. data/lib/stripe/events/v1_charge_failed_event.rb +44 -0
  20. data/lib/stripe/events/v1_charge_pending_event.rb +44 -0
  21. data/lib/stripe/events/v1_charge_refund_updated_event.rb +44 -0
  22. data/lib/stripe/events/v1_charge_refunded_event.rb +44 -0
  23. data/lib/stripe/events/v1_charge_succeeded_event.rb +44 -0
  24. data/lib/stripe/events/v1_charge_updated_event.rb +44 -0
  25. data/lib/stripe/events/v1_checkout_session_async_payment_failed_event.rb +44 -0
  26. data/lib/stripe/events/v1_checkout_session_async_payment_succeeded_event.rb +44 -0
  27. data/lib/stripe/events/v1_checkout_session_completed_event.rb +44 -0
  28. data/lib/stripe/events/v1_checkout_session_expired_event.rb +44 -0
  29. data/lib/stripe/events/v1_climate_order_canceled_event.rb +44 -0
  30. data/lib/stripe/events/v1_climate_order_created_event.rb +44 -0
  31. data/lib/stripe/events/v1_climate_order_delayed_event.rb +44 -0
  32. data/lib/stripe/events/v1_climate_order_delivered_event.rb +44 -0
  33. data/lib/stripe/events/v1_climate_order_product_substituted_event.rb +44 -0
  34. data/lib/stripe/events/v1_climate_product_created_event.rb +44 -0
  35. data/lib/stripe/events/v1_climate_product_pricing_updated_event.rb +44 -0
  36. data/lib/stripe/events/v1_coupon_created_event.rb +44 -0
  37. data/lib/stripe/events/v1_coupon_deleted_event.rb +44 -0
  38. data/lib/stripe/events/v1_coupon_updated_event.rb +44 -0
  39. data/lib/stripe/events/v1_credit_note_created_event.rb +44 -0
  40. data/lib/stripe/events/v1_credit_note_updated_event.rb +44 -0
  41. data/lib/stripe/events/v1_credit_note_voided_event.rb +44 -0
  42. data/lib/stripe/events/v1_customer_created_event.rb +44 -0
  43. data/lib/stripe/events/v1_customer_deleted_event.rb +44 -0
  44. data/lib/stripe/events/v1_customer_subscription_created_event.rb +44 -0
  45. data/lib/stripe/events/v1_customer_subscription_deleted_event.rb +44 -0
  46. data/lib/stripe/events/v1_customer_subscription_paused_event.rb +44 -0
  47. data/lib/stripe/events/v1_customer_subscription_pending_update_applied_event.rb +44 -0
  48. data/lib/stripe/events/v1_customer_subscription_pending_update_expired_event.rb +44 -0
  49. data/lib/stripe/events/v1_customer_subscription_resumed_event.rb +44 -0
  50. data/lib/stripe/events/v1_customer_subscription_trial_will_end_event.rb +44 -0
  51. data/lib/stripe/events/v1_customer_subscription_updated_event.rb +44 -0
  52. data/lib/stripe/events/v1_customer_tax_id_created_event.rb +44 -0
  53. data/lib/stripe/events/v1_customer_tax_id_deleted_event.rb +44 -0
  54. data/lib/stripe/events/v1_customer_tax_id_updated_event.rb +44 -0
  55. data/lib/stripe/events/v1_customer_updated_event.rb +44 -0
  56. data/lib/stripe/events/v1_file_created_event.rb +44 -0
  57. data/lib/stripe/events/v1_financial_connections_account_created_event.rb +44 -0
  58. data/lib/stripe/events/v1_financial_connections_account_deactivated_event.rb +44 -0
  59. data/lib/stripe/events/v1_financial_connections_account_disconnected_event.rb +44 -0
  60. data/lib/stripe/events/v1_financial_connections_account_reactivated_event.rb +44 -0
  61. data/lib/stripe/events/v1_financial_connections_account_refreshed_balance_event.rb +44 -0
  62. data/lib/stripe/events/v1_financial_connections_account_refreshed_ownership_event.rb +44 -0
  63. data/lib/stripe/events/v1_financial_connections_account_refreshed_transactions_event.rb +44 -0
  64. data/lib/stripe/events/v1_identity_verification_session_canceled_event.rb +44 -0
  65. data/lib/stripe/events/v1_identity_verification_session_created_event.rb +44 -0
  66. data/lib/stripe/events/v1_identity_verification_session_processing_event.rb +44 -0
  67. data/lib/stripe/events/v1_identity_verification_session_redacted_event.rb +44 -0
  68. data/lib/stripe/events/v1_identity_verification_session_requires_input_event.rb +44 -0
  69. data/lib/stripe/events/v1_identity_verification_session_verified_event.rb +44 -0
  70. data/lib/stripe/events/v1_invoice_created_event.rb +44 -0
  71. data/lib/stripe/events/v1_invoice_deleted_event.rb +44 -0
  72. data/lib/stripe/events/v1_invoice_finalization_failed_event.rb +44 -0
  73. data/lib/stripe/events/v1_invoice_finalized_event.rb +44 -0
  74. data/lib/stripe/events/v1_invoice_marked_uncollectible_event.rb +44 -0
  75. data/lib/stripe/events/v1_invoice_overdue_event.rb +44 -0
  76. data/lib/stripe/events/v1_invoice_overpaid_event.rb +44 -0
  77. data/lib/stripe/events/v1_invoice_paid_event.rb +44 -0
  78. data/lib/stripe/events/v1_invoice_payment_action_required_event.rb +44 -0
  79. data/lib/stripe/events/v1_invoice_payment_failed_event.rb +44 -0
  80. data/lib/stripe/events/v1_invoice_payment_paid_event.rb +44 -0
  81. data/lib/stripe/events/v1_invoice_payment_succeeded_event.rb +44 -0
  82. data/lib/stripe/events/v1_invoice_sent_event.rb +44 -0
  83. data/lib/stripe/events/v1_invoice_upcoming_event.rb +44 -0
  84. data/lib/stripe/events/v1_invoice_updated_event.rb +44 -0
  85. data/lib/stripe/events/v1_invoice_voided_event.rb +44 -0
  86. data/lib/stripe/events/v1_invoice_will_be_due_event.rb +44 -0
  87. data/lib/stripe/events/v1_invoiceitem_created_event.rb +44 -0
  88. data/lib/stripe/events/v1_invoiceitem_deleted_event.rb +44 -0
  89. data/lib/stripe/events/v1_issuing_authorization_created_event.rb +44 -0
  90. data/lib/stripe/events/v1_issuing_authorization_request_event.rb +44 -0
  91. data/lib/stripe/events/v1_issuing_authorization_updated_event.rb +44 -0
  92. data/lib/stripe/events/v1_issuing_card_created_event.rb +44 -0
  93. data/lib/stripe/events/v1_issuing_card_updated_event.rb +44 -0
  94. data/lib/stripe/events/v1_issuing_cardholder_created_event.rb +44 -0
  95. data/lib/stripe/events/v1_issuing_cardholder_updated_event.rb +44 -0
  96. data/lib/stripe/events/v1_issuing_dispute_closed_event.rb +44 -0
  97. data/lib/stripe/events/v1_issuing_dispute_created_event.rb +44 -0
  98. data/lib/stripe/events/v1_issuing_dispute_funds_reinstated_event.rb +44 -0
  99. data/lib/stripe/events/v1_issuing_dispute_funds_rescinded_event.rb +44 -0
  100. data/lib/stripe/events/v1_issuing_dispute_submitted_event.rb +44 -0
  101. data/lib/stripe/events/v1_issuing_dispute_updated_event.rb +44 -0
  102. data/lib/stripe/events/v1_issuing_personalization_design_activated_event.rb +44 -0
  103. data/lib/stripe/events/v1_issuing_personalization_design_deactivated_event.rb +44 -0
  104. data/lib/stripe/events/v1_issuing_personalization_design_rejected_event.rb +44 -0
  105. data/lib/stripe/events/v1_issuing_personalization_design_updated_event.rb +44 -0
  106. data/lib/stripe/events/v1_issuing_token_created_event.rb +44 -0
  107. data/lib/stripe/events/v1_issuing_token_updated_event.rb +44 -0
  108. data/lib/stripe/events/v1_issuing_transaction_created_event.rb +44 -0
  109. data/lib/stripe/events/v1_issuing_transaction_purchase_details_receipt_updated_event.rb +44 -0
  110. data/lib/stripe/events/v1_issuing_transaction_updated_event.rb +44 -0
  111. data/lib/stripe/events/v1_mandate_updated_event.rb +44 -0
  112. data/lib/stripe/events/v1_payment_intent_amount_capturable_updated_event.rb +44 -0
  113. data/lib/stripe/events/v1_payment_intent_canceled_event.rb +44 -0
  114. data/lib/stripe/events/v1_payment_intent_created_event.rb +44 -0
  115. data/lib/stripe/events/v1_payment_intent_partially_funded_event.rb +44 -0
  116. data/lib/stripe/events/v1_payment_intent_payment_failed_event.rb +44 -0
  117. data/lib/stripe/events/v1_payment_intent_processing_event.rb +44 -0
  118. data/lib/stripe/events/v1_payment_intent_requires_action_event.rb +44 -0
  119. data/lib/stripe/events/v1_payment_intent_succeeded_event.rb +44 -0
  120. data/lib/stripe/events/v1_payment_link_created_event.rb +44 -0
  121. data/lib/stripe/events/v1_payment_link_updated_event.rb +44 -0
  122. data/lib/stripe/events/v1_payment_method_attached_event.rb +44 -0
  123. data/lib/stripe/events/v1_payment_method_automatically_updated_event.rb +44 -0
  124. data/lib/stripe/events/v1_payment_method_detached_event.rb +44 -0
  125. data/lib/stripe/events/v1_payment_method_updated_event.rb +44 -0
  126. data/lib/stripe/events/v1_payout_canceled_event.rb +44 -0
  127. data/lib/stripe/events/v1_payout_created_event.rb +44 -0
  128. data/lib/stripe/events/v1_payout_failed_event.rb +44 -0
  129. data/lib/stripe/events/v1_payout_paid_event.rb +44 -0
  130. data/lib/stripe/events/v1_payout_reconciliation_completed_event.rb +44 -0
  131. data/lib/stripe/events/v1_payout_updated_event.rb +44 -0
  132. data/lib/stripe/events/v1_person_created_event.rb +44 -0
  133. data/lib/stripe/events/v1_person_deleted_event.rb +44 -0
  134. data/lib/stripe/events/v1_person_updated_event.rb +44 -0
  135. data/lib/stripe/events/v1_plan_created_event.rb +44 -0
  136. data/lib/stripe/events/v1_plan_deleted_event.rb +44 -0
  137. data/lib/stripe/events/v1_plan_updated_event.rb +44 -0
  138. data/lib/stripe/events/v1_price_created_event.rb +44 -0
  139. data/lib/stripe/events/v1_price_deleted_event.rb +44 -0
  140. data/lib/stripe/events/v1_price_updated_event.rb +44 -0
  141. data/lib/stripe/events/v1_product_created_event.rb +44 -0
  142. data/lib/stripe/events/v1_product_deleted_event.rb +44 -0
  143. data/lib/stripe/events/v1_product_updated_event.rb +44 -0
  144. data/lib/stripe/events/v1_promotion_code_created_event.rb +44 -0
  145. data/lib/stripe/events/v1_promotion_code_updated_event.rb +44 -0
  146. data/lib/stripe/events/v1_quote_accepted_event.rb +44 -0
  147. data/lib/stripe/events/v1_quote_canceled_event.rb +44 -0
  148. data/lib/stripe/events/v1_quote_created_event.rb +44 -0
  149. data/lib/stripe/events/v1_quote_finalized_event.rb +44 -0
  150. data/lib/stripe/events/v1_radar_early_fraud_warning_created_event.rb +44 -0
  151. data/lib/stripe/events/v1_radar_early_fraud_warning_updated_event.rb +44 -0
  152. data/lib/stripe/events/v1_refund_created_event.rb +44 -0
  153. data/lib/stripe/events/v1_refund_failed_event.rb +44 -0
  154. data/lib/stripe/events/v1_refund_updated_event.rb +44 -0
  155. data/lib/stripe/events/v1_review_closed_event.rb +44 -0
  156. data/lib/stripe/events/v1_review_opened_event.rb +44 -0
  157. data/lib/stripe/events/v1_setup_intent_canceled_event.rb +44 -0
  158. data/lib/stripe/events/v1_setup_intent_created_event.rb +44 -0
  159. data/lib/stripe/events/v1_setup_intent_requires_action_event.rb +44 -0
  160. data/lib/stripe/events/v1_setup_intent_setup_failed_event.rb +44 -0
  161. data/lib/stripe/events/v1_setup_intent_succeeded_event.rb +44 -0
  162. data/lib/stripe/events/v1_sigma_scheduled_query_run_created_event.rb +44 -0
  163. data/lib/stripe/events/v1_source_canceled_event.rb +44 -0
  164. data/lib/stripe/events/v1_source_chargeable_event.rb +44 -0
  165. data/lib/stripe/events/v1_source_failed_event.rb +44 -0
  166. data/lib/stripe/events/v1_source_refund_attributes_required_event.rb +44 -0
  167. data/lib/stripe/events/v1_subscription_schedule_aborted_event.rb +44 -0
  168. data/lib/stripe/events/v1_subscription_schedule_canceled_event.rb +44 -0
  169. data/lib/stripe/events/v1_subscription_schedule_completed_event.rb +44 -0
  170. data/lib/stripe/events/v1_subscription_schedule_created_event.rb +44 -0
  171. data/lib/stripe/events/v1_subscription_schedule_expiring_event.rb +44 -0
  172. data/lib/stripe/events/v1_subscription_schedule_released_event.rb +44 -0
  173. data/lib/stripe/events/v1_subscription_schedule_updated_event.rb +44 -0
  174. data/lib/stripe/events/v1_tax_rate_created_event.rb +44 -0
  175. data/lib/stripe/events/v1_tax_rate_updated_event.rb +44 -0
  176. data/lib/stripe/events/v1_terminal_reader_action_failed_event.rb +44 -0
  177. data/lib/stripe/events/v1_terminal_reader_action_succeeded_event.rb +44 -0
  178. data/lib/stripe/events/v1_terminal_reader_action_updated_event.rb +44 -0
  179. data/lib/stripe/events/v1_test_helpers_test_clock_advancing_event.rb +44 -0
  180. data/lib/stripe/events/v1_test_helpers_test_clock_created_event.rb +44 -0
  181. data/lib/stripe/events/v1_test_helpers_test_clock_deleted_event.rb +44 -0
  182. data/lib/stripe/events/v1_test_helpers_test_clock_internal_failure_event.rb +44 -0
  183. data/lib/stripe/events/v1_test_helpers_test_clock_ready_event.rb +44 -0
  184. data/lib/stripe/events/v1_topup_canceled_event.rb +44 -0
  185. data/lib/stripe/events/v1_topup_created_event.rb +44 -0
  186. data/lib/stripe/events/v1_topup_failed_event.rb +44 -0
  187. data/lib/stripe/events/v1_topup_reversed_event.rb +44 -0
  188. data/lib/stripe/events/v1_topup_succeeded_event.rb +44 -0
  189. data/lib/stripe/events/v1_transfer_created_event.rb +44 -0
  190. data/lib/stripe/events/v1_transfer_reversed_event.rb +44 -0
  191. data/lib/stripe/events/v1_transfer_updated_event.rb +44 -0
  192. data/lib/stripe/events/v2_billing_bill_setting_updated_event.rb +61 -0
  193. data/lib/stripe/events/v2_billing_cadence_billed_event.rb +61 -0
  194. data/lib/stripe/events/v2_billing_cadence_canceled_event.rb +44 -0
  195. data/lib/stripe/events/v2_billing_cadence_created_event.rb +61 -0
  196. data/lib/stripe/events/v2_billing_license_fee_created_event.rb +44 -0
  197. data/lib/stripe/events/v2_billing_license_fee_updated_event.rb +44 -0
  198. data/lib/stripe/events/v2_billing_license_fee_version_created_event.rb +61 -0
  199. data/lib/stripe/events/v2_billing_licensed_item_created_event.rb +44 -0
  200. data/lib/stripe/events/v2_billing_licensed_item_updated_event.rb +44 -0
  201. data/lib/stripe/events/v2_billing_metered_item_created_event.rb +44 -0
  202. data/lib/stripe/events/v2_billing_metered_item_updated_event.rb +44 -0
  203. data/lib/stripe/events/v2_billing_pricing_plan_component_created_event.rb +61 -0
  204. data/lib/stripe/events/v2_billing_pricing_plan_component_updated_event.rb +61 -0
  205. data/lib/stripe/events/v2_billing_pricing_plan_created_event.rb +44 -0
  206. data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_awaiting_customer_action_event.rb +44 -0
  207. data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_current_event.rb +44 -0
  208. data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_past_due_event.rb +44 -0
  209. data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_paused_event.rb +44 -0
  210. data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_unpaid_event.rb +44 -0
  211. data/lib/stripe/events/v2_billing_pricing_plan_subscription_servicing_activated_event.rb +44 -0
  212. data/lib/stripe/events/v2_billing_pricing_plan_subscription_servicing_canceled_event.rb +44 -0
  213. data/lib/stripe/events/v2_billing_pricing_plan_subscription_servicing_paused_event.rb +44 -0
  214. data/lib/stripe/events/v2_billing_pricing_plan_updated_event.rb +44 -0
  215. data/lib/stripe/events/v2_billing_pricing_plan_version_created_event.rb +61 -0
  216. data/lib/stripe/events/v2_billing_rate_card_created_event.rb +61 -0
  217. data/lib/stripe/events/v2_billing_rate_card_rate_created_event.rb +67 -0
  218. data/lib/stripe/events/v2_billing_rate_card_subscription_activated_event.rb +44 -0
  219. data/lib/stripe/events/v2_billing_rate_card_subscription_canceled_event.rb +44 -0
  220. data/lib/stripe/events/v2_billing_rate_card_subscription_collection_awaiting_customer_action_event.rb +44 -0
  221. data/lib/stripe/events/v2_billing_rate_card_subscription_collection_current_event.rb +44 -0
  222. data/lib/stripe/events/v2_billing_rate_card_subscription_collection_past_due_event.rb +44 -0
  223. data/lib/stripe/events/v2_billing_rate_card_subscription_collection_paused_event.rb +44 -0
  224. data/lib/stripe/events/v2_billing_rate_card_subscription_collection_unpaid_event.rb +44 -0
  225. data/lib/stripe/events/v2_billing_rate_card_subscription_servicing_activated_event.rb +44 -0
  226. data/lib/stripe/events/v2_billing_rate_card_subscription_servicing_canceled_event.rb +44 -0
  227. data/lib/stripe/events/v2_billing_rate_card_subscription_servicing_paused_event.rb +44 -0
  228. data/lib/stripe/events/v2_billing_rate_card_updated_event.rb +44 -0
  229. data/lib/stripe/events/v2_billing_rate_card_version_created_event.rb +61 -0
  230. data/lib/stripe/events/v2_core_account_closed_event.rb +44 -0
  231. data/lib/stripe/events/v2_core_account_created_event.rb +44 -0
  232. data/lib/stripe/events/v2_core_account_including_configuration_customer_capability_status_updated_event.rb +63 -0
  233. data/lib/stripe/events/v2_core_account_including_configuration_customer_updated_event.rb +44 -0
  234. data/lib/stripe/events/v2_core_account_including_configuration_merchant_capability_status_updated_event.rb +63 -0
  235. data/lib/stripe/events/v2_core_account_including_configuration_merchant_updated_event.rb +44 -0
  236. data/lib/stripe/events/v2_core_account_including_configuration_recipient_capability_status_updated_event.rb +63 -0
  237. data/lib/stripe/events/v2_core_account_including_configuration_recipient_updated_event.rb +44 -0
  238. data/lib/stripe/events/v2_core_account_including_configuration_storer_capability_status_updated_event.rb +63 -0
  239. data/lib/stripe/events/v2_core_account_including_configuration_storer_updated_event.rb +44 -0
  240. data/lib/stripe/events/v2_core_account_including_defaults_updated_event.rb +44 -0
  241. data/lib/stripe/events/v2_core_account_including_identity_updated_event.rb +44 -0
  242. data/lib/stripe/events/v2_core_account_including_requirements_updated_event.rb +44 -0
  243. data/lib/stripe/events/v2_core_account_link_returned_event.rb +42 -0
  244. data/lib/stripe/events/v2_core_account_person_created_event.rb +61 -0
  245. data/lib/stripe/events/v2_core_account_person_deleted_event.rb +61 -0
  246. data/lib/stripe/events/v2_core_account_person_updated_event.rb +61 -0
  247. data/lib/stripe/events/v2_core_account_updated_event.rb +44 -0
  248. data/lib/stripe/events/v2_core_claimable_sandbox_claimed_event.rb +44 -0
  249. data/lib/stripe/events/v2_core_claimable_sandbox_created_event.rb +44 -0
  250. data/lib/stripe/events/v2_core_claimable_sandbox_expired_event.rb +44 -0
  251. data/lib/stripe/events/v2_core_claimable_sandbox_expiring_event.rb +44 -0
  252. data/lib/stripe/events/v2_core_claimable_sandbox_sandbox_details_owner_account_updated_event.rb +44 -0
  253. data/lib/stripe/events/v2_core_health_api_error_firing_event.rb +66 -0
  254. data/lib/stripe/events/v2_core_health_api_error_resolved_event.rb +66 -0
  255. data/lib/stripe/events/v2_core_health_api_latency_firing_event.rb +64 -0
  256. data/lib/stripe/events/v2_core_health_api_latency_resolved_event.rb +64 -0
  257. data/lib/stripe/events/v2_core_health_authorization_rate_drop_firing_event.rb +80 -0
  258. data/lib/stripe/events/v2_core_health_authorization_rate_drop_resolved_event.rb +80 -0
  259. data/lib/stripe/events/v2_core_health_event_generation_failure_resolved_event.rb +66 -0
  260. data/lib/stripe/events/v2_core_health_fraud_rate_increased_event.rb +64 -0
  261. data/lib/stripe/events/v2_core_health_issuing_authorization_request_errors_firing_event.rb +62 -0
  262. data/lib/stripe/events/v2_core_health_issuing_authorization_request_errors_resolved_event.rb +64 -0
  263. data/lib/stripe/events/v2_core_health_issuing_authorization_request_timeout_firing_event.rb +64 -0
  264. data/lib/stripe/events/v2_core_health_issuing_authorization_request_timeout_resolved_event.rb +64 -0
  265. data/lib/stripe/events/v2_core_health_payment_method_error_firing_event.rb +62 -0
  266. data/lib/stripe/events/v2_core_health_payment_method_error_resolved_event.rb +62 -0
  267. data/lib/stripe/events/v2_core_health_traffic_volume_drop_firing_event.rb +62 -0
  268. data/lib/stripe/events/v2_core_health_traffic_volume_drop_resolved_event.rb +62 -0
  269. data/lib/stripe/events/v2_core_health_webhook_latency_firing_event.rb +58 -0
  270. data/lib/stripe/events/v2_core_health_webhook_latency_resolved_event.rb +58 -0
  271. data/lib/stripe/events/v2_money_management_adjustment_created_event.rb +44 -0
  272. data/lib/stripe/events/v2_money_management_financial_account_created_event.rb +44 -0
  273. data/lib/stripe/events/v2_money_management_financial_account_updated_event.rb +44 -0
  274. data/lib/stripe/events/v2_money_management_financial_address_activated_event.rb +44 -0
  275. data/lib/stripe/events/v2_money_management_financial_address_failed_event.rb +44 -0
  276. data/lib/stripe/events/v2_money_management_inbound_transfer_available_event.rb +61 -0
  277. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_failed_event.rb +44 -0
  278. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_processing_event.rb +44 -0
  279. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_queued_event.rb +44 -0
  280. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_returned_event.rb +44 -0
  281. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_succeeded_event.rb +44 -0
  282. data/lib/stripe/events/v2_money_management_outbound_payment_canceled_event.rb +44 -0
  283. data/lib/stripe/events/v2_money_management_outbound_payment_created_event.rb +44 -0
  284. data/lib/stripe/events/v2_money_management_outbound_payment_failed_event.rb +44 -0
  285. data/lib/stripe/events/v2_money_management_outbound_payment_posted_event.rb +44 -0
  286. data/lib/stripe/events/v2_money_management_outbound_payment_returned_event.rb +44 -0
  287. data/lib/stripe/events/v2_money_management_outbound_payment_updated_event.rb +44 -0
  288. data/lib/stripe/events/v2_money_management_outbound_transfer_canceled_event.rb +44 -0
  289. data/lib/stripe/events/v2_money_management_outbound_transfer_created_event.rb +44 -0
  290. data/lib/stripe/events/v2_money_management_outbound_transfer_failed_event.rb +44 -0
  291. data/lib/stripe/events/v2_money_management_outbound_transfer_posted_event.rb +44 -0
  292. data/lib/stripe/events/v2_money_management_outbound_transfer_returned_event.rb +44 -0
  293. data/lib/stripe/events/v2_money_management_outbound_transfer_updated_event.rb +44 -0
  294. data/lib/stripe/events/v2_money_management_payout_method_updated_event.rb +44 -0
  295. data/lib/stripe/events/v2_money_management_received_credit_available_event.rb +61 -0
  296. data/lib/stripe/events/v2_money_management_received_credit_failed_event.rb +44 -0
  297. data/lib/stripe/events/v2_money_management_received_credit_returned_event.rb +44 -0
  298. data/lib/stripe/events/v2_money_management_received_credit_succeeded_event.rb +44 -0
  299. data/lib/stripe/events/v2_money_management_received_debit_canceled_event.rb +44 -0
  300. data/lib/stripe/events/v2_money_management_received_debit_failed_event.rb +44 -0
  301. data/lib/stripe/events/v2_money_management_received_debit_pending_event.rb +44 -0
  302. data/lib/stripe/events/v2_money_management_received_debit_succeeded_event.rb +44 -0
  303. data/lib/stripe/events/v2_money_management_received_debit_updated_event.rb +44 -0
  304. data/lib/stripe/events/v2_money_management_recipient_verification_created_event.rb +44 -0
  305. data/lib/stripe/events/v2_money_management_recipient_verification_updated_event.rb +44 -0
  306. data/lib/stripe/events/v2_money_management_transaction_created_event.rb +44 -0
  307. data/lib/stripe/events/v2_money_management_transaction_updated_event.rb +44 -0
  308. data/lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_failed_event.rb +44 -0
  309. data/lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_started_event.rb +46 -0
  310. data/lib/stripe/events/v2_payments_off_session_payment_canceled_event.rb +44 -0
  311. data/lib/stripe/events/v2_payments_off_session_payment_created_event.rb +44 -0
  312. data/lib/stripe/events/v2_payments_off_session_payment_failed_event.rb +44 -0
  313. data/lib/stripe/events/v2_payments_off_session_payment_requires_capture_event.rb +44 -0
  314. data/lib/stripe/events/v2_payments_off_session_payment_succeeded_event.rb +44 -0
  315. data/lib/stripe/object_types.rb +79 -0
  316. data/lib/stripe/params/account_create_params.rb +300 -1
  317. data/lib/stripe/params/account_notice_list_params.rb +25 -0
  318. data/lib/stripe/params/account_notice_retrieve_params.rb +13 -0
  319. data/lib/stripe/params/account_notice_update_params.rb +36 -0
  320. data/lib/stripe/params/account_session_create_params.rb +226 -1
  321. data/lib/stripe/params/account_update_params.rb +262 -0
  322. data/lib/stripe/params/billing/alert_create_params.rb +121 -1
  323. data/lib/stripe/params/billing/alert_list_params.rb +4 -0
  324. data/lib/stripe/params/billing/analytics/meter_usage_retrieve_params.rb +65 -0
  325. data/lib/stripe/params/billing/credit_balance_summary_retrieve_params.rb +17 -2
  326. data/lib/stripe/params/billing/credit_balance_transaction_list_params.rb +4 -0
  327. data/lib/stripe/params/billing/credit_grant_create_params.rb +33 -2
  328. data/lib/stripe/params/billing/credit_grant_list_params.rb +4 -0
  329. data/lib/stripe/params/billing_portal/session_create_params.rb +4 -0
  330. data/lib/stripe/params/capital/financing_offer_list_params.rb +58 -0
  331. data/lib/stripe/params/capital/financing_offer_mark_delivered_params.rb +15 -0
  332. data/lib/stripe/params/capital/financing_offer_retrieve_params.rb +15 -0
  333. data/lib/stripe/params/capital/financing_summary_retrieve_params.rb +15 -0
  334. data/lib/stripe/params/capital/financing_transaction_list_params.rb +45 -0
  335. data/lib/stripe/params/capital/financing_transaction_retrieve_params.rb +15 -0
  336. data/lib/stripe/params/charge_capture_params.rb +709 -0
  337. data/lib/stripe/params/charge_update_params.rb +709 -0
  338. data/lib/stripe/params/checkout/session_create_params.rb +273 -4
  339. data/lib/stripe/params/checkout/session_list_params.rb +4 -0
  340. data/lib/stripe/params/checkout/session_update_params.rb +288 -1
  341. data/lib/stripe/params/confirmation_token_create_params.rb +97 -0
  342. data/lib/stripe/params/coupon_create_params.rb +17 -1
  343. data/lib/stripe/params/credit_note_create_params.rb +18 -1
  344. data/lib/stripe/params/credit_note_list_params.rb +4 -0
  345. data/lib/stripe/params/credit_note_list_preview_line_items_params.rb +18 -1
  346. data/lib/stripe/params/credit_note_preview_lines_list_params.rb +18 -1
  347. data/lib/stripe/params/credit_note_preview_params.rb +18 -1
  348. data/lib/stripe/params/customer_session_create_params.rb +4 -1
  349. data/lib/stripe/params/dispute_update_params.rb +10 -1
  350. data/lib/stripe/params/external_account_create_params.rb +134 -0
  351. data/lib/stripe/params/external_account_delete_params.rb +6 -0
  352. data/lib/stripe/params/external_account_list_params.rb +25 -0
  353. data/lib/stripe/params/external_account_retrieve_params.rb +13 -0
  354. data/lib/stripe/params/external_account_update_params.rb +91 -0
  355. data/lib/stripe/params/financial_connections/account_inferred_balance_list_params.rb +24 -0
  356. data/lib/stripe/params/financial_connections/account_list_params.rb +4 -1
  357. data/lib/stripe/params/financial_connections/institution_list_params.rb +24 -0
  358. data/lib/stripe/params/financial_connections/institution_retrieve_params.rb +15 -0
  359. data/lib/stripe/params/financial_connections/session_create_params.rb +34 -2
  360. data/lib/stripe/params/fx_quote_create_params.rb +73 -0
  361. data/lib/stripe/params/fx_quote_list_params.rb +22 -0
  362. data/lib/stripe/params/fx_quote_retrieve_params.rb +13 -0
  363. data/lib/stripe/params/identity/verification_session_create_params.rb +4 -0
  364. data/lib/stripe/params/identity/verification_session_list_params.rb +4 -0
  365. data/lib/stripe/params/invoice_add_lines_params.rb +33 -1
  366. data/lib/stripe/params/invoice_attach_payment_params.rb +46 -1
  367. data/lib/stripe/params/invoice_create_params.rb +112 -2
  368. data/lib/stripe/params/invoice_create_preview_params.rb +826 -9
  369. data/lib/stripe/params/invoice_item_create_params.rb +37 -1
  370. data/lib/stripe/params/invoice_item_list_params.rb +4 -0
  371. data/lib/stripe/params/invoice_item_update_params.rb +33 -1
  372. data/lib/stripe/params/invoice_line_item_update_params.rb +33 -1
  373. data/lib/stripe/params/invoice_list_params.rb +8 -0
  374. data/lib/stripe/params/invoice_payment_list_params.rb +4 -1
  375. data/lib/stripe/params/invoice_update_lines_params.rb +33 -1
  376. data/lib/stripe/params/invoice_update_params.rb +108 -2
  377. data/lib/stripe/params/issuing/cardholder_create_params.rb +2 -1
  378. data/lib/stripe/params/issuing/credit_underwriting_record_correct_params.rb +163 -0
  379. data/lib/stripe/params/issuing/credit_underwriting_record_create_from_application_params.rb +50 -0
  380. data/lib/stripe/params/issuing/credit_underwriting_record_create_from_proactive_review_params.rb +128 -0
  381. data/lib/stripe/params/issuing/credit_underwriting_record_list_params.rb +24 -0
  382. data/lib/stripe/params/issuing/credit_underwriting_record_report_decision_params.rb +86 -0
  383. data/lib/stripe/params/issuing/credit_underwriting_record_retrieve_params.rb +15 -0
  384. data/lib/stripe/params/issuing/dispute_settlement_detail_list_params.rb +33 -0
  385. data/lib/stripe/params/issuing/dispute_settlement_detail_retrieve_params.rb +15 -0
  386. data/lib/stripe/params/issuing/fraud_liability_debit_list_params.rb +44 -0
  387. data/lib/stripe/params/issuing/fraud_liability_debit_retrieve_params.rb +15 -0
  388. data/lib/stripe/params/issuing/transaction_list_params.rb +4 -0
  389. data/lib/stripe/params/mandate_list_params.rb +39 -0
  390. data/lib/stripe/params/margin_create_params.rb +25 -0
  391. data/lib/stripe/params/margin_list_params.rb +25 -0
  392. data/lib/stripe/params/margin_retrieve_params.rb +13 -0
  393. data/lib/stripe/params/margin_update_params.rb +22 -0
  394. data/lib/stripe/params/order_cancel_params.rb +13 -0
  395. data/lib/stripe/params/order_create_params.rb +1124 -0
  396. data/lib/stripe/params/order_line_item_list_params.rb +22 -0
  397. data/lib/stripe/params/order_list_line_items_params.rb +22 -0
  398. data/lib/stripe/params/order_list_params.rb +25 -0
  399. data/lib/stripe/params/order_reopen_params.rb +13 -0
  400. data/lib/stripe/params/order_retrieve_params.rb +13 -0
  401. data/lib/stripe/params/order_submit_params.rb +16 -0
  402. data/lib/stripe/params/order_update_params.rb +1128 -0
  403. data/lib/stripe/params/payment_attempt_record_list_params.rb +19 -0
  404. data/lib/stripe/params/payment_attempt_record_retrieve_params.rb +13 -0
  405. data/lib/stripe/params/payment_intent_amount_details_line_item_list_params.rb +22 -0
  406. data/lib/stripe/params/payment_intent_capture_params.rb +895 -0
  407. data/lib/stripe/params/payment_intent_confirm_params.rb +1373 -7
  408. data/lib/stripe/params/payment_intent_create_params.rb +1387 -13
  409. data/lib/stripe/params/payment_intent_decrement_authorization_params.rb +73 -0
  410. data/lib/stripe/params/payment_intent_increment_authorization_params.rb +223 -0
  411. data/lib/stripe/params/payment_intent_list_params.rb +4 -0
  412. data/lib/stripe/params/payment_intent_trigger_action_params.rb +27 -0
  413. data/lib/stripe/params/payment_intent_update_params.rb +1409 -4
  414. data/lib/stripe/params/payment_method_attach_params.rb +4 -1
  415. data/lib/stripe/params/payment_method_configuration_create_params.rb +126 -0
  416. data/lib/stripe/params/payment_method_configuration_update_params.rb +126 -0
  417. data/lib/stripe/params/payment_method_create_params.rb +97 -0
  418. data/lib/stripe/params/payment_method_update_params.rb +19 -0
  419. data/lib/stripe/params/payment_record_report_payment_attempt_canceled_params.rb +19 -0
  420. data/lib/stripe/params/payment_record_report_payment_attempt_failed_params.rb +19 -0
  421. data/lib/stripe/params/payment_record_report_payment_attempt_guaranteed_params.rb +19 -0
  422. data/lib/stripe/params/payment_record_report_payment_attempt_informational_params.rb +93 -0
  423. data/lib/stripe/params/payment_record_report_payment_attempt_params.rb +186 -0
  424. data/lib/stripe/params/payment_record_report_payment_params.rb +252 -0
  425. data/lib/stripe/params/payment_record_retrieve_params.rb +13 -0
  426. data/lib/stripe/params/price_update_params.rb +19 -0
  427. data/lib/stripe/params/privacy/redaction_job_cancel_params.rb +15 -0
  428. data/lib/stripe/params/privacy/redaction_job_create_params.rb +67 -0
  429. data/lib/stripe/params/privacy/redaction_job_list_params.rb +27 -0
  430. data/lib/stripe/params/privacy/redaction_job_retrieve_params.rb +15 -0
  431. data/lib/stripe/params/privacy/redaction_job_run_params.rb +15 -0
  432. data/lib/stripe/params/privacy/redaction_job_update_params.rb +18 -0
  433. data/lib/stripe/params/privacy/redaction_job_validate_params.rb +15 -0
  434. data/lib/stripe/params/privacy/redaction_job_validation_error_list_params.rb +24 -0
  435. data/lib/stripe/params/promotion_code_create_params.rb +4 -0
  436. data/lib/stripe/params/promotion_code_list_params.rb +4 -0
  437. data/lib/stripe/params/quote_create_params.rb +805 -3
  438. data/lib/stripe/params/quote_line_list_params.rb +22 -0
  439. data/lib/stripe/params/quote_list_lines_params.rb +22 -0
  440. data/lib/stripe/params/quote_list_params.rb +8 -0
  441. data/lib/stripe/params/quote_list_preview_invoice_lines_params.rb +22 -0
  442. data/lib/stripe/params/quote_mark_draft_params.rb +13 -0
  443. data/lib/stripe/params/quote_mark_stale_params.rb +16 -0
  444. data/lib/stripe/params/quote_preview_invoice_list_params.rb +22 -0
  445. data/lib/stripe/params/quote_preview_subscription_schedule_list_params.rb +22 -0
  446. data/lib/stripe/params/quote_reestimate_params.rb +13 -0
  447. data/lib/stripe/params/quote_update_params.rb +813 -4
  448. data/lib/stripe/params/setup_intent_confirm_params.rb +225 -3
  449. data/lib/stripe/params/setup_intent_create_params.rb +231 -3
  450. data/lib/stripe/params/setup_intent_list_params.rb +4 -0
  451. data/lib/stripe/params/setup_intent_update_params.rb +231 -3
  452. data/lib/stripe/params/subscription_attach_cadence_params.rb +16 -0
  453. data/lib/stripe/params/subscription_create_params.rb +259 -5
  454. data/lib/stripe/params/subscription_item_create_params.rb +46 -2
  455. data/lib/stripe/params/subscription_item_update_params.rb +29 -1
  456. data/lib/stripe/params/subscription_list_params.rb +4 -0
  457. data/lib/stripe/params/subscription_schedule_amend_params.rb +570 -0
  458. data/lib/stripe/params/subscription_schedule_create_params.rb +167 -5
  459. data/lib/stripe/params/subscription_schedule_list_params.rb +4 -0
  460. data/lib/stripe/params/subscription_schedule_update_params.rb +163 -5
  461. data/lib/stripe/params/subscription_update_params.rb +238 -4
  462. data/lib/stripe/params/tax/association_find_params.rb +18 -0
  463. data/lib/stripe/params/tax/form_list_params.rb +51 -0
  464. data/lib/stripe/params/tax/form_pdf_params.rb +15 -0
  465. data/lib/stripe/params/tax/form_retrieve_params.rb +15 -0
  466. data/lib/stripe/params/tax_id_create_params.rb +4 -1
  467. data/lib/stripe/params/tax_id_list_params.rb +4 -1
  468. data/lib/stripe/params/terminal/configuration_create_params.rb +13 -0
  469. data/lib/stripe/params/terminal/configuration_update_params.rb +13 -0
  470. data/lib/stripe/params/terminal/onboarding_link_create_params.rb +43 -0
  471. data/lib/stripe/params/terminal/reader_collected_data_retrieve_params.rb +15 -0
  472. data/lib/stripe/params/test_helpers/confirmation_token_create_params.rb +97 -0
  473. data/lib/stripe/params/test_helpers/treasury/received_credit_create_params.rb +25 -1
  474. data/lib/stripe/params/test_helpers/treasury/received_debit_create_params.rb +25 -1
  475. data/lib/stripe/params/transfer_create_params.rb +4 -0
  476. data/lib/stripe/params/treasury/financial_account_create_params.rb +8 -1
  477. data/lib/stripe/params/treasury/financial_account_features_update_params.rb +4 -1
  478. data/lib/stripe/params/treasury/financial_account_update_features_params.rb +4 -1
  479. data/lib/stripe/params/treasury/financial_account_update_params.rb +8 -1
  480. data/lib/stripe/params/treasury/outbound_transfer_create_params.rb +24 -0
  481. data/lib/stripe/params/treasury/received_credit_create_params.rb +25 -1
  482. data/lib/stripe/params/treasury/received_debit_create_params.rb +25 -1
  483. data/lib/stripe/params/v2/billing/bill_setting_create_params.rb +74 -0
  484. data/lib/stripe/params/v2/billing/bill_setting_list_params.rb +21 -0
  485. data/lib/stripe/params/v2/billing/bill_setting_retrieve_params.rb +10 -0
  486. data/lib/stripe/params/v2/billing/bill_setting_update_params.rb +80 -0
  487. data/lib/stripe/params/v2/billing/bill_settings/version_list_params.rb +19 -0
  488. data/lib/stripe/params/v2/billing/bill_settings/version_retrieve_params.rb +12 -0
  489. data/lib/stripe/params/v2/billing/cadence_cancel_params.rb +17 -0
  490. data/lib/stripe/params/v2/billing/cadence_create_params.rb +257 -0
  491. data/lib/stripe/params/v2/billing/cadence_list_params.rb +43 -0
  492. data/lib/stripe/params/v2/billing/cadence_retrieve_params.rb +17 -0
  493. data/lib/stripe/params/v2/billing/cadence_update_params.rb +78 -0
  494. data/lib/stripe/params/v2/billing/collection_setting_create_params.rb +223 -0
  495. data/lib/stripe/params/v2/billing/collection_setting_list_params.rb +21 -0
  496. data/lib/stripe/params/v2/billing/collection_setting_retrieve_params.rb +10 -0
  497. data/lib/stripe/params/v2/billing/collection_setting_update_params.rb +229 -0
  498. data/lib/stripe/params/v2/billing/collection_settings/version_list_params.rb +19 -0
  499. data/lib/stripe/params/v2/billing/collection_settings/version_retrieve_params.rb +12 -0
  500. data/lib/stripe/params/v2/billing/custom_pricing_unit_create_params.rb +26 -0
  501. data/lib/stripe/params/v2/billing/custom_pricing_unit_list_params.rb +24 -0
  502. data/lib/stripe/params/v2/billing/custom_pricing_unit_retrieve_params.rb +10 -0
  503. data/lib/stripe/params/v2/billing/custom_pricing_unit_update_params.rb +26 -0
  504. data/lib/stripe/params/v2/billing/intent_cancel_params.rb +10 -0
  505. data/lib/stripe/params/v2/billing/intent_commit_params.rb +17 -0
  506. data/lib/stripe/params/v2/billing/intent_create_params.rb +355 -0
  507. data/lib/stripe/params/v2/billing/intent_list_params.rb +17 -0
  508. data/lib/stripe/params/v2/billing/intent_release_reservation_params.rb +10 -0
  509. data/lib/stripe/params/v2/billing/intent_reserve_params.rb +10 -0
  510. data/lib/stripe/params/v2/billing/intent_retrieve_params.rb +10 -0
  511. data/lib/stripe/params/v2/billing/intents/action_list_params.rb +19 -0
  512. data/lib/stripe/params/v2/billing/intents/action_retrieve_params.rb +12 -0
  513. data/lib/stripe/params/v2/billing/license_fee_create_params.rb +103 -0
  514. data/lib/stripe/params/v2/billing/license_fee_list_params.rb +24 -0
  515. data/lib/stripe/params/v2/billing/license_fee_retrieve_params.rb +10 -0
  516. data/lib/stripe/params/v2/billing/license_fee_subscription_retrieve_params.rb +10 -0
  517. data/lib/stripe/params/v2/billing/license_fee_update_params.rb +84 -0
  518. data/lib/stripe/params/v2/billing/license_fees/version_list_params.rb +19 -0
  519. data/lib/stripe/params/v2/billing/license_fees/version_retrieve_params.rb +12 -0
  520. data/lib/stripe/params/v2/billing/licensed_item_create_params.rb +48 -0
  521. data/lib/stripe/params/v2/billing/licensed_item_list_params.rb +21 -0
  522. data/lib/stripe/params/v2/billing/licensed_item_retrieve_params.rb +10 -0
  523. data/lib/stripe/params/v2/billing/licensed_item_update_params.rb +48 -0
  524. data/lib/stripe/params/v2/billing/metered_item_create_params.rb +73 -0
  525. data/lib/stripe/params/v2/billing/metered_item_list_params.rb +21 -0
  526. data/lib/stripe/params/v2/billing/metered_item_retrieve_params.rb +10 -0
  527. data/lib/stripe/params/v2/billing/metered_item_update_params.rb +50 -0
  528. data/lib/stripe/params/v2/billing/pricing_plan_create_params.rb +39 -0
  529. data/lib/stripe/params/v2/billing/pricing_plan_list_params.rb +24 -0
  530. data/lib/stripe/params/v2/billing/pricing_plan_retrieve_params.rb +10 -0
  531. data/lib/stripe/params/v2/billing/pricing_plan_subscription_list_params.rb +50 -0
  532. data/lib/stripe/params/v2/billing/pricing_plan_subscription_retrieve_params.rb +10 -0
  533. data/lib/stripe/params/v2/billing/pricing_plan_subscription_update_params.rb +20 -0
  534. data/lib/stripe/params/v2/billing/pricing_plan_update_params.rb +39 -0
  535. data/lib/stripe/params/v2/billing/pricing_plans/component_create_params.rb +73 -0
  536. data/lib/stripe/params/v2/billing/pricing_plans/component_delete_params.rb +12 -0
  537. data/lib/stripe/params/v2/billing/pricing_plans/component_list_params.rb +27 -0
  538. data/lib/stripe/params/v2/billing/pricing_plans/component_retrieve_params.rb +12 -0
  539. data/lib/stripe/params/v2/billing/pricing_plans/component_update_params.rb +22 -0
  540. data/lib/stripe/params/v2/billing/pricing_plans/version_list_params.rb +19 -0
  541. data/lib/stripe/params/v2/billing/pricing_plans/version_retrieve_params.rb +12 -0
  542. data/lib/stripe/params/v2/billing/profile_create_params.rb +37 -0
  543. data/lib/stripe/params/v2/billing/profile_list_params.rb +40 -0
  544. data/lib/stripe/params/v2/billing/profile_retrieve_params.rb +10 -0
  545. data/lib/stripe/params/v2/billing/profile_update_params.rb +35 -0
  546. data/lib/stripe/params/v2/billing/rate_card_create_params.rb +49 -0
  547. data/lib/stripe/params/v2/billing/rate_card_list_params.rb +24 -0
  548. data/lib/stripe/params/v2/billing/rate_card_retrieve_params.rb +10 -0
  549. data/lib/stripe/params/v2/billing/rate_card_subscription_cancel_params.rb +10 -0
  550. data/lib/stripe/params/v2/billing/rate_card_subscription_create_params.rb +26 -0
  551. data/lib/stripe/params/v2/billing/rate_card_subscription_list_params.rb +51 -0
  552. data/lib/stripe/params/v2/billing/rate_card_subscription_retrieve_params.rb +10 -0
  553. data/lib/stripe/params/v2/billing/rate_card_subscription_update_params.rb +17 -0
  554. data/lib/stripe/params/v2/billing/rate_card_update_params.rb +38 -0
  555. data/lib/stripe/params/v2/billing/rate_cards/rate_create_params.rb +91 -0
  556. data/lib/stripe/params/v2/billing/rate_cards/rate_delete_params.rb +12 -0
  557. data/lib/stripe/params/v2/billing/rate_cards/rate_list_params.rb +25 -0
  558. data/lib/stripe/params/v2/billing/rate_cards/rate_retrieve_params.rb +12 -0
  559. data/lib/stripe/params/v2/billing/rate_cards/version_list_params.rb +19 -0
  560. data/lib/stripe/params/v2/billing/rate_cards/version_retrieve_params.rb +12 -0
  561. data/lib/stripe/params/v2/billing/service_action_create_params.rb +254 -0
  562. data/lib/stripe/params/v2/billing/service_action_retrieve_params.rb +10 -0
  563. data/lib/stripe/params/v2/billing/service_action_update_params.rb +40 -0
  564. data/lib/stripe/params/v2/core/account_close_params.rb +17 -0
  565. data/lib/stripe/params/v2/core/account_create_params.rb +2234 -0
  566. data/lib/stripe/params/v2/core/account_link_create_params.rb +101 -0
  567. data/lib/stripe/params/v2/core/account_list_params.rb +20 -0
  568. data/lib/stripe/params/v2/core/account_retrieve_params.rb +17 -0
  569. data/lib/stripe/params/v2/core/account_update_params.rb +2262 -0
  570. data/lib/stripe/params/v2/core/accounts/person_create_params.rb +493 -0
  571. data/lib/stripe/params/v2/core/accounts/person_delete_params.rb +12 -0
  572. data/lib/stripe/params/v2/core/accounts/person_list_params.rb +19 -0
  573. data/lib/stripe/params/v2/core/accounts/person_retrieve_params.rb +12 -0
  574. data/lib/stripe/params/v2/core/accounts/person_update_params.rb +493 -0
  575. data/lib/stripe/params/v2/core/claimable_sandbox_create_params.rb +36 -0
  576. data/lib/stripe/params/v2/core/claimable_sandbox_retrieve_params.rb +10 -0
  577. data/lib/stripe/params/v2/core/vault/gb_bank_account_acknowledge_confirmation_of_payee_params.rb +12 -0
  578. data/lib/stripe/params/v2/core/vault/gb_bank_account_archive_params.rb +12 -0
  579. data/lib/stripe/params/v2/core/vault/gb_bank_account_create_params.rb +50 -0
  580. data/lib/stripe/params/v2/core/vault/gb_bank_account_initiate_confirmation_of_payee_params.rb +22 -0
  581. data/lib/stripe/params/v2/core/vault/gb_bank_account_retrieve_params.rb +12 -0
  582. data/lib/stripe/params/v2/core/vault/us_bank_account_archive_params.rb +12 -0
  583. data/lib/stripe/params/v2/core/vault/us_bank_account_create_params.rb +33 -0
  584. data/lib/stripe/params/v2/core/vault/us_bank_account_retrieve_params.rb +12 -0
  585. data/lib/stripe/params/v2/core/vault/us_bank_account_update_params.rb +22 -0
  586. data/lib/stripe/params/v2/money_management/adjustment_list_params.rb +48 -0
  587. data/lib/stripe/params/v2/money_management/adjustment_retrieve_params.rb +10 -0
  588. data/lib/stripe/params/v2/money_management/financial_account_close_params.rb +28 -0
  589. data/lib/stripe/params/v2/money_management/financial_account_create_params.rb +34 -0
  590. data/lib/stripe/params/v2/money_management/financial_account_list_params.rb +20 -0
  591. data/lib/stripe/params/v2/money_management/financial_account_retrieve_params.rb +10 -0
  592. data/lib/stripe/params/v2/money_management/financial_address_create_params.rb +31 -0
  593. data/lib/stripe/params/v2/money_management/financial_address_list_params.rb +23 -0
  594. data/lib/stripe/params/v2/money_management/financial_address_retrieve_params.rb +17 -0
  595. data/lib/stripe/params/v2/money_management/inbound_transfer_create_params.rb +50 -0
  596. data/lib/stripe/params/v2/money_management/inbound_transfer_list_params.rb +44 -0
  597. data/lib/stripe/params/v2/money_management/inbound_transfer_retrieve_params.rb +10 -0
  598. data/lib/stripe/params/v2/money_management/outbound_payment_cancel_params.rb +10 -0
  599. data/lib/stripe/params/v2/money_management/outbound_payment_create_params.rb +102 -0
  600. data/lib/stripe/params/v2/money_management/outbound_payment_list_params.rb +52 -0
  601. data/lib/stripe/params/v2/money_management/outbound_payment_quote_create_params.rb +67 -0
  602. data/lib/stripe/params/v2/money_management/outbound_payment_quote_retrieve_params.rb +10 -0
  603. data/lib/stripe/params/v2/money_management/outbound_payment_retrieve_params.rb +10 -0
  604. data/lib/stripe/params/v2/money_management/outbound_setup_intent_cancel_params.rb +10 -0
  605. data/lib/stripe/params/v2/money_management/outbound_setup_intent_create_params.rb +103 -0
  606. data/lib/stripe/params/v2/money_management/outbound_setup_intent_list_params.rb +17 -0
  607. data/lib/stripe/params/v2/money_management/outbound_setup_intent_retrieve_params.rb +10 -0
  608. data/lib/stripe/params/v2/money_management/outbound_setup_intent_update_params.rb +80 -0
  609. data/lib/stripe/params/v2/money_management/outbound_transfer_cancel_params.rb +10 -0
  610. data/lib/stripe/params/v2/money_management/outbound_transfer_create_params.rb +81 -0
  611. data/lib/stripe/params/v2/money_management/outbound_transfer_list_params.rb +48 -0
  612. data/lib/stripe/params/v2/money_management/outbound_transfer_retrieve_params.rb +10 -0
  613. data/lib/stripe/params/v2/money_management/payout_method_archive_params.rb +10 -0
  614. data/lib/stripe/params/v2/money_management/payout_method_list_params.rb +31 -0
  615. data/lib/stripe/params/v2/money_management/payout_method_retrieve_params.rb +10 -0
  616. data/lib/stripe/params/v2/money_management/payout_method_unarchive_params.rb +10 -0
  617. data/lib/stripe/params/v2/money_management/payout_methods_bank_account_spec_retrieve_params.rb +17 -0
  618. data/lib/stripe/params/v2/money_management/received_credit_list_params.rb +44 -0
  619. data/lib/stripe/params/v2/money_management/received_credit_retrieve_params.rb +10 -0
  620. data/lib/stripe/params/v2/money_management/received_debit_list_params.rb +17 -0
  621. data/lib/stripe/params/v2/money_management/received_debit_retrieve_params.rb +10 -0
  622. data/lib/stripe/params/v2/money_management/recipient_verification_acknowledge_params.rb +10 -0
  623. data/lib/stripe/params/v2/money_management/recipient_verification_create_params.rb +20 -0
  624. data/lib/stripe/params/v2/money_management/recipient_verification_retrieve_params.rb +10 -0
  625. data/lib/stripe/params/v2/money_management/transaction_entry_list_params.rb +43 -0
  626. data/lib/stripe/params/v2/money_management/transaction_entry_retrieve_params.rb +10 -0
  627. data/lib/stripe/params/v2/money_management/transaction_list_params.rb +47 -0
  628. data/lib/stripe/params/v2/money_management/transaction_retrieve_params.rb +10 -0
  629. data/lib/stripe/params/v2/payments/off_session_payment_cancel_params.rb +10 -0
  630. data/lib/stripe/params/v2/payments/off_session_payment_capture_params.rb +61 -0
  631. data/lib/stripe/params/v2/payments/off_session_payment_create_params.rb +237 -0
  632. data/lib/stripe/params/v2/payments/off_session_payment_list_params.rb +17 -0
  633. data/lib/stripe/params/v2/payments/off_session_payment_retrieve_params.rb +10 -0
  634. data/lib/stripe/params/v2/tax/automatic_rule_create_params.rb +20 -0
  635. data/lib/stripe/params/v2/tax/automatic_rule_deactivate_params.rb +10 -0
  636. data/lib/stripe/params/v2/tax/automatic_rule_find_params.rb +17 -0
  637. data/lib/stripe/params/v2/tax/automatic_rule_retrieve_params.rb +10 -0
  638. data/lib/stripe/params/v2/tax/automatic_rule_update_params.rb +17 -0
  639. data/lib/stripe/params/v2/test_helpers/financial_address_credit_params.rb +23 -0
  640. data/lib/stripe/params/v2/test_helpers/financial_address_generate_microdeposits_params.rb +10 -0
  641. data/lib/stripe/params/v2/test_helpers/money_management_recipient_verifications_params.rb +23 -0
  642. data/lib/stripe/params.rb +240 -0
  643. data/lib/stripe/resources/account.rb +166 -1
  644. data/lib/stripe/resources/account_notice.rb +94 -0
  645. data/lib/stripe/resources/account_session.rb +81 -0
  646. data/lib/stripe/resources/billing/alert.rb +105 -1
  647. data/lib/stripe/resources/billing/alert_triggered.rb +6 -0
  648. data/lib/stripe/resources/billing/analytics/meter_usage.rb +33 -0
  649. data/lib/stripe/resources/billing/analytics/meter_usage_row.rb +38 -0
  650. data/lib/stripe/resources/billing/credit_balance_summary.rb +86 -2
  651. data/lib/stripe/resources/billing/credit_balance_transaction.rb +84 -2
  652. data/lib/stripe/resources/billing/credit_grant.rb +60 -2
  653. data/lib/stripe/resources/billing_portal/session.rb +2 -0
  654. data/lib/stripe/resources/capital/financing_offer.rb +142 -0
  655. data/lib/stripe/resources/capital/financing_summary.rb +79 -0
  656. data/lib/stripe/resources/capital/financing_transaction.rb +99 -0
  657. data/lib/stripe/resources/card.rb +2 -0
  658. data/lib/stripe/resources/cash_balance.rb +2 -0
  659. data/lib/stripe/resources/charge.rb +234 -1
  660. data/lib/stripe/resources/checkout/session.rb +246 -4
  661. data/lib/stripe/resources/confirmation_token.rb +155 -0
  662. data/lib/stripe/resources/coupon.rb +26 -1
  663. data/lib/stripe/resources/credit_note.rb +21 -1
  664. data/lib/stripe/resources/credit_note_line_item.rb +18 -0
  665. data/lib/stripe/resources/customer.rb +2 -0
  666. data/lib/stripe/resources/customer_balance_transaction.rb +2 -0
  667. data/lib/stripe/resources/customer_cash_balance_transaction.rb +2 -0
  668. data/lib/stripe/resources/customer_session.rb +2 -0
  669. data/lib/stripe/resources/discount.rb +2 -0
  670. data/lib/stripe/resources/dispute.rb +22 -0
  671. data/lib/stripe/resources/event.rb +64 -1
  672. data/lib/stripe/resources/financial_connections/account.rb +27 -0
  673. data/lib/stripe/resources/financial_connections/account_inferred_balance.rb +35 -0
  674. data/lib/stripe/resources/financial_connections/institution.rb +127 -0
  675. data/lib/stripe/resources/financial_connections/session.rb +67 -1
  676. data/lib/stripe/resources/fx_quote.rb +147 -0
  677. data/lib/stripe/resources/identity/verification_session.rb +2 -0
  678. data/lib/stripe/resources/invoice.rb +152 -1
  679. data/lib/stripe/resources/invoice_item.rb +94 -2
  680. data/lib/stripe/resources/invoice_line_item.rb +131 -1
  681. data/lib/stripe/resources/invoice_payment.rb +2 -0
  682. data/lib/stripe/resources/issuing/credit_underwriting_record.rb +263 -0
  683. data/lib/stripe/resources/issuing/dispute_settlement_detail.rb +71 -0
  684. data/lib/stripe/resources/issuing/fraud_liability_debit.rb +51 -0
  685. data/lib/stripe/resources/issuing/settlement.rb +61 -0
  686. data/lib/stripe/resources/issuing/transaction.rb +2 -0
  687. data/lib/stripe/resources/line_item.rb +68 -1
  688. data/lib/stripe/resources/mandate.rb +71 -0
  689. data/lib/stripe/resources/margin.rb +64 -0
  690. data/lib/stripe/resources/order.rb +987 -0
  691. data/lib/stripe/resources/payment_attempt_record.rb +2102 -0
  692. data/lib/stripe/resources/payment_intent.rb +848 -4
  693. data/lib/stripe/resources/payment_intent_amount_details_line_item.rb +128 -0
  694. data/lib/stripe/resources/payment_method.rb +157 -0
  695. data/lib/stripe/resources/payment_method_configuration.rb +204 -0
  696. data/lib/stripe/resources/payment_record.rb +2208 -0
  697. data/lib/stripe/resources/price.rb +20 -0
  698. data/lib/stripe/resources/privacy/redaction_job.rb +187 -0
  699. data/lib/stripe/resources/privacy/redaction_job_validation_error.rb +49 -0
  700. data/lib/stripe/resources/promotion_code.rb +2 -0
  701. data/lib/stripe/resources/quote.rb +571 -2
  702. data/lib/stripe/resources/quote_line.rb +521 -0
  703. data/lib/stripe/resources/quote_preview_invoice.rb +1150 -0
  704. data/lib/stripe/resources/quote_preview_subscription_schedule.rb +732 -0
  705. data/lib/stripe/resources/refund.rb +18 -0
  706. data/lib/stripe/resources/setup_attempt.rb +63 -0
  707. data/lib/stripe/resources/setup_intent.rb +132 -1
  708. data/lib/stripe/resources/source.rb +38 -0
  709. data/lib/stripe/resources/subscription.rb +232 -0
  710. data/lib/stripe/resources/subscription_item.rb +20 -1
  711. data/lib/stripe/resources/subscription_schedule.rb +198 -3
  712. data/lib/stripe/resources/tax/association.rb +86 -0
  713. data/lib/stripe/resources/tax/form.rb +264 -0
  714. data/lib/stripe/resources/tax_id.rb +4 -0
  715. data/lib/stripe/resources/terminal/configuration.rb +16 -0
  716. data/lib/stripe/resources/terminal/onboarding_link.rb +71 -0
  717. data/lib/stripe/resources/terminal/reader.rb +8 -0
  718. data/lib/stripe/resources/terminal/reader_collected_data.rb +47 -0
  719. data/lib/stripe/resources/transfer.rb +2 -0
  720. data/lib/stripe/resources/treasury/financial_account.rb +2 -0
  721. data/lib/stripe/resources/treasury/financial_account_features.rb +2 -0
  722. data/lib/stripe/resources/treasury/outbound_transfer.rb +30 -0
  723. data/lib/stripe/resources/treasury/received_credit.rb +30 -0
  724. data/lib/stripe/resources/treasury/received_debit.rb +32 -0
  725. data/lib/stripe/resources/v2/billing/bill_setting.rb +102 -0
  726. data/lib/stripe/resources/v2/billing/bill_setting_version.rb +90 -0
  727. data/lib/stripe/resources/v2/billing/cadence.rb +655 -0
  728. data/lib/stripe/resources/v2/billing/collection_setting.rb +274 -0
  729. data/lib/stripe/resources/v2/billing/collection_setting_version.rb +262 -0
  730. data/lib/stripe/resources/v2/billing/custom_pricing_unit.rb +43 -0
  731. data/lib/stripe/resources/v2/billing/intent.rb +86 -0
  732. data/lib/stripe/resources/v2/billing/intent_action.rb +395 -0
  733. data/lib/stripe/resources/v2/billing/license_fee.rb +104 -0
  734. data/lib/stripe/resources/v2/billing/license_fee_subscription.rb +44 -0
  735. data/lib/stripe/resources/v2/billing/license_fee_version.rb +80 -0
  736. data/lib/stripe/resources/v2/billing/licensed_item.rb +60 -0
  737. data/lib/stripe/resources/v2/billing/metered_item.rb +85 -0
  738. data/lib/stripe/resources/v2/billing/pricing_plan.rb +51 -0
  739. data/lib/stripe/resources/v2/billing/pricing_plan_component.rb +94 -0
  740. data/lib/stripe/resources/v2/billing/pricing_plan_subscription.rb +94 -0
  741. data/lib/stripe/resources/v2/billing/pricing_plan_version.rb +38 -0
  742. data/lib/stripe/resources/v2/billing/profile.rb +46 -0
  743. data/lib/stripe/resources/v2/billing/rate_card.rb +61 -0
  744. data/lib/stripe/resources/v2/billing/rate_card_rate.rb +110 -0
  745. data/lib/stripe/resources/v2/billing/rate_card_subscription.rb +94 -0
  746. data/lib/stripe/resources/v2/billing/rate_card_version.rb +34 -0
  747. data/lib/stripe/resources/v2/billing/service_action.rb +244 -0
  748. data/lib/stripe/resources/v2/core/account.rb +3885 -0
  749. data/lib/stripe/resources/v2/core/account_link.rb +123 -0
  750. data/lib/stripe/resources/v2/core/account_person.rb +477 -0
  751. data/lib/stripe/resources/v2/core/claimable_sandbox.rb +105 -0
  752. data/lib/stripe/resources/v2/core/event.rb +4 -0
  753. data/lib/stripe/resources/v2/core/vault/gb_bank_account.rb +114 -0
  754. data/lib/stripe/resources/v2/core/vault/us_bank_account.rb +47 -0
  755. data/lib/stripe/resources/v2/financial_address_credit_simulation.rb +28 -0
  756. data/lib/stripe/resources/v2/financial_address_generated_microdeposits.rb +30 -0
  757. data/lib/stripe/resources/v2/money_management/adjustment.rb +67 -0
  758. data/lib/stripe/resources/v2/money_management/financial_account.rb +140 -0
  759. data/lib/stripe/resources/v2/money_management/financial_address.rb +132 -0
  760. data/lib/stripe/resources/v2/money_management/inbound_transfer.rb +148 -0
  761. data/lib/stripe/resources/v2/money_management/outbound_payment.rb +219 -0
  762. data/lib/stripe/resources/v2/money_management/outbound_payment_quote.rb +144 -0
  763. data/lib/stripe/resources/v2/money_management/outbound_setup_intent.rb +69 -0
  764. data/lib/stripe/resources/v2/money_management/outbound_transfer.rb +198 -0
  765. data/lib/stripe/resources/v2/money_management/payout_method.rb +137 -0
  766. data/lib/stripe/resources/v2/money_management/payout_methods_bank_account_spec.rb +81 -0
  767. data/lib/stripe/resources/v2/money_management/received_credit.rb +228 -0
  768. data/lib/stripe/resources/v2/money_management/received_debit.rb +138 -0
  769. data/lib/stripe/resources/v2/money_management/recipient_verification.rb +83 -0
  770. data/lib/stripe/resources/v2/money_management/transaction.rb +116 -0
  771. data/lib/stripe/resources/v2/money_management/transaction_entry.rb +105 -0
  772. data/lib/stripe/resources/v2/payments/off_session_payment.rb +242 -0
  773. data/lib/stripe/resources/v2/tax/automatic_rule.rb +39 -0
  774. data/lib/stripe/resources.rb +384 -0
  775. data/lib/stripe/services/account_notice_service.rb +39 -0
  776. data/lib/stripe/services/billing/analytics/meter_usage_service.rb +21 -0
  777. data/lib/stripe/services/billing/analytics_service.rb +15 -0
  778. data/lib/stripe/services/billing_service.rb +2 -1
  779. data/lib/stripe/services/capital/financing_offer_service.rb +42 -0
  780. data/lib/stripe/services/capital/financing_summary_service.rb +19 -0
  781. data/lib/stripe/services/capital/financing_transaction_service.rb +31 -0
  782. data/lib/stripe/services/capital_service.rb +15 -0
  783. data/lib/stripe/services/external_account_service.rb +68 -0
  784. data/lib/stripe/services/financial_connections/account_inferred_balance_service.rb +19 -0
  785. data/lib/stripe/services/financial_connections/account_service.rb +3 -1
  786. data/lib/stripe/services/financial_connections/institution_service.rb +30 -0
  787. data/lib/stripe/services/financial_connections_service.rb +2 -1
  788. data/lib/stripe/services/fx_quote_service.rb +27 -0
  789. data/lib/stripe/services/issuing/credit_underwriting_record_service.rb +74 -0
  790. data/lib/stripe/services/issuing/dispute_settlement_detail_service.rb +30 -0
  791. data/lib/stripe/services/issuing/fraud_liability_debit_service.rb +30 -0
  792. data/lib/stripe/services/issuing_service.rb +5 -1
  793. data/lib/stripe/services/mandate_service.rb +5 -0
  794. data/lib/stripe/services/margin_service.rb +50 -0
  795. data/lib/stripe/services/order_line_item_service.rb +17 -0
  796. data/lib/stripe/services/order_service.rb +78 -0
  797. data/lib/stripe/services/payment_attempt_record_service.rb +28 -0
  798. data/lib/stripe/services/payment_intent_amount_details_line_item_service.rb +17 -0
  799. data/lib/stripe/services/payment_intent_service.rb +44 -0
  800. data/lib/stripe/services/payment_record_service.rb +89 -0
  801. data/lib/stripe/services/privacy/redaction_job_service.rb +104 -0
  802. data/lib/stripe/services/privacy/redaction_job_validation_error_service.rb +19 -0
  803. data/lib/stripe/services/privacy_service.rb +13 -0
  804. data/lib/stripe/services/quote_line_service.rb +17 -0
  805. data/lib/stripe/services/quote_preview_invoice_service.rb +17 -0
  806. data/lib/stripe/services/quote_preview_subscription_schedule_service.rb +17 -0
  807. data/lib/stripe/services/quote_service.rb +49 -1
  808. data/lib/stripe/services/subscription_schedule_service.rb +11 -0
  809. data/lib/stripe/services/subscription_service.rb +11 -0
  810. data/lib/stripe/services/tax/association_service.rb +19 -0
  811. data/lib/stripe/services/tax/form_service.rb +37 -0
  812. data/lib/stripe/services/tax_service.rb +3 -1
  813. data/lib/stripe/services/terminal/onboarding_link_service.rb +19 -0
  814. data/lib/stripe/services/terminal/reader_collected_data_service.rb +19 -0
  815. data/lib/stripe/services/terminal_service.rb +3 -1
  816. data/lib/stripe/services/v1_services.rb +10 -1
  817. data/lib/stripe/services/v2/billing/bill_setting_service.rb +61 -0
  818. data/lib/stripe/services/v2/billing/bill_settings/version_service.rb +34 -0
  819. data/lib/stripe/services/v2/billing/cadence_service.rb +65 -0
  820. data/lib/stripe/services/v2/billing/collection_setting_service.rb +61 -0
  821. data/lib/stripe/services/v2/billing/collection_settings/version_service.rb +34 -0
  822. data/lib/stripe/services/v2/billing/custom_pricing_unit_service.rb +54 -0
  823. data/lib/stripe/services/v2/billing/intent_service.rb +94 -0
  824. data/lib/stripe/services/v2/billing/intents/action_service.rb +34 -0
  825. data/lib/stripe/services/v2/billing/license_fee_service.rb +61 -0
  826. data/lib/stripe/services/v2/billing/license_fee_subscription_service.rb +21 -0
  827. data/lib/stripe/services/v2/billing/license_fees/version_service.rb +34 -0
  828. data/lib/stripe/services/v2/billing/licensed_item_service.rb +54 -0
  829. data/lib/stripe/services/v2/billing/metered_item_service.rb +54 -0
  830. data/lib/stripe/services/v2/billing/pricing_plan_service.rb +62 -0
  831. data/lib/stripe/services/v2/billing/pricing_plan_subscription_service.rb +43 -0
  832. data/lib/stripe/services/v2/billing/pricing_plans/component_service.rb +67 -0
  833. data/lib/stripe/services/v2/billing/pricing_plans/version_service.rb +34 -0
  834. data/lib/stripe/services/v2/billing/profile_service.rb +54 -0
  835. data/lib/stripe/services/v2/billing/rate_card_service.rb +62 -0
  836. data/lib/stripe/services/v2/billing/rate_card_subscription_service.rb +65 -0
  837. data/lib/stripe/services/v2/billing/rate_cards/rate_service.rb +57 -0
  838. data/lib/stripe/services/v2/billing/rate_cards/version_service.rb +34 -0
  839. data/lib/stripe/services/v2/billing/service_action_service.rb +43 -0
  840. data/lib/stripe/services/v2/billing_service.rb +18 -1
  841. data/lib/stripe/services/v2/core/account_link_service.rb +21 -0
  842. data/lib/stripe/services/v2/core/account_service.rb +76 -0
  843. data/lib/stripe/services/v2/core/accounts/person_service.rb +67 -0
  844. data/lib/stripe/services/v2/core/claimable_sandbox_service.rb +35 -0
  845. data/lib/stripe/services/v2/core/vault/gb_bank_account_service.rb +74 -0
  846. data/lib/stripe/services/v2/core/vault/us_bank_account_service.rb +68 -0
  847. data/lib/stripe/services/v2/core/vault_service.rb +18 -0
  848. data/lib/stripe/services/v2/core_service.rb +5 -1
  849. data/lib/stripe/services/v2/money_management/adjustment_service.rb +32 -0
  850. data/lib/stripe/services/v2/money_management/financial_account_service.rb +59 -0
  851. data/lib/stripe/services/v2/money_management/financial_address_service.rb +46 -0
  852. data/lib/stripe/services/v2/money_management/inbound_transfer_service.rb +45 -0
  853. data/lib/stripe/services/v2/money_management/outbound_payment_quote_service.rb +34 -0
  854. data/lib/stripe/services/v2/money_management/outbound_payment_service.rb +62 -0
  855. data/lib/stripe/services/v2/money_management/outbound_setup_intent_service.rb +73 -0
  856. data/lib/stripe/services/v2/money_management/outbound_transfer_service.rb +60 -0
  857. data/lib/stripe/services/v2/money_management/payout_method_service.rb +63 -0
  858. data/lib/stripe/services/v2/money_management/payout_methods_bank_account_spec_service.rb +23 -0
  859. data/lib/stripe/services/v2/money_management/received_credit_service.rb +32 -0
  860. data/lib/stripe/services/v2/money_management/received_debit_service.rb +32 -0
  861. data/lib/stripe/services/v2/money_management/recipient_verification_service.rb +43 -0
  862. data/lib/stripe/services/v2/money_management/transaction_entry_service.rb +32 -0
  863. data/lib/stripe/services/v2/money_management/transaction_service.rb +32 -0
  864. data/lib/stripe/services/v2/money_management_service.rb +33 -0
  865. data/lib/stripe/services/v2/payment_service.rb +15 -0
  866. data/lib/stripe/services/v2/payments/off_session_payment_service.rb +65 -0
  867. data/lib/stripe/services/v2/tax/automatic_rule_service.rb +65 -0
  868. data/lib/stripe/services/v2/tax_service.rb +15 -0
  869. data/lib/stripe/services/v2/test_helper_service.rb +16 -0
  870. data/lib/stripe/services/v2/test_helpers/financial_address_service.rb +36 -0
  871. data/lib/stripe/services/v2/test_helpers/money_management_service.rb +21 -0
  872. data/lib/stripe/services/v2_services.rb +5 -1
  873. data/lib/stripe/services.rb +83 -0
  874. data/lib/stripe/stripe_configuration.rb +3 -1
  875. data/lib/stripe/stripe_object.rb +1 -1
  876. data/lib/stripe/util.rb +7 -1
  877. data/lib/stripe/version.rb +1 -1
  878. data/lib/stripe.rb +53 -0
  879. data/rbi/stripe.rbi +165861 -94330
  880. metadata +711 -4
@@ -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 whenever a review is opened.
7
+ class V1ReviewOpenedEvent < Stripe::V2::Core::Event
8
+ def self.lookup_type
9
+ "v1.review.opened"
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 whenever a review is opened.
25
+ class V1ReviewOpenedEventNotification < Stripe::V2::Core::EventNotification
26
+ def self.lookup_type
27
+ "v1.review.opened"
28
+ end
29
+
30
+ attr_reader :related_object
31
+
32
+ # Retrieves the Review 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,44 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module Events
6
+ # Occurs when a SetupIntent is canceled.
7
+ class V1SetupIntentCanceledEvent < Stripe::V2::Core::Event
8
+ def self.lookup_type
9
+ "v1.setup_intent.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 SetupIntent is canceled.
25
+ class V1SetupIntentCanceledEventNotification < Stripe::V2::Core::EventNotification
26
+ def self.lookup_type
27
+ "v1.setup_intent.canceled"
28
+ end
29
+
30
+ attr_reader :related_object
31
+
32
+ # Retrieves the SetupIntent 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,44 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module Events
6
+ # Occurs when a new SetupIntent is created.
7
+ class V1SetupIntentCreatedEvent < Stripe::V2::Core::Event
8
+ def self.lookup_type
9
+ "v1.setup_intent.created"
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 new SetupIntent is created.
25
+ class V1SetupIntentCreatedEventNotification < Stripe::V2::Core::EventNotification
26
+ def self.lookup_type
27
+ "v1.setup_intent.created"
28
+ end
29
+
30
+ attr_reader :related_object
31
+
32
+ # Retrieves the SetupIntent 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,44 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module Events
6
+ # Occurs when a SetupIntent is in requires_action state.
7
+ class V1SetupIntentRequiresActionEvent < Stripe::V2::Core::Event
8
+ def self.lookup_type
9
+ "v1.setup_intent.requires_action"
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 SetupIntent is in requires_action state.
25
+ class V1SetupIntentRequiresActionEventNotification < Stripe::V2::Core::EventNotification
26
+ def self.lookup_type
27
+ "v1.setup_intent.requires_action"
28
+ end
29
+
30
+ attr_reader :related_object
31
+
32
+ # Retrieves the SetupIntent 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,44 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module Events
6
+ # Occurs when a SetupIntent has failed the attempt to setup a payment method.
7
+ class V1SetupIntentSetupFailedEvent < Stripe::V2::Core::Event
8
+ def self.lookup_type
9
+ "v1.setup_intent.setup_failed"
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 SetupIntent has failed the attempt to setup a payment method.
25
+ class V1SetupIntentSetupFailedEventNotification < Stripe::V2::Core::EventNotification
26
+ def self.lookup_type
27
+ "v1.setup_intent.setup_failed"
28
+ end
29
+
30
+ attr_reader :related_object
31
+
32
+ # Retrieves the SetupIntent 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,44 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module Events
6
+ # Occurs when an SetupIntent has successfully setup a payment method.
7
+ class V1SetupIntentSucceededEvent < Stripe::V2::Core::Event
8
+ def self.lookup_type
9
+ "v1.setup_intent.succeeded"
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 an SetupIntent has successfully setup a payment method.
25
+ class V1SetupIntentSucceededEventNotification < Stripe::V2::Core::EventNotification
26
+ def self.lookup_type
27
+ "v1.setup_intent.succeeded"
28
+ end
29
+
30
+ attr_reader :related_object
31
+
32
+ # Retrieves the SetupIntent 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,44 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module Events
6
+ # Occurs whenever a Sigma scheduled query run finishes.
7
+ class V1SigmaScheduledQueryRunCreatedEvent < Stripe::V2::Core::Event
8
+ def self.lookup_type
9
+ "v1.sigma.scheduled_query_run.created"
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 whenever a Sigma scheduled query run finishes.
25
+ class V1SigmaScheduledQueryRunCreatedEventNotification < Stripe::V2::Core::EventNotification
26
+ def self.lookup_type
27
+ "v1.sigma.scheduled_query_run.created"
28
+ end
29
+
30
+ attr_reader :related_object
31
+
32
+ # Retrieves the ScheduledQueryRun 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,44 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module Events
6
+ # Occurs whenever a source is canceled.
7
+ class V1SourceCanceledEvent < Stripe::V2::Core::Event
8
+ def self.lookup_type
9
+ "v1.source.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 whenever a source is canceled.
25
+ class V1SourceCanceledEventNotification < Stripe::V2::Core::EventNotification
26
+ def self.lookup_type
27
+ "v1.source.canceled"
28
+ end
29
+
30
+ attr_reader :related_object
31
+
32
+ # Retrieves the Source 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,44 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module Events
6
+ # Occurs whenever a source transitions to chargeable.
7
+ class V1SourceChargeableEvent < Stripe::V2::Core::Event
8
+ def self.lookup_type
9
+ "v1.source.chargeable"
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 whenever a source transitions to chargeable.
25
+ class V1SourceChargeableEventNotification < Stripe::V2::Core::EventNotification
26
+ def self.lookup_type
27
+ "v1.source.chargeable"
28
+ end
29
+
30
+ attr_reader :related_object
31
+
32
+ # Retrieves the Source 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,44 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module Events
6
+ # Occurs whenever a source fails.
7
+ class V1SourceFailedEvent < Stripe::V2::Core::Event
8
+ def self.lookup_type
9
+ "v1.source.failed"
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 whenever a source fails.
25
+ class V1SourceFailedEventNotification < Stripe::V2::Core::EventNotification
26
+ def self.lookup_type
27
+ "v1.source.failed"
28
+ end
29
+
30
+ attr_reader :related_object
31
+
32
+ # Retrieves the Source 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,44 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module Events
6
+ # Occurs whenever the refund attributes are required on a receiver source to process a refund or a mispayment.
7
+ class V1SourceRefundAttributesRequiredEvent < Stripe::V2::Core::Event
8
+ def self.lookup_type
9
+ "v1.source.refund_attributes_required"
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 whenever the refund attributes are required on a receiver source to process a refund or a mispayment.
25
+ class V1SourceRefundAttributesRequiredEventNotification < Stripe::V2::Core::EventNotification
26
+ def self.lookup_type
27
+ "v1.source.refund_attributes_required"
28
+ end
29
+
30
+ attr_reader :related_object
31
+
32
+ # Retrieves the Source 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,44 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module Events
6
+ # Occurs whenever a subscription schedule is canceled due to the underlying subscription being canceled because of delinquency.
7
+ class V1SubscriptionScheduleAbortedEvent < Stripe::V2::Core::Event
8
+ def self.lookup_type
9
+ "v1.subscription_schedule.aborted"
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 whenever a subscription schedule is canceled due to the underlying subscription being canceled because of delinquency.
25
+ class V1SubscriptionScheduleAbortedEventNotification < Stripe::V2::Core::EventNotification
26
+ def self.lookup_type
27
+ "v1.subscription_schedule.aborted"
28
+ end
29
+
30
+ attr_reader :related_object
31
+
32
+ # Retrieves the SubscriptionSchedule 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,44 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module Events
6
+ # Occurs whenever a subscription schedule is canceled.
7
+ class V1SubscriptionScheduleCanceledEvent < Stripe::V2::Core::Event
8
+ def self.lookup_type
9
+ "v1.subscription_schedule.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 whenever a subscription schedule is canceled.
25
+ class V1SubscriptionScheduleCanceledEventNotification < Stripe::V2::Core::EventNotification
26
+ def self.lookup_type
27
+ "v1.subscription_schedule.canceled"
28
+ end
29
+
30
+ attr_reader :related_object
31
+
32
+ # Retrieves the SubscriptionSchedule 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,44 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module Events
6
+ # Occurs whenever a new subscription schedule is completed.
7
+ class V1SubscriptionScheduleCompletedEvent < Stripe::V2::Core::Event
8
+ def self.lookup_type
9
+ "v1.subscription_schedule.completed"
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 whenever a new subscription schedule is completed.
25
+ class V1SubscriptionScheduleCompletedEventNotification < Stripe::V2::Core::EventNotification
26
+ def self.lookup_type
27
+ "v1.subscription_schedule.completed"
28
+ end
29
+
30
+ attr_reader :related_object
31
+
32
+ # Retrieves the SubscriptionSchedule 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,44 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module Events
6
+ # Occurs whenever a new subscription schedule is created.
7
+ class V1SubscriptionScheduleCreatedEvent < Stripe::V2::Core::Event
8
+ def self.lookup_type
9
+ "v1.subscription_schedule.created"
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 whenever a new subscription schedule is created.
25
+ class V1SubscriptionScheduleCreatedEventNotification < Stripe::V2::Core::EventNotification
26
+ def self.lookup_type
27
+ "v1.subscription_schedule.created"
28
+ end
29
+
30
+ attr_reader :related_object
31
+
32
+ # Retrieves the SubscriptionSchedule 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