stripe 17.1.0 → 17.2.0.pre.alpha.2

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 (896) 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 +1037 -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_cadence_billed_event.rb +61 -0
  193. data/lib/stripe/events/v2_billing_cadence_canceled_event.rb +44 -0
  194. data/lib/stripe/events/v2_billing_cadence_created_event.rb +61 -0
  195. data/lib/stripe/events/v2_billing_license_fee_created_event.rb +44 -0
  196. data/lib/stripe/events/v2_billing_license_fee_updated_event.rb +44 -0
  197. data/lib/stripe/events/v2_billing_license_fee_version_created_event.rb +61 -0
  198. data/lib/stripe/events/v2_billing_licensed_item_created_event.rb +44 -0
  199. data/lib/stripe/events/v2_billing_licensed_item_updated_event.rb +44 -0
  200. data/lib/stripe/events/v2_billing_metered_item_created_event.rb +44 -0
  201. data/lib/stripe/events/v2_billing_metered_item_updated_event.rb +44 -0
  202. data/lib/stripe/events/v2_billing_pricing_plan_component_created_event.rb +61 -0
  203. data/lib/stripe/events/v2_billing_pricing_plan_component_updated_event.rb +61 -0
  204. data/lib/stripe/events/v2_billing_pricing_plan_created_event.rb +44 -0
  205. data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_awaiting_customer_action_event.rb +44 -0
  206. data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_current_event.rb +44 -0
  207. data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_past_due_event.rb +44 -0
  208. data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_paused_event.rb +44 -0
  209. data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_unpaid_event.rb +44 -0
  210. data/lib/stripe/events/v2_billing_pricing_plan_subscription_servicing_activated_event.rb +44 -0
  211. data/lib/stripe/events/v2_billing_pricing_plan_subscription_servicing_canceled_event.rb +44 -0
  212. data/lib/stripe/events/v2_billing_pricing_plan_subscription_servicing_paused_event.rb +44 -0
  213. data/lib/stripe/events/v2_billing_pricing_plan_updated_event.rb +44 -0
  214. data/lib/stripe/events/v2_billing_pricing_plan_version_created_event.rb +61 -0
  215. data/lib/stripe/events/v2_billing_rate_card_created_event.rb +61 -0
  216. data/lib/stripe/events/v2_billing_rate_card_rate_created_event.rb +67 -0
  217. data/lib/stripe/events/v2_billing_rate_card_subscription_activated_event.rb +44 -0
  218. data/lib/stripe/events/v2_billing_rate_card_subscription_canceled_event.rb +44 -0
  219. data/lib/stripe/events/v2_billing_rate_card_subscription_collection_awaiting_customer_action_event.rb +44 -0
  220. data/lib/stripe/events/v2_billing_rate_card_subscription_collection_current_event.rb +44 -0
  221. data/lib/stripe/events/v2_billing_rate_card_subscription_collection_past_due_event.rb +44 -0
  222. data/lib/stripe/events/v2_billing_rate_card_subscription_collection_paused_event.rb +44 -0
  223. data/lib/stripe/events/v2_billing_rate_card_subscription_collection_unpaid_event.rb +44 -0
  224. data/lib/stripe/events/v2_billing_rate_card_subscription_servicing_activated_event.rb +44 -0
  225. data/lib/stripe/events/v2_billing_rate_card_subscription_servicing_canceled_event.rb +44 -0
  226. data/lib/stripe/events/v2_billing_rate_card_subscription_servicing_paused_event.rb +44 -0
  227. data/lib/stripe/events/v2_billing_rate_card_updated_event.rb +44 -0
  228. data/lib/stripe/events/v2_billing_rate_card_version_created_event.rb +61 -0
  229. data/lib/stripe/events/v2_core_account_closed_event.rb +44 -0
  230. data/lib/stripe/events/v2_core_account_created_event.rb +44 -0
  231. data/lib/stripe/events/v2_core_account_including_configuration_card_creator_capability_status_updated_event.rb +63 -0
  232. data/lib/stripe/events/v2_core_account_including_configuration_card_creator_updated_event.rb +44 -0
  233. data/lib/stripe/events/v2_core_account_including_configuration_customer_capability_status_updated_event.rb +63 -0
  234. data/lib/stripe/events/v2_core_account_including_configuration_customer_updated_event.rb +44 -0
  235. data/lib/stripe/events/v2_core_account_including_configuration_merchant_capability_status_updated_event.rb +63 -0
  236. data/lib/stripe/events/v2_core_account_including_configuration_merchant_updated_event.rb +44 -0
  237. data/lib/stripe/events/v2_core_account_including_configuration_recipient_capability_status_updated_event.rb +63 -0
  238. data/lib/stripe/events/v2_core_account_including_configuration_recipient_updated_event.rb +44 -0
  239. data/lib/stripe/events/v2_core_account_including_configuration_storer_capability_status_updated_event.rb +63 -0
  240. data/lib/stripe/events/v2_core_account_including_configuration_storer_updated_event.rb +44 -0
  241. data/lib/stripe/events/v2_core_account_including_defaults_updated_event.rb +44 -0
  242. data/lib/stripe/events/v2_core_account_including_identity_updated_event.rb +44 -0
  243. data/lib/stripe/events/v2_core_account_including_requirements_updated_event.rb +44 -0
  244. data/lib/stripe/events/v2_core_account_link_returned_event.rb +42 -0
  245. data/lib/stripe/events/v2_core_account_person_created_event.rb +61 -0
  246. data/lib/stripe/events/v2_core_account_person_deleted_event.rb +61 -0
  247. data/lib/stripe/events/v2_core_account_person_updated_event.rb +61 -0
  248. data/lib/stripe/events/v2_core_account_updated_event.rb +44 -0
  249. data/lib/stripe/events/v2_core_claimable_sandbox_claimed_event.rb +44 -0
  250. data/lib/stripe/events/v2_core_claimable_sandbox_created_event.rb +44 -0
  251. data/lib/stripe/events/v2_core_claimable_sandbox_expired_event.rb +44 -0
  252. data/lib/stripe/events/v2_core_claimable_sandbox_expiring_event.rb +44 -0
  253. data/lib/stripe/events/v2_core_claimable_sandbox_sandbox_details_owner_account_updated_event.rb +44 -0
  254. data/lib/stripe/events/v2_core_health_api_error_firing_event.rb +66 -0
  255. data/lib/stripe/events/v2_core_health_api_error_resolved_event.rb +66 -0
  256. data/lib/stripe/events/v2_core_health_api_latency_firing_event.rb +64 -0
  257. data/lib/stripe/events/v2_core_health_api_latency_resolved_event.rb +64 -0
  258. data/lib/stripe/events/v2_core_health_authorization_rate_drop_firing_event.rb +80 -0
  259. data/lib/stripe/events/v2_core_health_authorization_rate_drop_resolved_event.rb +80 -0
  260. data/lib/stripe/events/v2_core_health_event_generation_failure_resolved_event.rb +66 -0
  261. data/lib/stripe/events/v2_core_health_fraud_rate_increased_event.rb +64 -0
  262. data/lib/stripe/events/v2_core_health_issuing_authorization_request_errors_firing_event.rb +62 -0
  263. data/lib/stripe/events/v2_core_health_issuing_authorization_request_errors_resolved_event.rb +64 -0
  264. data/lib/stripe/events/v2_core_health_issuing_authorization_request_timeout_firing_event.rb +64 -0
  265. data/lib/stripe/events/v2_core_health_issuing_authorization_request_timeout_resolved_event.rb +64 -0
  266. data/lib/stripe/events/v2_core_health_payment_method_error_firing_event.rb +62 -0
  267. data/lib/stripe/events/v2_core_health_payment_method_error_resolved_event.rb +62 -0
  268. data/lib/stripe/events/v2_core_health_traffic_volume_drop_firing_event.rb +62 -0
  269. data/lib/stripe/events/v2_core_health_traffic_volume_drop_resolved_event.rb +62 -0
  270. data/lib/stripe/events/v2_core_health_webhook_latency_firing_event.rb +58 -0
  271. data/lib/stripe/events/v2_core_health_webhook_latency_resolved_event.rb +58 -0
  272. data/lib/stripe/events/v2_money_management_adjustment_created_event.rb +44 -0
  273. data/lib/stripe/events/v2_money_management_financial_account_created_event.rb +44 -0
  274. data/lib/stripe/events/v2_money_management_financial_account_updated_event.rb +44 -0
  275. data/lib/stripe/events/v2_money_management_financial_address_activated_event.rb +44 -0
  276. data/lib/stripe/events/v2_money_management_financial_address_failed_event.rb +44 -0
  277. data/lib/stripe/events/v2_money_management_inbound_transfer_available_event.rb +61 -0
  278. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_failed_event.rb +44 -0
  279. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_processing_event.rb +44 -0
  280. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_queued_event.rb +44 -0
  281. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_returned_event.rb +44 -0
  282. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_succeeded_event.rb +44 -0
  283. data/lib/stripe/events/v2_money_management_outbound_payment_canceled_event.rb +44 -0
  284. data/lib/stripe/events/v2_money_management_outbound_payment_created_event.rb +44 -0
  285. data/lib/stripe/events/v2_money_management_outbound_payment_failed_event.rb +44 -0
  286. data/lib/stripe/events/v2_money_management_outbound_payment_posted_event.rb +44 -0
  287. data/lib/stripe/events/v2_money_management_outbound_payment_returned_event.rb +44 -0
  288. data/lib/stripe/events/v2_money_management_outbound_payment_updated_event.rb +44 -0
  289. data/lib/stripe/events/v2_money_management_outbound_transfer_canceled_event.rb +44 -0
  290. data/lib/stripe/events/v2_money_management_outbound_transfer_created_event.rb +44 -0
  291. data/lib/stripe/events/v2_money_management_outbound_transfer_failed_event.rb +44 -0
  292. data/lib/stripe/events/v2_money_management_outbound_transfer_posted_event.rb +44 -0
  293. data/lib/stripe/events/v2_money_management_outbound_transfer_returned_event.rb +44 -0
  294. data/lib/stripe/events/v2_money_management_outbound_transfer_updated_event.rb +44 -0
  295. data/lib/stripe/events/v2_money_management_payout_method_updated_event.rb +44 -0
  296. data/lib/stripe/events/v2_money_management_received_credit_available_event.rb +61 -0
  297. data/lib/stripe/events/v2_money_management_received_credit_failed_event.rb +44 -0
  298. data/lib/stripe/events/v2_money_management_received_credit_returned_event.rb +44 -0
  299. data/lib/stripe/events/v2_money_management_received_credit_succeeded_event.rb +44 -0
  300. data/lib/stripe/events/v2_money_management_received_debit_canceled_event.rb +44 -0
  301. data/lib/stripe/events/v2_money_management_received_debit_failed_event.rb +44 -0
  302. data/lib/stripe/events/v2_money_management_received_debit_pending_event.rb +44 -0
  303. data/lib/stripe/events/v2_money_management_received_debit_succeeded_event.rb +44 -0
  304. data/lib/stripe/events/v2_money_management_received_debit_updated_event.rb +44 -0
  305. data/lib/stripe/events/v2_money_management_recipient_verification_created_event.rb +44 -0
  306. data/lib/stripe/events/v2_money_management_recipient_verification_updated_event.rb +44 -0
  307. data/lib/stripe/events/v2_money_management_transaction_created_event.rb +61 -0
  308. data/lib/stripe/events/v2_money_management_transaction_updated_event.rb +44 -0
  309. data/lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_failed_event.rb +44 -0
  310. data/lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_started_event.rb +46 -0
  311. data/lib/stripe/events/v2_payments_off_session_payment_canceled_event.rb +44 -0
  312. data/lib/stripe/events/v2_payments_off_session_payment_created_event.rb +44 -0
  313. data/lib/stripe/events/v2_payments_off_session_payment_failed_event.rb +44 -0
  314. data/lib/stripe/events/v2_payments_off_session_payment_requires_capture_event.rb +44 -0
  315. data/lib/stripe/events/v2_payments_off_session_payment_succeeded_event.rb +44 -0
  316. data/lib/stripe/object_types.rb +81 -0
  317. data/lib/stripe/params/account_create_params.rb +300 -1
  318. data/lib/stripe/params/account_notice_list_params.rb +25 -0
  319. data/lib/stripe/params/account_notice_retrieve_params.rb +13 -0
  320. data/lib/stripe/params/account_notice_update_params.rb +36 -0
  321. data/lib/stripe/params/account_session_create_params.rb +226 -1
  322. data/lib/stripe/params/account_update_params.rb +262 -0
  323. data/lib/stripe/params/billing/alert_create_params.rb +121 -1
  324. data/lib/stripe/params/billing/alert_list_params.rb +4 -0
  325. data/lib/stripe/params/billing/analytics/meter_usage_retrieve_params.rb +69 -0
  326. data/lib/stripe/params/billing/credit_balance_summary_retrieve_params.rb +17 -2
  327. data/lib/stripe/params/billing/credit_balance_transaction_list_params.rb +4 -0
  328. data/lib/stripe/params/billing/credit_grant_create_params.rb +33 -2
  329. data/lib/stripe/params/billing/credit_grant_list_params.rb +4 -0
  330. data/lib/stripe/params/billing/meter_create_params.rb +4 -0
  331. data/lib/stripe/params/billing/meter_event_summary_list_params.rb +8 -0
  332. data/lib/stripe/params/billing_portal/session_create_params.rb +4 -0
  333. data/lib/stripe/params/capital/financing_offer_list_params.rb +58 -0
  334. data/lib/stripe/params/capital/financing_offer_mark_delivered_params.rb +15 -0
  335. data/lib/stripe/params/capital/financing_offer_retrieve_params.rb +15 -0
  336. data/lib/stripe/params/capital/financing_summary_retrieve_params.rb +15 -0
  337. data/lib/stripe/params/capital/financing_transaction_list_params.rb +45 -0
  338. data/lib/stripe/params/capital/financing_transaction_retrieve_params.rb +15 -0
  339. data/lib/stripe/params/charge_capture_params.rb +709 -0
  340. data/lib/stripe/params/charge_update_params.rb +709 -0
  341. data/lib/stripe/params/checkout/session_create_params.rb +273 -4
  342. data/lib/stripe/params/checkout/session_list_params.rb +4 -0
  343. data/lib/stripe/params/checkout/session_update_params.rb +288 -1
  344. data/lib/stripe/params/confirmation_token_create_params.rb +97 -0
  345. data/lib/stripe/params/coupon_create_params.rb +17 -1
  346. data/lib/stripe/params/credit_note_list_params.rb +4 -0
  347. data/lib/stripe/params/customer_session_create_params.rb +36 -2
  348. data/lib/stripe/params/delegated_checkout/requested_session_confirm_params.rb +55 -0
  349. data/lib/stripe/params/delegated_checkout/requested_session_create_params.rb +205 -0
  350. data/lib/stripe/params/delegated_checkout/requested_session_expire_params.rb +15 -0
  351. data/lib/stripe/params/delegated_checkout/requested_session_retrieve_params.rb +15 -0
  352. data/lib/stripe/params/delegated_checkout/requested_session_update_params.rb +209 -0
  353. data/lib/stripe/params/dispute_update_params.rb +10 -1
  354. data/lib/stripe/params/external_account_create_params.rb +134 -0
  355. data/lib/stripe/params/external_account_delete_params.rb +6 -0
  356. data/lib/stripe/params/external_account_list_params.rb +25 -0
  357. data/lib/stripe/params/external_account_retrieve_params.rb +13 -0
  358. data/lib/stripe/params/external_account_update_params.rb +91 -0
  359. data/lib/stripe/params/financial_connections/account_inferred_balance_list_params.rb +24 -0
  360. data/lib/stripe/params/financial_connections/account_list_params.rb +4 -1
  361. data/lib/stripe/params/financial_connections/institution_list_params.rb +24 -0
  362. data/lib/stripe/params/financial_connections/institution_retrieve_params.rb +15 -0
  363. data/lib/stripe/params/financial_connections/session_create_params.rb +34 -2
  364. data/lib/stripe/params/fx_quote_create_params.rb +73 -0
  365. data/lib/stripe/params/fx_quote_list_params.rb +22 -0
  366. data/lib/stripe/params/fx_quote_retrieve_params.rb +13 -0
  367. data/lib/stripe/params/identity/blocklist_entry_create_params.rb +29 -0
  368. data/lib/stripe/params/identity/blocklist_entry_disable_params.rb +15 -0
  369. data/lib/stripe/params/identity/blocklist_entry_list_params.rb +62 -0
  370. data/lib/stripe/params/identity/blocklist_entry_retrieve_params.rb +15 -0
  371. data/lib/stripe/params/identity/verification_report_list_params.rb +4 -0
  372. data/lib/stripe/params/identity/verification_session_create_params.rb +4 -0
  373. data/lib/stripe/params/identity/verification_session_list_params.rb +4 -0
  374. data/lib/stripe/params/invoice_add_lines_params.rb +33 -1
  375. data/lib/stripe/params/invoice_attach_payment_params.rb +43 -1
  376. data/lib/stripe/params/invoice_create_params.rb +112 -2
  377. data/lib/stripe/params/invoice_create_preview_params.rb +826 -9
  378. data/lib/stripe/params/invoice_item_create_params.rb +37 -1
  379. data/lib/stripe/params/invoice_item_list_params.rb +4 -0
  380. data/lib/stripe/params/invoice_item_update_params.rb +33 -1
  381. data/lib/stripe/params/invoice_line_item_update_params.rb +33 -1
  382. data/lib/stripe/params/invoice_list_params.rb +8 -0
  383. data/lib/stripe/params/invoice_update_lines_params.rb +33 -1
  384. data/lib/stripe/params/invoice_update_params.rb +108 -2
  385. data/lib/stripe/params/issuing/cardholder_create_params.rb +2 -1
  386. data/lib/stripe/params/issuing/credit_underwriting_record_correct_params.rb +163 -0
  387. data/lib/stripe/params/issuing/credit_underwriting_record_create_from_application_params.rb +50 -0
  388. data/lib/stripe/params/issuing/credit_underwriting_record_create_from_proactive_review_params.rb +128 -0
  389. data/lib/stripe/params/issuing/credit_underwriting_record_list_params.rb +24 -0
  390. data/lib/stripe/params/issuing/credit_underwriting_record_report_decision_params.rb +86 -0
  391. data/lib/stripe/params/issuing/credit_underwriting_record_retrieve_params.rb +15 -0
  392. data/lib/stripe/params/issuing/dispute_settlement_detail_list_params.rb +33 -0
  393. data/lib/stripe/params/issuing/dispute_settlement_detail_retrieve_params.rb +15 -0
  394. data/lib/stripe/params/issuing/fraud_liability_debit_list_params.rb +44 -0
  395. data/lib/stripe/params/issuing/fraud_liability_debit_retrieve_params.rb +15 -0
  396. data/lib/stripe/params/issuing/transaction_list_params.rb +4 -0
  397. data/lib/stripe/params/mandate_list_params.rb +39 -0
  398. data/lib/stripe/params/margin_create_params.rb +25 -0
  399. data/lib/stripe/params/margin_list_params.rb +25 -0
  400. data/lib/stripe/params/margin_retrieve_params.rb +13 -0
  401. data/lib/stripe/params/margin_update_params.rb +22 -0
  402. data/lib/stripe/params/order_cancel_params.rb +13 -0
  403. data/lib/stripe/params/order_create_params.rb +1124 -0
  404. data/lib/stripe/params/order_line_item_list_params.rb +22 -0
  405. data/lib/stripe/params/order_list_line_items_params.rb +22 -0
  406. data/lib/stripe/params/order_list_params.rb +25 -0
  407. data/lib/stripe/params/order_reopen_params.rb +13 -0
  408. data/lib/stripe/params/order_retrieve_params.rb +13 -0
  409. data/lib/stripe/params/order_submit_params.rb +16 -0
  410. data/lib/stripe/params/order_update_params.rb +1128 -0
  411. data/lib/stripe/params/payment_intent_capture_params.rb +736 -30
  412. data/lib/stripe/params/payment_intent_confirm_params.rb +1231 -33
  413. data/lib/stripe/params/payment_intent_create_params.rb +1247 -41
  414. data/lib/stripe/params/payment_intent_decrement_authorization_params.rb +73 -0
  415. data/lib/stripe/params/payment_intent_increment_authorization_params.rb +63 -29
  416. data/lib/stripe/params/payment_intent_list_params.rb +4 -0
  417. data/lib/stripe/params/payment_intent_trigger_action_params.rb +27 -0
  418. data/lib/stripe/params/payment_intent_update_params.rb +1279 -42
  419. data/lib/stripe/params/payment_method_attach_params.rb +4 -1
  420. data/lib/stripe/params/payment_method_check_balance_params.rb +13 -0
  421. data/lib/stripe/params/payment_method_configuration_create_params.rb +126 -0
  422. data/lib/stripe/params/payment_method_configuration_update_params.rb +126 -0
  423. data/lib/stripe/params/payment_method_create_params.rb +97 -0
  424. data/lib/stripe/params/payment_method_update_params.rb +19 -0
  425. data/lib/stripe/params/price_update_params.rb +19 -0
  426. data/lib/stripe/params/privacy/redaction_job_cancel_params.rb +15 -0
  427. data/lib/stripe/params/privacy/redaction_job_create_params.rb +67 -0
  428. data/lib/stripe/params/privacy/redaction_job_list_params.rb +27 -0
  429. data/lib/stripe/params/privacy/redaction_job_retrieve_params.rb +15 -0
  430. data/lib/stripe/params/privacy/redaction_job_run_params.rb +15 -0
  431. data/lib/stripe/params/privacy/redaction_job_update_params.rb +18 -0
  432. data/lib/stripe/params/privacy/redaction_job_validate_params.rb +15 -0
  433. data/lib/stripe/params/privacy/redaction_job_validation_error_list_params.rb +24 -0
  434. data/lib/stripe/params/promotion_code_create_params.rb +4 -0
  435. data/lib/stripe/params/promotion_code_list_params.rb +4 -0
  436. data/lib/stripe/params/quote_create_params.rb +805 -3
  437. data/lib/stripe/params/quote_line_list_params.rb +22 -0
  438. data/lib/stripe/params/quote_list_lines_params.rb +22 -0
  439. data/lib/stripe/params/quote_list_params.rb +8 -0
  440. data/lib/stripe/params/quote_list_preview_invoice_lines_params.rb +22 -0
  441. data/lib/stripe/params/quote_mark_draft_params.rb +13 -0
  442. data/lib/stripe/params/quote_mark_stale_params.rb +16 -0
  443. data/lib/stripe/params/quote_preview_invoice_list_params.rb +22 -0
  444. data/lib/stripe/params/quote_preview_subscription_schedule_list_params.rb +22 -0
  445. data/lib/stripe/params/quote_reestimate_params.rb +13 -0
  446. data/lib/stripe/params/quote_update_params.rb +813 -4
  447. data/lib/stripe/params/setup_intent_confirm_params.rb +254 -3
  448. data/lib/stripe/params/setup_intent_create_params.rb +260 -3
  449. data/lib/stripe/params/setup_intent_list_params.rb +4 -0
  450. data/lib/stripe/params/setup_intent_update_params.rb +261 -4
  451. data/lib/stripe/params/subscription_attach_cadence_params.rb +16 -0
  452. data/lib/stripe/params/subscription_create_params.rb +259 -5
  453. data/lib/stripe/params/subscription_item_create_params.rb +46 -2
  454. data/lib/stripe/params/subscription_item_update_params.rb +29 -1
  455. data/lib/stripe/params/subscription_list_params.rb +4 -0
  456. data/lib/stripe/params/subscription_schedule_amend_params.rb +570 -0
  457. data/lib/stripe/params/subscription_schedule_create_params.rb +167 -5
  458. data/lib/stripe/params/subscription_schedule_list_params.rb +4 -0
  459. data/lib/stripe/params/subscription_schedule_update_params.rb +163 -5
  460. data/lib/stripe/params/subscription_update_params.rb +238 -4
  461. data/lib/stripe/params/tax/association_find_params.rb +18 -0
  462. data/lib/stripe/params/tax/form_list_params.rb +51 -0
  463. data/lib/stripe/params/tax/form_pdf_params.rb +15 -0
  464. data/lib/stripe/params/tax/form_retrieve_params.rb +15 -0
  465. data/lib/stripe/params/tax_id_create_params.rb +4 -1
  466. data/lib/stripe/params/tax_id_list_params.rb +4 -1
  467. data/lib/stripe/params/terminal/configuration_create_params.rb +13 -0
  468. data/lib/stripe/params/terminal/configuration_update_params.rb +13 -0
  469. data/lib/stripe/params/terminal/onboarding_link_create_params.rb +43 -0
  470. data/lib/stripe/params/terminal/reader_collected_data_retrieve_params.rb +15 -0
  471. data/lib/stripe/params/test_helpers/confirmation_token_create_params.rb +97 -0
  472. data/lib/stripe/params/test_helpers/treasury/received_credit_create_params.rb +25 -1
  473. data/lib/stripe/params/test_helpers/treasury/received_debit_create_params.rb +25 -1
  474. data/lib/stripe/params/transfer_create_params.rb +9 -1
  475. data/lib/stripe/params/treasury/financial_account_create_params.rb +8 -1
  476. data/lib/stripe/params/treasury/financial_account_features_update_params.rb +4 -1
  477. data/lib/stripe/params/treasury/financial_account_update_features_params.rb +4 -1
  478. data/lib/stripe/params/treasury/financial_account_update_params.rb +8 -1
  479. data/lib/stripe/params/treasury/outbound_transfer_create_params.rb +24 -0
  480. data/lib/stripe/params/treasury/received_credit_create_params.rb +25 -1
  481. data/lib/stripe/params/treasury/received_debit_create_params.rb +25 -1
  482. data/lib/stripe/params/v2/billing/bill_setting_create_params.rb +74 -0
  483. data/lib/stripe/params/v2/billing/bill_setting_list_params.rb +21 -0
  484. data/lib/stripe/params/v2/billing/bill_setting_retrieve_params.rb +10 -0
  485. data/lib/stripe/params/v2/billing/bill_setting_update_params.rb +80 -0
  486. data/lib/stripe/params/v2/billing/bill_settings/version_list_params.rb +19 -0
  487. data/lib/stripe/params/v2/billing/bill_settings/version_retrieve_params.rb +12 -0
  488. data/lib/stripe/params/v2/billing/cadence_cancel_params.rb +17 -0
  489. data/lib/stripe/params/v2/billing/cadence_create_params.rb +257 -0
  490. data/lib/stripe/params/v2/billing/cadence_list_params.rb +43 -0
  491. data/lib/stripe/params/v2/billing/cadence_retrieve_params.rb +17 -0
  492. data/lib/stripe/params/v2/billing/cadence_update_params.rb +78 -0
  493. data/lib/stripe/params/v2/billing/collection_setting_create_params.rb +223 -0
  494. data/lib/stripe/params/v2/billing/collection_setting_list_params.rb +21 -0
  495. data/lib/stripe/params/v2/billing/collection_setting_retrieve_params.rb +10 -0
  496. data/lib/stripe/params/v2/billing/collection_setting_update_params.rb +229 -0
  497. data/lib/stripe/params/v2/billing/collection_settings/version_list_params.rb +19 -0
  498. data/lib/stripe/params/v2/billing/collection_settings/version_retrieve_params.rb +12 -0
  499. data/lib/stripe/params/v2/billing/custom_pricing_unit_create_params.rb +26 -0
  500. data/lib/stripe/params/v2/billing/custom_pricing_unit_list_params.rb +24 -0
  501. data/lib/stripe/params/v2/billing/custom_pricing_unit_retrieve_params.rb +10 -0
  502. data/lib/stripe/params/v2/billing/custom_pricing_unit_update_params.rb +26 -0
  503. data/lib/stripe/params/v2/billing/intent_cancel_params.rb +10 -0
  504. data/lib/stripe/params/v2/billing/intent_commit_params.rb +17 -0
  505. data/lib/stripe/params/v2/billing/intent_create_params.rb +355 -0
  506. data/lib/stripe/params/v2/billing/intent_list_params.rb +17 -0
  507. data/lib/stripe/params/v2/billing/intent_release_reservation_params.rb +10 -0
  508. data/lib/stripe/params/v2/billing/intent_reserve_params.rb +10 -0
  509. data/lib/stripe/params/v2/billing/intent_retrieve_params.rb +10 -0
  510. data/lib/stripe/params/v2/billing/intents/action_list_params.rb +19 -0
  511. data/lib/stripe/params/v2/billing/intents/action_retrieve_params.rb +12 -0
  512. data/lib/stripe/params/v2/billing/license_fee_create_params.rb +103 -0
  513. data/lib/stripe/params/v2/billing/license_fee_list_params.rb +24 -0
  514. data/lib/stripe/params/v2/billing/license_fee_retrieve_params.rb +10 -0
  515. data/lib/stripe/params/v2/billing/license_fee_subscription_retrieve_params.rb +10 -0
  516. data/lib/stripe/params/v2/billing/license_fee_update_params.rb +84 -0
  517. data/lib/stripe/params/v2/billing/license_fees/version_list_params.rb +19 -0
  518. data/lib/stripe/params/v2/billing/license_fees/version_retrieve_params.rb +12 -0
  519. data/lib/stripe/params/v2/billing/licensed_item_create_params.rb +48 -0
  520. data/lib/stripe/params/v2/billing/licensed_item_list_params.rb +21 -0
  521. data/lib/stripe/params/v2/billing/licensed_item_retrieve_params.rb +10 -0
  522. data/lib/stripe/params/v2/billing/licensed_item_update_params.rb +48 -0
  523. data/lib/stripe/params/v2/billing/metered_item_create_params.rb +73 -0
  524. data/lib/stripe/params/v2/billing/metered_item_list_params.rb +21 -0
  525. data/lib/stripe/params/v2/billing/metered_item_retrieve_params.rb +10 -0
  526. data/lib/stripe/params/v2/billing/metered_item_update_params.rb +50 -0
  527. data/lib/stripe/params/v2/billing/pricing_plan_create_params.rb +39 -0
  528. data/lib/stripe/params/v2/billing/pricing_plan_list_params.rb +24 -0
  529. data/lib/stripe/params/v2/billing/pricing_plan_retrieve_params.rb +10 -0
  530. data/lib/stripe/params/v2/billing/pricing_plan_subscription_list_params.rb +50 -0
  531. data/lib/stripe/params/v2/billing/pricing_plan_subscription_retrieve_params.rb +10 -0
  532. data/lib/stripe/params/v2/billing/pricing_plan_subscription_update_params.rb +20 -0
  533. data/lib/stripe/params/v2/billing/pricing_plan_subscriptions/component_retrieve_params.rb +12 -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 +2943 -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 +23 -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 +2975 -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_list_params.rb +19 -0
  582. data/lib/stripe/params/v2/core/vault/gb_bank_account_retrieve_params.rb +12 -0
  583. data/lib/stripe/params/v2/core/vault/us_bank_account_archive_params.rb +12 -0
  584. data/lib/stripe/params/v2/core/vault/us_bank_account_confirm_microdeposits_params.rb +22 -0
  585. data/lib/stripe/params/v2/core/vault/us_bank_account_create_params.rb +33 -0
  586. data/lib/stripe/params/v2/core/vault/us_bank_account_list_params.rb +22 -0
  587. data/lib/stripe/params/v2/core/vault/us_bank_account_retrieve_params.rb +12 -0
  588. data/lib/stripe/params/v2/core/vault/us_bank_account_send_microdeposits_params.rb +12 -0
  589. data/lib/stripe/params/v2/core/vault/us_bank_account_update_params.rb +22 -0
  590. data/lib/stripe/params/v2/money_management/adjustment_list_params.rb +48 -0
  591. data/lib/stripe/params/v2/money_management/adjustment_retrieve_params.rb +10 -0
  592. data/lib/stripe/params/v2/money_management/financial_account_close_params.rb +28 -0
  593. data/lib/stripe/params/v2/money_management/financial_account_create_params.rb +34 -0
  594. data/lib/stripe/params/v2/money_management/financial_account_list_params.rb +20 -0
  595. data/lib/stripe/params/v2/money_management/financial_account_retrieve_params.rb +10 -0
  596. data/lib/stripe/params/v2/money_management/financial_account_update_params.rb +20 -0
  597. data/lib/stripe/params/v2/money_management/financial_address_create_params.rb +31 -0
  598. data/lib/stripe/params/v2/money_management/financial_address_list_params.rb +23 -0
  599. data/lib/stripe/params/v2/money_management/financial_address_retrieve_params.rb +17 -0
  600. data/lib/stripe/params/v2/money_management/inbound_transfer_create_params.rb +50 -0
  601. data/lib/stripe/params/v2/money_management/inbound_transfer_list_params.rb +44 -0
  602. data/lib/stripe/params/v2/money_management/inbound_transfer_retrieve_params.rb +10 -0
  603. data/lib/stripe/params/v2/money_management/outbound_payment_cancel_params.rb +10 -0
  604. data/lib/stripe/params/v2/money_management/outbound_payment_create_params.rb +102 -0
  605. data/lib/stripe/params/v2/money_management/outbound_payment_list_params.rb +52 -0
  606. data/lib/stripe/params/v2/money_management/outbound_payment_quote_create_params.rb +67 -0
  607. data/lib/stripe/params/v2/money_management/outbound_payment_quote_retrieve_params.rb +10 -0
  608. data/lib/stripe/params/v2/money_management/outbound_payment_retrieve_params.rb +10 -0
  609. data/lib/stripe/params/v2/money_management/outbound_setup_intent_cancel_params.rb +10 -0
  610. data/lib/stripe/params/v2/money_management/outbound_setup_intent_create_params.rb +103 -0
  611. data/lib/stripe/params/v2/money_management/outbound_setup_intent_list_params.rb +17 -0
  612. data/lib/stripe/params/v2/money_management/outbound_setup_intent_retrieve_params.rb +10 -0
  613. data/lib/stripe/params/v2/money_management/outbound_setup_intent_update_params.rb +80 -0
  614. data/lib/stripe/params/v2/money_management/outbound_transfer_cancel_params.rb +10 -0
  615. data/lib/stripe/params/v2/money_management/outbound_transfer_create_params.rb +81 -0
  616. data/lib/stripe/params/v2/money_management/outbound_transfer_list_params.rb +48 -0
  617. data/lib/stripe/params/v2/money_management/outbound_transfer_retrieve_params.rb +10 -0
  618. data/lib/stripe/params/v2/money_management/payout_method_archive_params.rb +10 -0
  619. data/lib/stripe/params/v2/money_management/payout_method_list_params.rb +31 -0
  620. data/lib/stripe/params/v2/money_management/payout_method_retrieve_params.rb +10 -0
  621. data/lib/stripe/params/v2/money_management/payout_method_unarchive_params.rb +10 -0
  622. data/lib/stripe/params/v2/money_management/payout_methods_bank_account_spec_retrieve_params.rb +17 -0
  623. data/lib/stripe/params/v2/money_management/received_credit_list_params.rb +44 -0
  624. data/lib/stripe/params/v2/money_management/received_credit_retrieve_params.rb +10 -0
  625. data/lib/stripe/params/v2/money_management/received_debit_list_params.rb +17 -0
  626. data/lib/stripe/params/v2/money_management/received_debit_retrieve_params.rb +10 -0
  627. data/lib/stripe/params/v2/money_management/recipient_verification_acknowledge_params.rb +10 -0
  628. data/lib/stripe/params/v2/money_management/recipient_verification_create_params.rb +20 -0
  629. data/lib/stripe/params/v2/money_management/recipient_verification_retrieve_params.rb +10 -0
  630. data/lib/stripe/params/v2/money_management/transaction_entry_list_params.rb +43 -0
  631. data/lib/stripe/params/v2/money_management/transaction_entry_retrieve_params.rb +10 -0
  632. data/lib/stripe/params/v2/money_management/transaction_list_params.rb +47 -0
  633. data/lib/stripe/params/v2/money_management/transaction_retrieve_params.rb +10 -0
  634. data/lib/stripe/params/v2/payments/off_session_payment_cancel_params.rb +10 -0
  635. data/lib/stripe/params/v2/payments/off_session_payment_capture_params.rb +61 -0
  636. data/lib/stripe/params/v2/payments/off_session_payment_create_params.rb +237 -0
  637. data/lib/stripe/params/v2/payments/off_session_payment_list_params.rb +17 -0
  638. data/lib/stripe/params/v2/payments/off_session_payment_retrieve_params.rb +10 -0
  639. data/lib/stripe/params/v2/tax/automatic_rule_create_params.rb +20 -0
  640. data/lib/stripe/params/v2/tax/automatic_rule_deactivate_params.rb +10 -0
  641. data/lib/stripe/params/v2/tax/automatic_rule_find_params.rb +17 -0
  642. data/lib/stripe/params/v2/tax/automatic_rule_retrieve_params.rb +10 -0
  643. data/lib/stripe/params/v2/tax/automatic_rule_update_params.rb +17 -0
  644. data/lib/stripe/params/v2/test_helpers/financial_address_credit_params.rb +23 -0
  645. data/lib/stripe/params/v2/test_helpers/financial_address_generate_microdeposits_params.rb +10 -0
  646. data/lib/stripe/params/v2/test_helpers/money_management_recipient_verifications_params.rb +24 -0
  647. data/lib/stripe/params.rb +246 -0
  648. data/lib/stripe/resources/account.rb +166 -1
  649. data/lib/stripe/resources/account_notice.rb +94 -0
  650. data/lib/stripe/resources/account_session.rb +81 -0
  651. data/lib/stripe/resources/application_fee.rb +2 -0
  652. data/lib/stripe/resources/balance.rb +83 -0
  653. data/lib/stripe/resources/billing/alert.rb +105 -1
  654. data/lib/stripe/resources/billing/alert_triggered.rb +6 -0
  655. data/lib/stripe/resources/billing/analytics/meter_usage.rb +33 -0
  656. data/lib/stripe/resources/billing/analytics/meter_usage_row.rb +40 -0
  657. data/lib/stripe/resources/billing/credit_balance_summary.rb +86 -2
  658. data/lib/stripe/resources/billing/credit_balance_transaction.rb +84 -2
  659. data/lib/stripe/resources/billing/credit_grant.rb +60 -2
  660. data/lib/stripe/resources/billing/meter.rb +2 -0
  661. data/lib/stripe/resources/billing/meter_event_summary.rb +2 -0
  662. data/lib/stripe/resources/billing_portal/session.rb +2 -0
  663. data/lib/stripe/resources/capital/financing_offer.rb +142 -0
  664. data/lib/stripe/resources/capital/financing_summary.rb +79 -0
  665. data/lib/stripe/resources/capital/financing_transaction.rb +99 -0
  666. data/lib/stripe/resources/card.rb +20 -1
  667. data/lib/stripe/resources/cash_balance.rb +2 -0
  668. data/lib/stripe/resources/charge.rb +253 -1
  669. data/lib/stripe/resources/checkout/session.rb +246 -4
  670. data/lib/stripe/resources/confirmation_token.rb +173 -0
  671. data/lib/stripe/resources/coupon.rb +26 -1
  672. data/lib/stripe/resources/credit_note.rb +2 -0
  673. data/lib/stripe/resources/credit_note_line_item.rb +18 -0
  674. data/lib/stripe/resources/customer.rb +2 -0
  675. data/lib/stripe/resources/customer_balance_transaction.rb +2 -0
  676. data/lib/stripe/resources/customer_cash_balance_transaction.rb +2 -0
  677. data/lib/stripe/resources/customer_session.rb +38 -0
  678. data/lib/stripe/resources/delegated_checkout/requested_session.rb +402 -0
  679. data/lib/stripe/resources/discount.rb +2 -0
  680. data/lib/stripe/resources/dispute.rb +22 -0
  681. data/lib/stripe/resources/event.rb +64 -1
  682. data/lib/stripe/resources/financial_connections/account.rb +27 -0
  683. data/lib/stripe/resources/financial_connections/account_inferred_balance.rb +35 -0
  684. data/lib/stripe/resources/financial_connections/institution.rb +127 -0
  685. data/lib/stripe/resources/financial_connections/session.rb +67 -1
  686. data/lib/stripe/resources/fx_quote.rb +147 -0
  687. data/lib/stripe/resources/identity/blocklist_entry.rb +116 -0
  688. data/lib/stripe/resources/identity/verification_report.rb +4 -0
  689. data/lib/stripe/resources/identity/verification_session.rb +2 -0
  690. data/lib/stripe/resources/invoice.rb +152 -1
  691. data/lib/stripe/resources/invoice_item.rb +94 -2
  692. data/lib/stripe/resources/invoice_line_item.rb +131 -1
  693. data/lib/stripe/resources/issuing/credit_underwriting_record.rb +263 -0
  694. data/lib/stripe/resources/issuing/dispute_settlement_detail.rb +71 -0
  695. data/lib/stripe/resources/issuing/fraud_liability_debit.rb +51 -0
  696. data/lib/stripe/resources/issuing/settlement.rb +61 -0
  697. data/lib/stripe/resources/issuing/transaction.rb +2 -0
  698. data/lib/stripe/resources/line_item.rb +68 -1
  699. data/lib/stripe/resources/mandate.rb +71 -0
  700. data/lib/stripe/resources/margin.rb +64 -0
  701. data/lib/stripe/resources/order.rb +987 -0
  702. data/lib/stripe/resources/payment_attempt_record.rb +203 -1
  703. data/lib/stripe/resources/payment_intent.rb +840 -21
  704. data/lib/stripe/resources/payment_intent_amount_details_line_item.rb +7 -13
  705. data/lib/stripe/resources/payment_method.rb +195 -0
  706. data/lib/stripe/resources/payment_method_balance.rb +68 -0
  707. data/lib/stripe/resources/payment_method_configuration.rb +204 -0
  708. data/lib/stripe/resources/payment_record.rb +203 -1
  709. data/lib/stripe/resources/price.rb +20 -0
  710. data/lib/stripe/resources/privacy/redaction_job.rb +187 -0
  711. data/lib/stripe/resources/privacy/redaction_job_validation_error.rb +49 -0
  712. data/lib/stripe/resources/promotion_code.rb +2 -0
  713. data/lib/stripe/resources/quote.rb +571 -2
  714. data/lib/stripe/resources/quote_line.rb +521 -0
  715. data/lib/stripe/resources/quote_preview_invoice.rb +1150 -0
  716. data/lib/stripe/resources/quote_preview_subscription_schedule.rb +732 -0
  717. data/lib/stripe/resources/refund.rb +18 -0
  718. data/lib/stripe/resources/setup_attempt.rb +63 -0
  719. data/lib/stripe/resources/setup_intent.rb +172 -1
  720. data/lib/stripe/resources/source.rb +38 -0
  721. data/lib/stripe/resources/subscription.rb +232 -0
  722. data/lib/stripe/resources/subscription_item.rb +20 -1
  723. data/lib/stripe/resources/subscription_schedule.rb +198 -3
  724. data/lib/stripe/resources/tax/association.rb +86 -0
  725. data/lib/stripe/resources/tax/form.rb +264 -0
  726. data/lib/stripe/resources/tax_id.rb +4 -0
  727. data/lib/stripe/resources/terminal/configuration.rb +16 -0
  728. data/lib/stripe/resources/terminal/onboarding_link.rb +71 -0
  729. data/lib/stripe/resources/terminal/reader.rb +8 -0
  730. data/lib/stripe/resources/terminal/reader_collected_data.rb +47 -0
  731. data/lib/stripe/resources/transfer.rb +6 -0
  732. data/lib/stripe/resources/treasury/financial_account.rb +2 -0
  733. data/lib/stripe/resources/treasury/financial_account_features.rb +2 -0
  734. data/lib/stripe/resources/treasury/outbound_transfer.rb +30 -0
  735. data/lib/stripe/resources/treasury/received_credit.rb +30 -0
  736. data/lib/stripe/resources/treasury/received_debit.rb +32 -0
  737. data/lib/stripe/resources/v2/billing/bill_setting.rb +102 -0
  738. data/lib/stripe/resources/v2/billing/bill_setting_version.rb +90 -0
  739. data/lib/stripe/resources/v2/billing/cadence.rb +655 -0
  740. data/lib/stripe/resources/v2/billing/collection_setting.rb +274 -0
  741. data/lib/stripe/resources/v2/billing/collection_setting_version.rb +262 -0
  742. data/lib/stripe/resources/v2/billing/custom_pricing_unit.rb +43 -0
  743. data/lib/stripe/resources/v2/billing/intent.rb +86 -0
  744. data/lib/stripe/resources/v2/billing/intent_action.rb +395 -0
  745. data/lib/stripe/resources/v2/billing/license_fee.rb +104 -0
  746. data/lib/stripe/resources/v2/billing/license_fee_subscription.rb +44 -0
  747. data/lib/stripe/resources/v2/billing/license_fee_version.rb +80 -0
  748. data/lib/stripe/resources/v2/billing/licensed_item.rb +60 -0
  749. data/lib/stripe/resources/v2/billing/metered_item.rb +85 -0
  750. data/lib/stripe/resources/v2/billing/pricing_plan.rb +51 -0
  751. data/lib/stripe/resources/v2/billing/pricing_plan_component.rb +94 -0
  752. data/lib/stripe/resources/v2/billing/pricing_plan_subscription.rb +94 -0
  753. data/lib/stripe/resources/v2/billing/pricing_plan_subscription_components.rb +49 -0
  754. data/lib/stripe/resources/v2/billing/pricing_plan_version.rb +38 -0
  755. data/lib/stripe/resources/v2/billing/profile.rb +46 -0
  756. data/lib/stripe/resources/v2/billing/rate_card.rb +61 -0
  757. data/lib/stripe/resources/v2/billing/rate_card_rate.rb +110 -0
  758. data/lib/stripe/resources/v2/billing/rate_card_subscription.rb +94 -0
  759. data/lib/stripe/resources/v2/billing/rate_card_version.rb +34 -0
  760. data/lib/stripe/resources/v2/billing/service_action.rb +244 -0
  761. data/lib/stripe/resources/v2/core/account.rb +4967 -0
  762. data/lib/stripe/resources/v2/core/account_link.rb +123 -0
  763. data/lib/stripe/resources/v2/core/account_person.rb +477 -0
  764. data/lib/stripe/resources/v2/core/claimable_sandbox.rb +105 -0
  765. data/lib/stripe/resources/v2/core/event.rb +4 -0
  766. data/lib/stripe/resources/v2/core/vault/gb_bank_account.rb +114 -0
  767. data/lib/stripe/resources/v2/core/vault/us_bank_account.rb +81 -0
  768. data/lib/stripe/resources/v2/financial_address_credit_simulation.rb +28 -0
  769. data/lib/stripe/resources/v2/financial_address_generated_microdeposits.rb +30 -0
  770. data/lib/stripe/resources/v2/money_management/adjustment.rb +67 -0
  771. data/lib/stripe/resources/v2/money_management/financial_account.rb +140 -0
  772. data/lib/stripe/resources/v2/money_management/financial_address.rb +132 -0
  773. data/lib/stripe/resources/v2/money_management/inbound_transfer.rb +148 -0
  774. data/lib/stripe/resources/v2/money_management/outbound_payment.rb +219 -0
  775. data/lib/stripe/resources/v2/money_management/outbound_payment_quote.rb +144 -0
  776. data/lib/stripe/resources/v2/money_management/outbound_setup_intent.rb +69 -0
  777. data/lib/stripe/resources/v2/money_management/outbound_transfer.rb +198 -0
  778. data/lib/stripe/resources/v2/money_management/payout_method.rb +137 -0
  779. data/lib/stripe/resources/v2/money_management/payout_methods_bank_account_spec.rb +81 -0
  780. data/lib/stripe/resources/v2/money_management/received_credit.rb +230 -0
  781. data/lib/stripe/resources/v2/money_management/received_debit.rb +140 -0
  782. data/lib/stripe/resources/v2/money_management/recipient_verification.rb +83 -0
  783. data/lib/stripe/resources/v2/money_management/transaction.rb +116 -0
  784. data/lib/stripe/resources/v2/money_management/transaction_entry.rb +105 -0
  785. data/lib/stripe/resources/v2/payments/off_session_payment.rb +242 -0
  786. data/lib/stripe/resources/v2/tax/automatic_rule.rb +39 -0
  787. data/lib/stripe/resources.rb +386 -0
  788. data/lib/stripe/services/account_notice_service.rb +39 -0
  789. data/lib/stripe/services/billing/analytics/meter_usage_service.rb +21 -0
  790. data/lib/stripe/services/billing/analytics_service.rb +15 -0
  791. data/lib/stripe/services/billing_service.rb +2 -1
  792. data/lib/stripe/services/capital/financing_offer_service.rb +42 -0
  793. data/lib/stripe/services/capital/financing_summary_service.rb +19 -0
  794. data/lib/stripe/services/capital/financing_transaction_service.rb +31 -0
  795. data/lib/stripe/services/capital_service.rb +15 -0
  796. data/lib/stripe/services/delegated_checkout/requested_session_service.rb +63 -0
  797. data/lib/stripe/services/delegated_checkout_service.rb +13 -0
  798. data/lib/stripe/services/external_account_service.rb +68 -0
  799. data/lib/stripe/services/financial_connections/account_inferred_balance_service.rb +19 -0
  800. data/lib/stripe/services/financial_connections/account_service.rb +3 -1
  801. data/lib/stripe/services/financial_connections/institution_service.rb +30 -0
  802. data/lib/stripe/services/financial_connections_service.rb +2 -1
  803. data/lib/stripe/services/fx_quote_service.rb +27 -0
  804. data/lib/stripe/services/identity/blocklist_entry_service.rb +71 -0
  805. data/lib/stripe/services/identity_service.rb +2 -1
  806. data/lib/stripe/services/issuing/credit_underwriting_record_service.rb +74 -0
  807. data/lib/stripe/services/issuing/dispute_settlement_detail_service.rb +30 -0
  808. data/lib/stripe/services/issuing/fraud_liability_debit_service.rb +30 -0
  809. data/lib/stripe/services/issuing_service.rb +5 -1
  810. data/lib/stripe/services/mandate_service.rb +5 -0
  811. data/lib/stripe/services/margin_service.rb +50 -0
  812. data/lib/stripe/services/order_line_item_service.rb +17 -0
  813. data/lib/stripe/services/order_service.rb +78 -0
  814. data/lib/stripe/services/payment_intent_service.rb +37 -0
  815. data/lib/stripe/services/payment_method_service.rb +11 -0
  816. data/lib/stripe/services/privacy/redaction_job_service.rb +104 -0
  817. data/lib/stripe/services/privacy/redaction_job_validation_error_service.rb +19 -0
  818. data/lib/stripe/services/privacy_service.rb +13 -0
  819. data/lib/stripe/services/quote_line_service.rb +17 -0
  820. data/lib/stripe/services/quote_preview_invoice_service.rb +17 -0
  821. data/lib/stripe/services/quote_preview_subscription_schedule_service.rb +17 -0
  822. data/lib/stripe/services/quote_service.rb +49 -1
  823. data/lib/stripe/services/subscription_schedule_service.rb +11 -0
  824. data/lib/stripe/services/subscription_service.rb +11 -0
  825. data/lib/stripe/services/tax/association_service.rb +19 -0
  826. data/lib/stripe/services/tax/form_service.rb +37 -0
  827. data/lib/stripe/services/tax_service.rb +3 -1
  828. data/lib/stripe/services/terminal/onboarding_link_service.rb +19 -0
  829. data/lib/stripe/services/terminal/reader_collected_data_service.rb +19 -0
  830. data/lib/stripe/services/terminal_service.rb +3 -1
  831. data/lib/stripe/services/v1_services.rb +9 -1
  832. data/lib/stripe/services/v2/billing/bill_setting_service.rb +61 -0
  833. data/lib/stripe/services/v2/billing/bill_settings/version_service.rb +34 -0
  834. data/lib/stripe/services/v2/billing/cadence_service.rb +65 -0
  835. data/lib/stripe/services/v2/billing/collection_setting_service.rb +61 -0
  836. data/lib/stripe/services/v2/billing/collection_settings/version_service.rb +34 -0
  837. data/lib/stripe/services/v2/billing/custom_pricing_unit_service.rb +54 -0
  838. data/lib/stripe/services/v2/billing/intent_service.rb +94 -0
  839. data/lib/stripe/services/v2/billing/intents/action_service.rb +34 -0
  840. data/lib/stripe/services/v2/billing/license_fee_service.rb +61 -0
  841. data/lib/stripe/services/v2/billing/license_fee_subscription_service.rb +21 -0
  842. data/lib/stripe/services/v2/billing/license_fees/version_service.rb +34 -0
  843. data/lib/stripe/services/v2/billing/licensed_item_service.rb +54 -0
  844. data/lib/stripe/services/v2/billing/metered_item_service.rb +54 -0
  845. data/lib/stripe/services/v2/billing/pricing_plan_service.rb +62 -0
  846. data/lib/stripe/services/v2/billing/pricing_plan_subscription_service.rb +51 -0
  847. data/lib/stripe/services/v2/billing/pricing_plan_subscriptions/component_service.rb +23 -0
  848. data/lib/stripe/services/v2/billing/pricing_plans/component_service.rb +67 -0
  849. data/lib/stripe/services/v2/billing/pricing_plans/version_service.rb +34 -0
  850. data/lib/stripe/services/v2/billing/profile_service.rb +54 -0
  851. data/lib/stripe/services/v2/billing/rate_card_service.rb +62 -0
  852. data/lib/stripe/services/v2/billing/rate_card_subscription_service.rb +65 -0
  853. data/lib/stripe/services/v2/billing/rate_cards/rate_service.rb +57 -0
  854. data/lib/stripe/services/v2/billing/rate_cards/version_service.rb +34 -0
  855. data/lib/stripe/services/v2/billing/service_action_service.rb +43 -0
  856. data/lib/stripe/services/v2/billing_service.rb +18 -1
  857. data/lib/stripe/services/v2/core/account_link_service.rb +21 -0
  858. data/lib/stripe/services/v2/core/account_service.rb +76 -0
  859. data/lib/stripe/services/v2/core/accounts/person_service.rb +67 -0
  860. data/lib/stripe/services/v2/core/claimable_sandbox_service.rb +35 -0
  861. data/lib/stripe/services/v2/core/vault/gb_bank_account_service.rb +85 -0
  862. data/lib/stripe/services/v2/core/vault/us_bank_account_service.rb +101 -0
  863. data/lib/stripe/services/v2/core/vault_service.rb +18 -0
  864. data/lib/stripe/services/v2/core_service.rb +5 -1
  865. data/lib/stripe/services/v2/money_management/adjustment_service.rb +32 -0
  866. data/lib/stripe/services/v2/money_management/financial_account_service.rb +70 -0
  867. data/lib/stripe/services/v2/money_management/financial_address_service.rb +46 -0
  868. data/lib/stripe/services/v2/money_management/inbound_transfer_service.rb +45 -0
  869. data/lib/stripe/services/v2/money_management/outbound_payment_quote_service.rb +34 -0
  870. data/lib/stripe/services/v2/money_management/outbound_payment_service.rb +62 -0
  871. data/lib/stripe/services/v2/money_management/outbound_setup_intent_service.rb +73 -0
  872. data/lib/stripe/services/v2/money_management/outbound_transfer_service.rb +60 -0
  873. data/lib/stripe/services/v2/money_management/payout_method_service.rb +63 -0
  874. data/lib/stripe/services/v2/money_management/payout_methods_bank_account_spec_service.rb +23 -0
  875. data/lib/stripe/services/v2/money_management/received_credit_service.rb +32 -0
  876. data/lib/stripe/services/v2/money_management/received_debit_service.rb +32 -0
  877. data/lib/stripe/services/v2/money_management/recipient_verification_service.rb +43 -0
  878. data/lib/stripe/services/v2/money_management/transaction_entry_service.rb +32 -0
  879. data/lib/stripe/services/v2/money_management/transaction_service.rb +32 -0
  880. data/lib/stripe/services/v2/money_management_service.rb +33 -0
  881. data/lib/stripe/services/v2/payment_service.rb +15 -0
  882. data/lib/stripe/services/v2/payments/off_session_payment_service.rb +65 -0
  883. data/lib/stripe/services/v2/tax/automatic_rule_service.rb +65 -0
  884. data/lib/stripe/services/v2/tax_service.rb +15 -0
  885. data/lib/stripe/services/v2/test_helper_service.rb +16 -0
  886. data/lib/stripe/services/v2/test_helpers/financial_address_service.rb +36 -0
  887. data/lib/stripe/services/v2/test_helpers/money_management_service.rb +21 -0
  888. data/lib/stripe/services/v2_services.rb +5 -1
  889. data/lib/stripe/services.rb +84 -0
  890. data/lib/stripe/stripe_configuration.rb +3 -1
  891. data/lib/stripe/stripe_object.rb +1 -1
  892. data/lib/stripe/util.rb +7 -1
  893. data/lib/stripe/version.rb +1 -1
  894. data/lib/stripe.rb +53 -0
  895. data/rbi/stripe.rbi +158952 -88420
  896. metadata +720 -4
@@ -29,11 +29,11 @@ module Stripe
29
29
 
30
30
  class AmountDetails < ::Stripe::StripeObject
31
31
  class Shipping < ::Stripe::StripeObject
32
- # If a physical good is being shipped, the cost of shipping represented in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). An integer greater than or equal to 0.
32
+ # Portion of the amount that is for shipping.
33
33
  attr_reader :amount
34
- # If a physical good is being shipped, the postal code of where it is being shipped from. At most 10 alphanumeric characters long, hyphens are allowed.
34
+ # The postal code that represents the shipping source.
35
35
  attr_reader :from_postal_code
36
- # If a physical good is being shipped, the postal code of where it is being shipped to. At most 10 alphanumeric characters long, hyphens are allowed.
36
+ # The postal code that represents the shipping destination.
37
37
  attr_reader :to_postal_code
38
38
 
39
39
  def self.inner_class_types
@@ -46,9 +46,7 @@ module Stripe
46
46
  end
47
47
 
48
48
  class Tax < ::Stripe::StripeObject
49
- # The total amount of tax on the transaction represented in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). Required for L2 rates. An integer greater than or equal to 0.
50
- #
51
- # This field is mutually exclusive with the `amount_details[line_items][#][tax][total_tax_amount]` field.
49
+ # Total portion of the amount that is for tax.
52
50
  attr_reader :total_tax_amount
53
51
 
54
52
  def self.inner_class_types
@@ -72,9 +70,7 @@ module Stripe
72
70
  @field_remappings = {}
73
71
  end
74
72
  end
75
- # The total discount applied on the transaction represented in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). An integer greater than 0.
76
- #
77
- # This field is mutually exclusive with the `amount_details[line_items][#][discount_amount]` field.
73
+ # The total discount applied on the transaction.
78
74
  attr_reader :discount_amount
79
75
  # A list of line items, each containing information about a product in the PaymentIntent. There is a maximum of 100 line items.
80
76
  attr_reader :line_items
@@ -111,6 +107,43 @@ module Stripe
111
107
  end
112
108
  end
113
109
 
110
+ class Hooks < ::Stripe::StripeObject
111
+ class Inputs < ::Stripe::StripeObject
112
+ class Tax < ::Stripe::StripeObject
113
+ # The [TaxCalculation](https://stripe.com/docs/api/tax/calculations) id
114
+ attr_reader :calculation
115
+
116
+ def self.inner_class_types
117
+ @inner_class_types = {}
118
+ end
119
+
120
+ def self.field_remappings
121
+ @field_remappings = {}
122
+ end
123
+ end
124
+ # Attribute for field tax
125
+ attr_reader :tax
126
+
127
+ def self.inner_class_types
128
+ @inner_class_types = { tax: Tax }
129
+ end
130
+
131
+ def self.field_remappings
132
+ @field_remappings = {}
133
+ end
134
+ end
135
+ # Attribute for field inputs
136
+ attr_reader :inputs
137
+
138
+ def self.inner_class_types
139
+ @inner_class_types = { inputs: Inputs }
140
+ end
141
+
142
+ def self.field_remappings
143
+ @field_remappings = {}
144
+ end
145
+ end
146
+
114
147
  class LastPaymentError < ::Stripe::StripeObject
115
148
  # For card errors resulting from a card issuer decline, a short string indicating [how to proceed with an error](https://stripe.com/docs/declines#retrying-issuer-declines) if they provide one.
116
149
  attr_reader :advice_code
@@ -1148,19 +1181,382 @@ module Stripe
1148
1181
  end
1149
1182
 
1150
1183
  class PaymentDetails < ::Stripe::StripeObject
1151
- # A unique value to identify the customer. This field is available only for card payments.
1152
- #
1153
- # This field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks.
1184
+ class Benefit < ::Stripe::StripeObject
1185
+ class FrMealVoucher < ::Stripe::StripeObject
1186
+ # The 14-digit SIRET of the meal voucher acceptor.
1187
+ attr_reader :siret
1188
+
1189
+ def self.inner_class_types
1190
+ @inner_class_types = {}
1191
+ end
1192
+
1193
+ def self.field_remappings
1194
+ @field_remappings = {}
1195
+ end
1196
+ end
1197
+ # Attribute for field fr_meal_voucher
1198
+ attr_reader :fr_meal_voucher
1199
+
1200
+ def self.inner_class_types
1201
+ @inner_class_types = { fr_meal_voucher: FrMealVoucher }
1202
+ end
1203
+
1204
+ def self.field_remappings
1205
+ @field_remappings = {}
1206
+ end
1207
+ end
1208
+
1209
+ class CarRental < ::Stripe::StripeObject
1210
+ class Affiliate < ::Stripe::StripeObject
1211
+ # The name of the affiliate that originated the purchase.
1212
+ attr_reader :name
1213
+
1214
+ def self.inner_class_types
1215
+ @inner_class_types = {}
1216
+ end
1217
+
1218
+ def self.field_remappings
1219
+ @field_remappings = {}
1220
+ end
1221
+ end
1222
+
1223
+ class Delivery < ::Stripe::StripeObject
1224
+ class Recipient < ::Stripe::StripeObject
1225
+ # The email of the recipient the ticket is delivered to.
1226
+ attr_reader :email
1227
+ # The name of the recipient the ticket is delivered to.
1228
+ attr_reader :name
1229
+ # The phone number of the recipient the ticket is delivered to.
1230
+ attr_reader :phone
1231
+
1232
+ def self.inner_class_types
1233
+ @inner_class_types = {}
1234
+ end
1235
+
1236
+ def self.field_remappings
1237
+ @field_remappings = {}
1238
+ end
1239
+ end
1240
+ # The delivery method for the payment
1241
+ attr_reader :mode
1242
+ # Attribute for field recipient
1243
+ attr_reader :recipient
1244
+
1245
+ def self.inner_class_types
1246
+ @inner_class_types = { recipient: Recipient }
1247
+ end
1248
+
1249
+ def self.field_remappings
1250
+ @field_remappings = {}
1251
+ end
1252
+ end
1253
+
1254
+ class Distance < ::Stripe::StripeObject
1255
+ # Distance traveled.
1256
+ attr_reader :amount
1257
+ # Unit of measurement for the distance traveled. One of `miles` or `kilometers`
1258
+ attr_reader :unit
1259
+
1260
+ def self.inner_class_types
1261
+ @inner_class_types = {}
1262
+ end
1263
+
1264
+ def self.field_remappings
1265
+ @field_remappings = {}
1266
+ end
1267
+ end
1268
+
1269
+ class Driver < ::Stripe::StripeObject
1270
+ # Driver's identification number.
1271
+ attr_reader :driver_identification_number
1272
+ # Driver's tax number.
1273
+ attr_reader :driver_tax_number
1274
+ # Full name of the driver on the reservation.
1275
+ attr_reader :name
1276
+
1277
+ def self.inner_class_types
1278
+ @inner_class_types = {}
1279
+ end
1280
+
1281
+ def self.field_remappings
1282
+ @field_remappings = {}
1283
+ end
1284
+ end
1285
+
1286
+ class PickupAddress < ::Stripe::StripeObject
1287
+ # City, district, suburb, town, or village.
1288
+ attr_reader :city
1289
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1290
+ attr_reader :country
1291
+ # Address line 1, such as the street, PO Box, or company name.
1292
+ attr_reader :line1
1293
+ # Address line 2, such as the apartment, suite, unit, or building.
1294
+ attr_reader :line2
1295
+ # ZIP or postal code.
1296
+ attr_reader :postal_code
1297
+ # State, county, province, or region.
1298
+ attr_reader :state
1299
+
1300
+ def self.inner_class_types
1301
+ @inner_class_types = {}
1302
+ end
1303
+
1304
+ def self.field_remappings
1305
+ @field_remappings = {}
1306
+ end
1307
+ end
1308
+
1309
+ class ReturnAddress < ::Stripe::StripeObject
1310
+ # City, district, suburb, town, or village.
1311
+ attr_reader :city
1312
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1313
+ attr_reader :country
1314
+ # Address line 1, such as the street, PO Box, or company name.
1315
+ attr_reader :line1
1316
+ # Address line 2, such as the apartment, suite, unit, or building.
1317
+ attr_reader :line2
1318
+ # ZIP or postal code.
1319
+ attr_reader :postal_code
1320
+ # State, county, province, or region.
1321
+ attr_reader :state
1322
+
1323
+ def self.inner_class_types
1324
+ @inner_class_types = {}
1325
+ end
1326
+
1327
+ def self.field_remappings
1328
+ @field_remappings = {}
1329
+ end
1330
+ end
1331
+ # Attribute for field affiliate
1332
+ attr_reader :affiliate
1333
+ # The booking number associated with the car rental.
1334
+ attr_reader :booking_number
1335
+ # Class code of the car.
1336
+ attr_reader :car_class_code
1337
+ # Make of the car.
1338
+ attr_reader :car_make
1339
+ # Model of the car.
1340
+ attr_reader :car_model
1341
+ # The name of the rental car company.
1342
+ attr_reader :company
1343
+ # The customer service phone number of the car rental company.
1344
+ attr_reader :customer_service_phone_number
1345
+ # Number of days the car is being rented.
1346
+ attr_reader :days_rented
1347
+ # Attribute for field delivery
1348
+ attr_reader :delivery
1349
+ # Attribute for field distance
1350
+ attr_reader :distance
1351
+ # The details of the drivers associated with the trip.
1352
+ attr_reader :drivers
1353
+ # List of additional charges being billed.
1354
+ attr_reader :extra_charges
1355
+ # Indicates if the customer did not keep nor cancel their booking.
1356
+ attr_reader :no_show
1357
+ # Attribute for field pickup_address
1358
+ attr_reader :pickup_address
1359
+ # Car pick-up time. Measured in seconds since the Unix epoch.
1360
+ attr_reader :pickup_at
1361
+ # Name of the pickup location.
1362
+ attr_reader :pickup_location_name
1363
+ # Rental rate.
1364
+ attr_reader :rate_amount
1365
+ # The frequency at which the rate amount is applied. One of `day`, `week` or `month`
1366
+ attr_reader :rate_interval
1367
+ # The full name of the person or entity renting the car.
1368
+ attr_reader :renter_name
1369
+ # Attribute for field return_address
1370
+ attr_reader :return_address
1371
+ # Car return time. Measured in seconds since the Unix epoch.
1372
+ attr_reader :return_at
1373
+ # Name of the return location.
1374
+ attr_reader :return_location_name
1375
+ # Indicates whether the goods or services are tax-exempt or tax is not collected.
1376
+ attr_reader :tax_exempt
1377
+ # The vehicle identification number of the car.
1378
+ attr_reader :vehicle_identification_number
1379
+
1380
+ def self.inner_class_types
1381
+ @inner_class_types = {
1382
+ affiliate: Affiliate,
1383
+ delivery: Delivery,
1384
+ distance: Distance,
1385
+ drivers: Driver,
1386
+ pickup_address: PickupAddress,
1387
+ return_address: ReturnAddress,
1388
+ }
1389
+ end
1390
+
1391
+ def self.field_remappings
1392
+ @field_remappings = {}
1393
+ end
1394
+ end
1395
+
1396
+ class EventDetails < ::Stripe::StripeObject
1397
+ class Address < ::Stripe::StripeObject
1398
+ # City, district, suburb, town, or village.
1399
+ attr_reader :city
1400
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1401
+ attr_reader :country
1402
+ # Address line 1, such as the street, PO Box, or company name.
1403
+ attr_reader :line1
1404
+ # Address line 2, such as the apartment, suite, unit, or building.
1405
+ attr_reader :line2
1406
+ # ZIP or postal code.
1407
+ attr_reader :postal_code
1408
+ # State, county, province, or region.
1409
+ attr_reader :state
1410
+
1411
+ def self.inner_class_types
1412
+ @inner_class_types = {}
1413
+ end
1414
+
1415
+ def self.field_remappings
1416
+ @field_remappings = {}
1417
+ end
1418
+ end
1419
+
1420
+ class Affiliate < ::Stripe::StripeObject
1421
+ # The name of the affiliate that originated the purchase.
1422
+ attr_reader :name
1423
+
1424
+ def self.inner_class_types
1425
+ @inner_class_types = {}
1426
+ end
1427
+
1428
+ def self.field_remappings
1429
+ @field_remappings = {}
1430
+ end
1431
+ end
1432
+
1433
+ class Delivery < ::Stripe::StripeObject
1434
+ class Recipient < ::Stripe::StripeObject
1435
+ # The email of the recipient the ticket is delivered to.
1436
+ attr_reader :email
1437
+ # The name of the recipient the ticket is delivered to.
1438
+ attr_reader :name
1439
+ # The phone number of the recipient the ticket is delivered to.
1440
+ attr_reader :phone
1441
+
1442
+ def self.inner_class_types
1443
+ @inner_class_types = {}
1444
+ end
1445
+
1446
+ def self.field_remappings
1447
+ @field_remappings = {}
1448
+ end
1449
+ end
1450
+ # The delivery method for the payment
1451
+ attr_reader :mode
1452
+ # Attribute for field recipient
1453
+ attr_reader :recipient
1454
+
1455
+ def self.inner_class_types
1456
+ @inner_class_types = { recipient: Recipient }
1457
+ end
1458
+
1459
+ def self.field_remappings
1460
+ @field_remappings = {}
1461
+ end
1462
+ end
1463
+ # Indicates if the tickets are digitally checked when entering the venue.
1464
+ attr_reader :access_controlled_venue
1465
+ # Attribute for field address
1466
+ attr_reader :address
1467
+ # Attribute for field affiliate
1468
+ attr_reader :affiliate
1469
+ # The name of the company
1470
+ attr_reader :company
1471
+ # Attribute for field delivery
1472
+ attr_reader :delivery
1473
+ # Event end time. Measured in seconds since the Unix epoch.
1474
+ attr_reader :ends_at
1475
+ # Type of the event entertainment (concert, sports event etc)
1476
+ attr_reader :genre
1477
+ # The name of the event.
1478
+ attr_reader :name
1479
+ # Event start time. Measured in seconds since the Unix epoch.
1480
+ attr_reader :starts_at
1481
+
1482
+ def self.inner_class_types
1483
+ @inner_class_types = { address: Address, affiliate: Affiliate, delivery: Delivery }
1484
+ end
1485
+
1486
+ def self.field_remappings
1487
+ @field_remappings = {}
1488
+ end
1489
+ end
1490
+
1491
+ class Subscription < ::Stripe::StripeObject
1492
+ class Affiliate < ::Stripe::StripeObject
1493
+ # The name of the affiliate that originated the purchase.
1494
+ attr_reader :name
1495
+
1496
+ def self.inner_class_types
1497
+ @inner_class_types = {}
1498
+ end
1499
+
1500
+ def self.field_remappings
1501
+ @field_remappings = {}
1502
+ end
1503
+ end
1504
+
1505
+ class BillingInterval < ::Stripe::StripeObject
1506
+ # The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
1507
+ attr_reader :count
1508
+ # Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
1509
+ attr_reader :interval
1510
+
1511
+ def self.inner_class_types
1512
+ @inner_class_types = {}
1513
+ end
1514
+
1515
+ def self.field_remappings
1516
+ @field_remappings = {}
1517
+ end
1518
+ end
1519
+ # Attribute for field affiliate
1520
+ attr_reader :affiliate
1521
+ # Info whether the subscription will be auto renewed upon expiry.
1522
+ attr_reader :auto_renewal
1523
+ # Attribute for field billing_interval
1524
+ attr_reader :billing_interval
1525
+ # Subscription end time. Measured in seconds since the Unix epoch.
1526
+ attr_reader :ends_at
1527
+ # Name of the product on subscription. e.g. Apple Music Subscription.
1528
+ attr_reader :name
1529
+ # Subscription start time. Measured in seconds since the Unix epoch.
1530
+ attr_reader :starts_at
1531
+
1532
+ def self.inner_class_types
1533
+ @inner_class_types = { affiliate: Affiliate, billing_interval: BillingInterval }
1534
+ end
1535
+
1536
+ def self.field_remappings
1537
+ @field_remappings = {}
1538
+ end
1539
+ end
1540
+ # Attribute for field benefit
1541
+ attr_reader :benefit
1542
+ # Attribute for field car_rental
1543
+ attr_reader :car_rental
1544
+ # Some customers might be required by their company or organization to provide this information. If so, provide this value. Otherwise you can ignore this field.
1154
1545
  attr_reader :customer_reference
1155
- # A unique value assigned by the business to identify the transaction. Required for L2 and L3 rates.
1156
- #
1157
- # Required when the Payment Method Types array contains `card`, including when [automatic_payment_methods.enabled](/api/payment_intents/create#create_payment_intent-automatic_payment_methods-enabled) is set to `true`.
1158
- #
1159
- # For Cards, this field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks. For Klarna, this field is truncated to 255 characters and is visible to customers when they view the order in the Klarna app.
1546
+ # Attribute for field event_details
1547
+ attr_reader :event_details
1548
+ # A unique value assigned by the business to identify the transaction.
1160
1549
  attr_reader :order_reference
1550
+ # Attribute for field subscription
1551
+ attr_reader :subscription
1161
1552
 
1162
1553
  def self.inner_class_types
1163
- @inner_class_types = {}
1554
+ @inner_class_types = {
1555
+ benefit: Benefit,
1556
+ car_rental: CarRental,
1557
+ event_details: EventDetails,
1558
+ subscription: Subscription,
1559
+ }
1164
1560
  end
1165
1561
 
1166
1562
  def self.field_remappings
@@ -1538,6 +1934,43 @@ module Stripe
1538
1934
  @field_remappings = {}
1539
1935
  end
1540
1936
  end
1937
+
1938
+ class StatementDetails < ::Stripe::StripeObject
1939
+ class Address < ::Stripe::StripeObject
1940
+ # City, district, suburb, town, or village.
1941
+ attr_reader :city
1942
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1943
+ attr_reader :country
1944
+ # Address line 1, such as the street, PO Box, or company name.
1945
+ attr_reader :line1
1946
+ # Address line 2, such as the apartment, suite, unit, or building.
1947
+ attr_reader :line2
1948
+ # ZIP or postal code.
1949
+ attr_reader :postal_code
1950
+ # State, county, province, or region.
1951
+ attr_reader :state
1952
+
1953
+ def self.inner_class_types
1954
+ @inner_class_types = {}
1955
+ end
1956
+
1957
+ def self.field_remappings
1958
+ @field_remappings = {}
1959
+ end
1960
+ end
1961
+ # Attribute for field address
1962
+ attr_reader :address
1963
+ # Phone number
1964
+ attr_reader :phone
1965
+
1966
+ def self.inner_class_types
1967
+ @inner_class_types = { address: Address }
1968
+ end
1969
+
1970
+ def self.field_remappings
1971
+ @field_remappings = {}
1972
+ end
1973
+ end
1541
1974
  # Controls when the funds will be captured from the customer's account.
1542
1975
  attr_reader :capture_method
1543
1976
  # Installment details for this payment.
@@ -1548,6 +1981,8 @@ module Stripe
1548
1981
  attr_reader :mandate_options
1549
1982
  # Selected network to process this payment intent on. Depends on the available networks of the card attached to the payment intent. Can be only set confirm-time.
1550
1983
  attr_reader :network
1984
+ # Request ability to [decrement the authorization](https://stripe.com/docs/payments/decremental-authorization) for this PaymentIntent.
1985
+ attr_reader :request_decremental_authorization
1551
1986
  # Request ability to [capture beyond the standard authorization validity window](https://stripe.com/docs/payments/extended-authorization) for this PaymentIntent.
1552
1987
  attr_reader :request_extended_authorization
1553
1988
  # Request ability to [increment the authorization](https://stripe.com/docs/payments/incremental-authorization) for this PaymentIntent.
@@ -1556,6 +1991,8 @@ module Stripe
1556
1991
  attr_reader :request_multicapture
1557
1992
  # Request ability to [overcapture](https://stripe.com/docs/payments/overcapture) for this PaymentIntent.
1558
1993
  attr_reader :request_overcapture
1994
+ # Request partial authorization on this PaymentIntent.
1995
+ attr_reader :request_partial_authorization
1559
1996
  # We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. If not provided, this value defaults to `automatic`. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine.
1560
1997
  attr_reader :request_three_d_secure
1561
1998
  # When enabled, using a card that is attached to a customer will require the CVC to be provided again (i.e. using the cvc_token parameter).
@@ -1572,9 +2009,15 @@ module Stripe
1572
2009
  attr_reader :statement_descriptor_suffix_kana
1573
2010
  # Provides information about a card payment that customers see on their statements. Concatenated with the Kanji prefix (shortened Kanji descriptor) or Kanji statement descriptor that’s set on the account to form the complete statement descriptor. Maximum 17 characters. On card statements, the *concatenation* of both prefix and suffix (including separators) will appear truncated to 17 characters.
1574
2011
  attr_reader :statement_descriptor_suffix_kanji
2012
+ # Attribute for field statement_details
2013
+ attr_reader :statement_details
1575
2014
 
1576
2015
  def self.inner_class_types
1577
- @inner_class_types = { installments: Installments, mandate_options: MandateOptions }
2016
+ @inner_class_types = {
2017
+ installments: Installments,
2018
+ mandate_options: MandateOptions,
2019
+ statement_details: StatementDetails,
2020
+ }
1578
2021
  end
1579
2022
 
1580
2023
  def self.field_remappings
@@ -1761,6 +2204,25 @@ module Stripe
1761
2204
  end
1762
2205
  end
1763
2206
 
2207
+ class Gopay < ::Stripe::StripeObject
2208
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
2209
+ #
2210
+ # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
2211
+ #
2212
+ # If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
2213
+ #
2214
+ # When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
2215
+ attr_reader :setup_future_usage
2216
+
2217
+ def self.inner_class_types
2218
+ @inner_class_types = {}
2219
+ end
2220
+
2221
+ def self.field_remappings
2222
+ @field_remappings = {}
2223
+ end
2224
+ end
2225
+
1764
2226
  class Grabpay < ::Stripe::StripeObject
1765
2227
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1766
2228
  #
@@ -1780,6 +2242,29 @@ module Stripe
1780
2242
  end
1781
2243
  end
1782
2244
 
2245
+ class IdBankTransfer < ::Stripe::StripeObject
2246
+ # The UNIX timestamp until which the virtual bank account is valid. Permitted range is from now till 2678400 seconds (31 days) from now.
2247
+ attr_reader :expires_after
2248
+ # The UNIX timestamp until which the virtual bank account is valid. Permitted range is from now until 30 days from now. If unset, it defaults to 1 days from now.
2249
+ attr_reader :expires_at
2250
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
2251
+ #
2252
+ # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
2253
+ #
2254
+ # If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
2255
+ #
2256
+ # When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
2257
+ attr_reader :setup_future_usage
2258
+
2259
+ def self.inner_class_types
2260
+ @inner_class_types = {}
2261
+ end
2262
+
2263
+ def self.field_remappings
2264
+ @field_remappings = {}
2265
+ end
2266
+ end
2267
+
1783
2268
  class Ideal < ::Stripe::StripeObject
1784
2269
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1785
2270
  #
@@ -2108,12 +2593,56 @@ module Stripe
2108
2593
  end
2109
2594
 
2110
2595
  class Paypal < ::Stripe::StripeObject
2596
+ class LineItem < ::Stripe::StripeObject
2597
+ class Tax < ::Stripe::StripeObject
2598
+ # The tax for a single unit of the line item in minor units. Cannot be a negative number.
2599
+ attr_reader :amount
2600
+ # The tax behavior for the line item.
2601
+ attr_reader :behavior
2602
+
2603
+ def self.inner_class_types
2604
+ @inner_class_types = {}
2605
+ end
2606
+
2607
+ def self.field_remappings
2608
+ @field_remappings = {}
2609
+ end
2610
+ end
2611
+ # Type of the line item.
2612
+ attr_reader :category
2613
+ # Description of the line item.
2614
+ attr_reader :description
2615
+ # Descriptive name of the line item.
2616
+ attr_reader :name
2617
+ # Quantity of the line item. Cannot be a negative number.
2618
+ attr_reader :quantity
2619
+ # Client facing stock keeping unit, article number or similar.
2620
+ attr_reader :sku
2621
+ # The Stripe account ID of the connected account that sells the item. This is only needed when using [Separate Charges and Transfers](https://docs.stripe.com/connect/separate-charges-and-transfers).
2622
+ attr_reader :sold_by
2623
+ # Attribute for field tax
2624
+ attr_reader :tax
2625
+ # Price for a single unit of the line item in minor units. Cannot be a negative number.
2626
+ attr_reader :unit_amount
2627
+
2628
+ def self.inner_class_types
2629
+ @inner_class_types = { tax: Tax }
2630
+ end
2631
+
2632
+ def self.field_remappings
2633
+ @field_remappings = {}
2634
+ end
2635
+ end
2111
2636
  # Controls when the funds will be captured from the customer's account.
2112
2637
  attr_reader :capture_method
2638
+ # The line items purchased by the customer.
2639
+ attr_reader :line_items
2113
2640
  # Preferred locale of the PayPal checkout page that the customer is redirected to.
2114
2641
  attr_reader :preferred_locale
2115
2642
  # A reference of the PayPal transaction visible to customer which is mapped to PayPal's invoice ID. This must be a globally unique ID if you have configured in your PayPal settings to block multiple payments per invoice ID.
2116
2643
  attr_reader :reference
2644
+ # A reference of the PayPal transaction visible to customer which is mapped to PayPal's invoice ID. This must be a globally unique ID if you have configured in your PayPal settings to block multiple payments per invoice ID.
2645
+ attr_reader :reference_id
2117
2646
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
2118
2647
  #
2119
2648
  # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
@@ -2122,7 +2651,19 @@ module Stripe
2122
2651
  #
2123
2652
  # When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
2124
2653
  attr_reader :setup_future_usage
2654
+ # The Stripe connected account IDs of the sellers on the platform for this transaction (optional). Only allowed when [separate charges and transfers](https://stripe.com/docs/connect/separate-charges-and-transfers) are used.
2655
+ attr_reader :subsellers
2125
2656
 
2657
+ def self.inner_class_types
2658
+ @inner_class_types = { line_items: LineItem }
2659
+ end
2660
+
2661
+ def self.field_remappings
2662
+ @field_remappings = {}
2663
+ end
2664
+ end
2665
+
2666
+ class Paypay < ::Stripe::StripeObject
2126
2667
  def self.inner_class_types
2127
2668
  @inner_class_types = {}
2128
2669
  end
@@ -2132,13 +2673,84 @@ module Stripe
2132
2673
  end
2133
2674
  end
2134
2675
 
2676
+ class Payto < ::Stripe::StripeObject
2677
+ class MandateOptions < ::Stripe::StripeObject
2678
+ # Amount that will be collected. It is required when `amount_type` is `fixed`.
2679
+ attr_reader :amount
2680
+ # The type of amount that will be collected. The amount charged must be exact or up to the value of `amount` param for `fixed` or `maximum` type respectively.
2681
+ attr_reader :amount_type
2682
+ # Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no end date.
2683
+ attr_reader :end_date
2684
+ # The periodicity at which payments will be collected.
2685
+ attr_reader :payment_schedule
2686
+ # The number of payments that will be made during a payment period. Defaults to 1 except for when `payment_schedule` is `adhoc`. In that case, it defaults to no limit.
2687
+ attr_reader :payments_per_period
2688
+ # The purpose for which payments are made. Defaults to retail.
2689
+ attr_reader :purpose
2690
+
2691
+ def self.inner_class_types
2692
+ @inner_class_types = {}
2693
+ end
2694
+
2695
+ def self.field_remappings
2696
+ @field_remappings = {}
2697
+ end
2698
+ end
2699
+ # Attribute for field mandate_options
2700
+ attr_reader :mandate_options
2701
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
2702
+ #
2703
+ # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
2704
+ #
2705
+ # If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
2706
+ #
2707
+ # When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
2708
+ attr_reader :setup_future_usage
2709
+
2710
+ def self.inner_class_types
2711
+ @inner_class_types = { mandate_options: MandateOptions }
2712
+ end
2713
+
2714
+ def self.field_remappings
2715
+ @field_remappings = {}
2716
+ end
2717
+ end
2718
+
2135
2719
  class Pix < ::Stripe::StripeObject
2720
+ class MandateOptions < ::Stripe::StripeObject
2721
+ # Amount to be charged for future payments.
2722
+ attr_reader :amount
2723
+ # Determines if the amount includes the IOF tax.
2724
+ attr_reader :amount_includes_iof
2725
+ # Type of amount.
2726
+ attr_reader :amount_type
2727
+ # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase.
2728
+ attr_reader :currency
2729
+ # Date when the mandate expires and no further payments will be charged, in `YYYY-MM-DD`.
2730
+ attr_reader :end_date
2731
+ # Schedule at which the future payments will be charged.
2732
+ attr_reader :payment_schedule
2733
+ # Subscription name displayed to buyers in their bank app.
2734
+ attr_reader :reference
2735
+ # Start date of the mandate, in `YYYY-MM-DD`.
2736
+ attr_reader :start_date
2737
+
2738
+ def self.inner_class_types
2739
+ @inner_class_types = {}
2740
+ end
2741
+
2742
+ def self.field_remappings
2743
+ @field_remappings = {}
2744
+ end
2745
+ end
2136
2746
  # Determines if the amount includes the IOF tax.
2137
2747
  attr_reader :amount_includes_iof
2138
2748
  # The number of seconds (between 10 and 1209600) after which Pix payment will expire.
2139
2749
  attr_reader :expires_after_seconds
2140
2750
  # The timestamp at which the Pix expires.
2141
2751
  attr_reader :expires_at
2752
+ # Attribute for field mandate_options
2753
+ attr_reader :mandate_options
2142
2754
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
2143
2755
  #
2144
2756
  # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
@@ -2149,7 +2761,7 @@ module Stripe
2149
2761
  attr_reader :setup_future_usage
2150
2762
 
2151
2763
  def self.inner_class_types
2152
- @inner_class_types = {}
2764
+ @inner_class_types = { mandate_options: MandateOptions }
2153
2765
  end
2154
2766
 
2155
2767
  def self.field_remappings
@@ -2176,6 +2788,35 @@ module Stripe
2176
2788
  end
2177
2789
  end
2178
2790
 
2791
+ class Qris < ::Stripe::StripeObject
2792
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
2793
+ #
2794
+ # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
2795
+ #
2796
+ # If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
2797
+ #
2798
+ # When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
2799
+ attr_reader :setup_future_usage
2800
+
2801
+ def self.inner_class_types
2802
+ @inner_class_types = {}
2803
+ end
2804
+
2805
+ def self.field_remappings
2806
+ @field_remappings = {}
2807
+ end
2808
+ end
2809
+
2810
+ class Rechnung < ::Stripe::StripeObject
2811
+ def self.inner_class_types
2812
+ @inner_class_types = {}
2813
+ end
2814
+
2815
+ def self.field_remappings
2816
+ @field_remappings = {}
2817
+ end
2818
+ end
2819
+
2179
2820
  class RevolutPay < ::Stripe::StripeObject
2180
2821
  # Controls when the funds will be captured from the customer's account.
2181
2822
  attr_reader :capture_method
@@ -2258,6 +2899,25 @@ module Stripe
2258
2899
  end
2259
2900
  end
2260
2901
 
2902
+ class Shopeepay < ::Stripe::StripeObject
2903
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
2904
+ #
2905
+ # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
2906
+ #
2907
+ # If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
2908
+ #
2909
+ # When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
2910
+ attr_reader :setup_future_usage
2911
+
2912
+ def self.inner_class_types
2913
+ @inner_class_types = {}
2914
+ end
2915
+
2916
+ def self.field_remappings
2917
+ @field_remappings = {}
2918
+ end
2919
+ end
2920
+
2261
2921
  class Sofort < ::Stripe::StripeObject
2262
2922
  # Preferred language of the SOFORT authorization page that the customer is redirected to.
2263
2923
  attr_reader :preferred_language
@@ -2279,6 +2939,25 @@ module Stripe
2279
2939
  end
2280
2940
  end
2281
2941
 
2942
+ class StripeBalance < ::Stripe::StripeObject
2943
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
2944
+ #
2945
+ # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
2946
+ #
2947
+ # If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
2948
+ #
2949
+ # When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
2950
+ attr_reader :setup_future_usage
2951
+
2952
+ def self.inner_class_types
2953
+ @inner_class_types = {}
2954
+ end
2955
+
2956
+ def self.field_remappings
2957
+ @field_remappings = {}
2958
+ end
2959
+ end
2960
+
2282
2961
  class Swish < ::Stripe::StripeObject
2283
2962
  # A reference for this payment to be displayed in the Swish app.
2284
2963
  attr_reader :reference
@@ -2324,6 +3003,21 @@ module Stripe
2324
3003
  class Filters < ::Stripe::StripeObject
2325
3004
  # The account subcategories to use to filter for possible accounts to link. Valid subcategories are `checking` and `savings`.
2326
3005
  attr_reader :account_subcategories
3006
+ # The institution to use to filter for possible accounts to link.
3007
+ attr_reader :institution
3008
+
3009
+ def self.inner_class_types
3010
+ @inner_class_types = {}
3011
+ end
3012
+
3013
+ def self.field_remappings
3014
+ @field_remappings = {}
3015
+ end
3016
+ end
3017
+
3018
+ class ManualEntry < ::Stripe::StripeObject
3019
+ # Settings for configuring manual entry of account details.
3020
+ attr_reader :mode
2327
3021
 
2328
3022
  def self.inner_class_types
2329
3023
  @inner_class_types = {}
@@ -2335,6 +3029,8 @@ module Stripe
2335
3029
  end
2336
3030
  # Attribute for field filters
2337
3031
  attr_reader :filters
3032
+ # Attribute for field manual_entry
3033
+ attr_reader :manual_entry
2338
3034
  # The list of permissions to request. The `payment_method` permission must be included.
2339
3035
  attr_reader :permissions
2340
3036
  # Data features requested to be retrieved upon account creation.
@@ -2343,7 +3039,7 @@ module Stripe
2343
3039
  attr_reader :return_url
2344
3040
 
2345
3041
  def self.inner_class_types
2346
- @inner_class_types = { filters: Filters }
3042
+ @inner_class_types = { filters: Filters, manual_entry: ManualEntry }
2347
3043
  end
2348
3044
 
2349
3045
  def self.field_remappings
@@ -2475,8 +3171,12 @@ module Stripe
2475
3171
  attr_reader :fpx
2476
3172
  # Attribute for field giropay
2477
3173
  attr_reader :giropay
3174
+ # Attribute for field gopay
3175
+ attr_reader :gopay
2478
3176
  # Attribute for field grabpay
2479
3177
  attr_reader :grabpay
3178
+ # Attribute for field id_bank_transfer
3179
+ attr_reader :id_bank_transfer
2480
3180
  # Attribute for field ideal
2481
3181
  attr_reader :ideal
2482
3182
  # Attribute for field interac_present
@@ -2513,10 +3213,18 @@ module Stripe
2513
3213
  attr_reader :paynow
2514
3214
  # Attribute for field paypal
2515
3215
  attr_reader :paypal
3216
+ # Attribute for field paypay
3217
+ attr_reader :paypay
3218
+ # Attribute for field payto
3219
+ attr_reader :payto
2516
3220
  # Attribute for field pix
2517
3221
  attr_reader :pix
2518
3222
  # Attribute for field promptpay
2519
3223
  attr_reader :promptpay
3224
+ # Attribute for field qris
3225
+ attr_reader :qris
3226
+ # Attribute for field rechnung
3227
+ attr_reader :rechnung
2520
3228
  # Attribute for field revolut_pay
2521
3229
  attr_reader :revolut_pay
2522
3230
  # Attribute for field samsung_pay
@@ -2525,8 +3233,12 @@ module Stripe
2525
3233
  attr_reader :satispay
2526
3234
  # Attribute for field sepa_debit
2527
3235
  attr_reader :sepa_debit
3236
+ # Attribute for field shopeepay
3237
+ attr_reader :shopeepay
2528
3238
  # Attribute for field sofort
2529
3239
  attr_reader :sofort
3240
+ # Attribute for field stripe_balance
3241
+ attr_reader :stripe_balance
2530
3242
  # Attribute for field swish
2531
3243
  attr_reader :swish
2532
3244
  # Attribute for field twint
@@ -2560,7 +3272,9 @@ module Stripe
2560
3272
  eps: Eps,
2561
3273
  fpx: Fpx,
2562
3274
  giropay: Giropay,
3275
+ gopay: Gopay,
2563
3276
  grabpay: Grabpay,
3277
+ id_bank_transfer: IdBankTransfer,
2564
3278
  ideal: Ideal,
2565
3279
  interac_present: InteracPresent,
2566
3280
  kakao_pay: KakaoPay,
@@ -2579,13 +3293,19 @@ module Stripe
2579
3293
  payco: Payco,
2580
3294
  paynow: Paynow,
2581
3295
  paypal: Paypal,
3296
+ paypay: Paypay,
3297
+ payto: Payto,
2582
3298
  pix: Pix,
2583
3299
  promptpay: Promptpay,
3300
+ qris: Qris,
3301
+ rechnung: Rechnung,
2584
3302
  revolut_pay: RevolutPay,
2585
3303
  samsung_pay: SamsungPay,
2586
3304
  satispay: Satispay,
2587
3305
  sepa_debit: SepaDebit,
3306
+ shopeepay: Shopeepay,
2588
3307
  sofort: Sofort,
3308
+ stripe_balance: StripeBalance,
2589
3309
  swish: Swish,
2590
3310
  twint: Twint,
2591
3311
  us_bank_account: UsBankAccount,
@@ -2714,6 +3434,19 @@ module Stripe
2714
3434
  @field_remappings = {}
2715
3435
  end
2716
3436
  end
3437
+
3438
+ class AllocatedFunds < ::Stripe::StripeObject
3439
+ # Allocated Funds configuration for this PaymentIntent.
3440
+ attr_reader :enabled
3441
+
3442
+ def self.inner_class_types
3443
+ @inner_class_types = {}
3444
+ end
3445
+
3446
+ def self.field_remappings
3447
+ @field_remappings = {}
3448
+ end
3449
+ end
2717
3450
  # Amount intended to be collected by this PaymentIntent. A positive integer representing how much to charge in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) (e.g., 100 cents to charge $1.00 or 100 to charge ¥100, a zero-decimal currency). The minimum amount is $0.50 US or [equivalent in charge currency](https://stripe.com/docs/currencies#minimum-and-maximum-charge-amounts). The amount value supports up to eight digits (e.g., a value of 99999999 for a USD charge of $999,999.99).
2718
3451
  attr_reader :amount
2719
3452
  # Amount that can be captured from this PaymentIntent.
@@ -2752,10 +3485,20 @@ module Stripe
2752
3485
  #
2753
3486
  # If [setup_future_usage](https://stripe.com/docs/api#payment_intent_object-setup_future_usage) is set and this PaymentIntent's payment method is not `card_present`, then the payment method attaches to the Customer after the PaymentIntent has been confirmed and any required actions from the user are complete. If the payment method is `card_present` and isn't a digital wallet, then a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card is created and attached to the Customer instead.
2754
3487
  attr_reader :customer
3488
+ # ID of the Account this PaymentIntent belongs to, if one exists.
3489
+ #
3490
+ # Payment methods attached to other Accounts cannot be used with this PaymentIntent.
3491
+ #
3492
+ # If [setup_future_usage](https://stripe.com/docs/api#payment_intent_object-setup_future_usage) is set and this PaymentIntent's payment method is not `card_present`, then the payment method attaches to the Account after the PaymentIntent has been confirmed and any required actions from the user are complete. If the payment method is `card_present` and isn't a digital wallet, then a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card is created and attached to the Account instead.
3493
+ attr_reader :customer_account
2755
3494
  # An arbitrary string attached to the object. Often useful for displaying to users.
2756
3495
  attr_reader :description
2757
3496
  # The list of payment method types to exclude from use with this payment.
2758
3497
  attr_reader :excluded_payment_method_types
3498
+ # The FX Quote used for the PaymentIntent.
3499
+ attr_reader :fx_quote
3500
+ # Attribute for field hooks
3501
+ attr_reader :hooks
2759
3502
  # Unique identifier for the object.
2760
3503
  attr_reader :id
2761
3504
  # The payment error encountered in the previous PaymentIntent confirmation. It will be cleared if the PaymentIntent is later updated for any reason.
@@ -2790,6 +3533,8 @@ module Stripe
2790
3533
  attr_reader :receipt_email
2791
3534
  # ID of the review associated with this PaymentIntent, if any.
2792
3535
  attr_reader :review
3536
+ # Indicates whether confirmation for this PaymentIntent using a secret key is `required` or `optional`.
3537
+ attr_reader :secret_key_confirmation
2793
3538
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
2794
3539
  #
2795
3540
  # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
@@ -2814,6 +3559,8 @@ module Stripe
2814
3559
  attr_reader :transfer_data
2815
3560
  # A string that identifies the resulting payment as part of a group. Learn more about the [use case for connected accounts](https://stripe.com/docs/connect/separate-charges-and-transfers).
2816
3561
  attr_reader :transfer_group
3562
+ # Allocated Funds configuration for this PaymentIntent.
3563
+ attr_reader :allocated_funds
2817
3564
 
2818
3565
  # Manually reconcile the remaining amount for a customer_balance PaymentIntent.
2819
3566
  def apply_customer_balance(params = {}, opts = {})
@@ -2983,6 +3730,56 @@ module Stripe
2983
3730
  request_stripe_object(method: :post, path: "/v1/payment_intents", params: params, opts: opts)
2984
3731
  end
2985
3732
 
3733
+ # Perform a decremental authorization on an eligible
3734
+ # [PaymentIntent](https://docs.stripe.com/docs/api/payment_intents/object). To be eligible, the
3735
+ # PaymentIntent's status must be requires_capture and
3736
+ # [decremental_authorization.status](https://docs.stripe.com/docs/api/charges/object#charge_object-payment_method_details-card-decremental_authorization)
3737
+ # must be available.
3738
+ #
3739
+ # Decremental authorizations decrease the authorized amount on your customer's card
3740
+ # to the new, lower amount provided. A single PaymentIntent can call this endpoint multiple times to further decrease the authorized amount.
3741
+ #
3742
+ # After decrement, the PaymentIntent object
3743
+ # returns with the updated
3744
+ # [amount](https://docs.stripe.com/docs/api/payment_intents/object#payment_intent_object-amount).
3745
+ # The PaymentIntent will now be capturable up to the new authorized amount.
3746
+ #
3747
+ # Each PaymentIntent can have a maximum of 10 decremental or incremental authorization attempts, including declines.
3748
+ # After it's fully captured, a PaymentIntent can no longer be decremented.
3749
+ def decrement_authorization(params = {}, opts = {})
3750
+ request_stripe_object(
3751
+ method: :post,
3752
+ path: format("/v1/payment_intents/%<intent>s/decrement_authorization", { intent: CGI.escape(self["id"]) }),
3753
+ params: params,
3754
+ opts: opts
3755
+ )
3756
+ end
3757
+
3758
+ # Perform a decremental authorization on an eligible
3759
+ # [PaymentIntent](https://docs.stripe.com/docs/api/payment_intents/object). To be eligible, the
3760
+ # PaymentIntent's status must be requires_capture and
3761
+ # [decremental_authorization.status](https://docs.stripe.com/docs/api/charges/object#charge_object-payment_method_details-card-decremental_authorization)
3762
+ # must be available.
3763
+ #
3764
+ # Decremental authorizations decrease the authorized amount on your customer's card
3765
+ # to the new, lower amount provided. A single PaymentIntent can call this endpoint multiple times to further decrease the authorized amount.
3766
+ #
3767
+ # After decrement, the PaymentIntent object
3768
+ # returns with the updated
3769
+ # [amount](https://docs.stripe.com/docs/api/payment_intents/object#payment_intent_object-amount).
3770
+ # The PaymentIntent will now be capturable up to the new authorized amount.
3771
+ #
3772
+ # Each PaymentIntent can have a maximum of 10 decremental or incremental authorization attempts, including declines.
3773
+ # After it's fully captured, a PaymentIntent can no longer be decremented.
3774
+ def self.decrement_authorization(intent, params = {}, opts = {})
3775
+ request_stripe_object(
3776
+ method: :post,
3777
+ path: format("/v1/payment_intents/%<intent>s/decrement_authorization", { intent: CGI.escape(intent) }),
3778
+ params: params,
3779
+ opts: opts
3780
+ )
3781
+ end
3782
+
2986
3783
  # Perform an incremental authorization on an eligible
2987
3784
  # [PaymentIntent](https://docs.stripe.com/docs/api/payment_intents/object). To be eligible, the
2988
3785
  # PaymentIntent's status must be requires_capture and
@@ -3067,6 +3864,26 @@ module Stripe
3067
3864
  search(params, opts).auto_paging_each(&blk)
3068
3865
  end
3069
3866
 
3867
+ # Trigger an external action on a PaymentIntent.
3868
+ def trigger_action(params = {}, opts = {})
3869
+ request_stripe_object(
3870
+ method: :post,
3871
+ path: format("/v1/test/payment_intents/%<intent>s/trigger_action", { intent: CGI.escape(self["id"]) }),
3872
+ params: params,
3873
+ opts: opts
3874
+ )
3875
+ end
3876
+
3877
+ # Trigger an external action on a PaymentIntent.
3878
+ def self.trigger_action(intent, params = {}, opts = {})
3879
+ request_stripe_object(
3880
+ method: :post,
3881
+ path: format("/v1/test/payment_intents/%<intent>s/trigger_action", { intent: CGI.escape(intent) }),
3882
+ params: params,
3883
+ opts: opts
3884
+ )
3885
+ end
3886
+
3070
3887
  # Updates properties on a PaymentIntent object without confirming.
3071
3888
  #
3072
3889
  # Depending on which properties you update, you might need to confirm the
@@ -3107,6 +3924,7 @@ module Stripe
3107
3924
  @inner_class_types = {
3108
3925
  amount_details: AmountDetails,
3109
3926
  automatic_payment_methods: AutomaticPaymentMethods,
3927
+ hooks: Hooks,
3110
3928
  last_payment_error: LastPaymentError,
3111
3929
  next_action: NextAction,
3112
3930
  payment_details: PaymentDetails,
@@ -3116,6 +3934,7 @@ module Stripe
3116
3934
  processing: Processing,
3117
3935
  shipping: Shipping,
3118
3936
  transfer_data: TransferData,
3937
+ allocated_funds: AllocatedFunds,
3119
3938
  }
3120
3939
  end
3121
3940